Page MenuHomePhabricator

Export mediawiki-extensions group via CLI
Open, Needs TriagePublic

Description

Hello,
I want to export translations of mediawiki-extensions group for Serbian language, so I can check/make new translations and make Cyrillic and Latin to be "in sync".

As this message group is big, and I can't do export/import via my nor bot account, can you please do it via CLI using this script?

After it, when you provide me .po files, and I'm done, you will need to import it via this script.

Event Timeline

Can you clarify which language codes? Both sr-ec and sr-el?

Can you clarify which language codes? Both sr-ec and sr-el?

Yes, right. @Nikerabbit

twn:~$ php /srv/mediawiki/workdir/extensions/Translate/scripts/export.php --group=ext-0-all --offline-gettext-format="%GROUPID%_%CODE%.po" --lang=sr-ec,sr-el --target=. 
Skipping meta message group ext-0-all.
EE1: No valid message groups identified.

The script needs updating to allow it.

twn:~$ php /srv/mediawiki/workdir/extensions/Translate/scripts/export.php --group=ext-0-all --offline-gettext-format="%GROUPID%_%CODE%.po" --lang=sr-ec,sr-el --target=. 
Skipping meta message group ext-0-all.
EE1: No valid message groups identified.

The script needs updating to allow it.

It basically means removing lines 148-152 https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Translate/+/refs/heads/master/scripts/export.php#146 or something else? :)

It should be skipped for offline-gettext mode. Otherwise normal exports would error on the second condition.

It should be skipped for offline-gettext mode. Otherwise normal exports would error on the second condition.

Okay, thanks. I'm adding project tag for extension so it can be done.

Still the same error: Skipping meta message group ext-0-all.

Still the same error: Skipping meta message group ext-0-all.

What about mediawiki?