Skip to main content

strings file generation / translation tool for iOS

Project description

 _______     _____ _        _
|__   __|   / ____| |      (_)
   | |_   _| (___ | |_ _ __ _ _ __   __ _ ___
   | | | | |\___ \| __| '__| | '_ \ / _` / __|
   | | |_| |____) | |_| |  | | | | | (_| \__ \
   |_|\__, |_____/ \__|_|  |_|_| |_|\__, |___/
       __/ |                         __/ |
      |___/                         |___/

strings file generation / translation tool for iOS

Python Package Index Continuous Integration Coverage Testing Results MIT License

Installation

$ sudo pip install tystrings

Usage

$ tystrings -h
  usage: tystrings [-h] [--version] {generate,translate} ...

    _______     _____ _        _
   |__   __|   / ____| |      (_)
      | |_   _| (___ | |_ _ __ _ _ __   __ _ ___
      | | | | |\___ \| __| '__| | '_ \ / _` / __|
      | | |_| |____) | |_| |  | | | | | (_| \__ \
      |_|\__, |_____/ \__|_|  |_|_| |_|\__, |___/
          __/ |                         __/ |
         |___/                         |___/


  optional arguments:
    -h, --help            show this help message and exit
    --version             show program's version number and exit

  subcommands:
    {generate,translate}
      generate            generate `.strings` file from source code files.
      translate           using Baidu Translate Service to translate `.strings` file.

To run tystrings over all .m files in your project, you can invoke it, for example, like this:

tystrings generate $(find . -name \*.m) -o en.lproj zh.lprog -v

translate .strings file to another language:

tystrings translate en.lproj/Localizable.strings zh-Hans.lproj/Localizable.strings --src-lang en --dst-lang zh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tystrings-1.0.1.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

tystrings-1.0.1-py2-none-any.whl (10.4 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page