Giter Club home page Giter Club logo

ios_xliff_localizer's Introduction

IOS localizer

First of all, it's my first work. And if you find bugs write me, please! :)

Localizer for ios application. Create xliff-file to import in your project with translate values from dictionary (csv).

Warning! If xliff file don't have target language, it will convert into english target language.

Install

gem install ios_xliff_localizer

How it use

  • For help, just execute ios_xliff_localizer in terminal.
  • For inspect your .csv file execute: ios_xliff_localizer your_csv_file
  • For convert your file execute: ios_xliff_localizer xliff_file csv_file SOURCE_FIELD TARGET_FIELD

Examples

You have file dictionary.csv with 5 fields: android_keys, ios_keys, en, ru, fr. In this directory you write keys which you use in your project and translated keys in other language. For example, look at the table 1.

Table 1.

android_keys ios_keys en ru
cancel_key cancel Cancel Отмена
download_key download Download Скачать
etc... etc... etc... etc...

And you need convert ios_keys into russian language (key ru) in your en.xliff file.
Your command will be:

ios_xliff_localizer en.xliff dictionary.csv ios_keys ru


Description:

  • ios_xliff_localizer - gem name
  • en.xliff - path to your .xliff file
  • dictionary.csv - path to your .csv file
  • ios_keys - source field. Field in dictionary which tool will use to find in xliff file
  • ru - target field. Field in dictionary which tool will use to set in xliff file

After processing tool create en.xliff with postfix out (en_out.xliff) which you can import in your ios project in xCode.
Failed keys will write into special file. failed_keys_[TARGET_FIELD].csv. In our example it will be failed_keys_en.csv

Contacts

email: [email protected]
skype: torlopov.andrey

ios_xliff_localizer's People

Contributors

nea88 avatar

Watchers

 avatar  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.