Commit Graph

7 Commits

Author SHA1 Message Date
Theodore Abshire 461144ba80 Fix placeholders in existing localization files.
Issue #2485

Change-Id: Ibcb82f9dd8ba43bc87d2955909fc160171ea0a7d
2020-04-07 13:45:30 -07:00
Joey Parrish 4f2b3d63b9 Update translations
Change-Id: I386fd9d23b4dcf352a4b910f4b47885755486867
2020-04-01 17:02:17 +00:00
Joey Parrish b7b0456136 Update tier 1 & metalanguage translations
This updates the translations for all tier 1 languages and
metalanguages (ar-XB, en-XA).

Change-Id: Iea6b5b23f74fedacbf03284d514ede11a187496d
2020-03-23 16:56:37 +00:00
Jacob Trimble 072ce2b356 Sort locale files.
This also fixes a bug where the UI source.json file was invalid since
it had a trailing comma.

The JSON files were sorted with this Python:

  with open(path, 'r') as f:
    obj = json.load(f)
  with open(path, 'w') as f:
    f.write(json.dumps(obj, indent=2, sort_keys=True,
                       ensure_ascii=False).replace(' \n', '\n'))

Change-Id: I846dfbbc88254030147193fad057bed024997bcd
2020-02-13 19:52:13 +00:00
Joey Parrish 8db79cbcfb Update translations
Change-Id: I3dca0ab82c6b71ad4cad7fc052ae9a8b8a50898c
2019-10-24 19:53:10 +00:00
Germain a9b24b8d64 Improve french translations (#1944) 2019-05-15 14:18:50 -07:00
Joey Parrish 00442a9a7c Split up localization data for lazy loading
This changes the format of the localization data to enable apps to
trivially lazy-load translations.  It also adds --locales to the build
scripts to allow app developers to choose the compiled-in locales.
The generated output now goes into dist/ and is not checked into
revision control.  Finally, it adds "description" and "meaning" fields
to the source messages to allow us to more easily integrate with a
context-aware human translation service.  The "description" field
provides application context for the translator, while the "meaning"
field provides linguistic disambiguation for words with multiple
meanings or parts of speech in the original English.

Because the translation service wants to collapse messages with
identical text, we had to merge several messages together.  To this
end, we have removed the prefixes "ARIA_LABEL_" and "LABEL_" from the
messages themselves and collapsed what remained.

Issue #1688

Change-Id: I24c17e71c73f6663cf123cfdba118c486fa80ecc
2019-04-09 16:06:14 -07:00