Skip to content

Commit

Permalink
Improve localization in preferences.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Iddo Hoeve committed Dec 4, 2017
1 parent b30a576 commit e32e6cc
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 27 deletions.
29 changes: 29 additions & 0 deletions res/values-fr/settings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="pref_ColorTargets_Background">Background</string> <!-- TODO -->
<string name="pref_ColorTargets_Player_Button_Background">Player Button Background</string> <!-- TODO -->
<string name="pref_ColorTargets_Score_Button_Background">Score Button Background</string> <!-- TODO -->
<string name="pref_ColorTargets_Serve_Button_Background">Serve Button Background</string> <!-- TODO -->
<string name="pref_ColorTargets_History_Background">History Background</string> <!-- TODO -->

<string name="pref_ColorTargets_Main_Text">Main Text</string> <!-- TODO -->
<string name="pref_ColorTargets_Player_Button_Text">Player Button Text</string> <!-- TODO -->
<string name="pref_ColorTargets_Score_Button_Text" >Score Button Text</string> <!-- TODO -->
<string name="pref_ColorTargets_Serve_Button_Text" >Serve Button Text</string> <!-- TODO -->
<string name="pref_ColorTargets_History_Text">History Text</string> <!-- TODO -->

<string name="pref_Category_Layout">Layout</string> <!-- TODO -->
<string name="pref_Category_Brand">Brand</string> <!-- TODO -->
<string name="pref_Category_End_of_Game">End of Game</string> <!-- TODO -->
<string name="pref_Category_Others">Others</string> <!-- TODO -->
<string name="pref_Category_Live_Score__ChromeCast">Live Score/ChromeCast</string> <!-- TODO -->
<string name="pref_Category_ChromeCast">ChromeCast</string> <!-- TODO -->
<string name="pref_Category_Directory_for_import_export">Directory for import/export</string> <!-- TODO -->
<string name="pref_Category_Contacts">Contacts</string> <!-- TODO -->
<string name="pref_Category_Event">Event</string> <!-- TODO -->
<string name="pref_Category_Feeds">Feeds</string> <!-- TODO -->
<string name="pref_Category_Import_Export_Settings">Import/Export Settings</string> <!-- TODO -->
<string name="pref_Make_your_choice">Make your choice</string> <!-- TODO -->

<string name="pref_Show_logo_on_scoreboard">Show logo on scoreboard</string> <!-- TODO -->
<string name="pref_Hide_logo_when_game_in_progress">Hide logo when game in progress</string> <!-- TODO -->
<string name="pref_Hide_division_field_when_game_in_progress">Hide division field when game in progress</string> <!-- TODO -->

<string name="pref_x_changed_to_y">Paramètre
\n %1$s
\n est changé a
Expand Down
29 changes: 29 additions & 0 deletions res/values-nl/settings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="pref_ColorTargets_Background">Achtergrond</string>
<string name="pref_ColorTargets_Player_Button_Background">Achtergrond Speler Knop</string>
<string name="pref_ColorTargets_Score_Button_Background">Achtergrond Score Knop</string>
<string name="pref_ColorTargets_Serve_Button_Background">Achtergrond Opslag Knop</string>
<string name="pref_ColorTargets_History_Background">Achtergrond Historiek</string>

<string name="pref_ColorTargets_Main_Text">Main Text</string>
<string name="pref_ColorTargets_Player_Button_Text">Speler Knop Text</string>
<string name="pref_ColorTargets_Score_Button_Text" >Score Knop Text</string>
<string name="pref_ColorTargets_Serve_Button_Text" >Opslag Knop Text</string>
<string name="pref_ColorTargets_History_Text">Historiek Text</string>

