Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 950 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 950 Bytes

pygenstrings

Enhance the genstrings command by adding merging capabilities

Usage

$ python genstring.py -p ../Relative/Path/To/Your/Project/Root
  • It takes care of runing the genstrings command on all files *.m
  • Merge the results with previous version of the Localizable.string file
  • Inform you if it works correctly

Known Issues

  • genstrings doesn't like path containing spaces, so avoid subfolders containing spaces. Otherwise the Localizable.string will not be complete

  • You need to respect the format used by the genstrings command unless it will breaks. So, to avoid issues use strictly the format below for each translated text. Also do not remove the line break between two fields or it will breaks too.

    /* Comment for localizable string */
    "Your string" = "Translated string";
    
    /* Comment for localizable string */
    "Your string #2" = "Translated string #2";