Skip to content

Commit

Permalink
Add a script to generate translations
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk authored and adekbadek committed Feb 20, 2020
1 parent 4b13249 commit 23e84d2
Show file tree
Hide file tree
Showing 17 changed files with 717 additions and 764 deletions.
13 changes: 13 additions & 0 deletions bin/update-translations.sh
@@ -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
@@ -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.":[""]}}}
@@ -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":[""]}}}
@@ -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.":[""]}}}
@@ -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 languages/newspack-blocks-de_DE-newspack-blocks-editor.json

This file was deleted.

Binary file modified languages/newspack-blocks-de_DE.mo
Binary file not shown.

0 comments on commit 23e84d2

Please sign in to comment.