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

Commit 80e0a51b authored by Calvin Pan's avatar Calvin Pan
Browse files

Using different strings for language/region picker

In zh_TW, the "suggested" translated as "suggested language"
in language/region picker. Using different words to translate to
"suggested language" and "suggested region".

Bug: 243016620
Test: Manually check the UI.
Change-Id: I2edf82039b8dd37ca27ce831efa1cfa1474c8efb
Merged-In: I2edf82039b8dd37ca27ce831efa1cfa1474c8efb
parent f9257ef0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -207,7 +207,11 @@ public class SuggestedLocaleAdapter extends BaseAdapter implements Filterable {
            case TYPE_HEADER_ALL_OTHERS:
                TextView textView = (TextView) itemView;
                if (itemType == TYPE_HEADER_SUGGESTED) {
                   if (mCountryMode) {
                        setTextTo(textView, R.string.language_picker_regions_section_suggested);
                    } else {
                        setTextTo(textView, R.string.language_picker_section_suggested);
                    }
                } else {
                    if (mCountryMode) {
                        setTextTo(textView, R.string.region_picker_section_all);
+3 −1
Original line number Diff line number Diff line
@@ -5431,8 +5431,10 @@
    <!-- Hint text in a search edit box (used to filter long language / country lists) [CHAR LIMIT=25] -->
    <string name="search_language_hint">Type language name</string>

    <!-- List section subheader for the language picker, containing a list of suggested languages determined by the default region [CHAR LIMIT=30] -->
    <!-- List section subheader for the language picker, containing a list of suggested languages [CHAR LIMIT=30] -->
    <string name="language_picker_section_suggested">Suggested</string>
    <!-- "List section subheader for the language picker, containing a list of suggested regions available for that language [CHAR LIMIT=30] -->
    <string name="language_picker_regions_section_suggested">Suggested</string>
    <!-- List section subheader for the language picker, containing a list of all languages available [CHAR LIMIT=30] -->
    <string name="language_picker_section_all">All languages</string>
    <!-- List section subheader for the region picker, containing a list of all regions supported for the selected language.
+1 −0
Original line number Diff line number Diff line
@@ -3121,6 +3121,7 @@
  <java-symbol type="string" name="language_picker_section_all" />
  <java-symbol type="string" name="region_picker_section_all" />
  <java-symbol type="string" name="language_picker_section_suggested" />
  <java-symbol type="string" name="language_picker_regions_section_suggested" />
  <java-symbol type="string" name="language_selection_title" />
  <java-symbol type="string" name="search_language_hint" />