<string name="pref_Category_Layout">Layout</string>
<string name="pref_Category_Brand">Brand</string>
<string name="pref_Category_End_of_Game">Game Einde</string>
<string name="pref_Category_Others">Others</string>
<string name="pref_Category_Live_Score__ChromeCast">Live Score/ChromeCast</string>
<string name="pref_Category_ChromeCast">ChromeCast</string>
<string name="pref_Category_Directory_for_import_export">Folder voor import/export</string>
<string name="pref_Category_Contacts">Contacten</string>
<string name="pref_Category_Event">Eventen</string>
<string name="pref_Category_Feeds">Feeds</string>
<string name="pref_Category_Import_Export_Settings">Import/Export Instellingen</string>
<string name="pref_Make_your_choice">Maak je keuze</string>

<string name="pref_Show_logo_on_scoreboard">Toon logo op scoreboard</string>
<string name="pref_Hide_logo_when_game_in_progress">Verberg logo zodra game begint</string>
<string name="pref_Hide_division_field_when_game_in_progress">Verberg divisie zodra game begint</string>

<string name="pref_x_changed_to_y">Instelling
\n %1$s
\n gewijzigd naar
Expand Down
30 changes: 30 additions & 0 deletions res/values/settings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources tools:ignore="MissingTranslation" xmlns:tools="http://schemas.android.com/tools">

<string name="pref_ColorTargets_Background">Background</string>
<string name="pref_ColorTargets_Player_Button_Background">Player Button Background</string>
<string name="pref_ColorTargets_Score_Button_Background">Score Button Background</string>
<string name="pref_ColorTargets_Serve_Button_Background">Serve Button Background</string>
<string name="pref_ColorTargets_History_Background">History Background</string>

<string name="pref_ColorTargets_Main_Text">Main Text</string>
<string name="pref_ColorTargets_Player_Button_Text">Player Button Text</string>
<string name="pref_ColorTargets_Score_Button_Text" >Score Button Text</string>
<string name="pref_ColorTargets_Serve_Button_Text" >Serve Button Text</string>
<string name="pref_ColorTargets_History_Text">History Text</string>

<string name="pref_Category_Layout">Layout</string>
<string name="pref_Category_Brand">Brand</string>
<string name="pref_Category_End_of_Game">End of Game</string>
<string name="pref_Category_Others">Others</string>
<string name="pref_Category_Live_Score__ChromeCast">Live Score/ChromeCast</string>
<string name="pref_Category_ChromeCast">ChromeCast</string>
<string name="pref_Category_Directory_for_import_export">Directory for import/export</string>
<string name="pref_Category_Contacts">Contacts</string>
<string name="pref_Category_Event">Event</string>
<string name="pref_Category_Feeds">Feeds</string>
<string name="pref_Category_Import_Export_Settings">Import/Export Settings</string>
<string name="pref_Make_your_choice">Make your choice</string>

<string name="pref_Show_logo_on_scoreboard">Show logo on scoreboard</string>
<string name="pref_Hide_logo_when_game_in_progress">Hide logo when game in progress</string>
<string name="pref_Hide_division_field_when_game_in_progress">Hide division field when game in progress</string>

<string name="pref_x_changed_to_y">Setting
\n %1$s
\n changed to
Expand Down
54 changes: 27 additions & 27 deletions res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@
<PreferenceCategory android:key="backgroundColors"
android:title="@string/pref_ColorTargets_Backgrounds">
<ListPreference android:key="backgroundColor"
android:title="Background"
android:title="@string/pref_ColorTargets_Background"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color9"/>

<ListPreference android:key="playerButtonBackgroundColor"
android:title="Player Button Background"
android:title="@string/pref_ColorTargets_Player_Button_Background"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color2"/>

<ListPreference android:key="scoreButtonBackgroundColor"
android:title="Score Button Background"
android:title="@string/pref_ColorTargets_Score_Button_Background"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color1"/>

<ListPreference android:key="serveButtonBackgroundColor"
android:title="Serve Button Background"
android:title="@string/pref_ColorTargets_Serve_Button_Background"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color3"/>

