[TIMOB-11229] CLI: Build I18N library that support multiple locale directories
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-08T19:11:21.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Sprint 2012-20 JS, 2012 Sprint 20 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-10-02T16:25:51.000+0000 |
Updated | 2017-03-16T20:57:05.000+0000 |
Description
We need a small i18n lib that exposes __() and __n() functions, uses sprint() syntax, and supports multiple locale directories.
Should be modifying the appc fork of https://github.com/appcelerator/i18n-node.
Things we need:
* determine system locale
** Linux
*** "locale"
** Mac OS X
*** defaults read .GlobalPreferences AppleLanguages | tr -d [:space:] | cut -c2-3
** Windows???
* Default locale in config.json
* Multiple locale directories per project
** titanium/locales
** node-appc/locales
** titanium_mobile/android/cli/locales
** titanium_mobile/iphone/cli/locales
** titanium_mobile/mobileweb/cli/locales
** titanium_mobile/support/cli/locales
** titanium_mobile/support/node_modules/titanium-sdk/locales
* i18n tool to find all __() and __n() functions
** determine missing string or strings that are no longer needed
** needs to take multiple locale directories into account
Pull Requests: https://github.com/appcelerator/titanium/pull/12 https://github.com/appcelerator/titanium_mobile/pull/3125 https://github.com/appcelerator/node-appc/pull/9
Closing ticket as fixed.