feat: give strings dedicated folders

This commit is contained in:
LucasMZ
2025-06-27 05:58:47 -03:00
committed by Akash Yadav
parent fdf8e69bc6
commit 7fdfd6c33d
5 changed files with 35 additions and 30 deletions

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" xmlns:moz="http://mozac.org/tools">
<!-- Spoof locale to English -->
<string name="tor_spoof_english">Solicitar versões em inglês das páginas web para melhor privacidade</string>
<!-- Warn users that the browser will restart -->
<string name="restart_required_summary">Alterar essa configuração reiniciará seu navegador</string>
<!-- Accessibility Services -->
<string name="preference_accessibility_enabled">Habilitar serviços de acessibilidade</string>
<string name="preference_accessibility_enabled_summary">Ative para permitir a comunicação com serviços de acessibilidade no seu dispositivo.</string>
<!-- Safe Browsing -->
<string name="preference_safe_browsing_enabled">Habilitar Safe Browsing</string>
<!-- Content Settings -->
<string name="preference_javascript_enabled">Habilitar JavaScript</string>
<string name="preference_jit_enabled">Habilitar compilação Just-in-time (JIT) do JavaScript</string>
<string name="preference_wasm_enabled">Habilitar WebAssembly (WASM)</string>
</resources>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<resources xmlns:tools="http://schemas.android.com/tools" xmlns:moz="http://mozac.org/tools">
<!-- Spoof locale to English -->
<string name="tor_spoof_english">Request English versions of web pages for enhanced privacy</string>
<!-- Warn users that the browser will restart -->
<string name="restart_required_summary">Changing this setting will restart your browser</string>
<!-- Accessibility Services -->
<string name="preference_accessibility_enabled">Enable accessibility services</string>
<string name="preference_accessibility_enabled_summary">Enable to allow communication with accessibility services on your device.</string>
<!-- Safe Browsing -->
<string name="preference_safe_browsing_enabled">Enable Safe Browsing</string>
<!-- Content Settings -->
<string name="preference_javascript_enabled">Enable JavaScript</string>
<string name="preference_jit_enabled">Enable JavaScript Just-in-time Compilation (JIT)</string>
<string name="preference_wasm_enabled">Enable WebAssembly (WASM)</string>
</resources>

View File

@@ -1,22 +0,0 @@
diff --git a/mobile/android/fenix/app/src/main/res/values/static_strings.xml b/mobile/android/fenix/app/src/main/res/values/static_strings.xml
index f09ddd8dd5..509fa6c4b5 100644
--- a/mobile/android/fenix/app/src/main/res/values/static_strings.xml
+++ b/mobile/android/fenix/app/src/main/res/values/static_strings.xml
@@ -228,4 +228,17 @@
<string name="glean_debug_tools_send_ping_button_text">Send Ping</string>
<!-- The send pings toast message. The first parameter is the type of ping -->
<string name="glean_debug_tools_send_ping_toast_message">Sent %1$s ping</string>
+ <!-- Spoof locale to English -->
+ <string name="tor_spoof_english">Request English versions of web pages for enhanced privacy</string>
+ <!-- Warn users that the browser will restart -->
+ <string name="restart_required_summary">Changing this setting will restart your browser</string>
+ <!-- Accessibility Services -->
+ <string name="preference_accessibility_enabled">Enable Accessibility Services</string>
+ <string name="preference_accessibility_enabled_summary">Enable to allow communication with Accessibility Services on your device.</string>
+ <!-- Safe Browsing -->
+ <string name="preference_safe_browsing_enabled">Enable Safe Browsing</string>
+ <!-- Content Settings -->
+ <string name="preference_javascript_enabled">Enable JavaScript</string>
+ <string name="preference_jit_enabled">Enable JavaScript Just-in-time Compilation (JIT)</string>
+ <string name="preference_wasm_enabled">Enable WebAssembly (WASM)</string>
</resources>

View File

@@ -510,14 +510,6 @@ patches:
effect: "Users can choose what compromises they're comfortable with and tailor the browsing experience to meet their needs, directly from the UI."
category: "User Interface"
- file: "ironfox-static-strings.patch"
name: "IronFox Static Strings"
description: "Provides static strings for UI settings specific to IronFox."
reason: |
To allow us to provide custom UI settings, while avoiding conflicts with other patches.
effect: "Users can take advantage of our custom UI settings to improve their privacy, security, and browsing experience."
category: "User Interface"
- file: "js-settings.patch"
name: "JavaScript Settings"
description: "Adds IronFox-specific UI settings for controlling JavaScript, JavaScript Just-in-time Compilation (JIT), and WebAssembly (WASM)."

View File

@@ -189,6 +189,9 @@ find "$patches/fenix-overlay/initial_experiments" -type f | while read -r src; d
cp "$src" "$dst"
done
# Copy our strings and translations
cp -r "$patches/fenix-overlay/strings/res/" "app/src/main/"
# Remove Reddit & YouTube as built-in search engines (due to poor privacy practices)
rm app/src/main/assets/searchplugins/reddit.xml
rm app/src/main/assets/searchplugins/youtube.xml