Coder Social home page Coder Social logo

ly0x0001 / tystrings Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ty0x2333/tystrings

0.0 1.0 0.0 1.07 MB

strings file tool for iOS / macOS developers

License: MIT License

Makefile 0.80% Shell 0.44% AppleScript 9.27% Python 83.29% Objective-C 6.20%

tystrings's Introduction

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

strings file tool for iOS / macOS developers

Python Package Index Continuous Integration Coverage Testing Results MIT License Codebeat Badge

TyStrings Screenshot

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

tystrings's People

Contributors

ty0x2333 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.