Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8350cbf8 authored by Eric Schmidt's avatar Eric Schmidt
Browse files

docs: Fixed language directory issue localization

Bug: 31096141
Change-Id: I571669b752e89f252c80f87ba04a70a81b5f94fd
parent 192688f7
Loading
Loading
Loading
Loading
+10 −8
Original line number Original line Diff line number Diff line
@@ -88,15 +88,17 @@ today.</p>


<h2 id="postN">Improvements to Resource-Resolution Strategy</h2>
<h2 id="postN">Improvements to Resource-Resolution Strategy</h2>
<p>Android 7.0 (API level 24) brings more robust resource resolution, and
<p>Android 7.0 (API level 24) brings more robust resource resolution, and
 finds better fallbacks automatically. However, to speed up resolution and
 finds better fallbacks automatically.
 improve
 However, to speed up resolution and improve
 maintainability, you should store resources in the most common parent dialect.
 maintainability, you should store resources in the most common parent dialect.
 For example, if you were storing Spanish resources in the {@code es-US}
 For example, if you were storing Spanish resources
 directory
 in the {@code values-es-rUS} directory
 before, move them into the {@code es-419} directory, which contains Latin
 before, move them into the {@code values-b+es+419} directory,
 American Spanish.
 which contains Latin American Spanish.
 Similarly, if you have resource strings in a folder named {@code en-GB}, rename
 Similarly, if you have resource strings in a
 the folder to {@code en-001} (international English), because the most common
 directory named {@code values-en-rGB}, rename
 the directory to {@code values-b+en+001} (International
 English), because the most common
 parent for <code>en-GB</code> strings is {@code en-001}.
 parent for <code>en-GB</code> strings is {@code en-001}.
 The following examples explain why these practices improve performance and
 The following examples explain why these practices improve performance and
reliability of resource resolution.</p>
reliability of resource resolution.</p>