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

Commit a64d6f3e authored by Romain Hunault's avatar Romain Hunault
Browse files

Add /e/ browser informations in About

parent d436664e
Loading
Loading
Loading
Loading
+65 −0
Original line number Diff line number Diff line
From: Romain HUNAULT <romain.hunault@e.email>
Date: Wed, 6 Feb 2019 17:23:37 +0100
Subject: [PATCH] Add /e/ browser informations in About

---
 chrome/android/java/res/xml/about_chrome_preferences.xml    | 3 +++
 .../chrome/browser/preferences/AboutChromePreferences.java  | 4 +++-
 chrome/android/java/strings/android_chrome_strings.grd      | 6 ++++++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/chrome/android/java/res/xml/about_chrome_preferences.xml b/chrome/android/java/res/xml/about_chrome_preferences.xml
index e1ddc3099473..9424e04f1cd0 100644
--- a/chrome/android/java/res/xml/about_chrome_preferences.xml
+++ b/chrome/android/java/res/xml/about_chrome_preferences.xml
@@ -4,6 +4,9 @@
      found in the LICENSE file. -->

 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+    <Preference
+        android:key="e_browser_informations"
+        android:title="@string/e_browser_informations_title" />
     <Preference
         android:key="application_version"
         android:title="@string/application_version_title" />
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/AboutChromePreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/AboutChromePreferences.java
index 4fa819207e98..926edcfdbe44 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/AboutChromePreferences.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/AboutChromePreferences.java
@@ -26,6 +26,7 @@ public class AboutChromePreferences extends PreferenceFragment {
     private static final String PREF_APPLICATION_VERSION = "application_version";
     private static final String PREF_OS_VERSION = "os_version";
     private static final String PREF_LEGAL_INFORMATION = "legal_information";
+    private static final String PREF_E_BROWSER_INFORMATIONS = "e_browser_informations";

     @Override
     public void onCreate(Bundle savedInstanceState) {
@@ -41,7 +42,8 @@ public class AboutChromePreferences extends PreferenceFragment {
         p.setSummary(versionStrings.getOSVersion());
         p = findPreference(PREF_LEGAL_INFORMATION);
         int currentYear = Calendar.getInstance().get(Calendar.YEAR);
-        p.setSummary(getString(R.string.legal_information_summary, currentYear));
+        p = findPreference(PREF_E_BROWSER_INFORMATIONS);
+        p.setSummary(getString(R.string.e_browser_informations));
     }

     /**
diff --git a/chrome/android/java/strings/android_chrome_strings.grd b/chrome/android/java/strings/android_chrome_strings.grd
index 1cb432938492..40fc0e740d8c 100644
--- a/chrome/android/java/strings/android_chrome_strings.grd
+++ b/chrome/android/java/strings/android_chrome_strings.grd
@@ -1509,6 +1509,12 @@ Your Google account may have other forms of browsing history like searches and a
       <message name="IDS_DEPRECATION_WARNING" desc="Warning about Chrome updates no longer being supported">
         Chrome updates are no longer supported for this version of Android
       </message>
+      <message name="IDS_E_BROWSER_INFORMATIONS_TITLE" desc="Title for /e/ Browser informations ">
+        /e/ browser informations
+      </message>
+      <message name="IDS_E_BROWSER_INFORMATIONS" desc="/e/ Browser informations ">
+        The /e/ browser is a fork of Chromium/Bromite that:\n\t- offers privacy-compliant search engines by default\n\t- includes several "ungoogling" patches\n\t- offers an Ad-blocker by default
+      </message>

       <!-- Account management UI strings. -->
       <message name="IDS_ACCOUNT_MANAGEMENT_ADD_ACCOUNT_TITLE" desc="Button text for opening the add account dialog to add a new account to a user's profile. [CHAR-LIMIT=20]">
--
2.17.1
+1 −0
Original line number Diff line number Diff line
@@ -114,3 +114,4 @@ e-set-icon.patch
e-set-app-name.patch
e-set-popular-sites.patch
e-enable-donottrack.patch
e-set-informations.patch