move translations to po/ and use gettext build system

Originally committed to SVN as r1373.
This commit is contained in:
David Lamparter 2007-07-05 15:11:22 +00:00
parent 80b5c07a51
commit 00f64c0620
52 changed files with 63142 additions and 38769 deletions

View file

@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = ac auto3 automation csri aegisub locale
SUBDIRS = ac auto3 automation csri aegisub po
lua51/src/liblua.a:
make -C lua51/src CC=$(CXX) a
@ -74,3 +74,5 @@ EXTRA_DIST = \
lua51/src/lvm.h \
lua51/src/lzio.c \
lua51/src/lzio.h
ACLOCAL_AMFLAGS = -I m4

View file

@ -5,6 +5,8 @@ AC_CONFIG_SRCDIR([aegisub/main.cpp])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([aegisub/posix/acconf.h])
AC_GNU_SOURCE
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.14.5])
AC_CANONICAL_HOST
@ -32,14 +34,6 @@ if test -z "$CONVERT"; then
AC_MSG_XFAILURE([Aegisub needs convert (from ImageMagick) to produce xpms from the supplied bitmaps/icons])
fi
dnl Don't replace this with AC_GNU_GETTEXT, we don't want the framework-mess
dnl that macro depends on, just check if the single program we need is
dnl installed on the system. We can probably even do with non-GNU versions.
AC_PATH_PROGS(MSGFMT, [msgfmt], [])
if test -z "$MSGFMT"
then AC_MSG_XFAILURE([Aegisub needs msgfmt from gettext-tools to compile i18n string tables])
fi
ACX_PTHREAD([], [
AC_MSG_XFAILURE([Aegisub needs pthreads])
])
@ -231,7 +225,7 @@ AC_OUTPUT([
ac/Makefile
auto3/Makefile
automation/Makefile
locale/Makefile
po/Makefile.in
aegisub/Makefile
aegisub/bitmaps/Makefile
aegisub/posix/Makefile

View file

@ -1,15 +0,0 @@
AUTOMAKE_OPTIONS = foreign
LANGS=de es fr it ko pt_BR ru
localedir = $(datadir)/locale
%.gmo: %/aegisub.po
msgfmt -o $@ $<
all-am: $(foreach lang,$(LANGS),$(lang).gmo)
install-data-am: all-am
for lang in $(LANGS); do \
$(install_sh_DATA) $${lang}.gmo $(DESTDIR)$(localedir)/$${lang}/LC_MESSAGES/aegisub.mo; \
done

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

11
po/LINGUAS Normal file
View file

@ -0,0 +1,11 @@
ca
da
de
es
fr
hu
it
ko
ru
pt_BR
zh_TW

11
po/Makevars Normal file
View file

@ -0,0 +1,11 @@
DOMAIN = aegisub
subdir = po
top_builddir = ..
XGETTEXT_OPTIONS = -C -k_
COPYRIGHT_HOLDER = Rodrigo Braz Monteiro
MSGID_BUGS_ADDRESS =
EXTRA_LOCALE_CATEGORIES =

147
po/POTFILES.in Normal file
View file

@ -0,0 +1,147 @@
aegisub/aegisublocale.cpp
aegisub/ass_attachment.cpp
aegisub/ass_dialogue.cpp
aegisub/ass_entry.cpp
aegisub/ass_exporter.cpp
aegisub/ass_export_filter.cpp
aegisub/ass_file.cpp
aegisub/ass_karaoke.cpp
aegisub/ass_override.cpp
aegisub/ass_style.cpp
aegisub/ass_style_storage.cpp
aegisub/ass_time.cpp
aegisub/audio_box.cpp
aegisub/audio_display.cpp
aegisub/audio_karaoke.cpp
aegisub/audio_player_alsa.cpp
aegisub/audio_player.cpp
aegisub/audio_player_dsound.cpp
aegisub/audio_player_openal.cpp
aegisub/audio_player_portaudio.cpp
aegisub/audio_player_pulse.cpp
aegisub/audio_provider_avs.cpp
aegisub/audio_provider.cpp
aegisub/audio_provider_hd.cpp
aegisub/audio_provider_lavc.cpp
aegisub/audio_provider_ram.cpp
aegisub/audio_provider_stream.cpp
aegisub/audio_spectrum.cpp
aegisub/auto4_auto3.cpp
aegisub/auto4_base.cpp
aegisub/auto4_lua_assfile.cpp
aegisub/auto4_lua.cpp
aegisub/auto4_lua_dialog.cpp
aegisub/auto4_lua_scriptreader.cpp
aegisub/auto4_ruby_assfile.cpp
aegisub/auto4_ruby.cpp
aegisub/auto4_ruby_dialog.cpp
aegisub/avisynth_wrap.cpp
aegisub/base_grid.cpp
aegisub/browse_button.cpp
aegisub/charset_detect.cpp
aegisub/colorspace.cpp
aegisub/colour_button.cpp
aegisub/dialog_about.cpp
aegisub/dialog_associations.cpp
aegisub/dialog_attachments.cpp
aegisub/dialog_automation.cpp
aegisub/dialog_colorpicker.cpp
aegisub/dialog_detached_video.cpp
aegisub/dialog_dummy_video.cpp
aegisub/dialog_export.cpp
aegisub/dialog_fonts_collector.cpp
aegisub/dialog_jumpto.cpp
aegisub/dialog_kanji_timer.cpp
aegisub/dialog_options.cpp
aegisub/dialog_paste_over.cpp
aegisub/dialog_progress.cpp
aegisub/dialog_properties.cpp
aegisub/dialog_resample.cpp
aegisub/dialog_search_replace.cpp
aegisub/dialog_selection.cpp
aegisub/dialog_shift_times.cpp
aegisub/dialog_spellchecker.cpp
aegisub/dialog_splash.cpp
aegisub/dialog_style_editor.cpp
aegisub/dialog_style_manager.cpp
aegisub/dialog_styling_assistant.cpp
aegisub/dialog_timing_processor.cpp
aegisub/dialog_tip.cpp
aegisub/dialog_translation.cpp
aegisub/dialog_version_check.cpp
aegisub/drop.cpp
aegisub/export_clean_info.cpp
aegisub/export_fixstyle.cpp
aegisub/export_framerate.cpp
aegisub/export_visible_lines.cpp
aegisub/fft.cpp
aegisub/float_spin.cpp
aegisub/font_file_lister.cpp
aegisub/frame_main.cpp
aegisub/frame_main_events.cpp
aegisub/gl_text.cpp
aegisub/gl_wrap.cpp
aegisub/hilimod_textctrl.cpp
aegisub/hotkeys.cpp
aegisub/idle_field_event.cpp
aegisub/kana_table.cpp
aegisub/lavc_file.cpp
aegisub/main.cpp
aegisub/mkv_wrap.cpp
aegisub/options.cpp
aegisub/scintilla_text_ctrl.cpp
aegisub/setup.cpp
aegisub/spellchecker.cpp
aegisub/spellchecker_hunspell.cpp
aegisub/standard_paths.cpp
aegisub/static_bmp.cpp
aegisub/stdwx.cpp
aegisub/string_codec.cpp
aegisub/subs_edit_box.cpp
aegisub/subs_edit_ctrl.cpp
aegisub/subs_grid.cpp
aegisub/subs_preview.cpp
aegisub/subtitle_format_ass.cpp
aegisub/subtitle_format.cpp
aegisub/subtitle_format_encore.cpp
aegisub/subtitle_format_microdvd.cpp
aegisub/subtitle_format_mkv.cpp
aegisub/subtitle_format_prs.cpp
aegisub/subtitle_format_srt.cpp
aegisub/subtitle_format_ttxt.cpp
aegisub/subtitle_format_txt.cpp
aegisub/subtitles_provider.cpp
aegisub/subtitles_provider_csri.cpp
aegisub/subtitles_provider_libass.cpp
aegisub/text_file_reader.cpp
aegisub/text_file_writer.cpp
aegisub/thesaurus.cpp
aegisub/thesaurus_myspell.cpp
aegisub/timeedit_ctrl.cpp
aegisub/toggle_bitmap.cpp
aegisub/tooltip_manager.cpp
aegisub/utils.cpp
aegisub/validators.cpp
aegisub/variable_data.cpp
aegisub/version.cpp
aegisub/vfr.cpp
aegisub/vfw_wrap.cpp
aegisub/video_box.cpp
aegisub/video_context.cpp
aegisub/video_display.cpp
aegisub/video_frame.cpp
aegisub/video_provider_avs.cpp
aegisub/video_provider.cpp
aegisub/video_provider_dshow.cpp
aegisub/video_provider_dummy.cpp
aegisub/video_provider_lavc.cpp
aegisub/VideoSink.cpp
aegisub/video_slider.cpp
aegisub/visual_feature.cpp
aegisub/visual_tool_clip.cpp
aegisub/visual_tool.cpp
aegisub/visual_tool_cross.cpp
aegisub/visual_tool_drag.cpp
aegisub/visual_tool_rotatexy.cpp
aegisub/visual_tool_rotatez.cpp
aegisub/visual_tool_scale.cpp

4742
po/aegisub.pot Normal file

File diff suppressed because it is too large Load diff

5315
po/ca.po Normal file

File diff suppressed because it is too large Load diff

5309
po/da.po Normal file

File diff suppressed because it is too large Load diff

5302
po/de.po Normal file

File diff suppressed because it is too large Load diff

5311
po/es.po Normal file

File diff suppressed because it is too large Load diff

5311
po/fr.po Normal file

File diff suppressed because it is too large Load diff

5288
po/hu.po Normal file

File diff suppressed because it is too large Load diff

5305
po/it.po Normal file

File diff suppressed because it is too large Load diff

5234
po/ko.po Normal file

File diff suppressed because it is too large Load diff

19
po/mkwin32layout.py Normal file
View file

@ -0,0 +1,19 @@
import shutil
import os
destpath = "../locale"
os.mkdir(destpath)
for lang in file("LINGUAS").readlines():
lang = lang.strip()
langpath = destpath + "/" + lang
os.mkdir(langpath)
shutil.copyfile(lang + ".po", langpath + "/aegisub.po")
if os.access("wxstd-" + lang + ".mo", os.R_OK):
shutil.copyfile("wxstd-" + lang + ".mo", langpath + "/wxstd.mo")
if os.access(lang + ".gmo", os.R_OK):
shutil.copyfile(lang + ".gmo", langpath + "/aegisub.mo")
else:
shutil.copyfile(lang + ".mo", langpath + "/aegisub.mo")

5307
po/pt_BR.po Normal file

File diff suppressed because it is too large Load diff

5286
po/ru.po Normal file

File diff suppressed because it is too large Load diff

5238
po/zh_TW.po Normal file

File diff suppressed because it is too large Load diff