[libdazzle] po: add translation scaffolding
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] po: add translation scaffolding
- Date: Mon, 20 Jan 2020 18:20:56 +0000 (UTC)
commit 75dde37a8939a41fc6c7bd530f1f163bacd53513
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 20 10:17:20 2020 -0800
po: add translation scaffolding
meson.build | 6 +++++-
po/LINGUAS | 1 +
po/POTFILES.in | 43 +++++++++++++++++++++++++++++++++++++++++++
po/POTFILES.skip | 3 +++
po/meson.build | 4 ++++
5 files changed, 56 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 6bffa88..0b28e46 100644
--- a/meson.build
+++ b/meson.build
@@ -28,8 +28,10 @@ libversion = '@0@.@1@.@2@'.format(soversion, current, revision)
darwin_versions = [current + 1, '@0@.@1@'.format(current + 1, revision)]
+package_string = 'libdazzle-@0@'.format(apiversion)
+
config_h = configuration_data()
-config_h.set_quoted('GETTEXT_PACKAGE', 'libdazzle')
+config_h.set_quoted('GETTEXT_PACKAGE', package_string)
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
add_project_arguments([
@@ -169,11 +171,13 @@ configure_file(
configuration: config_h,
)
+i18n = import('i18n')
gnome = import('gnome')
subdir('src')
subdir('tools')
subdir('tests')
+subdir('po')
subdir('examples/app')
if get_option('enable_gtk_doc')
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..43b11b3
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1 @@
+# Please keep this list sorted alphabetically
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..133559d
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,43 @@
+# List of source files containing translatable strings.
+# Please keep this file sorted alphabetically.
+src/animation/dzl-animation.c
+src/animation/dzl-box-theatric.c
+src/bindings/dzl-binding-group.c
+src/bindings/dzl-signal-group.c
+src/cache/dzl-task-cache.c
+src/files/dzl-directory-model.c
+src/graphing/dzl-cpu-graph.c
+src/graphing/dzl-graph-column.c
+src/graphing/dzl-graph-line-renderer.c
+src/graphing/dzl-graph-model.c
+src/graphing/dzl-graph-view.c
+src/prefs/dzl-preferences-entry.c
+src/prefs/dzl-preferences-page.c
+src/prefs/dzl-preferences-view.c
+src/search/dzl-trie.c
+src/settings/dzl-settings-sandwich.c
+src/shortcuts/dzl-shortcut-accel-dialog.c
+src/shortcuts/dzl-shortcut-manager.c
+src/shortcuts/dzl-shortcut-theme-editor.c
+src/shortcuts/dzl-shortcuts-group.c
+src/shortcuts/dzl-shortcuts-section.c
+src/shortcuts/dzl-shortcuts-shortcut.c
+src/shortcuts/dzl-shortcuts-window.c
+src/statemachine/dzl-state-machine-buildable.c
+src/statemachine/dzl-state-machine.c
+src/suggestions/dzl-suggestion-entry.c
+src/suggestions/dzl-suggestion-popover.c
+src/theming/dzl-css-provider.c
+src/tree/dzl-tree-builder.c
+src/tree/dzl-tree-node.c
+src/tree/dzl-tree.c
+src/util/dzl-date-time.c
+src/util/dzl-file-manager.c
+src/widgets/dzl-bolding-label.c
+src/widgets/dzl-box.c
+src/widgets/dzl-file-chooser-entry.c
+src/widgets/dzl-pill-box.c
+src/widgets/dzl-rect-helper.c
+src/widgets/dzl-search-bar.c
+src/widgets/dzl-slider.c
+src/widgets/dzl-stack-list.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644
index 0000000..f196f46
--- /dev/null
+++ b/po/POTFILES.skip
@@ -0,0 +1,3 @@
+# List of source files to skip.
+# Please keep this file sorted alphabetically.
+examples/app/example-window.c
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..9aca128
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1,4 @@
+i18n.gettext(
+ package_string,
+ preset: 'glib',
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]