Titanium JIRA Archive
Alloy (ALOY)

[ALOY-853] Internationalization in markup required cause of creation only property

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/s2013 Sprint 20
Fix Version/sn/a
Componentsn/a
Labelsstudio3
ReporterMarkus
AssigneeUnknown
Created2013-10-14T07:45:09.000+0000
Updated2018-03-07T22:25:59.000+0000

Description

I want to create an alert dialog in xml with internationalized buttons. The problem is that the buttons are creation only, that means I can't use tss styling. I cannot use L() in xml between tags, ""L('test')"" will create a button with text L('test')
<AlertDialog id="dialog"  title="Delete"
    message="Delete" cancel="1">
 
 <!-- The ButtonNames tag sets the buttonNames property. -->
       <ButtonNames>
          <ButtonName>"L('test')"</ButtonName>
       </ButtonNames>-->
 </AlertDialog>
Yes I can do this in the controller but I think this should be an alloy feature. A general solution for all creation only elements would be great.

Comments

  1. Rene Pot 2014-08-18

    Just ran into this issue as well. Please prioritise this. Not being able to do internationalisation on buttons is silly. Looks weird to our customers.
  2. Ɓukasz Mendelowski 2015-02-27

    +1. I have just ran to the same issue as well.

JSON Source