From 46cf70500bdb912ddf534b9bc33b4bc31ff65912 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Fri, 23 Dec 2022 07:34:26 +0200 Subject: [PATCH] Integrate `extra.menu_title` into Weblate --- .po4a.cfg | 2 +- TRANSLATIONS.md | 1 - content/_index.id.md | 2 +- content/terms/index.id.md | 2 +- po/content.id.po | 20 ++++++++++---------- po/content.pot | 16 ++++++++-------- 6 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.po4a.cfg b/.po4a.cfg index 0a793401..c345ba84 100644 --- a/.po4a.cfg +++ b/.po4a.cfg @@ -3,7 +3,7 @@ [options] opt:"--verbose" opt:"--package-name='Organic Maps Website'" opt:"--package-version=1.0" opt:"--copyright-holder='Organic Maps'" opt:"--addendum-charset=UTF-8" opt:"--localized-charset=UTF-8" opt:"--master-charset=UTF-8" opt:"--master-language=en_US" opt:"--msgmerge-opt='--no-wrap'" opt:"--porefs=file" opt:"--wrap-po=newlines" -[po4a_alias:markdown] text opt:"--option markdown" opt:"--option keyvalue" opt:"--option yfm_keys=title,description" opt:"--addendum-charset=UTF-8" opt:"--localized-charset=UTF-8" opt:"--master-charset=UTF-8" opt:"--keep=80" +[po4a_alias:markdown] text opt:"--option markdown" opt:"--option keyvalue" opt:"--option yfm_keys=title,description,menu_title" opt:"--addendum-charset=UTF-8" opt:"--localized-charset=UTF-8" opt:"--master-charset=UTF-8" opt:"--keep=80" [type: markdown] content/_index.md $lang:content/_index.$lang.md [type: markdown] content/donate/index.md $lang:content/donate/index.$lang.md diff --git a/TRANSLATIONS.md b/TRANSLATIONS.md index 3dc51998..1e58571b 100644 --- a/TRANSLATIONS.md +++ b/TRANSLATIONS.md @@ -79,7 +79,6 @@ brew install po4a ## Known Limitations -- Menu item names in `menu.title` YAML Front Matters are not updated properly, see [a relevant ticket for po4a](https://github.com/mquinson/po4a/issues/392). - `./i18n.sh` removes line wrapping in `.po` files when a new language is added initially via WebLate. - New web-site pages should be added to `.po4a.cfg` configuration file manually. diff --git a/content/_index.id.md b/content/_index.id.md index 6cf619a6..6fc9ad08 100644 --- a/content/_index.id.md +++ b/content/_index.id.md @@ -1,7 +1,7 @@ --- description: 'Peta luring cepat terperinci untuk pelancong, turis, pengemudi, pejalan kaki, dan pengendara sepeda yang dibuat oleh pendiri aplikasi MapsWithMe (Maps.Me).' extra: - menu_title: Halaman depan + menu_title: 'Halaman depan' page_template: index.html sort_by: weight title: 'Organic Maps: Pendakian, Bersepeda, Jalan Setapak, dan Navigasi Luring' diff --git a/content/terms/index.id.md b/content/terms/index.id.md index cbe6143f..d6c5770f 100644 --- a/content/terms/index.id.md +++ b/content/terms/index.id.md @@ -1,7 +1,7 @@ --- description: 'Ketentuan penggunaan untuk aplikasi Organic Maps' extra: - menu_title: Terms + menu_title: Persyaratan title: 'Organic Maps: persyaratan' weight: 1000 --- diff --git a/po/content.id.po b/po/content.id.po index 8a6b85f8..6492e0d7 100644 --- a/po/content.id.po +++ b/po/content.id.po @@ -27,7 +27,7 @@ msgstr "Peta luring cepat terperinci untuk pelancong, turis, pengemudi, pejalan msgid "Organic Maps: Offline Hike, Bike, Trails and Navigation" msgstr "Organic Maps: Pendakian, Bersepeda, Jalan Setapak, dan Navigasi Luring" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/_index.md #, no-wrap msgid "Home" @@ -386,8 +386,8 @@ msgstr "Uang Anda membayar semua pengeluaran yang terkait dengan proyek dan memo msgid "Donate to support the development of Organic Maps" msgstr "Berdonasi untuk mendukung pengembangan Organic Maps" -#. type: YAML Front Matter: extra.menu_title -#: content/_index.md +#. type: YAML Front Matter: extra menu_title +#: content/donate/_index.md #, no-wrap msgid "Donate" msgstr "Donasi" @@ -550,7 +550,7 @@ msgstr "Dapatkah Anda membantu kami dengan cara lain?" #. type: Plain text #: content/donate/index.md -msgid "Yes! There are many ways to support Organic Maps. Please see [Support Us](@/support-us/index.id.md) page for more details." +msgid "Yes! There are many ways to support Organic Maps. Please see [Support Us](@/support-us/index.md) page for more details." msgstr "Ya! Ada banyak cara untuk mendukung Peta Organik. Silakan lihat halaman [Dukung Kami](@/support-us/index.id.md) untuk lebih jelasnya." #. type: Plain text @@ -575,7 +575,7 @@ msgstr "Tetap terhubung dengan rilis Organic Maps terbaru, berita dan pembaruan msgid "Organic Maps: Latest news and updates from our team" msgstr "Organic Maps: Berita dan pembaruan terbaru dari tim kami" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/news/_index.md #, no-wrap msgid "News" @@ -593,8 +593,8 @@ msgstr "Tanpa pelacakan, tanpa iklan, tanpa pengumpulan data, tanpa pengumpulan msgid "Organic Maps: Privacy Policy" msgstr "Organic Maps: Kebijakan Privasi" -#. type: YAML Front Matter: extra.menu_title -#: content/news/_index.md +#. type: YAML Front Matter: extra menu_title +#: content/privacy/_index.md #, no-wrap msgid "Privacy" msgstr "Privasi" @@ -637,7 +637,7 @@ msgstr "Berbagai cara untuk mendukung pengembangan aplikasi gratis kami" msgid "Support the development of Organic Maps" msgstr "Dukung pengembangan Organic Maps" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/support-us/index.md #, no-wrap msgid "Support Us" @@ -730,11 +730,11 @@ msgstr "Ketentuan penggunaan untuk aplikasi Organic Maps" msgid "Organic Maps: terms" msgstr "Organic Maps: persyaratan" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/terms/index.md #, no-wrap msgid "Terms" -msgstr "" +msgstr "Persyaratan" #. type: Plain text #: content/terms/index.md diff --git a/po/content.pot b/po/content.pot index a0cf22bf..b700ba65 100644 --- a/po/content.pot +++ b/po/content.pot @@ -26,7 +26,7 @@ msgstr "" msgid "Organic Maps: Offline Hike, Bike, Trails and Navigation" msgstr "" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/_index.md #, no-wrap msgid "Home" @@ -440,8 +440,8 @@ msgstr "" msgid "Donate to support the development of Organic Maps" msgstr "" -#. type: YAML Front Matter: extra.menu_title -#: content/_index.md +#. type: YAML Front Matter: extra menu_title +#: content/donate/_index.md #, no-wrap msgid "Donate" msgstr "" @@ -652,7 +652,7 @@ msgstr "" msgid "Organic Maps: Latest news and updates from our team" msgstr "" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/news/_index.md #, no-wrap msgid "News" @@ -670,8 +670,8 @@ msgstr "" msgid "Organic Maps: Privacy Policy" msgstr "" -#. type: YAML Front Matter: extra.menu_title -#: content/news/_index.md +#. type: YAML Front Matter: extra menu_title +#: content/privacy/_index.md #, no-wrap msgid "Privacy" msgstr "" @@ -718,7 +718,7 @@ msgstr "" msgid "Support the development of Organic Maps" msgstr "" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/support-us/index.md #, no-wrap msgid "Support Us" @@ -826,7 +826,7 @@ msgstr "" msgid "Organic Maps: terms" msgstr "" -#. type: YAML Front Matter: extra.menu_title +#. type: YAML Front Matter: extra menu_title #: content/terms/index.md #, no-wrap msgid "Terms"