Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Norwegian localization for shields and rewards. #2717

Merged
merged 1 commit into from
Jun 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions components/brave_extension/extension/brave_extension/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ if (is_mac) {
foreach(locale, locales) {
bundle_data("brave_extension_framework_bundle_data_${locale}") {
locale = string_replace(locale, "-", "_")
source_locale = string_replace(locale, "nb", "no")
sources = [
"//brave/components/brave_extension/extension/brave_extension/_locales/$locale/messages.json"
"//brave/components/brave_extension/extension/brave_extension/_locales/$source_locale/messages.json"
]
outputs = [
"{{bundle_resources_dir}}/brave_extension/_locales/$locale/{{source_file_part}}"
Expand All @@ -132,8 +133,9 @@ if (is_mac) {
foreach(locale, locales) {
copy("locales_${locale}") {
locale = string_replace(locale, "-", "_")
source_locale = string_replace(locale, "nb", "no")
sources = [
"//brave/components/brave_extension/extension/brave_extension/_locales/${locale}/messages.json",
"//brave/components/brave_extension/extension/brave_extension/_locales/${source_locale}/messages.json",
]
outputs = [
"$root_out_dir/resources/brave_extension/_locales/${locale}/{{source_file_part}}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,78 +1,78 @@
{
"appName": {
"message": "The Brave Extension",
"message": "Brave-utvidelsen",
"description": "The name of the the extension."
},
"shields": {
"message": "Shields",
"message": "Skjold",
"description": "The Shields feature name"
},
"up": {
"message": "up",
"message": "Oppe",
"description": "Message for when shields is enabled"
},
"down": {
"message": "down",
"message": "nede",
"description": "Message for when shields is disabled"
},
"forThisSite": {
"message": "for this site",
"message": "for denne siden",
"description": "Partial string for the phrase `shields is up *for this site*`"
},
"enabledMessage": {
"message": "If a site appears broken, try shields down",
"message": "Hvis en side ikke virker, prøv å deaktivere skjold.",
"description": "Message telling the user to disable shields if a site appears broken"
},
"disabledMessage": {
"message": "You’re browsing this site without any privacy and security protections.",
"message": "Du besøker denne siden uten personvern og sikkerhetsinnstillinger",
"description": "Message telling the user that shields are disabled"
},
"itemsBlocked": {
"message": "Items blocked",
"message": "Elementer blokkert",
"description": "Message for the main blocked resources text when there is more than one ad/track/script blocked (plural)"
},
"itemBlocked": {
"message": "Item blocked",
"message": "Element blokkert",
"description": "Message for the main blocked resources text when there is one ad/track/script blocked (singular)"
},
"and": {
"message": "and",
"message": "og",
"description": "Message for the `and` conjunction. Used to connect grammatically the `item blocked and connection upgrades` and its variant phrases"
},
"connectionsUpgraded": {
"message": "connections upgraded",
"message": "tilkoblinger oppgradert",
"description": "Message for the main blocked resources text when there is at least one ad/track/script blocked and more than one connection upgrade (plural)"
},
"connectionUpgraded": {
"message": "connection upgraded",
"message": "tilkobling oppgradert",
"description": "Message for the main blocked resources text when there is at least one ad/track/script blocked and one connection upgrade (singular)"
},
"thirdPartyTrackersBlocked": {
"message": "Cross-site trackers blocked",
"description": "Message for the scripts blocked row label"
},
"connectionsUpgradedHTTPS": {
"message": "Connections upgraded to HTTPS",
"message": "Tilkoblinger oppgradert til HTTPS",
"description": "Message for the connections upgraded row label and for the main blocked resources text when there is more than one connection upgraded (plural) and no other ads/trackers blocked"
},
"connectionUpgradedHTTPS": {
"message": "Connection upgraded to HTTPS",
"message": "Tilkobling oppgradert til HTTPS",
"description": "Message for the main blocked resources text when there is one connection upgraded (singular) and no other ads/trackers blocked"
},
"scriptsBlocked": {
"message": "Scripts blocked",
"message": "Skript blokkert",
"description": "Message for the scripts blocked row label"
},
"thirdPartyCookiesBlocked": {
"message": "Cross-site cookies blocked",
"description": "Message for the option in the cookies select field to block all 3rd party cookies"
},
"allCookiesBlocked": {
"message": "Cookies blocked",
"message": "Informasjonskapler er blokkert",
"description": "Message for the option in the cookies select field to block all cookies"
},
"allCookiesAllowed": {
"message": "All cookies allowed",
"message": "Alle informasjonskapsler er tillatt",
"description": "Message for the option in the cookies select field to allow all cookies"
},
"thirdPartyFingerprintingBlocked": {
Expand All @@ -88,35 +88,35 @@
"description": "Message for the option in the device recognition select field to allow all device recognition attempts"
},
"deviceRecognitionAttempts": {
"message": "Device recognition attempts",
"message": "Forsøk på enhetsgjenkjenning ",
"description": "Message for the device recognition attempts blocked panel"
},
"scriptsOnThisSite": {
"message": "Scripts on this site",
"message": "Skript på denne siden",
"description": "Message for the script resources blocked panel"
},
"blockedScripts": {
"message": "Blocked scripts",
"message": "Blokkerte skript",
"description": "Message for the script resources blocked"
},
"allowedScripts": {
"message": "Allowed scripts",
"message": "Godkjente skript",
"description": "Message for the script resources allowed"
},
"blockAll": {
"message": "Block all",
"message": "Blokker alle",
"description": "Message for the resources blocked *block all* option"
},
"allowAll": {
"message": "Allow all",
"message": "Tillat alle",
"description": "Message for the resources blocked *allow all* option"
},
"block": {
"message": "Block",
"message": "Blokker",
"description": "Message for the resources blocked *block* option"
},
"allow": {
"message": "Allow",
"message": "Tillat",
"description": "Message for the resources blocked *allow* option"
},
"blockedOnce": {
Expand All @@ -132,19 +132,19 @@
"description": "Message for the shortcut in the main interface to allow all scripts once"
},
"cancel": {
"message": "Cancel",
"message": "Kanseller",
"description": "Message for the button inside the static list of resources blocked to cancel the operation"
},
"goBack": {
"message": "Go back",
"message": "Gå tilbake",
"description": "Message for the button inside the static list of resources blocked to go back from the current screen"
},
"applyOnce": {
"message": "Apply once",
"message": "Bruk én gang",
"description": "Message for action in dynamic list of resources blocked to *apply once*"
},
"changeDefaults": {
"message": "Change global shield defaults",
"message": "Endre globale skjermstandarder",
"description": "Message for the button action linking to the settings page"
}
}
6 changes: 4 additions & 2 deletions components/brave_rewards/resources/extension/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ if (is_mac) {
foreach(locale, locales) {
bundle_data("framework_bundle_data_${locale}") {
locale = string_replace(locale, "-", "_")
source_locale = string_replace(locale, "nb", "no")
sources = [
"brave_rewards/_locales/$locale/messages.json"
"brave_rewards/_locales/$source_locale/messages.json"
]
outputs = [
"{{bundle_resources_dir}}/brave_rewards/_locales/$locale/{{source_file_part}}"
Expand All @@ -75,8 +76,9 @@ if (is_mac) {
foreach(locale, locales) {
copy("locales_${locale}") {
locale = string_replace(locale, "-", "_")
source_locale = string_replace(locale, "nb", "no")
sources = [
"brave_rewards/_locales/${locale}/messages.json",
"brave_rewards/_locales/${source_locale}/messages.json",
]
outputs = [
"$root_out_dir/resources/brave_rewards/_locales/${locale}/{{source_file_part}}",
Expand Down
Loading