From 36382af4b899b60b4c82bf76e288739560a7a01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Wed, 3 May 2017 16:01:22 -0700 Subject: [PATCH] [ios, macos] Updated localizations from Transifex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pulled various translations from Transifex. Although Transifex supports the stringsdict format, it doesn’t allow translators to customize the format. This change splits out a separate “level” key for the same format string and moves any prefixes and suffixes into the “level” and “count” keys. For now, each localization has been updated manually, but future updates will come from Transifex. --- platform/ios/ios.xcodeproj/project.pbxproj | 6 +++ .../ca.lproj/Localizable.stringsdict | 13 ++++++- .../de.lproj/Localizable.stringsdict | 19 ++++++++-- .../en.lproj/Localizable.stringsdict | 19 ++++++++-- .../resources/es.lproj/Localizable.strings | 2 +- .../es.lproj/Localizable.stringsdict | 34 +++++++++++++++++ .../fr.lproj/Localizable.stringsdict | 13 ++++++- .../resources/lt.lproj/Localizable.strings | 20 +++++++++- .../lt.lproj/Localizable.stringsdict | 38 +++++++++++++++++++ .../pt-BR.lproj/Localizable.stringsdict | 13 ++++++- .../ru.lproj/Localizable.stringsdict | 27 ++++++++++--- .../sv.lproj/Localizable.stringsdict | 13 ++++++- .../vi.lproj/Localizable.stringsdict | 30 +++++++++++++++ .../macos/sdk/lt.lproj/Localizable.strings | 14 ++++++- .../macos/sdk/sv.lproj/Localizable.strings | 14 ++++++- 15 files changed, 253 insertions(+), 22 deletions(-) create mode 100644 platform/ios/resources/es.lproj/Localizable.stringsdict create mode 100644 platform/ios/resources/lt.lproj/Localizable.stringsdict create mode 100644 platform/ios/resources/vi.lproj/Localizable.stringsdict diff --git a/platform/ios/ios.xcodeproj/project.pbxproj b/platform/ios/ios.xcodeproj/project.pbxproj index cd2549a9c..215d31810 100644 --- a/platform/ios/ios.xcodeproj/project.pbxproj +++ b/platform/ios/ios.xcodeproj/project.pbxproj @@ -738,6 +738,9 @@ DA35D0871E1A6309007DED41 /* one-liner.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = "one-liner.json"; path = "../../darwin/test/one-liner.json"; sourceTree = ""; }; DA3C6FF21E2859E700F962BE /* test-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "test-Bridging-Header.h"; path = "../../darwin/test/test-Bridging-Header.h"; sourceTree = ""; }; DA4A26961CB6E795000B7809 /* Mapbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Mapbox.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DA57D4AA1EBA8ED300793288 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = es; path = es.lproj/Localizable.stringsdict; sourceTree = ""; }; + DA57D4AB1EBA909900793288 /* lt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = lt; path = lt.lproj/Localizable.stringsdict; sourceTree = ""; }; + DA57D4AC1EBA922A00793288 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = vi; path = vi.lproj/Localizable.stringsdict; sourceTree = ""; }; DA6023F11E4CE94300DBFF23 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Foundation.strings; sourceTree = ""; }; DA6023F21E4CE94800DBFF23 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = sv; path = sv.lproj/Foundation.stringsdict; sourceTree = ""; }; DA618B111E68823600CB7F44 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.stringsdict; name = ru; path = ru.lproj/Localizable.stringsdict; sourceTree = ""; }; @@ -2517,6 +2520,9 @@ DA618B111E68823600CB7F44 /* ru */, DA618B191E68883700CB7F44 /* ca */, 35DE35531EB7CBA8004917C5 /* sv */, + DA57D4AA1EBA8ED300793288 /* es */, + DA57D4AB1EBA909900793288 /* lt */, + DA57D4AC1EBA922A00793288 /* vi */, ); name = Localizable.stringsdict; sourceTree = ""; diff --git a/platform/ios/resources/ca.lproj/Localizable.stringsdict b/platform/ios/resources/ca.lproj/Localizable.stringsdict index 91a39bc9d..45d4842ff 100644 --- a/platform/ios/resources/ca.lproj/Localizable.stringsdict +++ b/platform/ios/resources/ca.lproj/Localizable.stringsdict @@ -5,8 +5,19 @@ MAP_A11Y_VALUE NSStringLocalizedFormatKey - Zoom %dx + %#@level@ %#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoom %dx + other + Zoom %dx + count NSStringFormatSpecTypeKey diff --git a/platform/ios/resources/de.lproj/Localizable.stringsdict b/platform/ios/resources/de.lproj/Localizable.stringsdict index a41ddac14..7d334c77f 100644 --- a/platform/ios/resources/de.lproj/Localizable.stringsdict +++ b/platform/ios/resources/de.lproj/Localizable.stringsdict @@ -5,8 +5,19 @@ MAP_A11Y_VALUE NSStringLocalizedFormatKey - Zoomstufe %d -%#@count@ sichtbar + %#@level@ +%#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoomstufe %d + other + Zoomstufe %d + count NSStringFormatSpecTypeKey @@ -14,9 +25,9 @@ NSStringFormatValueTypeKey ld one - %d Anmerkung + %d Anmerkung sichtbar other - %d Anmerkungen + %d Anmerkungen sichtbar diff --git a/platform/ios/resources/en.lproj/Localizable.stringsdict b/platform/ios/resources/en.lproj/Localizable.stringsdict index ee4de0211..e849318fe 100644 --- a/platform/ios/resources/en.lproj/Localizable.stringsdict +++ b/platform/ios/resources/en.lproj/Localizable.stringsdict @@ -5,8 +5,19 @@ MAP_A11Y_VALUE NSStringLocalizedFormatKey - Zoom %dx -%#@count@ visible + %#@level@ +%#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoom %dx + other + Zoom %dx + count NSStringFormatSpecTypeKey @@ -14,9 +25,9 @@ NSStringFormatValueTypeKey ld one - %d annotation + %d annotation visible other - %d annotations + %d annotations visible diff --git a/platform/ios/resources/es.lproj/Localizable.strings b/platform/ios/resources/es.lproj/Localizable.strings index 88a7d8b42..6fbfb23dd 100644 --- a/platform/ios/resources/es.lproj/Localizable.strings +++ b/platform/ios/resources/es.lproj/Localizable.strings @@ -38,7 +38,7 @@ "MAP_A11Y_LABEL" = "Mapa"; /* Map accessibility value */ -"MAP_A11Y_VALUE" = "Zoom %1$dx\n%2$ld annotation(s) visible"; +"MAP_A11Y_VALUE" = "Zoom %1$dx\nAnotaciones visibles: %2$ld"; /* Action sheet title */ "SDK_NAME" = "Mapbox iOS SDK"; diff --git a/platform/ios/resources/es.lproj/Localizable.stringsdict b/platform/ios/resources/es.lproj/Localizable.stringsdict new file mode 100644 index 000000000..9532801ff --- /dev/null +++ b/platform/ios/resources/es.lproj/Localizable.stringsdict @@ -0,0 +1,34 @@ + + + + + MAP_A11Y_VALUE + + NSStringLocalizedFormatKey + %#@level@ +%#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoom %dx + other + Zoom %dx + + count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + one + %d anotación visible + other + %d anotaciones visibles + + + + diff --git a/platform/ios/resources/fr.lproj/Localizable.stringsdict b/platform/ios/resources/fr.lproj/Localizable.stringsdict index 76a698053..4222421a1 100644 --- a/platform/ios/resources/fr.lproj/Localizable.stringsdict +++ b/platform/ios/resources/fr.lproj/Localizable.stringsdict @@ -5,8 +5,19 @@ MAP_A11Y_VALUE NSStringLocalizedFormatKey - Zoom %dx + %#@level@ %#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoom %dx + other + Zoom %dx + count NSStringFormatSpecTypeKey diff --git a/platform/ios/resources/lt.lproj/Localizable.strings b/platform/ios/resources/lt.lproj/Localizable.strings index d160895ea..3ac683fe4 100644 --- a/platform/ios/resources/lt.lproj/Localizable.strings +++ b/platform/ios/resources/lt.lproj/Localizable.strings @@ -10,6 +10,9 @@ /* No comment provided by engineer. */ "CANCEL" = "Atšaukti"; +/* Accessibility hint for closing the selected annotation’s callout view and returning to the map */ +"CLOSE_CALLOUT_A11Y_HINT" = "Grįžta į žemėlapį."; + /* Accessibility hint */ "COMPASS_A11Y_HINT" = "Pasuka žemėlapį šiaure į viršų"; @@ -31,6 +34,12 @@ /* Accessibility label */ "INFO_A11Y_LABEL" = "Apie šį žemėlapį"; +/* User-friendly error description */ +"LOAD_MAP_FAILED_DESC" = "Nepavyko užkrauti žemėlapio dėl nežinomos klaidos."; + +/* User-friendly error description */ +"LOAD_STYLE_FAILED_DESC" = "Nepavyko užkrauti žemėlapio, nes nepavyko užkrauti stiliaus."; + /* Accessibility label */ "LOGO_A11Y_LABEL" = "Mapbox"; @@ -38,11 +47,20 @@ "MAP_A11Y_LABEL" = "Žemėlapis"; /* Map accessibility value */ -"MAP_A11Y_VALUE" = "Priartinimas: %1$dx\nMatomos anotacijos: %2$ld "; +"MAP_A11Y_VALUE" = "Priartinimas: %1$dx\nMatomos anotacijos: %2$ld"; + +/* User-friendly error description */ +"PARSE_STYLE_FAILED_DESC" = "Nepavyko užkrauti žemėlapio, nes stilius yra netinkamo formato."; /* Action sheet title */ "SDK_NAME" = "Mapbox iOS SDK"; +/* Developer-only SDK update notification; {latest version, in format x.x.x} */ +"SDK_UPDATE_AVAILABLE" = "Mapbox iOS SDK versija %@ jau prieinama."; + +/* User-friendly error description */ +"STYLE_NOT_FOUND_DESC" = "Nepavyko užkrauti žemėlapio, nes neįmanoma rasti stiliaus arba jis nėra suderinamas."; + /* Telemetry prompt message */ "TELEMETRY_DISABLED_MSG" = "Padėkite padaryti OpenStreetMap ir Mapbox žemėlapius geresniais dalindamiesi anoniminiais naudojimosi duomenimis."; diff --git a/platform/ios/resources/lt.lproj/Localizable.stringsdict b/platform/ios/resources/lt.lproj/Localizable.stringsdict new file mode 100644 index 000000000..0200327f0 --- /dev/null +++ b/platform/ios/resources/lt.lproj/Localizable.stringsdict @@ -0,0 +1,38 @@ + + + + + MAP_A11Y_VALUE + + NSStringLocalizedFormatKey + %#@level@ +%#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Priartinimas: %dx + few + Priartinimas: %dx + other + Priartinimas: %dx + + count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + one + Matomos anotacijos: %d anotacija + few + Matomos anotacijos: %d anotacijos + other + Matomos anotacijos: %d anotacijų + + + + diff --git a/platform/ios/resources/pt-BR.lproj/Localizable.stringsdict b/platform/ios/resources/pt-BR.lproj/Localizable.stringsdict index 2b4bf30cb..c3185c416 100644 --- a/platform/ios/resources/pt-BR.lproj/Localizable.stringsdict +++ b/platform/ios/resources/pt-BR.lproj/Localizable.stringsdict @@ -5,8 +5,19 @@ MAP_A11Y_VALUE NSStringLocalizedFormatKey - Zoom %dx + %#@level@ %#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoom %dx + other + Zoom %dx + count NSStringFormatSpecTypeKey diff --git a/platform/ios/resources/ru.lproj/Localizable.stringsdict b/platform/ios/resources/ru.lproj/Localizable.stringsdict index 2b48e35ba..81877703b 100644 --- a/platform/ios/resources/ru.lproj/Localizable.stringsdict +++ b/platform/ios/resources/ru.lproj/Localizable.stringsdict @@ -5,8 +5,23 @@ MAP_A11Y_VALUE NSStringLocalizedFormatKey - Масштаб %dx -%#@count@ видны + %#@level@ +%#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Масштаб %dx + few + Масштаб %dx + many + Масштаб %dx + other + Масштаб %dx + count NSStringFormatSpecTypeKey @@ -14,13 +29,13 @@ NSStringFormatValueTypeKey ld one - %d аннотация + %d аннотация видны few - %d аннотации + %d аннотации видны many - %d аннотаций + %d аннотаций видны other - %d аннотации + %d аннотации видны diff --git a/platform/ios/resources/sv.lproj/Localizable.stringsdict b/platform/ios/resources/sv.lproj/Localizable.stringsdict index da1315d01..90115bd80 100644 --- a/platform/ios/resources/sv.lproj/Localizable.stringsdict +++ b/platform/ios/resources/sv.lproj/Localizable.stringsdict @@ -5,8 +5,19 @@ MAP_A11Y_VALUE NSStringLocalizedFormatKey - Zoom %dx + %#@level@ %#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + one + Zoom %dx + other + Zoom %dx + count NSStringFormatSpecTypeKey diff --git a/platform/ios/resources/vi.lproj/Localizable.stringsdict b/platform/ios/resources/vi.lproj/Localizable.stringsdict new file mode 100644 index 000000000..9044588f5 --- /dev/null +++ b/platform/ios/resources/vi.lproj/Localizable.stringsdict @@ -0,0 +1,30 @@ + + + + + MAP_A11Y_VALUE + + NSStringLocalizedFormatKey + %#@level@ +%#@count@ + level + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + d + other + Thu phóng gấp %d lần + + count + + NSStringFormatSpecTypeKey + NSStringPluralRuleType + NSStringFormatValueTypeKey + ld + other + %d chú thích đang xuất hiện + + + + diff --git a/platform/macos/sdk/lt.lproj/Localizable.strings b/platform/macos/sdk/lt.lproj/Localizable.strings index 8e93c8696..0e2e604e8 100644 --- a/platform/macos/sdk/lt.lproj/Localizable.strings +++ b/platform/macos/sdk/lt.lproj/Localizable.strings @@ -1,6 +1,18 @@ -/* Accessibility title */ +/* User-friendly error description */ +"LOAD_MAP_FAILED_DESC" = "Nepavyko užkrauti žemėlapio dėl nežinomos klaidos."; + +/* User-friendly error description */ +"LOAD_STYLE_FAILED_DESC" = "Nepavyko užkrauti žemėlapio, nes nepavyko užkrauti stiliaus."; + +/* Accessibility title */ "MAP_A11Y_TITLE" = "Mapbox"; +/* User-friendly error description */ +"PARSE_STYLE_FAILED_DESC" = "Nepavyko užkrauti žemėlapio, nes stilius yra netinkamo formato."; + +/* User-friendly error description */ +"STYLE_NOT_FOUND_DESC" = "Nepavyko užkrauti žemėlapio, nes neįmanoma rasti stiliaus arba jis nėra suderinamas."; + /* Label of Zoom In button */ "ZOOM_IN_LABEL" = "+"; diff --git a/platform/macos/sdk/sv.lproj/Localizable.strings b/platform/macos/sdk/sv.lproj/Localizable.strings index 34841108a..c94660d7d 100644 --- a/platform/macos/sdk/sv.lproj/Localizable.strings +++ b/platform/macos/sdk/sv.lproj/Localizable.strings @@ -1,6 +1,18 @@ -/* Accessibility title */ +/* User-friendly error description */ +"LOAD_MAP_FAILED_DESC" = "Kartan kunde inte laddas på grund av ett okänt fel."; + +/* User-friendly error description */ +"LOAD_STYLE_FAILED_DESC" = "Kartan kunde inte laddas på grund av att stilen inte kunde laddas."; + +/* Accessibility title */ "MAP_A11Y_TITLE" = "Mapbox"; +/* User-friendly error description */ +"PARSE_STYLE_FAILED_DESC" = "Kartan kunde inte laddas på grund av att stilen är skadad."; + +/* User-friendly error description */ +"STYLE_NOT_FOUND_DESC" = "Kartan kunde inte laddas på grund av att stilen saknas eller är inkompatibel."; + /* Label of Zoom In button */ "ZOOM_IN_LABEL" = "+";