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

Commit 43d83e0c authored by Chirayu Desai's avatar Chirayu Desai Committed by Bruno Martins
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 3076e5a6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -26,6 +26,16 @@
    <!-- Device Info screen. LineageOS legal. -->
    <string name="lineagelicense_title">LineageOS legal</string>

    <!-- [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>

    <!-- Volume link notification -->
    <string name="volume_link_notification_title">Link ring &amp; notification volumes</string>
</resources>
+3 −3
Original line number Diff line number Diff line
@@ -182,7 +182,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();
@@ -198,7 +198,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(
@@ -237,7 +237,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();
    }