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

Commit

Permalink
Fix strings for v3.6 (#398)
Browse files Browse the repository at this point in the history
* Add export-locales-env to .gitignore

This folder is created by the string extraction script

* Improve comments and context menu string

* Remove obsolete strings, fix "Open in Focus"
  • Loading branch information
flodolo authored and bkmunar committed Sep 1, 2017
1 parent 7d50808 commit edebb22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ screenshots-derived-data

# l10n clone for scripts
focusios-l10n

export-locales-env
9 changes: 4 additions & 5 deletions Blockzilla/UIConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ struct UIConstants {
static let labelBlockOther = NSLocalizedString("Settings.toggleBlockOther", value: "Block other content trackers", comment: "Label for toggle on main screen")
static let labelBlockFonts = NSLocalizedString("Settings.toggleBlockFonts", value: "Block Web fonts", comment: "Label for toggle on main screen")
static let labelSendAnonymousUsageData = NSLocalizedString("Settings.toggleSendUsageData", value: "Send usage data", comment: "Label for Send Usage Data toggle on main screen")
static let detailTextSendUsageData = NSLocalizedString("Settings.detailTextSendUsageData", value: "Mozilla strives to collect only what we need to provide and improve Focus for everyone. ", comment: "Detail Label for Send Usage Data toggle on main screen")
static let detailTextSendUsageData = NSLocalizedString("Settings.detailTextSendUsageData", value: "Mozilla strives to collect only what we need to provide and improve Focus for everyone.", comment: "Description associated to the Send Usage Data toggle on main screen")
static let openCancel = NSLocalizedString("Open.Cancel", value: "Cancel", comment: "Label in share alert to cancel the alert")
static let openFirefox = NSLocalizedString("Open.Firefox", value: "Firefox (Private Browsing)", comment: "Label in share alert to open the URL in Firefox")
static let openMore = NSLocalizedString("Open.More", value: "More", comment: "Label in share alert to open the full system share menu")
Expand Down Expand Up @@ -185,9 +185,8 @@ struct UIConstants {
static let photosPermissionDescription = NSLocalizedString("photosPermission.description", value: "This lets you save images to your Camera Roll", comment: "Description for dialog used for requesting a user to enable access to Photos.")
static let openSettingsButtonTitle = NSLocalizedString("photosPermission.openSettings", value: "Open Settings", comment: "Title for button that takes the user to system settings")
static let openIn = NSLocalizedString("actionSheet.openIn", value: "Open in %@", comment: "Title for action sheet item to open the current page in another application. Placeholder is the name of the application to open the current page.")
static let handoffSyncing = NSLocalizedString("Focus.handoffSyncing", value: "Apple Handoff is syncing", comment: "Title for the loading screen when the handoff of clipboard delays Focus launch.")
static let linkYouCopied = NSLocalizedString("contextMenu.clipboardLink", value: "Link you copied:", comment: "Text for the context menu when a user has a link on their clipboard.")
static let aboutRowPrivacy = NSLocalizedString("About.rowPrivacy", value: "Privacy Notice", comment: "Label for row in About screen")

static let handoffSyncing = NSLocalizedString("Focus.handoffSyncing", value: "Apple Handoff is syncing", comment: "Title for the loading screen when the handoff of clipboard delays Focus launch. “Handoff” should not be localized, see https://support.apple.com/HT204681")
static let linkYouCopied = NSLocalizedString("contextMenu.clipboardLink", value: "Link you copied: %@", comment: "Text for the context menu when a user has a link on their clipboard.")
static let aboutRowPrivacy = NSLocalizedString("About.rowPrivacy", value: "Privacy Notice", comment: "Link to Privacy Notice in the About screen")
}
}
9 changes: 1 addition & 8 deletions Blockzilla/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,11 @@
/* Safari toggle label on settings screen */
"Settings.toggleSafari" = "Safari";

/* Label for Send Anonymous Usage Data toggle on main screen */
"Settings.toggleSendAnonymousUsageData" = "Send anonymous usage data";

/* Subtitle for Send Anonymous Usage Data toggle on main screen */
"Settings.toggleSendAnonymousUsageDataSubtitle" = "Learn more";

/* Text for the share menu option when a user wants to open a page in Firefox but doesn’t have it installed. This string will not wrap in the interface. Instead, it will truncate. To prevent this, please keep the localized string to 18 or fewer characters. If your string runs longer than 18 characters, you can use 'Get Firefox' as the basis for your string. However, if at all possible, we’d like to signal to the user that they will be going to the App Store and installing the application from there. That is why we are using Get and App in the en-US string. */
"ShareMenu.GetFirefox" = "Get the Firefox App";

/* Text for the share menu option when a user wants to open a page in Focus. */
"ShareMenu.OpenInFocus" = "Open in Focus";
"ShareMenu.OpenInFocus" = "Open in %@";

/* Label for cancel button shown when entering a URL or search */
"URL.cancelLabel" = "Cancel";
Expand Down Expand Up @@ -237,4 +231,3 @@

/* Dialog title used for requesting a user to enable access to Photos. Placeholder is either Firefox Focus or Firefox Klar */
"photosPermission.title" = "“%@” Would Like to Access Your Photos";

0 comments on commit edebb22

Please sign in to comment.