summary refs log tree commit diff
path: root/po
diff options
context:
space:
mode:
Diffstat (limited to 'po')
-rw-r--r--po/LINGUAS0
-rw-r--r--po/POTFILES.in18
-rw-r--r--po/meson.build1
3 files changed, 19 insertions, 0 deletions
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/po/LINGUAS
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..d7868d7
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,18 @@
+data/xyz.vikanezrimaya.kittybox.Bowl.desktop.in.in
+
+### Below are rust files containing translatable strings.
+###
+### It's better to use `xtr` instead of `xgettext` for those.
+### (Rust gettext!() macro is equivalent to format!() but isn't recognized as a keyword)
+# src/lib.rs
+# src/components/post_editor.rs
+# src/components/signin.rs
+# src/components/smart_summary.rs
+###
+### To properly use `xtr`, do:
+###
+### $ xtr -o /dev/stdout src/lib.rs | cat >> po/bowl.pot
+###
+### because xtr truncates the file descriptor it writes to.
+###
+### Perhaps it would be better to produce a proper workflow for regenerating this .pot file.
\ No newline at end of file
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..6a87565
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1 @@
+i18n.gettext(gettext_package, preset: 'glib')
\ No newline at end of file