wp-cli / language-command

Installs, activates, and manages language packs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Override upgrade strings to ensure output is in English

ocean90 opened this issue · comments

To avoid output like this

Error: Language 'de_DE' not found.
Herunterladen der Übersetzung von https://downloads.wordpress.org/translation/plugin/wordpress-seo/7.9.1/de_DE.zip …
Entpacken der aktualisierten Version …
Die aktuelle Version wird installiert …
Die Ãœbersetzung wurde erfolgreich aktualisiert.
Success: Language installed.
Herunterladen der Übersetzung von https://downloads.wordpress.org/translation/plugin/wordpress-seo/7.9.1/fr_FR.zip …
Entpacken der aktualisierten Version …
Die aktuelle Version wird installiert …
Die Ãœbersetzung wurde erfolgreich aktualisiert.
Success: Language installed.
Error: Language 'de_DE' not found.
Error: Language 'de_DE' not found.
Error: Language 'de_DE' not found.
Error: Language 'de_DE' not found.

I'm proposing to override the strings provided by Language_Pack_Upgrader::upgrade_strings(). Should be an easy task since we already have a custom class for the upgrader..