From wiki.ginstr.com
Jump to: navigation, search
Line 37: Line 37:
 
</resources>
 
</resources>
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
==Location of strings.xml==
 +
'''strings.xml''' should be saved in "'''values'''" folder in ginstr app root folder.
  
 
==Further reading==
 
==Further reading==
 
===[[String_Naming_Convention|String Naming Convention]]===
 
===[[String_Naming_Convention|String Naming Convention]]===

Revision as of 14:54, 31 March 2017

arrays.xml

arrays.xml is an XML file which holds all translations of specific list for ginstr app.
Each array in arrays.xml can have additional array with values which will be used internally by ginstr launcher, while text array will be displayed to users.
value arrays must have the same name as text array with additional suffix _value like in example below.

Example

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string-array name="percentages">
    <item>10%</item>
    <item>20%</item>
    <item>30%</item>
    <item>40%</item>
    <item>50%</item>
    <item>60%</item>
    <item>70%</item>
    <item>80%</item>
    <item>90%</item>
    <item>100%</item>
  </string-array>

  <string-array name="percentages_value">
    <item>10</item>
    <item>20</item>
    <item>30</item>
    <item>40</item>
    <item>50</item>
    <item>60</item>
    <item>70</item>
    <item>80</item>
    <item>90</item>
    <item>100</item>
  </string-array>
</resources>

Location of strings.xml

strings.xml should be saved in "values" folder in ginstr app root folder.

Further reading

String Naming Convention