From 74db157b9406594a549a70415668dd6cbe17d1d3 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 28 Oct 2015 12:44:49 -0500 Subject: Multiple Language Support This is similar to https://gerrit.omnirom.org/#/c/14014 A lot of the features built in the older patch set have been split out into separate patches, most of which have already been merged. The remaining functionality here should all be directly related to language selection and loading. We always load English as a base before loading other languages over the top of the base. The idea is that if another language is missing a translation, then we will still display the English. Maybe still to do: read the /cache/recovery/last_locale file and load a language based on that. For me, this file contains just: en_US We probably won't bother with region specific translations so we would have to look at either trimming off the _US or using some other method like perhaps a symlink or a combination of the two. Thanks to _that for twmsg.cpp class Change-Id: I9647a22e47883a3ddd2de1da51f64aab7c328f74 --- gui/theme/portrait_hdpi/ui.xml | 53 +++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 21 deletions(-) (limited to 'gui/theme/portrait_hdpi') diff --git a/gui/theme/portrait_hdpi/ui.xml b/gui/theme/portrait_hdpi/ui.xml index f8e1181f5..7708f926b 100644 --- a/gui/theme/portrait_hdpi/ui.xml +++ b/gui/theme/portrait_hdpi/ui.xml @@ -82,10 +82,15 @@ + + + + + @@ -247,7 +252,7 @@ - CPU: %tw_cpu_temp% °C + {@cpu_temp=CPU: %tw_cpu_temp% °C} @@ -264,7 +269,7 @@ - Battery: %tw_battery% + {@battery_pct=Battery: %tw_battery%} @@ -357,7 +362,7 @@ - Name + {@sort_by_name_only=Name} tw_gui_sort_order=-1 @@ -367,7 +372,7 @@ - Name + {@sort_by_name_only=Name} tw_gui_sort_order=1 @@ -380,7 +385,7 @@ - Name + {@sort_by_name_only=Name} tw_gui_sort_order=1 @@ -390,7 +395,7 @@ - Date + {@sort_by_date_only=Date} tw_gui_sort_order=-2 @@ -400,7 +405,7 @@ - Date + {@sort_by_date_only=Date} tw_gui_sort_order=2 @@ -413,7 +418,7 @@ - Date + {@sort_by_date_only=Date} tw_gui_sort_order=2 @@ -423,7 +428,7 @@ - Size + {@sort_by_size_only=Size} tw_gui_sort_order=-3 @@ -433,7 +438,7 @@ - Size + {@sort_by_size_only=Size} tw_gui_sort_order=3 @@ -446,7 +451,7 @@ - Size + {@sort_by_size_only=Size} tw_gui_sort_order=3 @@ -455,41 +460,47 @@