From 48af346e949838695bc095a160e69ca1f0e7e4cd Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Wed, 15 Nov 2017 19:41:04 +0100 Subject: [PATCH] Meson: add gettext i18n --- meson.build | 1 + po/POTFILES | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++ po/meson.build | 34 +++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 po/POTFILES create mode 100644 po/meson.build diff --git a/meson.build b/meson.build index 8b06c36ec..86963c88f 100644 --- a/meson.build +++ b/meson.build @@ -144,4 +144,5 @@ acconf = configure_file(output : 'acconf.h', configuration : conf) subdir('automation') subdir('libaegisub') subdir('packages') +subdir('po') subdir('src') diff --git a/po/POTFILES b/po/POTFILES new file mode 100644 index 000000000..233f76faf --- /dev/null +++ b/po/POTFILES @@ -0,0 +1,81 @@ +src/ass_style.cpp +src/audio_box.cpp +src/audio_karaoke.cpp +src/audio_renderer_waveform.cpp +src/audio_timing_dialogue.cpp +src/audio_timing_karaoke.cpp +src/auto4_base.cpp +src/auto4_lua.cpp +src/charset_detect.cpp +src/command/app.cpp +src/command/audio.cpp +src/command/automation.cpp +src/command/command.cpp +src/command/command.h +src/command/edit.cpp +src/command/grid.cpp +src/command/keyframe.cpp +src/command/recent.cpp +src/command/subtitle.cpp +src/command/timecode.cpp +src/command/time.cpp +src/command/tool.cpp +src/command/video.cpp +src/dialog_about.cpp +src/dialog_attachments.cpp +src/dialog_automation.cpp +src/dialog_autosave.cpp +src/dialog_colorpicker.cpp +src/dialog_dummy_video.cpp +src/dialog_export.cpp +src/dialog_export_ebu3264.cpp +src/dialog_fonts_collector.cpp +src/dialog_jumpto.cpp +src/dialog_kara_timing_copy.cpp +src/dialog_log.cpp +src/dialog_paste_over.cpp +src/dialog_progress.cpp +src/dialog_properties.cpp +src/dialog_resample.cpp +src/dialog_search_replace.cpp +src/dialog_selected_choices.cpp +src/dialog_selection.cpp +src/dialog_shift_times.cpp +src/dialog_spellchecker.cpp +src/dialog_style_editor.cpp +src/dialog_style_manager.cpp +src/dialog_styling_assistant.cpp +src/dialog_text_import.cpp +src/dialog_timing_processor.cpp +src/dialog_translation.cpp +src/dialog_version_check.cpp +src/dialog_video_details.cpp +src/dialog_video_properties.cpp +src/export_fixstyle.cpp +src/export_framerate.cpp +src/ffmpegsource_common.cpp +src/font_file_lister.cpp +src/font_file_lister_fontconfig.cpp +src/font_file_lister_gdi.cpp +src/grid_column.cpp +src/hotkey.cpp +src/main.cpp +src/menu.cpp +src/mkv_wrap.cpp +src/preferences_base.cpp +src/preferences.cpp +src/project.cpp +src/resolution_resampler.cpp +src/search_replace_engine.cpp +src/subs_controller.cpp +src/subs_edit_box.cpp +src/subs_edit_ctrl.cpp +src/subtitle_format.cpp +src/subtitle_format_ebu3264.cpp +src/subtitles_provider_libass.cpp +src/timeedit_ctrl.cpp +src/video_box.cpp +src/visual_tool.cpp +src/visual_tool_cross.cpp +src/visual_tool_drag.cpp +src/visual_tool_vector_clip.cpp diff --git a/po/meson.build b/po/meson.build new file mode 100644 index 000000000..8b2f65bf6 --- /dev/null +++ b/po/meson.build @@ -0,0 +1,34 @@ +i18n = import('i18n') +langs = [ + 'ar', + 'bg', + 'ca', + 'cs', + 'da', + 'de', + 'el', + 'es', + 'eu', + 'fa', + 'fi', + 'fr_FR', + 'gl', + 'hu', + 'id', + 'it', + 'ja', + 'ko', + 'nl', + 'pl', + 'pt_BR', + 'pt_PT', + 'ru', + 'sr_RS@latin', + 'sr_RS', + 'uk_UA', + 'vi', + 'zh_CN', + 'zh_TW', +] + +i18n.gettext('aegisub', languages : langs)