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

Verified Commit cddf2972 authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Fix SwitchBar string translation

parent 1602d1b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
        if (SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
            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);
        updateText();

@@ -99,7 +99,7 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC

    public void setTextViewLabel(boolean isChecked) {
        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();
    }

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

    </resources>
+1 −1
Original line number Diff line number Diff line
<?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");
  ~ you may not use this file except in compliance with the License.