Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a script to generate translations
- Loading branch information
Showing
17 changed files
with
717 additions
and
764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
cd $(dirname "$(dirname "$0")") | ||
wp i18n make-pot . languages/newspack-blocks.pot --domain=newspack-blocks --package-name='Newspack Blocks' | ||
|
||
cd languages | ||
for po in newspack-blocks-*.po; do | ||
# Update translations according to the new POT file | ||
msgmerge $po newspack-blocks.pot -o $po.out | ||
mv $po.out $po | ||
msgfmt $po -o $(basename $po .po).mo | ||
# no-purge since we need the JS translations for the next run | ||
wp i18n make-json --no-purge $po . | ||
done |
1 change: 1 addition & 0 deletions
1
languages/newspack-blocks-de_DE-53e2a1d5945b8d2b1c35e81ae1e532f3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"translation-revision-date":"2020-02-18 13:48-0800","generator":"WP-CLI\/2.4.0","source":"dist\/editor.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"One-time":["Einmal"],"Monthly":["Monatlich"],"Annually":["J\u00e4hrlich"],"Donation amount":["Spendenbetrag"],"Your contribution is appreciated.":["Herzlichen Dank f\u00fcr Ihre Unterst\u00fctzung."],"Donate now!":["Jetzt spenden!"],"Other":["Andere"],"Load more posts":["Mehr Beitr\u00e4ge laden"],"post author\u0004by":["von"],"post author\u0004 and ":[" und "],"(no title)":["(kein Titel)"],"(no name)":["(kein Name)"],"Choose Specific Posts":[""],"Posts":["Beitr\u00e4ge"],"Begin typing post title, click autocomplete result to select.":[""],"Authors":["Autoren"],"Categories":["Kategorien"],"Tags":["Schlagw\u00f6rter"],"Hide Advanced Filters":[""],"Show Advanced Filters":[""],"Excluded Tags":[""],"Article Meta Settings":[""],"Show Date":["Datum anzeigen"],"Show Category":["Kategorie anzeigen"],"Show Author":["Autor anzeigen"],"Show Author Avatar":[""],"Small":["Klein"],"S":["S"],"Medium":["Mittel"],"M":["M"],"Large":["Gro\u00df"],"L":["L"],"Extra Large":["Extra Gro\u00df"],"XL":["XL"],"Display Settings":["Anzeigeneinstellungen"],"Columns":["Spalten"],"Show \"More\" Button":["\"Mehr Lesen\" anzeigen"],"Featured Image Settings":["Beitragsbild-Einstellungen"],"Show Featured Image":["Beitragsbild anzeigen"],"Show Featured Image Caption":[""],"Stack on mobile":[""],"Featured Image Size":["Gr\u00f6\u00dfe des Beitragbildes"],"Minimum height":["Mindesth\u00f6he"],"Sets a minimum height for the block, using a percentage of the screen's current height.":[""],"Post Control Settings":[""],"Show Subtitle":["Datum anzeigen"],"Show Excerpt":["Textauszug anzeigen"],"Type Scale":[""],"Color Settings":["Farbeinstellungen"],"Text Color":["Textfarbe"],"Post Meta Settings":["Post Meta SET"],"List View":[""],"Grid View":[""],"Show media on top":[""],"Show media on left":[""],"Show media on right":[""],"Show media behind":[""],"Landscape Image Shape":[""],"portrait Image Shape":[""],"Square Image Shape":["Gr\u00f6\u00dfe des Beitragbildes"],"Uncropped":[""],"Write header\u2026":[""],"Sorry, no posts were found.":["Entschuldigung, wir konnten keine Beitr\u00e4ge finden."],"Homepage Posts":[""],"posts":["Beitr\u00e4ge"],"articles":["Artikel"],"latest":["letzten"],"A block for displaying homepage posts.":[""],"block style\u0004Default":["Standard"],"block style\u0004Borders":["Rahmen"],"Error":["Fehler"],"Go to donation settings to troubleshoot.":[""],"Not ready":["Nicht bereit"],"You have not set up your donation settings yet. You need to do that before you can use the Donate Block.":[""],"Set up donation settings.":[""],"Tiered":[""],"Donate Block":[""],"Configure manually":[""],"The Donate Block allows you to collect donations from readers. The fields are automatically defined based on your donation settings.":[""],"Edit donation settings.":[""],"Manual Settings":["Farbeinstellungen"],"Campaign":[""],"Campaign ID":[""],"Donate":["Spenden"],"donate":["Spenden"],"memberships":["Mitgliedschaften"],"subscriptions":["Abonnements"],"Enable donations.":[""]}}} |
1 change: 1 addition & 0 deletions
1
languages/newspack-blocks-de_DE-969286d51bb0afe10983b9aec317b5ee.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"translation-revision-date":"2020-02-18 13:48-0800","generator":"WP-CLI\/2.4.0","source":"src\/blocks\/carousel\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Article Meta Settings":[""],"Show Date":["Datum anzeigen"],"Show Category":["Kategorie anzeigen"],"Show Author":["Autor anzeigen"],"Show Author Avatar":[""]}}} |
1 change: 1 addition & 0 deletions
1
languages/newspack-blocks-de_DE-d684e5c5ac51934ba20811c2f588e1d5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"translation-revision-date":"2020-02-18 13:48-0800","generator":"WP-CLI\/2.4.0","source":"src\/blocks\/donate\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Donate":["Spenden"],"donate":["Spenden"],"memberships":["Mitgliedschaften"],"subscriptions":["Abonnements"],"Enable donations.":[""]}}} |
1 change: 1 addition & 0 deletions
1
languages/newspack-blocks-de_DE-fbe7f8c598cf05d4603ba49fec909ded.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"translation-revision-date":"2020-02-18 13:48-0800","generator":"WP-CLI\/2.4.0","source":"src\/blocks\/homepage-articles\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de","plural-forms":"nplurals=2; plural=(n != 1);"},"Homepage Posts":[""],"posts":["Beitr\u00e4ge"],"articles":["Artikel"],"latest":["letzten"],"A block for displaying homepage posts.":[""],"block style\u0004Default":["Standard"],"block style\u0004Borders":["Rahmen"]}}} |
103 changes: 0 additions & 103 deletions
103
languages/newspack-blocks-de_DE-newspack-blocks-editor.json
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.