Note that there are some explanatory texts on larger screens.

plurals
  1. POLocalizing array and other special values in the Settings bundle
    primarykey
    data
    text
    <p>I'm looking for a way to localize different strings of the Settings.bundle in iOS. While localizing regular strings is straight-forward, I wonder if and how you would localize:</p> <ol> <li><p><strong>Arrays</strong>. Consider the following plist entry:</p> <pre><code>&lt;dict&gt; &lt;key&gt;DefaultValue&lt;/key&gt; &lt;string&gt;Schedules&lt;/string&gt; &lt;key&gt;Key&lt;/key&gt; &lt;string&gt;defaultView&lt;/string&gt; &lt;key&gt;Title&lt;/key&gt; &lt;string&gt;Default View&lt;/string&gt; &lt;key&gt;Titles&lt;/key&gt; &lt;array&gt; &lt;string&gt;Schedules&lt;/string&gt; &lt;string&gt;Tasks&lt;/string&gt; &lt;string&gt;Patients&lt;/string&gt; &lt;string&gt;Links&lt;/string&gt; &lt;/array&gt; &lt;key&gt;Type&lt;/key&gt; &lt;string&gt;PSMultiValueSpecifier&lt;/string&gt; &lt;key&gt;Values&lt;/key&gt; &lt;array&gt; &lt;string&gt;Schedules&lt;/string&gt; &lt;string&gt;Tasks&lt;/string&gt; &lt;string&gt;Patients&lt;/string&gt; &lt;string&gt;Links&lt;/string&gt; &lt;/array&gt; &lt;/dict&gt; </code></pre> <p>To localize the title, I add</p> <pre><code>"Default View" = "Translated Default View"; </code></pre> <p>to the Root.strings file. But how can I get the Titles of the PSMultiValueSpecifier translated?</p></li> <li><p><strong>FooterText</strong>. Is it possible to translate the <em>FooterText</em> of the following entry?</p> <pre><code>&lt;dict&gt; &lt;key&gt;Title&lt;/key&gt; &lt;string&gt;Server Settings&lt;/string&gt; &lt;key&gt;Type&lt;/key&gt; &lt;string&gt;PSGroupSpecifier&lt;/string&gt; &lt;key&gt;FooterText&lt;/key&gt; &lt;string&gt;Can this text be translated?&lt;/string&gt; &lt;/dict&gt; </code></pre></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload