Fix SwitchBar string translation

This commit is contained in:
Marvin W 2017-02-24 03:53:26 +01:00
parent 1602d1b632
commit cddf2972bc
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
3 changed files with 11 additions and 10 deletions

View File

@ -72,7 +72,7 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
if (SDK_INT > Build.VERSION_CODES.JELLY_BEAN) { if (SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
mTextView.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); mTextView.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO);
} }
mLabel = getResources().getString(R.string.v7_preference_off); mLabel = getResources().getString(R.string.abc_capital_off);
mSummarySpan = new TextAppearanceSpan(context, android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_Switch); mSummarySpan = new TextAppearanceSpan(context, android.support.v7.appcompat.R.style.TextAppearance_AppCompat_Widget_Switch);
updateText(); updateText();
@ -99,7 +99,7 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
public void setTextViewLabel(boolean isChecked) { public void setTextViewLabel(boolean isChecked) {
mLabel = getResources() mLabel = getResources()
.getString(isChecked ? R.string.v7_preference_on : R.string.v7_preference_off); .getString(isChecked ? R.string.abc_capital_on : R.string.abc_capital_off);
updateText(); updateText();
} }

View File

@ -24,4 +24,5 @@
<string name="self_check_cat_permissions">Дозволе одобрене</string> <string name="self_check_cat_permissions">Дозволе одобрене</string>
<string name="self_check_name_permission">Дозволе за %1$s:</string> <string name="self_check_name_permission">Дозволе за %1$s:</string>
<string name="self_check_resolution_permission">Тапните овде да одобрите дозволе за %1$s. Не одобравање дозвола може да резултира чудним понашањем апликација.</string> <string name="self_check_resolution_permission">Тапните овде да одобрите дозволе за %1$s. Не одобравање дозвола може да резултира чудним понашањем апликација.</string>
</resources>
</resources>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
~ Copyright 2013-2016 microG Project Team ~ Copyright 2013-2017 microG Project Team
~ ~
~ Licensed under the Apache License, Version 2.0 (the "License"); ~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License. ~ you may not use this file except in compliance with the License.