Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
l10n string updates (#3174)
Browse files Browse the repository at this point in the history
* Revert security_options_block_pup_up_settings string key

* Added downloaded variable description comment.

* Update key for settings_privacy_policy_popups_title

* Update comment for popup_permission_dialog_message

* Use apostrophe instead of escaped straight single quotes

* Added variable comment for download_error_body

* Capitalize Ok for download_error_ok

* Add variable comment for exit_confirm_dialog_body

* Revert settings_privacy_policy_popups_title from localized files
  • Loading branch information
keianhzo authored Apr 20, 2020
1 parent 277000d commit cc207c7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected void updateUI() {

switch (mCategory) {
case SitePermission.SITE_PERMISSION_POPUP:
mBinding.headerLayout.setTitle(R.string.settings_privacy_policy_popups_title);
mBinding.headerLayout.setTitle(R.string.settings_privacy_policy_popups_title_v1);
mBinding.contentText.setText(R.string.privacy_options_popups_list_header_v1);
mBinding.emptyText.setText(R.string.privacy_options_popups_list_empty_first);
break;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/options_exceptions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:title="@string/settings_privacy_policy_popups_title" />
app:title="@string/settings_privacy_policy_popups_title_v1" />

<FrameLayout
android:layout_width="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/options_privacy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
android:id="@+id/popUpsBlockingExceptionsButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:buttonText="@string/security_options_block_pup_up_settings_v2" />
app:buttonText="@string/security_options_block_pup_up_settings" />

<org.mozilla.vrbrowser.ui.views.settings.SwitchSetting
android:id="@+id/webxrSwitch"
Expand Down
18 changes: 10 additions & 8 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

<!-- This string is used as the title of the pop-ups dialog used to remove sites from the currently
allowed pop-up sites. -->
<string name="settings_privacy_policy_popups_title">Exceptions for Pop-Ups</string>
<string name="settings_privacy_policy_popups_title_v1">Exceptions for Pop-Ups</string>

<!-- This string is displayed under the title the pop-ups dialog used to remove sites from the currently
allowed pop-up sites. -->
Expand Down Expand Up @@ -671,7 +671,7 @@

<!-- This string labels the button in the privacy option panel that open the dialog to add/remove
pop-up blocked sites. -->
<string name="security_options_block_pup_up_settings_v2">Advanced</string>
<string name="security_options_block_pup_up_settings">Advanced</string>

<!-- This string labels the button in the privacy option panel that enables/disables Virtual Reality
Devices access to websites (WebXR). -->
Expand Down Expand Up @@ -877,7 +877,7 @@
<string name="bookmarks_saved_notification">Saved to Bookmarks!</string>

<!-- This string is displayed in a notification that appears in the tray bar on top of the
downloads tray button then a download finishes. -->
downloads tray button then a download finishes. %1$s will be replaced with the downloaded file name. -->
<string name="download_completed_notification">%1$s Downloaded</string>

<!-- This string is displayed in a tooltip that appears when a user hovers
Expand Down Expand Up @@ -986,7 +986,7 @@
<string name="fxa_signout_confirmation_title">Sign out of your Firefox Account?</string>

<!-- This string is displayed in the body of the FxA sign out dialog displayed when the user clicks on the Sign out button. -->
<string name="fxa_signout_confirmation_body">When you sign out, you won\'t be able to send or receive tabs from other devices. Your bookmarks and history will also stop syncing.</string>
<string name="fxa_signout_confirmation_body">When you sign out, you wont be able to send or receive tabs from other devices. Your bookmarks and history will also stop syncing.</string>

<!-- This string is displayed in the checkbox text of the FxA sign out dialog displayed when the user clicks on the Sign out button.
When checked the history and Bookmarks will be deleted from gthe device after signing in. -->
Expand Down Expand Up @@ -1558,7 +1558,7 @@ the Select` button. When clicked it closes all the previously selected tabs -->
<string name="slow_script_dialog_action_wait">Wait</string>

<!-- This string is displayed in the title of the quick PopUp blocking dialog, accessed from the PopUp icon in the URL bar.
'%1$s' will be replaced at runtime with the app's name. -->
'%1$s' will be replaced at runtime with the status of the setting. -->
<string name="popup_permission_dialog_message">Popup blocking is %1$s for this site.</string>

<!-- This string is displayed in the on button of the quick Popup blocking dialog when it's in enabled state. It's accessed from the Popup icon in the URL bar. -->
Expand Down Expand Up @@ -1620,7 +1620,8 @@ the Select` button. When clicked it closes all the previously selected tabs -->
<!-- This string is displayed in the disable button of the quick Tracking Protection dialog, accessed from the Tracking Protection icon in the URL bar. -->
<string name="tracking_dialog_button_disable">Disable</string>

<!-- This string is displayed in the body of the confirm dialog shown in some platforms when the back button is pressed to quit the app. -->
<!-- This string is displayed in the body of the confirm dialog shown in some platforms when the back button is pressed to quit the app.
'%1$s' will be replaced at runtime with the app name. -->
<string name="exit_confirm_dialog_body">Are you sure you want to exit %1$s?</string>

<!-- This string is displayed in the Cancel button of the confirm dialog shown in some platforms when the back button is pressed to quit the app. -->
Expand Down Expand Up @@ -1692,9 +1693,10 @@ the Select` button. When clicked it closes all the previously selected tabs -->
<!-- This string is displayed in the title of the download error dialog. -->
<string name="download_error_title">There was an error</string>

<!-- This string is displayed in the body of the download error dialog. -->
<!-- This string is displayed in the body of the download error dialog.
'%1$s' will be replaced at runtime with the name of the downloaded file. -->
<string name="download_error_body">An error occurred while downloading %1$s. Please try again.</string>

<!-- This string is displayed in the button to dismiss the download error dialog. -->
<string name="download_error_ok">Ok</string>
<string name="download_error_ok">OK</string>
</resources>

0 comments on commit cc207c7

Please sign in to comment.