Application language now can be changed in the settings

This commit is contained in:
serso
2015-05-30 18:53:30 +02:00
parent a8d6039083
commit 224cd16591
14 changed files with 636 additions and 101 deletions

View File

@@ -2,21 +2,20 @@
<!--Generated by crowdin.com-->
<!--Generated by crowdin.net-->
<resources>
<string name="c_auto_orientation_title">Auto-rotate screen</string>
<string name="c_auto_orientation_summary">If turned on app will rotate screen with device</string>
<string name="c_show_equals_button_title">Show equals button</string>
<string name="c_show_equals_button_summary">If turned on equals button is shown</string>
<string name="c_hide_numeral_base_digits_title">Hide digits of other numeral systems</string>
<string name="c_hide_numeral_base_digits_summary">If turned on numeral base digits of other numeral bases will be
hidden
</string>
<string name="prefs_history_show_intermediate_calculations_title">Show intermediate calculations in history</string>
<string name="prefs_history_show_intermediate_calculations_summary">If turned on all calculations will be shown in the
<string name="c_auto_orientation_title">Auto-rotate screen</string>
<string name="c_auto_orientation_summary">If turned on app will rotate screen with device</string>
<string name="c_show_equals_button_title">Show equals button</string>
<string name="c_show_equals_button_summary">If turned on equals button is shown</string>
<string name="c_hide_numeral_base_digits_title">Hide digits of other numeral systems</string>
<string name="c_hide_numeral_base_digits_summary">If turned on numeral base digits of other numeral bases will be hidden</string>
<string name="prefs_history_show_intermediate_calculations_title">Show intermediate calculations in history</string>
<string name="prefs_history_show_intermediate_calculations_summary">If turned on all calculations will be shown in the
history screen
</string>
<string name="p_calculations_calculate_on_fly_title">Result is calculated while typing</string>
<string name="p_calculations_calculate_on_fly_summary">If turned on calculations are done automatically while typing</string>
<string name="prefs_prevent_screen_from_fading_title">Prevent screen from fading</string>
<string name="prefs_prevent_screen_from_fading_summary">If turned on screen will not fade while using the app
<string name="p_calculations_calculate_on_fly_title">Result is calculated while typing</string>
<string name="p_calculations_calculate_on_fly_summary">If turned on calculations are done automatically while typing</string>
<string name="prefs_prevent_screen_from_fading_title">Prevent screen from fading</string>
<string name="prefs_prevent_screen_from_fading_summary">If turned on screen will not fade while using the app
</string>
<string name="prefs_language_title">Language</string>
</resources>

View File

@@ -231,4 +231,5 @@
<string name="cpp_clear_history">Clear</string>
<string name="cpp_new_in_version">New in %1$s version</string>
<string name="cpp_release_notes_choose_theme">Do you want to try new Material themes? Choose them from the list:</string>
<string name="cpp_system_language">System language</string>
</resources>

View File

