[Commotion-admin] [luci-i18n-commotion] Rough draft of PO Script (#2)

areynold notifications at github.com
Sun Dec 29 01:26:00 UTC 2013


First pass at an automated PO file generator. This script is in need of major refactoring. Contains lots of duplicate code and fast workarounds. 

Newly generated PO files will be in ./scripts/working/translations/ and must be copied back to ./translations/ by hand.
You can merge this Pull Request by running:

  git pull https://github.com/opentechinstitute/luci-i18n-commotion PO-script

Or you can view, comment on it, or merge it online at:

  https://github.com/opentechinstitute/luci-i18n-commotion/pull/2

-- Commit Summary --

  * Update README.md
  * Create working tree
  * Clone or fetch updates to repos as needed
  * Quiet spurious warnings from Git::Repository
  * Ready to begin PO file manipulation
  * Git should ignore working directories
  * Can't use app::ack. Starting new direction
  * Incorporating jow's parse script from luci.subsignal.org.
  * Switched from system copy to file::copy
  * Parse keeps translatable strings associated with their file origins
  * Added hooks for po header creation
  * Merge duplicate strings before writing to file
  * Create container for diff-based add|delete instruction and associated strings
  * Adding hooks for PO file iteration
  * Usable translations extracted from po files
  * Pass translations and stringtable to PO writer
  * Strings can be used to find translations
  * File array built successfully
  * successful file creation. still need to generate headers.
  * PO-writer subroute creates complete translation file.
  * Header generator updates timestamp. Process inefficient.
  * Created associative array for stable:working files
  * Push new translations to github
  * Testing and revising add/commit/push
  * Lots of small bugfixes and/or workarounds. Functional but needs major overhaul
  * Merge branch 'master' into PO-script
  * Uncommented important array, added some notifications

-- File Changes --

    A .gitignore (1)
    A scripts/parse.pl (423)
    A scripts/standard-header.tpl (17)

-- Patch Links --

https://github.com/opentechinstitute/luci-i18n-commotion/pull/2.patch
https://github.com/opentechinstitute/luci-i18n-commotion/pull/2.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20131228/0e41631a/attachment.html>


More information about the Commotion-admin mailing list