[TIMOB-13853] i18n: textid should use text as hint
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Core |
Labels | i18n, internationalization |
Reporter | Fokke Zandbergen |
Assignee | Unknown |
Created | 2013-05-09T14:03:16.000+0000 |
Updated | 2018-02-28T20:03:56.000+0000 |
Description
Often I use
hint
- the second parameter for L
(Ti.Locale.getString
) - to specify the default (English) text. In this way, I only have to provide a strings.xml
for alternative languages.
I think it would be a small but nice improvement to use the text
property as the hint
when a textid
property is set. Right now, the text
(title
, message
etc.) property is completely ignored if you have a textid
(titleid
, messageid
etc.) property.
To complete this report, please could you provide a simple code example? Thanks.
Of course. The goal would be to make this:
The same as:
In both cases, if
hello_world
is found in thestrings.xml
, then that text should be used. If not, then the hint/textHello world!
should be used.