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

Unverified Commit 69ddaf5e authored by Chirayu Desai's avatar Chirayu Desai Committed by Kevin F. Haggerty
Browse files

One does not simply become a Developer

Also contains:
From 2622e3cd Mon Sep 17 00:00:00 2001
From: Michael Bestas <mikeioannina@gmail.com>
Date: Wed, 2 Jul 2014 16:32:03 +0300
Subject: [PATCH] Fix translatability of modified dev countdown strings

Change-Id: I64ab4d7ab9d8334275d2e4d493b716a8fc73ab4e
parent 9a341234
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -16,6 +16,16 @@
     limitations under the License.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- [CHAR LIMIT=NONE] Device Info screen. Countdown for user taps to enable development settings -->
    <plurals name="show_dev_countdown_cm">
        <item quantity="one">You are now <xliff:g id="step_count">%1$d</xliff:g> step away from enabling development settings.</item>
        <item quantity="other">You are now <xliff:g id="step_count">%1$d</xliff:g> steps away from enabling development settings.</item>
    </plurals>
    <!-- [CHAR LIMIT=NONE] Device Info screen. Confirmation that developer settings are enabled -->
    <string name="show_dev_on_cm">You have enabled development settings!</string>
    <!-- [CHAR LIMIT=NONE] Device Info screen. Okay we get it, stop pressing, you already have it on -->
    <string name="show_dev_already_cm">No need, you have already enabled development settings.</string>

    <!-- Advanced restart options -->
    <string name="advanced_reboot_title">Advanced restart</string>
    <string name="advanced_reboot_summary">When unlocked, include options in the power menu for restarting into recovery or bootloader</string>
+3 −3
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ public class BuildNumberPreferenceController extends BasePreferenceController im
                }
                mDevHitToast = Toast.makeText(mContext,
                        mContext.getResources().getQuantityString(
                                R.plurals.show_dev_countdown, mDevHitCountdown,
                                R.plurals.show_dev_countdown_cm, mDevHitCountdown,
                                mDevHitCountdown),
                        Toast.LENGTH_SHORT);
                mDevHitToast.show();
@@ -197,7 +197,7 @@ public class BuildNumberPreferenceController extends BasePreferenceController im
            if (mDevHitToast != null) {
                mDevHitToast.cancel();
            }
            mDevHitToast = Toast.makeText(mContext, R.string.show_dev_already,
            mDevHitToast = Toast.makeText(mContext, R.string.show_dev_already_cm,
                    Toast.LENGTH_LONG);
            mDevHitToast.show();
            mMetricsFeatureProvider.action(
@@ -236,7 +236,7 @@ public class BuildNumberPreferenceController extends BasePreferenceController im
        if (mDevHitToast != null) {
            mDevHitToast.cancel();
        }
        mDevHitToast = Toast.makeText(mContext, R.string.show_dev_on,
        mDevHitToast = Toast.makeText(mContext, R.string.show_dev_on_cm,
                Toast.LENGTH_LONG);
        mDevHitToast.show();
    }