#1791: "Framework" to put random strings into the po files for translation
-------------------------+--------------------------------------------------
 Reporter:  cybersphinx  |              Owner:                  
     Type:  patch        |             Status:  new             
 Priority:  major        |          Milestone:  unspecified     
Component:  other        |            Version:  unspecified     
 Keywords:               |   Operating_system:  All/Non-Specific
Blockedby:               |           Blocking:                  
-------------------------+--------------------------------------------------
 With my masterful Python skills, I've hacked together two scripts, pull-
 strings.py and push-strings.py, that extract strings out of files that are
 not using gettext, and put the translations back into them
 (warzone2100.desktop for this example), plus a bit of Makefile glue that
 runs pull-strings if necessary for update-po (push-strings is slow).

 pull-strings writes the strings into po/strings.txt, which is then fed to
 gettext, so they get included in the po files. push-strings reads the po
 files, and writes translation back where they should be.

 For the .desktop file, this currently results in a completely unsorted
 file with lowercase identifiers, no idea if that matters (example
 attached).

 This could also be enhanced to include the files needed for Mac and
 Windows installer.

-- 
Ticket URL: <http://developer.wz2100.net/ticket/1791>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to