Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11229] CLI: Build I18N library that support multiple locale directories

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-08T19:11:21.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Sprint 2012-20 JS, 2012 Sprint 20
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-10-02T16:25:51.000+0000
Updated2017-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

Comments

  1. Bryan Hughes 2012-10-08

    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
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source