[Commotion-admin] [luci-i18n-commotion] Write automation script to handle updating master list of localized strings and translations. (#1)

critzo notifications at github.com
Fri Oct 25 17:49:59 UTC 2013


We need to write a script that can be used at build time, that creates new English strings files to be used for localization updates in various languages.

This script should:
* Parse all files in Commotion packages looking for strings encapsulated in the translate() function or in luci translation brackets <%: %>
* Populate strings into a file such as _commotion-strings-new.po_
* Check strings in _commotion-strings-new.po_ for matching string in a stored file _commotion-strings-stable.po_ containing the most up to date list of English strings.
** If a string match is found, no update is needed. This is an existing, known string.
** If string match is not found, add the string to _commotion-strings-stable.po_
* Compare the English strings in the now updated _commotion-strings-stable.po_ file with English strings in the existing translation files: _commotion-strings-[es,fr,ar].po_
** If string match is found, no update is needed. This is an existing, known string.
** If string match is not found, add string to _commotion-strings-[es,fr,ar].po_
* Update language PO files on transifex/github


---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/luci-i18n-commotion/issues/1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20131025/d66e5f9d/attachment-0001.html>


More information about the Commotion-admin mailing list