Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios, macos] Added Brazilian Portuguese localization
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Feb 9, 2017
1 parent 0bcf88d commit 7f4e386
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[main]
host = https://www.transifex.com
lang_map = zh_CN: zh-Hans, zh_TW: zh-Hant
lang_map = pt_BR: pt-BR, pt_PT: pt-PT, zh_CN: zh-Hans, zh_TW: zh-Hant
type = STRINGS
minimum_perc = 80

Expand Down
54 changes: 54 additions & 0 deletions platform/darwin/resources/pt-BR.lproj/Foundation.stringsdict
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>COORD_DEG_LONG</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@degrees@</string>
<key>degrees</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>%d grau</string>
<key>other</key>
<string>%d graus</string>
</dict>
</dict>
<key>COORD_MIN_LONG</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@minutes@</string>
<key>minutes</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>%d minuto</string>
<key>other</key>
<string>%d minutos</string>
</dict>
</dict>
<key>COORD_SEC_LONG</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>%#@seconds@</string>
<key>seconds</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>d</string>
<key>one</key>
<string>%d segundo</string>
<key>other</key>
<string>%d segundos</string>
</dict>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion platform/ios/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT

* Added support for right-to-left text and Arabic ligatures in labels. ([#6984](https://github.com/mapbox/mapbox-gl-native/pull/6984), [#7123](https://github.com/mapbox/mapbox-gl-native/pull/7123))
* Improved the line wrapping behavior of point-placed labels, especially labels written in Chinese and Japanese. ([#6828](https://github.com/mapbox/mapbox-gl-native/pull/6828), [#7446](https://github.com/mapbox/mapbox-gl-native/pull/7446))
* Added Chinese (Simplified and Traditional), French, German, Japanese, Swedish, and Vietnamese localizations. ([#7316](https://github.com/mapbox/mapbox-gl-native/pull/7316), [#7899](https://github.com/mapbox/mapbox-gl-native/pull/7899), [#7999](https://github.com/mapbox/mapbox-gl-native/pull/7999))
* Added Chinese (Simplified and Traditional), French, German, Japanese, Portuguese (Brazilian), Swedish, and Vietnamese localizations. ([#7316](https://github.com/mapbox/mapbox-gl-native/pull/7316), [#7899](https://github.com/mapbox/mapbox-gl-native/pull/7899), [#7999](https://github.com/mapbox/mapbox-gl-native/pull/7999))

### Styles

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"TELEMETRY_GROUP_TITLE" = "Configurações de privacidade";
"TELEMETRY_SWITCH_TITLE" = "Telemetria do Mapbox";
"TELEMETRY_GROUP_FOOTER" = "Essa configuração permite que o aplicativo compartilhe dados de localização e uso anônimos com o Mapbox.";
9 changes: 9 additions & 0 deletions platform/ios/ios.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,10 @@
DA8F25B91D51D2570010E6B5 /* MGLStyleLayerTests.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; name = MGLStyleLayerTests.mm.ejs; path = ../test/MGLStyleLayerTests.mm.ejs; sourceTree = "<group>"; };
DA8F25BA1D51D2570010E6B5 /* MGLStyleLayer.h.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.h.ejs; sourceTree = "<group>"; };
DA8F25BB1D51D2570010E6B5 /* MGLStyleLayer.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.mm.ejs; sourceTree = "<group>"; };
DA9C012B1E4C7AD900C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-BR"; path = "pt-BR.lproj/Localizable.stringsdict"; sourceTree = "<group>"; };
DA9C012C1E4C7ADB00C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-BR"; path = "pt-BR.lproj/Foundation.stringsdict"; sourceTree = "<group>"; };
DA9C012D1E4C7B1F00C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Localizable.strings"; sourceTree = "<group>"; };
DA9C012E1E4C7B6100C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Root.strings"; sourceTree = "<group>"; };
DAA32CA11E4C44DB006F8D24 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = de; path = de.lproj/Foundation.stringsdict; sourceTree = "<group>"; };
DAA32CA21E4C44DD006F8D24 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = de; path = de.lproj/Localizable.stringsdict; sourceTree = "<group>"; };
DAA32CA31E4C44F1006F8D24 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Foundation.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1851,6 +1855,7 @@
ja,
sv,
vi,
"pt-BR",
);
mainGroup = DA1DC9411CB6C1C2006E619F;
productRefGroup = DA1DC94B1CB6C1C2006E619F /* Products */;
Expand Down Expand Up @@ -2229,6 +2234,7 @@
DAA32CB11E4C4C8A006F8D24 /* fr */,
DAA32CB81E4C4EE6006F8D24 /* sv */,
DAA32CBE1E4C4F71006F8D24 /* vi */,
DA9C012E1E4C7B6100C4742A /* pt-BR */,
);
name = Root.strings;
sourceTree = "<group>";
Expand All @@ -2243,6 +2249,7 @@
DAA32CAC1E4C4971006F8D24 /* fr */,
DAA32CB71E4C4ED8006F8D24 /* sv */,
DAA32CBC1E4C4F5D006F8D24 /* vi */,
DA9C012D1E4C7B1F00C4742A /* pt-BR */,
);
name = Localizable.strings;
sourceTree = "<group>";
Expand All @@ -2266,6 +2273,7 @@
DA8933BE1CCD2CAD00E68420 /* en */,
DAA32CA11E4C44DB006F8D24 /* de */,
DAA32CAB1E4C491A006F8D24 /* fr */,
DA9C012C1E4C7ADB00C4742A /* pt-BR */,
);
name = Foundation.stringsdict;
sourceTree = "<group>";
Expand All @@ -2284,6 +2292,7 @@
DAC49C621CD07D74009E1AA3 /* en */,
DAA32CA21E4C44DD006F8D24 /* de */,
DAA32CA91E4C4919006F8D24 /* fr */,
DA9C012B1E4C7AD900C4742A /* pt-BR */,
);
name = Localizable.stringsdict;
sourceTree = "<group>";
Expand Down
75 changes: 75 additions & 0 deletions platform/ios/resources/pt-BR.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/* Accessibility hint */
"ANNOTATION_A11Y_HINT" = "Mostrar mais informações";

/* No comment provided by engineer. */
"API_CLIENT_400_DESC" = "The session data task failed. Original request was: %@";

/* No comment provided by engineer. */
"API_CLIENT_400_REASON" = "O código de status foi %ld";

/* No comment provided by engineer. */
"CANCEL" = "Cancelar";

/* Accessibility hint */
"COMPASS_A11Y_HINT" = "Rotaciona o mapa com face ao norte";

/* Accessibility label */
"COMPASS_A11Y_LABEL" = "Compasso";

/* Compass abbreviation for north */
"COMPASS_NORTH" = "N";

/* Instructions in Interface Builder designable; {key}, {plist file name} */
"DESIGNABLE" = "To display a Mapbox-hosted map here, set %1$@ to your access token in %2$@\n\nFor detailed instructions, see:";

/* Setup documentation URL display string; keep as short as possible */
"FIRST_STEPS_URL" = "mapbox.com/help/first-steps-ios-sdk";

/* Accessibility hint */
"INFO_A11Y_HINT" = "Mostra os créditos, um formulário de avaliação, e mais";

/* Accessibility label */
"INFO_A11Y_LABEL" = "Sobre este mapa";

/* Accessibility label */
"LOGO_A11Y_LABEL" = "Mapbox";

/* Accessibility label */
"MAP_A11Y_LABEL" = "Mapa";

/* Map accessibility value */
"MAP_A11Y_VALUE" = "Zoom %1$dx\n%2$ld anotações visíveis";

/* Action sheet title */
"SDK_NAME" = "Mapbox iOS SDK";

/* Telemetry prompt message */
"TELEMETRY_DISABLED_MSG" = "You can help make OpenStreetMap and Mapbox maps better by contributing anonymous usage data.";

/* Telemetry prompt button */
"TELEMETRY_DISABLED_OFF" = "Não Participar";

/* Telemetry prompt button */
"TELEMETRY_DISABLED_ON" = "Participar";

/* Telemetry prompt message */
"TELEMETRY_ENABLED_MSG" = "You are helping to make OpenStreetMap and Mapbox maps better by contributing anonymous usage data.";

/* Telemetry prompt button */
"TELEMETRY_ENABLED_OFF" = "Parar de Participar";

/* Telemetry prompt button */
"TELEMETRY_ENABLED_ON" = "Continuar Participando";

/* Telemetry prompt button */
"TELEMETRY_MORE" = "Me Diga Mais";

/* Action in attribution sheet */
"TELEMETRY_NAME" = "Telemetria do Mapbox";

/* Telemetry prompt title */
"TELEMETRY_TITLE" = "Melhorar os Mapas do Mapbox";

/* Default user location annotation title */
"USER_DOT_TITLE" = "Você Está Aqui";

23 changes: 23 additions & 0 deletions platform/ios/resources/pt-BR.lproj/Localizable.stringsdict
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MAP_A11Y_VALUE</key>
<dict>
<key>NSStringLocalizedFormatKey</key>
<string>Zoom %dx
%#@count@</string>
<key>count</key>
<dict>
<key>NSStringFormatSpecTypeKey</key>
<string>NSStringPluralRuleType</string>
<key>NSStringFormatValueTypeKey</key>
<string>ld</string>
<key>one</key>
<string>%d anotação visível</string>
<key>other</key>
<string>%d anotações visíveis</string>
</dict>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion platform/macos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

* Added support for right-to-left text and Arabic ligatures in labels. ([#6984](https://github.com/mapbox/mapbox-gl-native/pull/6984), [#7123](https://github.com/mapbox/mapbox-gl-native/pull/7123))
* Improved the line wrapping behavior of point-placed labels, especially labels written in Chinese and Japanese. ([#6828](https://github.com/mapbox/mapbox-gl-native/pull/6828), [#7446](https://github.com/mapbox/mapbox-gl-native/pull/7446))
* Added Chinese (Simplified and Traditional), French, German, Japanese, Swedish, and Vietnamese localizations. ([#7316](https://github.com/mapbox/mapbox-gl-native/pull/7316), [#7503](https://github.com/mapbox/mapbox-gl-native/pull/7503), [#7899](https://github.com/mapbox/mapbox-gl-native/pull/7899), [#7999](https://github.com/mapbox/mapbox-gl-native/pull/7999))
* Added Chinese (Simplified and Traditional), French, German, Japanese, Portuguese (Brazilian), Swedish, and Vietnamese localizations. ([#7316](https://github.com/mapbox/mapbox-gl-native/pull/7316), [#7503](https://github.com/mapbox/mapbox-gl-native/pull/7503), [#7899](https://github.com/mapbox/mapbox-gl-native/pull/7899), [#7999](https://github.com/mapbox/mapbox-gl-native/pull/7999))

### Styles

Expand Down
5 changes: 5 additions & 0 deletions platform/macos/macos.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@
DA8F25B51D51D2240010E6B5 /* MGLStyleLayerTests.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; name = MGLStyleLayerTests.mm.ejs; path = ../test/MGLStyleLayerTests.mm.ejs; sourceTree = "<group>"; };
DA8F25B61D51D2240010E6B5 /* MGLStyleLayer.h.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.h.ejs; sourceTree = "<group>"; };
DA8F25B71D51D2240010E6B5 /* MGLStyleLayer.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.mm.ejs; sourceTree = "<group>"; };
DA9C01301E4C7B9300C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-BR"; path = "pt-BR.lproj/Foundation.stringsdict"; sourceTree = "<group>"; };
DA9C01311E4C7B9F00C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Localizable.strings"; sourceTree = "<group>"; };
DAA1BB491E2D425C00ABB750 /* libmbgl-loop.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libmbgl-loop.a"; path = "../../build/macos/Debug/libmbgl-loop.a"; sourceTree = "<group>"; };
DAA32CA61E4C4849006F8D24 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
DAA32CA71E4C486D006F8D24 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Foundation.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1205,6 +1207,7 @@
ja,
sv,
vi,
"pt-BR",
);
mainGroup = DA839E891CC2E3400062CAFB;
productRefGroup = DA839E931CC2E3400062CAFB /* Products */;
Expand Down Expand Up @@ -1433,6 +1436,7 @@
DAA32CB31E4C4CC3006F8D24 /* ja */,
DAA32CBA1E4C4F10006F8D24 /* sv */,
DAA32CC11E4C4F93006F8D24 /* vi */,
DA9C01311E4C7B9F00C4742A /* pt-BR */,
);
name = Localizable.strings;
sourceTree = "<group>";
Expand All @@ -1456,6 +1460,7 @@
DA8933B71CCD2C2D00E68420 /* en */,
DAA32CA81E4C48B9006F8D24 /* de */,
DAA32CAE1E4C4B03006F8D24 /* fr */,
DA9C01301E4C7B9300C4742A /* pt-BR */,
);
name = Foundation.stringsdict;
sourceTree = "<group>";
Expand Down
15 changes: 15 additions & 0 deletions platform/macos/sdk/pt-BR.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* Accessibility title */
"MAP_A11Y_TITLE" = "Mapbox";

/* Label of Zoom In button */
"ZOOM_IN_LABEL" = "+";

/* Tooltip of Zoom In button */
"ZOOM_IN_TOOLTIP" = "Aumentar Zoom";

/* Label of Zoom Out button; U+2212 MINUS SIGN */
"ZOOM_OUT_LABEL" = "−";

/* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Reduzir Zoom";

0 comments on commit 7f4e386

Please sign in to comment.