From df13a3e5eabf95cb10325ec62d4cd07eee3df361 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Wed, 7 Nov 2018 14:47:45 -0800 Subject: [PATCH 1/4] Fixes #648 Clean up various L10n strings and add new ones --- README.md | 5 + .../ui/widgets/PermissionWidget.java | 6 +- app/src/main/res/values/localpages.xml | 8 +- app/src/main/res/values/strings.xml | 499 +++++++++++++----- 4 files changed, 392 insertions(+), 126 deletions(-) diff --git a/README.md b/README.md index 8b411324b..a657450c1 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,11 @@ You can find us on Twitter [@MozillaReality](https://twitter.com/mozillareality) 2. Click the `Firefox Reality for Android - Build - Master update →` link. 3. Click the `Run Artifacts` tab, and click to download the APK for your platform of choice. +## L10n + +Whenever a new string is added to a localizable strings file (strings.xml ,localpages.xml, ...) a string description must be provided as a comment above the new string. Also the project STRs wiki page must be updated with a key description, steps to reproduce and the excepted results. +The L10n wiki page can be found [here](https://github.com/MozillaReality/FirefoxReality/wiki/L10n). + ## Setup instructions *Make sure you are using Android NDK r17b.* diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java index 03e3779ff..dc64ef6f0 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java @@ -118,15 +118,15 @@ public void showPrompt(String aUri, PermissionType aType, GeckoSession.Permissio iconId = R.drawable.ic_icon_dialog_camera; break; case Location: - messageId = R.string.permission_location; + messageId = R.string.permission_geolocation; iconId = R.drawable.ic_icon_dialog_geolocation; break; case Notification: - messageId = R.string.permission_notification; + messageId = R.string.permission_notifications; iconId = R.drawable.ic_icon_dialog_notification; break; case ReadExternalStorage: - messageId = R.string.permission_read_external_storage; + messageId = R.string.permission_external_storage_read; iconId = R.drawable.ic_icon_storage; break; default: diff --git a/app/src/main/res/values/localpages.xml b/app/src/main/res/values/localpages.xml index ea13e3343..64e99c907 100644 --- a/app/src/main/res/values/localpages.xml +++ b/app/src/main/res/values/localpages.xml @@ -3,8 +3,14 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - + + + Private Browsing + Private Browsing diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6b3377d7f..3e5538bca 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,234 +1,489 @@ - + + + ENTER + + + Allow + + + Don’t Allow + + '%1$s' will be replaced at runtime with the website's domain name. --> Will you allow %1$s to use your camera? + + '%1$s' will be replaced at runtime with the website's domain name. --> Will you allow %1$s to use your microphone? + + '%1$s' will be replaced at runtime with the website's domain name. --> Will you allow %1$s to use your camera and microphone? + - Will you allow %1$s to access your location? - - Will you allow %1$s to send notifications? + '%1$s' will be replaced at runtime with the website's domain name. --> + Will you allow %1$s to access your location? + - Will you allow %1$s to read your external storage? - + Will you allow %1$s to send notifications? + + + Will you allow %1$s to read your external storage? + + + Will you allow %1$s to store data in persistent storage? + + version %1$s - Crash Reporting - + + Telemetry - + + Privacy Policy - + Developer Options + + + Language + + + Choose your preferred language for displaying pages + + + Choose your preferred language for voice search + + + English (US) + + + Chinese (Traditional/Zhuyin) + + + Chinese (Simplified/Pinyin) + + + Japanese + + + French + + + German + + + Spanish + + + Korean + + + Italian + + + Display + + + Controller Options + + + Report Speech Data + + - Report an issue - + Report an Issue + + Developer Build - - Developer Options + Restart Required + + restart is required. '%1$s' will be replaced at runtime with the website's domain name. --> You must restart %1$s in order to complete changes. Would you like to do that now? + Restart Now - + + Restart Later - + + Enable Remote Debugging - + + Redirect Console to Logcat - + + Enable Environment Override - + + Enable Multiprocess - + + Enable Servo - + + Display Density: - Window Size: - + + Edit - + + Save + + for the virtual displays Dots Per Inch (DPI). --> Display DPI: + Max. Window Size: - + + MSAA - + + Disabled - + + 2x - + + 4x - + + User-Agent Mode - + + Desktop - + + Mobile - + + VR + Reset Developer Settings - + + Reset - + + Environment - - Meadow + + + Void + Cave - - Void + + + Meadow + Pointer Color + + + Purple + White - - Purple - + + On - + + Off - + + What would you like to search on the Web? - - Example: Please say, \"360 videos, weather, news…\" - + Example: Please say, “360 videos, weather, news…” + + Searching… - + + Sorry! I could not understand. - + + Please try again. + - Please allow microphone access to use the voice search. + device's microphone. It explains why Voice Search is not working. --> + Please allow microphone access to use the Voice Search. + Search the Web or enter address - + + Cancel - + + OK - + + Back + We had an issue and crashed + + '%1$s' will be replaced at runtime with the website's domain name. --> Please help Mozilla improve %1$s by sending your crash data. + Always send data without asking - Learn More - + + Do Not Send - + + Send Data - + + Brightness - + + Normal - + + Dark - + + Void - + + Video Projection - + + 3D Side by Side - + + 360 - + + 360 Stereo - + + 180 - - Stereo 180 (Left/Right) - - Stereo 180 (Top/Bottom) - + + + Stereo 180 Left to Right + + + Stereo 180 Top to Bottom + + 2D - + + Play - + + Pause - + + Mute - + + Unmute - + + Volume - + + Seek +%1$ seconds - + + Seek -%1$ seconds + + (e.g., a live video stream). Prefer a short text because it affects the width of the seek bar. --> LIVE - - Allow - - Don\'t Allow + + + Bookmarks + + + Remove Bookmark + + + Edit This Bookmark + + + Search Bookmarks + + + Bookmark This Page + + + Recently Bookmarked + + + Show All Bookmarks + + + Reset Display Settings + + + Reset Voice Search Language Settings + + + Name + + + Tags + + + Location + + + Most Recent Visit + + + Added + + + Last Modified + + + Back + + + Forward + + + Refresh + + + Home + + + Voice Search + + + Show site info. + + + Enter Private Browsing + + + Exit Private Browsing + + + Bookmarks + + + Show history + From 01e3e9b74c19d2a9d01bf0eff16df1d18cf4d945 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Thu, 8 Nov 2018 08:40:02 -0800 Subject: [PATCH 2/4] Descriptions and key fixes --- README.md | 2 +- .../vrbrowser/ui/widgets/PermissionWidget.java | 6 +++--- app/src/main/res/values/strings.xml | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index a657450c1..688887c6e 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ You can find us on Twitter [@MozillaReality](https://twitter.com/mozillareality) ## L10n -Whenever a new string is added to a localizable strings file (strings.xml ,localpages.xml, ...) a string description must be provided as a comment above the new string. Also the project STRs wiki page must be updated with a key description, steps to reproduce and the excepted results. +Whenever a new string is added to a localizable strings file (strings.xml ,localpages.xml, ...) a string description must be provided as a comment above the new string. Also the project STRs wiki page must be updated with a key description, steps to reproduce and the expected results. The L10n wiki page can be found [here](https://github.com/MozillaReality/FirefoxReality/wiki/L10n). ## Setup instructions diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java index dc64ef6f0..03e3779ff 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/PermissionWidget.java @@ -118,15 +118,15 @@ public void showPrompt(String aUri, PermissionType aType, GeckoSession.Permissio iconId = R.drawable.ic_icon_dialog_camera; break; case Location: - messageId = R.string.permission_geolocation; + messageId = R.string.permission_location; iconId = R.drawable.ic_icon_dialog_geolocation; break; case Notification: - messageId = R.string.permission_notifications; + messageId = R.string.permission_notification; iconId = R.drawable.ic_icon_dialog_notification; break; case ReadExternalStorage: - messageId = R.string.permission_external_storage_read; + messageId = R.string.permission_read_external_storage; iconId = R.drawable.ic_icon_storage; break; default: diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3e5538bca..c2781afd8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -31,18 +31,18 @@ - Will you allow %1$s to access your location? + Will you allow %1$s to access your location? - Will you allow %1$s to send notifications? + Will you allow %1$s to send notifications? - Will you allow %1$s to read your external storage? + Will you allow %1$s to read your external storage? + restart is required. '%1$s' will be replaced at runtime with the app's name. --> You must restart %1$s in order to complete changes. Would you like to do that now? Restart Now - + Restart Later Off - What would you like to search on the Web? - Example: Please say, “360 videos, weather, news…” @@ -313,7 +313,7 @@ We had an issue and crashed + '%1$s' will be replaced at runtime with the app's domain name. --> Please help Mozilla improve %1$s by sending your crash data. Forward - Refresh From e20d1d06ea112c9d03c5350257dd2bb1fc13f858 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Thu, 8 Nov 2018 09:03:16 -0800 Subject: [PATCH 3/4] Add an item that we are going to need for Bookmarks --- app/src/main/res/values/strings.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c2781afd8..37d228153 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -486,4 +486,7 @@ user's History. --> Show history + + Remove All + From ab9a6778690bcd6dd8e5067840f7d9e068bd9c6d Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Thu, 8 Nov 2018 14:45:28 -0800 Subject: [PATCH 4/4] Updated the restart later description --- app/src/main/res/values/strings.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 37d228153..d6cab708c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -158,7 +158,8 @@ application in the restart dialog. --> Restart Now - + Restart Later