<ListPreference android:key="historyBackgroundColor"
android:title="History Background"
android:title="@string/pref_ColorTargets_History_Background"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color2"/>
</PreferenceCategory>
Expand All @@ -91,23 +91,23 @@
<PreferenceCategory android:key="textColors"
android:title="@string/pref_ColorTargets_Texts">
<ListPreference android:key="mainTextColor"
android:title="Main Text"
android:title="@string/pref_ColorTargets_Main_Text"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color0"/>
<ListPreference android:key="playerButtonTextColor"
android:title="Player Button Text"
android:title="@string/pref_ColorTargets_Player_Button_Text"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color0"/>
<ListPreference android:key="scoreButtonTextColor"
android:title="Score Button Text"
android:title="@string/pref_ColorTargets_Score_Button_Text"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color2"/>
<ListPreference android:key="serveButtonTextColor"
android:title="Serve Button Text"
android:title="@string/pref_ColorTargets_Serve_Button_Text"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color0"/>
<ListPreference android:key="historyTextColor"
android:title="History Text"
android:title="@string/pref_ColorTargets_History_Text"
android:entryValues="@array/ColorKeys"
android:defaultValue="Color2"/>
</PreferenceCategory>
Expand Down Expand Up @@ -188,7 +188,7 @@
/>
</PreferenceCategory>

<PreferenceCategory android:title="Layout">
<PreferenceCategory android:title="@string/pref_Category_Layout">
<CheckBoxPreference android:key="showFullScreen"
android:icon="@drawable/ic_media_fullscreen"
android:title="@string/pref_showFullScreen"
Expand Down Expand Up @@ -262,7 +262,7 @@
dy:enumClass="com.doubleyellow.scoreboard.prefs.ShowOnScreen"
/>
<CheckBoxPreference android:key="hideFieldDivisionWhenGameInProgress"
android:title="Hide division/field when game in progress"
android:title="@string/pref_Hide_division_field_when_game_in_progress"
android:defaultValue="@bool/hideFieldDivisionWhenGameInProgress_default"
/>
<EditTextPreference android:key="AppealHandGestureIconSize"
Expand All @@ -274,23 +274,23 @@

</PreferenceCategory>

<PreferenceCategory android:title="Brand" android:key="Brand">
<PreferenceCategory android:title="@string/pref_Category_Brand" android:key="Brand">
<com.doubleyellow.prefs.EnumListPreference
android:key="squoreBrand"
android:title="Brand"
android:title="@string/pref_Category_Brand"
android:defaultValue="Squore"
dy:enumClass="com.doubleyellow.scoreboard.Brand"
/>
<com.doubleyellow.prefs.EnumMultiSelectPreference
android:key="showBrandLogoOn"
android:title="Show logo on scoreboard"
android:title="@string/pref_Show_logo_on_scoreboard"
android:summary="Specify on what screens the logo should be visible"
android:defaultValue="@array/showBrandLogoOn_DefaultValues"
dy:displayValues="@array/ShowOnScreen_DisplayValues"
dy:enumClass="com.doubleyellow.scoreboard.prefs.ShowOnScreen"
/>
<CheckBoxPreference android:key="hideBrandLogoWhenGameInProgress"
android:title="Hide logo when game in progress"
android:title="@string/pref_Hide_logo_when_game_in_progress"
android:defaultValue="@bool/hideBrandLogoWhenGameInProgress_default"
/>
</PreferenceCategory>
Expand Down Expand Up @@ -392,7 +392,7 @@
/>

