Skip to main content

Android localization helper

Project description

[![Build Status](https://api.travis-ci.org/jordanjoz1/android-localization-helper.svg?branch=master)](https://travis-ci.org/jordanjoz1/android-localization-helper)

android-localization-helper

Make sure that you aren’t missing string translations in any language, and keep your localized strings organized.

If you’re like us at [DoubleDutch](doubledutch.me), you occassionally lose track of what strings have and haven’t been translated in each language. Android Studio [made an awesome GUI](http://tools.android.com/recent/androidstudio087released) to help deal with this issue, but there is no easy way to export missing strings, so if you are missing more than a few strings in a language it can become a tenuous problem.

## Getting started Requirements:

To install run: `bash pip install android-localization-helper `

## Usage - general Navigate to your project’s res/ directory and run

` android-localization-helper `

As in the [sample output](./sample_output), the script will create a directory called to_translate with files for the strings that need to translated in each language. If a language has translations for all the strings in the default language, then it won’t get an output file. Now you know exactly what translations you need to add for each language, and you can send them out for translation.

You can change the output folder ` android-localization-helper --output ~/Desktop/to_translate `

And you can clean up your localized strings.xml files. This will remove strings that aren’t in the default file and sort strings to match the default strings.xml order. ` android-localization-helper --clean `

### Options

#### -h, –help Prints help message.

#### –res Path to the app’s /res folder. Like, ./main/res

By default assumes the current directory

#### –output Output directory path (directory will be created automatically). Like, ~/Desktop/to_translate

By default creates to_translate folder in the current directory.

#### –clean Clean the existing string.xml files for each language. This will remove strings that are in the localized language but not in the default language (they presumably got removed from the default langauge). It will also sort the strings so that they are in the same order as the default language.

## Release History * 2015-01-04   v0.1.1   xliff namespace support, better indentation handling * 2015-01-03   v0.1.0   Initial release

CHANGES

0.1.1 (2015-01-04)

  • Support for xliff namespace.

  • Preserves original indentation for tags

  • Added tests for plurals

0.1.0 (2015-01-03)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

android-localization-helper-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

android_localization_helper-0.1.1-py2-none-any.whl (7.6 kB view details)

Uploaded Python 2

File details

Details for the file android-localization-helper-0.1.1.tar.gz.

File metadata

File hashes

Hashes for android-localization-helper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e227e9604193b733f3848bdf44253d61939ec542bc96116823733f4fb4222da3
MD5 d1bd5af86b29bbcfcbac22d2e9c65fbf
BLAKE2b-256 030d2d20fbd7c669971a81915492f42c1bcf236f85235903abbaf908dc46243b

See more details on using hashes here.

File details

Details for the file android_localization_helper-0.1.1-py2-none-any.whl.

File metadata

File hashes

Hashes for android_localization_helper-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 b7a55a3682eb3a8eccf7a7f86cd6c3cc846fd20134a9537a36650907a7717531
MD5 e6c28df9dd0edffc0adf892da4ccd4b1
BLAKE2b-256 e2fd46de797f1ae65d994e8d9a28ae21b3422e0e328482979939f97e025ba8fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page