[TIMOB-23647] Advice on compile time about i18n errors
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | cb-tooling |
Reporter | Manuel Conde Vendrell |
Assignee | Unknown |
Created | 2016-07-15T11:55:24.000+0000 |
Updated | 2018-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
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!
Hello [~mcvendrell], Can you get back on [~hansknoechel] comment. Thanks.
Hi Sharif. The cases I commented are the only ones I know, that's because I didn't add more patterns.