0

I reference this question

Single key works.

<Label text="%key2"/>

But now I want to add multiple keys as value of attribute. Is there any way to concat keys?

I also tried with %key1, like:

<Label text="%key1%key2"/>
<!-- OR -->
<Label text="%key1,%key2"/>

but it does not work. How to do that?

barbsan
  • 3,418
  • 11
  • 21
  • 28
userSLK
  • 91
  • 5

1 Answers1

1

Because the main goal of %key is internalization ,I mean it refers to many languages from different properties files.You can add multiple keys content in the same node in java code by this way :

myLabel.setText(bundle.getString("key1") + bundle.getString("key2"));