Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25084] Support localized string and model attribute together in binding

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsalloy, bindings, feature
ReporterMark Boyer
AssigneeUnknown
Created2017-08-10T15:47:55.000+0000
Updated2018-02-28T19:55:36.000+0000

Description

Be able to concatenate a localized string with a model attribute. According to the documentation, something the following is possible (and works as expected):

Attachments

FileDateSize
app.zip2017-08-11T08:38:30.000+00007118847
Screen Shot 2017-08-11 at 2.43.12 PM.png2017-08-11T08:43:43.000+000046455

Comments

  1. Motiur Rahman 2017-08-11

    Hello! I tested this issue and it's a valid improvement. Localized string with a model attribute is not working in a level text. Please see the following code. First, localized string is not working but the second and third one is working. Please see the attachment image and the full code. Testing Environment Ti SDK 6.1.2 Platform: iOS, Android both
       <Alloy>
       	<Collection src="books"/>
       	<Window class="container">
       		<TableView dataCollection="books">
       			<TableViewRow>
       				<Label text="{title} L('by') {author}"></Label>
       			</TableViewRow>
       			<TableViewRow>
       				<Label text="L('by')"></Label>
       			</TableViewRow>
                                <TableViewRow>
       				<Label text="{title} {author}"></Label>
       			</TableViewRow>
       		</TableView>
       	</Window>
       </Alloy>  
       
    Thanks

JSON Source