Socket
Socket
Sign inDemoInstall

tystrings

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tystrings

strings file tool for iOS / macOS developers


Maintainers
1

Readme

.. code-block::


|__ | / | | () | | | ( | | _ __ _ _ __ __ _ ___ | | | | |__ | | '| | '_ \ / ` / __| | | || |) | || | | | | | | (| __
||_, |
/ _|| ||| ||_, |/ / | / | |/ |/

strings file tool for iOS / macOS developers

|pypi| |python| |build| |coverage| |license| |codebeat|

|screenshot|

Installation

.. code-block:: bash

$ sudo pip install tystrings

Usage

.. code-block:: bash

$ 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:

.. code-block:: bash

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

translate .strings file to another language:

.. code-block:: bash

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

validates .strings file:

.. code-block:: bash

$ tystrings lint en.lproj/Localizable.strings

compare two .strings files:

.. code-block:: bash

$ tystrings diff Localizable1.strings Localizable2.strings

.. |pypi| image:: https://img.shields.io/pypi/v/TyStrings.svg?maxAge=2592000 :target: https://pypi.python.org/pypi/TyStrings :alt: Python Package Index

.. |python| image:: https://img.shields.io/badge/python-3-blue :target: https://pypi.python.org/pypi/TyStrings :alt: Python Version Support

.. |license| image:: https://img.shields.io/github/license/luckytianyiyan/TyStrings.svg?maxAge=2592000 :target: LICENSE :alt: MIT License

.. |build| image:: https://img.shields.io/travis/luckytianyiyan/TyStrings.svg?maxAge=2592000 :target: https://travis-ci.org/luckytianyiyan/TyStrings :alt: Continuous Integration

.. |coverage| image:: https://coveralls.io/repos/github/luckytianyiyan/TyStrings/badge.svg :target: https://coveralls.io/github/luckytianyiyan/TyStrings :alt: Coverage Testing Results

.. |screenshot| image:: https://raw.githubusercontent.com/luckytianyiyan/TyStrings/master/resource/tystrings.gif :target: https://raw.githubusercontent.com/luckytianyiyan/TyStrings/master/resource/tystrings.gif :alt: TyStrings Screenshot .. |codebeat| image:: https://codebeat.co/badges/91f19856-ae12-4423-b2cb-a883ec4b5e05 :target: https://codebeat.co/projects/github-com-luckytianyiyan-tystrings-master :alt: Codebeat Badge

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc