Automate POEditor exports
Bug #2037106 reported by
Jane Sandberg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Jane Sandberg |
Bug Description
Current manual process:
* Log in to poeditor.com
* Open Evergreen
* Open Czech
* Press Export
* Select .xtb format
* Move the resulting file into place at Open-ILS/
Making this process more automated and less burdensome would reduce the barriers to rolling a release, and get translated terms incorporated into Evergreen in a more timely fashion.
Implementation notes:
* POEditor has an API that can be used to kick off an export, which you can then download at a specified URL: https:/
* You can setup an API token here: https:/
Changed in evergreen: | |
assignee: | nobody → Jane Sandberg (sandbergja) |
assignee: | Jane Sandberg (sandbergja) → nobody |
Changed in evergreen: | |
assignee: | nobody → Jane Sandberg (sandbergja) |
tags: | added: release-process |
To post a comment you must log in.
Here is the script: https:/ /git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ sandbergja/ lp2037106- poeditor- automated- exports
And some ideas for testing it, from the commit message: /poeditor. com/account/ api and get your API key. TOKEN=12345, where 12345 is the API key you got from PoEditor. scripts/ fetch_poeditor_ translations. pl src/eg2/ src/locale/ messages. cs-CZ.xtb contains new translations that have been made recently in the PoEditor interface.
1. Go to https:/
2. export POEDITOR_
3. perl build/i18n/
4. Confirm that the resultant file at Open-ILS/
5. Add a new string to the staff client locally, one that does not currently exist in the project. Mark it for translation.
6. Re-run the script.
7. Confirm that the new string appears in messages.cs-CZ.xtb as well. This allows the staff client to at least display the untranslated string, since Angular is not smart enough to fallback to the untranslated string by itself; we have to supply it ourselves in the .xtb file.