Skip to content

Commit f178033

Browse files
committed
Merge pull request #2709 from brave/maxk-fix-norwegian-l10n
Fixes Norwegian localization for shields and rewards.
1 parent 6748c93 commit f178033

File tree

4 files changed

+129
-125
lines changed

4 files changed

+129
-125
lines changed

components/brave_extension/extension/brave_extension/BUILD.gn

+4-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ if (is_mac) {
114114
foreach(locale, locales) {
115115
bundle_data("brave_extension_framework_bundle_data_${locale}") {
116116
locale = string_replace(locale, "-", "_")
117+
source_locale = string_replace(locale, "nb", "no")
117118
sources = [
118-
"//brave/components/brave_extension/extension/brave_extension/_locales/$locale/messages.json"
119+
"//brave/components/brave_extension/extension/brave_extension/_locales/$source_locale/messages.json"
119120
]
120121
outputs = [
121122
"{{bundle_resources_dir}}/brave_extension/_locales/$locale/{{source_file_part}}"
@@ -132,8 +133,9 @@ if (is_mac) {
132133
foreach(locale, locales) {
133134
copy("locales_${locale}") {
134135
locale = string_replace(locale, "-", "_")
136+
source_locale = string_replace(locale, "nb", "no")
135137
sources = [
136-
"//brave/components/brave_extension/extension/brave_extension/_locales/${locale}/messages.json",
138+
"//brave/components/brave_extension/extension/brave_extension/_locales/${source_locale}/messages.json",
137139
]
138140
outputs = [
139141
"$root_out_dir/resources/brave_extension/_locales/${locale}/{{source_file_part}}",
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
11
{
22
"appName": {
3-
"message": "The Brave Extension",
3+
"message": "Brave-utvidelsen",
44
"description": "The name of the the extension."
55
},
66
"shields": {
7-
"message": "Shields",
7+
"message": "Skjold",
88
"description": "The Shields feature name"
99
},
1010
"up": {
11-
"message": "up",
11+
"message": "Oppe",
1212
"description": "Message for when shields is enabled"
1313
},
1414
"down": {
15-
"message": "down",
15+
"message": "nede",
1616
"description": "Message for when shields is disabled"
1717
},
1818
"forThisSite": {
19-
"message": "for this site",
19+
"message": "for denne siden",
2020
"description": "Partial string for the phrase `shields is up *for this site*`"
2121
},
2222
"enabledMessage": {
23-
"message": "If a site appears broken, try shields down",
23+
"message": "Hvis en side ikke virker, prøv å deaktivere skjold.",
2424
"description": "Message telling the user to disable shields if a site appears broken"
2525
},
2626
"disabledMessage": {
27-
"message": "You’re browsing this site without any privacy and security protections.",
27+
"message": "Du besøker denne siden uten personvern og sikkerhetsinnstillinger",
2828
"description": "Message telling the user that shields are disabled"
2929
},
3030
"itemsBlocked": {
31-
"message": "Items blocked",
31+
"message": "Elementer blokkert",
3232
"description": "Message for the main blocked resources text when there is more than one ad/track/script blocked (plural)"
3333
},
3434
"itemBlocked": {
35-
"message": "Item blocked",
35+
"message": "Element blokkert",
3636
"description": "Message for the main blocked resources text when there is one ad/track/script blocked (singular)"
3737
},
3838
"and": {
39-
"message": "and",
39+
"message": "og",
4040
"description": "Message for the `and` conjunction. Used to connect grammatically the `item blocked and connection upgrades` and its variant phrases"
4141
},
4242
"connectionsUpgraded": {
43-
"message": "connections upgraded",
43+
"message": "tilkoblinger oppgradert",
4444
"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)"
4545
},
4646
"connectionUpgraded": {
47-
"message": "connection upgraded",
47+
"message": "tilkobling oppgradert",
4848
"description": "Message for the main blocked resources text when there is at least one ad/track/script blocked and one connection upgrade (singular)"
4949
},
5050
"thirdPartyTrackersBlocked": {
5151
"message": "Cross-site trackers blocked",
5252
"description": "Message for the scripts blocked row label"
5353
},
5454
"connectionsUpgradedHTTPS": {
55-
"message": "Connections upgraded to HTTPS",
55+
"message": "Tilkoblinger oppgradert til HTTPS",
5656
"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"
5757
},
5858
"connectionUpgradedHTTPS": {
59-
"message": "Connection upgraded to HTTPS",
59+
"message": "Tilkobling oppgradert til HTTPS",
6060
"description": "Message for the main blocked resources text when there is one connection upgraded (singular) and no other ads/trackers blocked"
6161
},
6262
"scriptsBlocked": {
63-
"message": "Scripts blocked",
63+
"message": "Skript blokkert",
6464
"description": "Message for the scripts blocked row label"
6565
},
6666
"thirdPartyCookiesBlocked": {
6767
"message": "Cross-site cookies blocked",
6868
"description": "Message for the option in the cookies select field to block all 3rd party cookies"
6969
},
7070
"allCookiesBlocked": {
71-
"message": "Cookies blocked",
71+
"message": "Informasjonskapler er blokkert",
7272
"description": "Message for the option in the cookies select field to block all cookies"
7373
},
7474
"allCookiesAllowed": {
75-
"message": "All cookies allowed",
75+
"message": "Alle informasjonskapsler er tillatt",
7676
"description": "Message for the option in the cookies select field to allow all cookies"
7777
},
7878
"thirdPartyFingerprintingBlocked": {
@@ -88,35 +88,35 @@
8888
"description": "Message for the option in the device recognition select field to allow all device recognition attempts"
8989
},
9090
"deviceRecognitionAttempts": {
91-
"message": "Device recognition attempts",
91+
"message": "Forsøk på enhetsgjenkjenning ",
9292
"description": "Message for the device recognition attempts blocked panel"
9393
},
9494
"scriptsOnThisSite": {
95-
"message": "Scripts on this site",
95+
"message": "Skript på denne siden",
9696
"description": "Message for the script resources blocked panel"
9797
},
9898
"blockedScripts": {
99-
"message": "Blocked scripts",
99+
"message": "Blokkerte skript",
100100
"description": "Message for the script resources blocked"
101101
},
102102
"allowedScripts": {
103-
"message": "Allowed scripts",
103+
"message": "Godkjente skript",
104104
"description": "Message for the script resources allowed"
105105
},
106106
"blockAll": {
107-
"message": "Block all",
107+
"message": "Blokker alle",
108108
"description": "Message for the resources blocked *block all* option"
109109
},
110110
"allowAll": {
111-
"message": "Allow all",
111+
"message": "Tillat alle",
112112
"description": "Message for the resources blocked *allow all* option"
113113
},
114114
"block": {
115-
"message": "Block",
115+
"message": "Blokker",
116116
"description": "Message for the resources blocked *block* option"
117117
},
118118
"allow": {
119-
"message": "Allow",
119+
"message": "Tillat",
120120
"description": "Message for the resources blocked *allow* option"
121121
},
122122
"blockedOnce": {
@@ -132,19 +132,19 @@
132132
"description": "Message for the shortcut in the main interface to allow all scripts once"
133133
},
134134
"cancel": {
135-
"message": "Cancel",
135+
"message": "Kanseller",
136136
"description": "Message for the button inside the static list of resources blocked to cancel the operation"
137137
},
138138
"goBack": {
139-
"message": "Go back",
139+
"message": "Gå tilbake",
140140
"description": "Message for the button inside the static list of resources blocked to go back from the current screen"
141141
},
142142
"applyOnce": {
143-
"message": "Apply once",
143+
"message": "Bruk én gang",
144144
"description": "Message for action in dynamic list of resources blocked to *apply once*"
145145
},
146146
"changeDefaults": {
147-
"message": "Change global shield defaults",
147+
"message": "Endre globale skjermstandarder",
148148
"description": "Message for the button action linking to the settings page"
149149
}
150150
}

components/brave_rewards/resources/extension/BUILD.gn

+4-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ if (is_mac) {
5757
foreach(locale, locales) {
5858
bundle_data("framework_bundle_data_${locale}") {
5959
locale = string_replace(locale, "-", "_")
60+
source_locale = string_replace(locale, "nb", "no")
6061
sources = [
61-
"brave_rewards/_locales/$locale/messages.json"
62+
"brave_rewards/_locales/$source_locale/messages.json"
6263
]
6364
outputs = [
6465
"{{bundle_resources_dir}}/brave_rewards/_locales/$locale/{{source_file_part}}"
@@ -75,8 +76,9 @@ if (is_mac) {
7576
foreach(locale, locales) {
7677
copy("locales_${locale}") {
7778
locale = string_replace(locale, "-", "_")
79+
source_locale = string_replace(locale, "nb", "no")
7880
sources = [
79-
"brave_rewards/_locales/${locale}/messages.json",
81+
"brave_rewards/_locales/${source_locale}/messages.json",
8082
]
8183
outputs = [
8284
"$root_out_dir/resources/brave_rewards/_locales/${locale}/{{source_file_part}}",

0 commit comments

Comments
 (0)