</PreferenceCategory>
<PreferenceCategory android:title="End of Game">
<PreferenceCategory android:title="@string/pref_Category_End_of_Game">
<CheckBoxPreference android:key="indicateGameBall"
android:title="@string/pref_indicateGameBall"
android:summary="@string/pref_indicateGameBall_summary"
Expand Down Expand Up @@ -525,7 +525,7 @@
android:defaultValue="@string/OfficialRulesURLs_default_Squash"
/>
</PreferenceCategory>
<PreferenceCategory android:title="Others">
<PreferenceCategory android:title="@string/pref_Category_Others">
<com.doubleyellow.prefs.EnumListPreference
android:key="useTossFeature"
android:title="@string/pref_useTossFeature"
Expand Down Expand Up @@ -598,7 +598,7 @@
<PreferenceScreen android:key="LiveScore_Cast"
android:icon="@drawable/ic_chromecast"
android:summary="@string/pref_live_score_summary"
android:title="Live Score / ChromeCast">
android:title="@string/pref_Category_Live_Score__ChromeCast">
<PreferenceCategory android:title="@string/Live_Score">
<com.doubleyellow.scoreboard.prefs.LiveScorePrefs
android:key="LiveScorePrefs"
Expand All @@ -617,7 +617,7 @@
</Preference>
</PreferenceCategory>

<PreferenceCategory android:title="ChromeCast">
<PreferenceCategory android:title="@string/pref_Category_ChromeCast">
<CheckBoxPreference android:key="Cast_ShowGraphDuringTimer"
android:title="@string/pref_Cast_ShowGraphDuringTimer"
android:icon="@drawable/ic_chromecast"
Expand Down Expand Up @@ -763,7 +763,7 @@
/>

<ListPreference android:key="targetDirForImportExport"
android:title="Directory for import/export"/>
android:title="@string/pref_Category_Directory_for_import_export"/>

</PreferenceScreen>

Expand Down Expand Up @@ -835,7 +835,7 @@
android:defaultValue="@integer/maxNumberOfPlayersInGroup_default"
/>

<PreferenceCategory android:title="Contacts" android:key="Contacts">
<PreferenceCategory android:title="@string/pref_Category_Contacts" android:key="Contacts">
<CheckBoxPreference android:key="readContactsForAutoCompletion"
android:title="@string/pref_readContactsForAutoCompletion"
android:summary="@string/pref_readContactsForAutoCompletion_summary"
Expand Down Expand Up @@ -891,7 +891,7 @@
dy:enumClass="com.doubleyellow.util.Feature"
/>

<PreferenceCategory android:title="Event" android:key="Event">
<PreferenceCategory android:title="@string/pref_Category_Event" android:key="Event">
<EditTextPreference android:key="eventList"
android:title="@string/pref_eventList"
android:summary="@string/pref_eventList_summary"
Expand All @@ -913,7 +913,7 @@
android:title="@string/pref_web_integration"
android:summary="@string/pref_web_integration_summary"
>
<PreferenceCategory android:title="Feeds"
<PreferenceCategory android:title="@string/pref_Category_Feeds"
android:key="Feeds">
<EditTextPreference android:key="feedPostUrls"
android:title="@string/pref_feedPostUrls"
Expand Down Expand Up @@ -1010,7 +1010,7 @@
/>
</PreferenceCategory>
<!-- TODO: hide these by default -->
<PreferenceCategory android:title="Technical">
<PreferenceCategory android:key="Technical" android:title="Technical">
<EditTextPreference android:key="FeedFeedsURL"
android:title="FeedFeedsURL"
android:summary="For developer only"
Expand Down Expand Up @@ -1088,8 +1088,8 @@
<com.doubleyellow.scoreboard.prefs.ExportImportPrefs
android:key="exportImportPrefs"
android:dialogIcon="@android:drawable/ic_menu_save"
android:title="Import/Export Settings"
android:dialogMessage="Make your choice"
android:title="@string/pref_Category_Import_Export_Settings"
android:dialogMessage="@string/pref_Make_your_choice"
android:positiveButtonText="@string/pref_import_prefs"
android:negativeButtonText="@string/pref_export_prefs"
android:persistent="false"
Expand Down

0 comments on commit e32e6cc

Please sign in to comment.