@@ -23,69 +23,74 @@
-->
<PreferenceScreen xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:range="http://schemas.android.com/apk/res-auto">
xmlns:m="http://schemas.android.com/apk/res-auto">
<android.preference.CheckBoxPreference
a:key="@string/p_calc_color_display_key"
a:summary="@string/c_calc_color_display_summary"
a:title="@string/c_calc_color_display_title"
a:defaultValue="true"/>
<org.solovyev.android.material.preferences.ListPreference
a:key="gui.language"
a:title="@string/prefs_language_title"
m:materialColor="@color/material_text_selector"/>
<ListPreference
a:key="hapticFeedback"
a:title="@string/c_calc_haptic_feedback_title"
a:entries="@array/cpp_haptic_feedback_names"
a:summary="@string/c_calc_haptic_feedback_summary"
a:entryValues="@array/cpp_haptic_feedback_values"/>
<android.preference.CheckBoxPreference
a:defaultValue="true"
a:key="@string/p_calc_color_display_key"
a:summary="@string/c_calc_color_display_summary"
a:title="@string/c_calc_color_display_title"/>
<ListPreference
a:key="@string/p_calc_multiplication_sign_key"
a:title="@string/c_calc_multiplication_sign"
a:entries="@array/p_multiplication_sign_values"
a:summary="@string/c_calc_multiplication_sign_summary"
a:entryValues="@array/p_multiplication_sign_values"/>
<ListPreference
a:entries="@array/cpp_haptic_feedback_names"
a:entryValues="@array/cpp_haptic_feedback_values"
a:key="hapticFeedback"
a:summary="@string/c_calc_haptic_feedback_summary"
a:title="@string/c_calc_haptic_feedback_title"/>
<ListPreference
a:key="@string/p_calc_theme_key"
a:title="@string/c_calc_theme"
a:entries="@array/p_theme_names"
a:summary="@string/c_calc_theme_summary"
a:entryValues="@array/p_theme_values"/>
<ListPreference
a:entries="@array/p_multiplication_sign_values"
a:entryValues="@array/p_multiplication_sign_values"
a:key="@string/p_calc_multiplication_sign_key"
a:summary="@string/c_calc_multiplication_sign_summary"
a:title="@string/c_calc_multiplication_sign"/>
<ListPreference
a:key="@string/p_calc_layout_key"
a:title="@string/c_calc_layout"
a:entries="@array/p_layout_names"
a:summary="@string/c_calc_layout_summary"
a:entryValues="@array/p_layout_values"/>
<ListPreference
a:entries="@array/p_theme_names"
a:entryValues="@array/p_theme_values"
a:key="@string/p_calc_theme_key"
a:summary="@string/c_calc_theme_summary"
a:title="@string/c_calc_theme"/>
<android.preference.CheckBoxPreference
a:key="autoOrientation"
a:title="@string/c_auto_orientation_title"
a:summary="@string/c_auto_orientation_summary"
a:defaultValue="true"/>
<ListPreference
a:entries="@array/p_layout_names"
a:entryValues="@array/p_layout_values"
a:key="@string/p_calc_layout_key"
a:summary="@string/c_calc_layout_summary"
a:title="@string/c_calc_layout"/>
<android.preference.CheckBoxPreference
a:defaultValue="true"
a:key="autoOrientation"
a:summary="@string/c_auto_orientation_summary"
a:title="@string/c_auto_orientation_title"/>
<android.preference.CheckBoxPreference
a:key="showEqualsButton"
a:title="@string/c_show_equals_button_title"
a:summary="@string/c_show_equals_button_summary"
a:defaultValue="true"/>
<android.preference.CheckBoxPreference
a:defaultValue="true"
a:key="showEqualsButton"
a:summary="@string/c_show_equals_button_summary"
a:title="@string/c_show_equals_button_title"/>
<android.preference.CheckBoxPreference
a:key="hideNumeralBaseDigits"
a:title="@string/c_hide_numeral_base_digits_title"
a:summary="@string/c_hide_numeral_base_digits_summary"
a:defaultValue="true"/>
<android.preference.CheckBoxPreference
a:defaultValue="true"
a:key="hideNumeralBaseDigits"
a:summary="@string/c_hide_numeral_base_digits_summary"
a:title="@string/c_hide_numeral_base_digits_title"/>
<android.preference.CheckBoxPreference
a:key="history_show_intermediate_calculations"
a:title="@string/prefs_history_show_intermediate_calculations_title"
a:summary="@string/prefs_history_show_intermediate_calculations_summary"/>
<android.preference.CheckBoxPreference
a:key="history_show_intermediate_calculations"
a:summary="@string/prefs_history_show_intermediate_calculations_summary"
a:title="@string/prefs_history_show_intermediate_calculations_title"/>
<android.preference.CheckBoxPreference
a:key="preventScreenFromFading"
a:title="@string/prefs_prevent_screen_from_fading_title"
a:summary="@string/prefs_prevent_screen_from_fading_summary"/>
<android.preference.CheckBoxPreference
a:key="preventScreenFromFading"
a:summary="@string/prefs_prevent_screen_from_fading_summary"
a:title="@string/prefs_prevent_screen_from_fading_title"/>
</PreferenceScreen>