Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23647] Advice on compile time about i18n errors

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelscb-tooling
ReporterManuel Conde Vendrell
AssigneeUnknown
Created2016-07-15T11:55:24.000+0000
Updated2018-02-28T19:55:15.000+0000

Description

Sometimes we find people asking for problems using i18n strings identifiers. It is easy for anyone to use names as *home.4* or *my-home* that are not allowed or generate errors (sometimes even no errors are generated, simply the translation don't work). Would be very good that compiler can check for the most usual cases:

Start a string identifier by a number: *100money*

Use not allowed chars: *my.money* (this generates a WARN

[WARN] :   KrollProxy: (KrollRuntimeThread) [197,901] No localized string found for identifier: my.money

Use hyphen instead underscore: *my-money*

Cannot remember now if there are more cases.

Comments

  1. Hans Knöchel 2016-07-17

    Hey [~mcvendrell], great suggestion! Can you make a list of patterns which work and which don't? So we could throw better warnings or even try to them work if they do natively. Thanks!
  2. Sharif AbuDarda 2016-12-12

    Hello [~mcvendrell], Can you get back on [~hansknoechel] comment. Thanks.
  3. Manuel Conde Vendrell 2016-12-12

    Hi Sharif. The cases I commented are the only ones I know, that's because I didn't add more patterns.

JSON Source