I'm trying to combine a static "hard coded" string with one referenced from strings.xml
for string array items.
The goal is to have a dynamic metrics list where the number is the same for all languages, but the metrics text value may change by language, something like this:
<string-array name="interval_labels">
<item>30 @string/second</item>
<item>1 @string/minute</item>
<item>5 @string/minute</item>
<item>10 @string/minute</item>
<item>15 @string/minute</item>
<item>30 @string/minute</item>
<item>60 @string/minute</item>
</string-array>
Right now, if I remove the numbers before the @string/...
references, it works well (as mentioned here), but I was wondering whether there is a way to retrieve the referenced string and concatenate it to the "hard coded" one.