strings file tool for iOS / macOS developers
Project description
_______ _____ _ _ |__ __| / ____| | (_) | |_ _| (___ | |_ _ __ _ _ __ __ _ ___ | | | | |\___ \| __| '__| | '_ \ / _` / __| | | |_| |____) | |_| | | | | | | (_| \__ \ |_|\__, |_____/ \__|_| |_|_| |_|\__, |___/ __/ | __/ | |___/ |___/
strings file tool for iOS / macOS developers
Installation
$ sudo pip install tystrings
Usage
$ tystrings -h usage: tystrings [-h] [--version] {generate,translate,lint,diff} ... _______ _____ _ _ |__ __| / ____| | (_) | |_ _| (___ | |_ _ __ _ _ __ __ _ ___ | | | | |\___ \| __| '__| | '_ \ / _` / __| | | |_| |____) | |_| | | | | | | (_| \__ \ |_|\__, |_____/ \__|_| |_|_| |_|\__, |___/ __/ | __/ | |___/ |___/ optional arguments: -h, --help show this help message and exit --version show program's version number and exit subcommands: {generate,translate,lint,diff} generate generate `.strings` file from source code files. translate using Baidu Translate Service to translate `.strings` file. lint Validates a `.strings` file. diff Compare `.strings` files line by line.
To run tystrings generate over all .m files in your project, you can invoke it, for example, like this:
$ tystrings generate $(find . -name \*.m) -o en.lproj zh-Hans.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
validates .strings file:
$ tystrings lint en.lproj/Localizable.strings
compare two .strings files:
$ tystrings diff Localizable1.strings Localizable2.strings
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size tystrings-1.2.2-py3-none-any.whl (11.1 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size tystrings-1.2.2.tar.gz (12.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for tystrings-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d3c3de46db2984b4057102193b5402a1a8fc9d0d29a95e21df346421dd8399b |
|
MD5 | f25477e6b07fc8466e25ec01fd2a37e0 |
|
BLAKE2-256 | 506518734c31f4f56afa2740d4e19935495c3a79e79702e4cb6ac4ef2c7b4248 |