/translation-tool

A gradle plugin to automate the generation of Android strings files by pulling translations from a google sheets spreadsheet.

Primary LanguageJavaApache License 2.0Apache-2.0

##Translation Tool Plugin

With the translation tool, translating strings has become an intern's job (yes, as easy as making coffee!).

The plugin can be applied to any project by adding the following lines to the build.gradle apply 'translationtool' and using the library com.apalon.translationtool:translation-tool:1.4.0

However, the plugin assumes the following:

  • The master translation file is present as a Google Spreadsheet
  • This file is publicly readable but can be written only when given permission.
  • The Google Spreadsheet has separate worksheet for each project/flavor.
  • If there is a translatable string to be added to the project, it should be added to the corresponding worksheet.
  • Since these strings.xml files are always generated at build time, they should never be manually changed and they should not be checked in to the repo with the code.
  • The older strings which are not translated/translatable are placed in a file called strings-untranslated.xml. Developers should use this file to add additional strings which cannot be translated.

Legal Disclaimer:

  • This documentation, including any code shown in it, is licensed under the Apache 2.0 license (terms available at http://www.apache.org/licenses/LICENSE-2.0 and on the link above at "license"). A right to Aplaon's and our Affiliates trademarks and other brand features are not included in the license.