From ecc43c871a9c1b48280c870e0e03c681850dbd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Mon, 16 Apr 2018 15:57:04 -0700 Subject: [PATCH] [android, ios, macos] Added European Portuguese localization --- .../src/main/res/values-pt-rPT/strings.xml | 16 ++++++ .../pt-PT.lproj/Foundation.stringsdict | 54 ++++++++++++++++++ platform/ios/CHANGELOG.md | 2 +- .../ios/app/pt-PT.lproj/Localizable.strings | 0 .../Settings.bundle/pt-PT.lproj/Root.strings | 3 + platform/ios/ios.xcodeproj/project.pbxproj | 11 ++++ .../resources/pt-PT.lproj/Localizable.strings | Bin 0 -> 8276 bytes .../pt-PT.lproj/Localizable.stringsdict | 54 ++++++++++++++++++ platform/macos/CHANGELOG.md | 2 +- .../macos/app/pt-PT.lproj/Localizable.strings | 0 .../macos/macos.xcodeproj/project.pbxproj | 7 +++ .../macos/sdk/pt-PT.lproj/Localizable.strings | 27 +++++++++ 12 files changed, 174 insertions(+), 2 deletions(-) create mode 100644 platform/android/MapboxGLAndroidSDK/src/main/res/values-pt-rPT/strings.xml create mode 100644 platform/darwin/resources/pt-PT.lproj/Foundation.stringsdict create mode 100644 platform/ios/app/pt-PT.lproj/Localizable.strings create mode 100644 platform/ios/framework/Settings.bundle/pt-PT.lproj/Root.strings create mode 100644 platform/ios/resources/pt-PT.lproj/Localizable.strings create mode 100644 platform/ios/resources/pt-PT.lproj/Localizable.stringsdict create mode 100644 platform/macos/app/pt-PT.lproj/Localizable.strings create mode 100644 platform/macos/sdk/pt-PT.lproj/Localizable.strings diff --git a/platform/android/MapboxGLAndroidSDK/src/main/res/values-pt-rPT/strings.xml b/platform/android/MapboxGLAndroidSDK/src/main/res/values-pt-rPT/strings.xml new file mode 100644 index 000000000..02941aab5 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDK/src/main/res/values-pt-rPT/strings.xml @@ -0,0 +1,16 @@ + + + Compasso do mapa. Ativar para virar o mapa para Norte. + Ícone de atribuição. Ativar para mostrar a janela de atribuição. + Vista de localização. Isto mostra a sua localização no mapa. + A mostrar um Mapa criado com Mapbox. Desloque arrastanto com 2 dedos. Zoom afastando ou aproximando os 2 dedos. + Mapas Mapbox SDK para Android + Torne os Mapas Mapbox Melhores + Está a ajudar a tornar os mapas OpenStreetMap e Mapbox melhores contribuindo com dados de utilização tornados anónimos. + Concordo + Não concordo + Mais informações + Não está nenhum navegador de Internet instalado no dispositivo. Não é possível abrir a página web. + O OfflineRegionDefinition não cabe nos limites do mundo: %s + Definições de Telemetria + diff --git a/platform/darwin/resources/pt-PT.lproj/Foundation.stringsdict b/platform/darwin/resources/pt-PT.lproj/Foundation.stringsdict new file mode 100644 index 000000000..e99e86d98 --- /dev/null +++ b/platform/darwin/resources/pt-PT.lproj/Foundation.stringsdict @@ -0,0 +1,54 @@ + + + + + COORD_DEG_LONG + + NSStringLocalizedFormatKey + %#@degrees@ + degrees + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + %d grau + other + %d graus + + + COORD_MIN_LONG + + NSStringLocalizedFormatKey + %#@minutes@ + minutes + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + %d minuto + other + %d minutos + + + COORD_SEC_LONG + + NSStringLocalizedFormatKey + %#@seconds@ + seconds + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + %d segundo + other + %d segundos + + + + diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md index 217c6b4b7..224208cfa 100644 --- a/platform/ios/CHANGELOG.md +++ b/platform/ios/CHANGELOG.md @@ -9,7 +9,7 @@ The 4.0._x_ series of releases will be the last to support iOS 8. The minimum iO ### Packaging * Removed support for 32-bit simulators. ([#10962](https://github.com/mapbox/mapbox-gl-native/pull/10962)) -* Added Danish and Hebrew localizations. ([#10967](https://github.com/mapbox/mapbox-gl-native/pull/10967), [#11136](https://github.com/mapbox/mapbox-gl-native/pull/11134)) +* Added Danish, Hebrew, and European Portuguese localizations. ([#10967](https://github.com/mapbox/mapbox-gl-native/pull/10967), [#11136](https://github.com/mapbox/mapbox-gl-native/pull/11134), [#11695](https://github.com/mapbox/mapbox-gl-native/pull/11695)) * Removed methods, properties, and constants that had been deprecated as of v3.7.6. ([#11205](https://github.com/mapbox/mapbox-gl-native/pull/11205), [#11681](https://github.com/mapbox/mapbox-gl-native/pull/11681)) * Refined certain Swift interfaces by converting them from class methods to class properties. ([#11674](https://github.com/mapbox/mapbox-gl-native/pull/11674)) diff --git a/platform/ios/app/pt-PT.lproj/Localizable.strings b/platform/ios/app/pt-PT.lproj/Localizable.strings new file mode 100644 index 000000000..e69de29bb diff --git a/platform/ios/framework/Settings.bundle/pt-PT.lproj/Root.strings b/platform/ios/framework/Settings.bundle/pt-PT.lproj/Root.strings new file mode 100644 index 000000000..8e077c3d1 --- /dev/null +++ b/platform/ios/framework/Settings.bundle/pt-PT.lproj/Root.strings @@ -0,0 +1,3 @@ +"TELEMETRY_GROUP_TITLE" = "Definições de Privacidade"; +"TELEMETRY_SWITCH_TITLE" = "Telemetria Mapbox"; +"TELEMETRY_GROUP_FOOTER" = "Esta definição permite à aplicação partilhar a localização e dados de utilização tornados anónimos com a Mapbox."; diff --git a/platform/ios/ios.xcodeproj/project.pbxproj b/platform/ios/ios.xcodeproj/project.pbxproj index d2b6679b8..a9413accf 100644 --- a/platform/ios/ios.xcodeproj/project.pbxproj +++ b/platform/ios/ios.xcodeproj/project.pbxproj @@ -1177,6 +1177,11 @@ DA8F25B91D51D2570010E6B5 /* MGLStyleLayerTests.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; name = MGLStyleLayerTests.mm.ejs; path = ../test/MGLStyleLayerTests.mm.ejs; sourceTree = ""; }; DA8F25BA1D51D2570010E6B5 /* MGLStyleLayer.h.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.h.ejs; sourceTree = ""; }; DA8F25BB1D51D2570010E6B5 /* MGLStyleLayer.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.mm.ejs; sourceTree = ""; }; + DA93409B208562EB0059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/Localizable.strings"; sourceTree = ""; }; + DA93409C2085630C0059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-PT"; path = "pt-PT.lproj/Foundation.stringsdict"; sourceTree = ""; }; + DA93409D208563220059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/Localizable.strings"; sourceTree = ""; }; + DA93409E208563360059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-PT"; path = "pt-PT.lproj/Localizable.stringsdict"; sourceTree = ""; }; + DA93409F208563440059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/Root.strings"; sourceTree = ""; }; DA9C012B1E4C7AD900C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-BR"; path = "pt-BR.lproj/Localizable.stringsdict"; sourceTree = ""; }; DA9C012C1E4C7ADB00C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-BR"; path = "pt-BR.lproj/Foundation.stringsdict"; sourceTree = ""; }; DA9C012D1E4C7B1F00C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Localizable.strings"; sourceTree = ""; }; @@ -2667,6 +2672,7 @@ ar, he, da, + "pt-PT", ); mainGroup = DA1DC9411CB6C1C2006E619F; productRefGroup = DA1DC94B1CB6C1C2006E619F /* Products */; @@ -3209,6 +3215,7 @@ DA80E9601FE84AD90065FC9B /* ar */, DACBC60B20118ABE00C4D7E2 /* he */, DAD88E07202ACFE800AAA536 /* da */, + DA93409B208562EB0059919A /* pt-PT */, ); name = Localizable.strings; sourceTree = ""; @@ -3236,6 +3243,7 @@ DA33896A1FA3EE58001EA329 /* bg */, DACBC60E20118AFE00C4D7E2 /* he */, DAD88E0C202AD06500AAA536 /* da */, + DA93409F208563440059919A /* pt-PT */, ); name = Root.strings; sourceTree = ""; @@ -3261,6 +3269,7 @@ DA3389681FA3EE48001EA329 /* bg */, DACBC60D20118ADE00C4D7E2 /* he */, DAD88E0A202AD03C00AAA536 /* da */, + DA93409D208563220059919A /* pt-PT */, ); name = Localizable.strings; sourceTree = ""; @@ -3307,6 +3316,7 @@ DA33896B1FA3EF4A001EA329 /* hu */, DA80E9611FE84AEF0065FC9B /* ar */, DAD88E09202AD01F00AAA536 /* da */, + DA93409C2085630C0059919A /* pt-PT */, ); name = Foundation.stringsdict; sourceTree = ""; @@ -3336,6 +3346,7 @@ DA704CBD1F63746E004B3F28 /* zh-Hant */, DA3389691FA3EE50001EA329 /* bg */, DAD88E0B202AD04D00AAA536 /* da */, + DA93409E208563360059919A /* pt-PT */, ); name = Localizable.stringsdict; sourceTree = ""; diff --git a/platform/ios/resources/pt-PT.lproj/Localizable.strings b/platform/ios/resources/pt-PT.lproj/Localizable.strings new file mode 100644 index 0000000000000000000000000000000000000000..f9a072666b7ec9924bd6bc1a64065bcb8ba11275 GIT binary patch literal 8276 zcmeI1&2L*p6vb!V|A5_7M5Gqc1`sPMBtqh}5&0rcidrE>iQ^=09Va+;zfk|!s*4IF zR)`G?;QZ!vGVeXRPEyj81+r|vH*Y@f+kD8g)L>C+A;`gFpMzFmC> z;hCNt=&GmdLOo}~wJ@dLEBdU44P9-7MP03gEnR=E&wX9pRojZ5Oli#5`c8%AaHN?B zp&zz&f2iM%?u$6{o}Tq%+w1U3*HhuPR=K9NkZeUQg=9NYk3&glNscw*C_L8qUA671 z$4-=$=lgNiw%YsQmY!s(*Cf|gmq1x79MTuDZ&zA73d6Yms@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KglXpoyMcr$EDZ-z+!&ddW z{pvjjdvo$b-dTp;o-PV!4uK8SxjGhf*z2tqa0jUaM1zHD@t+Q`6g`V%U z78U!l*3Fo4+;iRNYgc`Rq7P%rm32p4PE0DFQOs*qM};G06|NbuylaIt2h}eKOuAuT zomfRCA7hMjCn_lVfo0-1bCNgFgGvQSqR*6$Q(Y&*%2k8k`@lL_WES`YY+7 zUTIK`Q{mywcrQMk&jj(LLUp|Dog>iTRA==JZbLJXqi|luOw_7=TfpfZSmFs0%)Fbu z16**5g=cIi^1wmFpynw;T){R~wM=OqXEJM&Ih`pzl(gxj6C1k@=N!xVKT#8`I))aq z0KU@G3P@_tHTKX)_3X=X`@I5vea4aW#XB2L{HV`Co;3ycJGXbdW=@#NZ+D*Sncuj8 z%%0BpVbDX3KN-o#&ekgH58{sT%f#*H)9I?vxKPq*s{Yp`mopIRai4BfdFOr0#aV2& z^uL$pBG}^%RpO>`$a9=GuVBId(TBgCg}%C0>)12q?6LOit3~0cd}R#I#U0|oWEPeZ zrny=fm&IJK^=Tzeuj(TMy#*(a|4ef{bedcvyl+WwUkPnbBvD`!&X_4-@N@wwrq?ADM~iFv%)-_mz<7rakwg + + + + MAP_A11Y_VALUE_ANNOTATIONS + + NSStringLocalizedFormatKey + %#@count@ + count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + one + %d erro reportado visível + other + %d erros reportados visíveis + + + MAP_A11Y_VALUE_ROADS + + NSStringLocalizedFormatKey + %#@count@ + count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + one + %d estrada visível + other + %d estradas visíveis + + + MAP_A11Y_VALUE_ZOOM + + NSStringLocalizedFormatKey + %#@level@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoom %dx + other + Zoom %dx + + + + diff --git a/platform/macos/CHANGELOG.md b/platform/macos/CHANGELOG.md index 36d09d2f4..88774d8e5 100644 --- a/platform/macos/CHANGELOG.md +++ b/platform/macos/CHANGELOG.md @@ -43,7 +43,7 @@ ### Other changes -* Added Danish and Hebrew localizations. ([#10967](https://github.com/mapbox/mapbox-gl-native/pull/10967), [#11136](https://github.com/mapbox/mapbox-gl-native/pull/11134)) +* Added Danish, Hebrew, and European Portuguese localizations. ([#10967](https://github.com/mapbox/mapbox-gl-native/pull/10967), [#11136](https://github.com/mapbox/mapbox-gl-native/pull/11134), [#11695](https://github.com/mapbox/mapbox-gl-native/pull/11695)) * The `-[MGLMapView convertRect:toCoordinateBoundsFromView:]` method and the `MGLMapView.visibleCoordinateBounds` property’s getter now indicate that the coordinate bounds straddles the antimeridian by extending one side beyond ±180 degrees longitude. ([#11265](https://github.com/mapbox/mapbox-gl-native/pull/11265)) * Feature querying results now account for the `MGLSymbolStyleLayer.circleStrokeWidth` property. ([#10897](https://github.com/mapbox/mapbox-gl-native/pull/10897)) * Removed methods, properties, and constants that had been deprecated as of v0.6.1. ([#11205](https://github.com/mapbox/mapbox-gl-native/pull/11205)) diff --git a/platform/macos/app/pt-PT.lproj/Localizable.strings b/platform/macos/app/pt-PT.lproj/Localizable.strings new file mode 100644 index 000000000..e69de29bb diff --git a/platform/macos/macos.xcodeproj/project.pbxproj b/platform/macos/macos.xcodeproj/project.pbxproj index dad1b1da4..0114f156e 100644 --- a/platform/macos/macos.xcodeproj/project.pbxproj +++ b/platform/macos/macos.xcodeproj/project.pbxproj @@ -497,6 +497,9 @@ DA8F25B51D51D2240010E6B5 /* MGLStyleLayerTests.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; name = MGLStyleLayerTests.mm.ejs; path = ../test/MGLStyleLayerTests.mm.ejs; sourceTree = ""; }; DA8F25B61D51D2240010E6B5 /* MGLStyleLayer.h.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.h.ejs; sourceTree = ""; }; DA8F25B71D51D2240010E6B5 /* MGLStyleLayer.mm.ejs */ = {isa = PBXFileReference; lastKnownFileType = text; path = MGLStyleLayer.mm.ejs; sourceTree = ""; }; + DA934097208562590059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/Localizable.strings"; sourceTree = ""; }; + DA934098208562870059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-PT"; path = "pt-PT.lproj/Foundation.stringsdict"; sourceTree = ""; }; + DA9340992085629E0059919A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/Localizable.strings"; sourceTree = ""; }; DA9C01301E4C7B9300C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = "pt-BR"; path = "pt-BR.lproj/Foundation.stringsdict"; sourceTree = ""; }; DA9C01311E4C7B9F00C4742A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/Localizable.strings"; sourceTree = ""; }; DAA32CA61E4C4849006F8D24 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = ""; }; @@ -1413,6 +1416,7 @@ ar, he, da, + "pt-PT", ); mainGroup = DA839E891CC2E3400062CAFB; productRefGroup = DA839E931CC2E3400062CAFB /* Products */; @@ -1651,6 +1655,7 @@ DA80E95D1FE84A300065FC9B /* ar */, DACBC6082011885800C4D7E2 /* he */, DAD88E03202ACF5900AAA536 /* da */, + DA934097208562590059919A /* pt-PT */, ); name = Localizable.strings; sourceTree = ""; @@ -1703,6 +1708,7 @@ DA3389641FA3EE00001EA329 /* bg */, DACBC60A2011889E00C4D7E2 /* he */, DAD88E06202ACF9200AAA536 /* da */, + DA9340992085629E0059919A /* pt-PT */, ); name = Localizable.strings; sourceTree = ""; @@ -1750,6 +1756,7 @@ DA33896C1FA3EF51001EA329 /* hu */, DA80E95F1FE84A540065FC9B /* ar */, DAD88E05202ACF8200AAA536 /* da */, + DA934098208562870059919A /* pt-PT */, ); name = Foundation.stringsdict; sourceTree = ""; diff --git a/platform/macos/sdk/pt-PT.lproj/Localizable.strings b/platform/macos/sdk/pt-PT.lproj/Localizable.strings new file mode 100644 index 000000000..138519398 --- /dev/null +++ b/platform/macos/sdk/pt-PT.lproj/Localizable.strings @@ -0,0 +1,27 @@ +/* User-friendly error description */ +"LOAD_MAP_FAILED_DESC" = "Não foi possível carregar o mapa porque ocorreu um erro."; + +/* User-friendly error description */ +"LOAD_STYLE_FAILED_DESC" = "Não foi possível carregar o mapa porque o estilo não foi carregado."; + +/* Accessibility title */ +"MAP_A11Y_TITLE" = "Mapbox"; + +/* User-friendly error description */ +"PARSE_STYLE_FAILED_DESC" = "Não foi possível carregar o mapa porque o estilo está corrompido."; + +/* User-friendly error description */ +"STYLE_NOT_FOUND_DESC" = "Não foi possível carregar o mapa porque o estilo não foi encontrado ou não é compatível."; + +/* Label of Zoom In button */ +"ZOOM_IN_LABEL" = "+"; + +/* Tooltip of Zoom In button */ +"ZOOM_IN_TOOLTIP" = "Apromixar"; + +/* Label of Zoom Out button; U+2212 MINUS SIGN */ +"ZOOM_OUT_LABEL" = "−"; + +/* Tooltip of Zoom Out button */ +"ZOOM_OUT_TOOLTIP" = "Afastar"; +