summaryrefslogtreecommitdiff
path: root/po/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'po/meson.build')
-rw-r--r--po/meson.build12
1 files changed, 9 insertions, 3 deletions
diff --git a/po/meson.build b/po/meson.build
index cf61bee..05bb600 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,5 +1,3 @@
-i18n.gettext(project_name, preset: 'glib')
-
i18n_sources = []
foreach file : srcs + ui_defs + i18n_data
@@ -7,9 +5,17 @@ foreach file : srcs + ui_defs + i18n_data
endforeach
potfiles = configure_file(
- input: 'POTFILES.in',
+ input: 'POTFILES.template',
output: '@BASENAME@',
configuration: configuration_data({
'SOURCES': '\n'.join(i18n_sources)
}),
)
+
+update_potfile = run_target('@0@-potfiles'.format(application_name), command: files('scripts/potfiles.py'))
+gettext_deps = i18n.gettext(application_name, preset: 'glib', args: [
+ '--copyright-holder=JaduPc Ltd.',
+ '--msgid-bugs-address=bugs+translations@jadupc.com'
+],)
+
+alias_target('update-translations', update_potfile, gettext_deps[2])