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.

Files for tystrings, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size tystrings-1.0.1-py2-none-any.whl (10.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size tystrings-1.0.1.tar.gz (9.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page