diff options
| author | Narayan Kamath <narayan@google.com> | 2015-02-12 16:41:41 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2015-02-12 16:41:41 +0000 |
| commit | 00e821a8608efdc19041bdda1e832d3d4b3c29e2 (patch) | |
| tree | 45298d3742b66b88a4da1d86e6744a58a30b8b37 /docs/html/guide/topics | |
| parent | c1a5e82c25dba954cf1c06729e53bfb67667bcbb (diff) | |
| parent | 8be3724a06f7b2d28c6664ca11a03f91f97f0972 (diff) | |
| download | frameworks_base-00e821a8608efdc19041bdda1e832d3d4b3c29e2.zip frameworks_base-00e821a8608efdc19041bdda1e832d3d4b3c29e2.tar.gz frameworks_base-00e821a8608efdc19041bdda1e832d3d4b3c29e2.tar.bz2 | |
am c7e48719: Merge "Remove references to persist.sys.language/country."
automerge: 8be3724
* commit '8be3724a06f7b2d28c6664ca11a03f91f97f0972':
Remove references to persist.sys.language/country.
Diffstat (limited to 'docs/html/guide/topics')
| -rw-r--r-- | docs/html/guide/topics/resources/localization.jd | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/html/guide/topics/resources/localization.jd b/docs/html/guide/topics/resources/localization.jd index 1ee6606..0a96a15 100644 --- a/docs/html/guide/topics/resources/localization.jd +++ b/docs/html/guide/topics/resources/localization.jd @@ -433,8 +433,8 @@ application, however, should localize properly.</p> <p>To change the locale in the emulator by using the adb shell. </p>
<ol>
- <li>Pick the locale you want to test and determine its language and region codes, for
-example <code>fr</code> for French and <code>CA</code> for Canada.<br>
+ <li>Pick the locale you want to test and determine its BCP-47 language tag, for
+example, Canadian French would be <code>fr-CA</code>.<br>
</li>
<li>Launch an emulator.</li>
<li>From a command-line shell on the host computer, run the following
@@ -444,16 +444,14 @@ command:<br> the <code>-e</code> option:<br>
<code>adb -e shell</code></li>
<li>At the adb shell prompt (<code>#</code>), run this command: <br>
- <code>setprop persist.sys.language [<em>language code</em>];setprop
-persist.sys.country [<em>country code</em>];stop;sleep 5;start <br>
+ <code>setprop persist.sys.locale [<em>BCP-47 language tag</em>];stop;sleep 5;start <br>
</code>Replace bracketed sections with the appropriate codes from Step
1.</li>
</ol>
<p>For instance, to test in Canadian French:</p>
-<p><code>setprop persist.sys.language fr;setprop persist.sys.country
-CA;stop;sleep 5;start </code></p>
+<p><code>setprop persist.sys.locale fr-CA;stop;sleep 5;start </code></p>
<p>This will cause the emulator to restart. (It will look like a full reboot,
but it is not.) Once the Home screen appears again, re-launch your application (for
|
