Commit Graph

54 Commits

Author SHA1 Message Date
Minh Nguyễn
453c13dee2 [android, ios, macos] Updated translations
Updated Catalan, Spanish, Swedish, Traditional Chinese, Ukrainian, and Vietnamese.
2017-09-22 10:05:40 -07:00
Minh Nguyễn
ef12dc0822 [android, ios, macos] Russian, Ukrainian, Hungarian and other localization updates (#9945)
* [android, ios, macos] Updated Russian localization

Added a Russian localization of the Android SDK. Updated the iOS and macOS Russian localizations.

* [android, ios, macos] Updated Ukrainian localization

Added a Ukrainian localization of the Android SDK. Updated the iOS and macOS Ukrainian localizations.

* [ios, macos] Updated Traditional Chinese localization

* [macos] Added Hungarian localization

* [android] corrected typos

* [ios, macos] Updated Ukrainian localization

* [android, ios, macos] Configured Foundation.stringsdict on Transifex

* [ios, macos] Pulled in Foundation.stringsdict from Transifex

Updated the German, Lithuanian, and Vietnamese localizations with Foundation.stringsdict files matching Transifex.
2017-09-12 23:53:28 -07:00
Minh Nguyễn
f94d81c305 [android, ios, macos] Updated French localization
Updated French localization on iOS and macOS and added French localization on Android.
2017-07-19 18:11:30 -07:00
Jason Wray
361dda25a6 [ios, macos] Fix size and color of default marker image 2017-06-26 14:56:21 -04:00
Minh Nguyễn
5b4f8fd822 [ios] Updated German localization 2017-06-22 12:24:42 -07:00
Minh Nguyễn
9436eca1d4 [ios] Added Hungarian localization from Transifex 2017-06-22 12:24:42 -07:00
Jesse Bounds
505999a52d [ios] Update telemetry cert pinning (#9292) 2017-06-19 09:34:44 -10:00
Jason Wray
d90c1722c9 [ios] Move image resources to an asset catalog & switch to PDFs 2017-05-23 13:57:48 -04:00
Minh Nguyễn
36382af4b8 [ios, macos] Updated localizations from Transifex
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.
2017-05-08 15:17:32 -07:00
Minh Nguyễn
df5252725c [ios, macos] Corrected map a11y value format strings
Corrected MGLMapView accessibility value format strings in Catalan, Russian, and Swedish.
2017-05-02 01:45:05 -07:00
Fredrik Karlsson
e6aea10ee0 [ios] Added sv stringsdict 2017-05-02 01:45:05 -07:00
Minh Nguyễn
d7d4c97dad [ios, macos] Updated ca, es, sv, vi, zh-Hans localizations from Transifex 2017-05-02 01:45:05 -07:00
Minh Nguyễn
6f708ac545 [ios, macos] Update MGLMapView logo view (#8771)
* [ios, macos] Updated logo view to new Mapbox logo

* [default] Updated attribution logo SVG
2017-04-24 13:31:22 -04:00
Minh Nguyễn
003caddbc0 [ios] Localized map view proxy accessibility hint 2017-03-30 11:47:09 -07:00
John Firebaugh
e488ca702e Merge branch 'release-ios-v3.5.0-android-v5.0.0' 2017-03-21 12:04:20 -07:00
Minh Nguyễn
f846205eb6 [ios, macos] Fix map load error descriptions (#8466)
* [ios, macos] Corrected map load error descriptions

Ensured the uniqueness of localizable string IDs. Ran make genstrings to add the -[MGLMapViewDelegate mapViewDidFailToLoad:withError:] error description strings to the base localization.

* [ios, macos] Moved failure error changelog entry to new release
2017-03-18 14:59:11 -07:00
Minh Nguyễn
85f0eeff34 [ios, macos] Russian, Catalan, Lithuanian, Finnish, Dutch (#8256)
* [ios, macos] Updated Russian translations

* [ios, macos] Added Catalan translation

* [ios, macos] Completed Lithuanian translation

* [ios, macos] Added Finnish translation

* [ios, macos] Fixed Polish, Ukrainian declension

* [ios, macos] Updated changelogs

* [ios, macos] Added Dutch localization
2017-03-08 02:43:33 -08:00
Jason Wray
5e36743ef7 [ios] Add SDK version update checking/notification 2017-03-07 10:43:08 -08:00
Minh Nguyễn
64a034285b [ios, macos] Added Lithuanian localization 2017-02-20 14:54:57 -08:00
Minh Nguyễn
c8d8b82522 [ios, macos] Polish, Russian, Spanish, Ukrainian translations 2017-02-20 14:54:57 -08:00
Jason Wray
65ddd29bca [ios] Add partial Japanese localization 2017-02-09 17:29:57 -05:00
Minh Nguyễn
925d394ab5 [ios, macos] Brazilian Portuguese, French, German, Japanese, Swedish, Vietnamese
Pulled translations from Transifex. Added locales with at least one file translated 80% or more.
2017-02-09 10:52:33 -08:00
Minh Nguyễn
f76a49b24c [ios, macos] Traditional Chinese localization 2017-02-03 01:48:29 -05:00
Minh Nguyễn
a6b1773a44 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
YunjieLi
ffd74c309e Simplified Chinese localization (#7316)
* translated into Chinese

* light edits to translations

* update two changelogs; remove .stringsdict files

* remove update from macos changelog
2016-12-09 12:25:41 -08:00
Minh Nguyễn
fe53af7de0 [ios, macos] Source-driven attribution (#5999)
* [ios, macos] Source-driven attribution

Refactored MGLSource initialization. Implemented a new private class, MGLAttributionInfo, that parses an HTML attribution string from TileJSON and stores the resulting structured data. Added methods to MGLTileSet and MGLStyle to aggregate MGLAttributionInfos.

On macOS, update the attribution view as soon as the source attribution changes. On iOS, fetch the current attribution information when displaying the action sheet.

Removed hard-coded attribution strings.

* [macos] Respect inline formatting in attribution HTML

Apply a default font and color to attribution HTML as it is imported into an attributed string. Pass the attributed string into MGLAttributionButton as is, without stripping formatting. Avoid overriding the font and color after importing the HTML, in case these attributes are explicitly specified rather than intrinsic to a hyperlink.

Constrain the top of the attribution view to all the attribution buttons, in case one of them needs additional headspace.

* [ios, macos] Display unlinked attribution strings

Unlinked attribution strings are represented on macOS as buttons that have the default cursor and do nothing when clicked. On iOS, they are action sheet buttons that do nothing but dismiss the action sheet.

* [macos] Fixed random Auto Layout exception

Auto Layout randomly finds itself unable to satisfy constraints when updating attribution, due to some spurious constraints between attribution buttons. Regenerate the entire attribution view every time the source attribution changes.

* [ios, macos] Thoroughly dedupe attribution infos

Also added a test to verify parity with the GL JS implementation. This implementation avoids sorting.

* [ios, macos] Trim whitespace from attribution strings

Also added parsing tests.

* [ios, macos] Added attribution parsing tests for styles

Included an emoji test to ensure that attribution strings are interpreted as UTF-8, to avoid mojibake. Included a test of removing the underline from a leading copyright symbol.

* [ios, macos] Derive feedback link from source

MGLAttributionInfo now detects feedback links in the attribution HTML code, and it is responsible for tailoring the feedback URL to the current viewport.

Removed the hard-coded feedback action from the attribution sheet on iOS in favor of a source-derived feedback title and URL. Moved the feedback action from macosapp to MGLMapView; applications are now expected to hook an Improve This Map menu item to an MGLMapView action.
2016-12-08 17:43:17 -08:00
Jesse Bounds
dbb520662d [ios, android] Move der files to ios platform
.der files are used only by the iOS platform for SSL pinning. This
moves them out of the `platform/default/resources` directory and into
`platform/ios/resources`. The make configuration for Android is
updated so that it stops attempting to copy the files at all.
2016-11-30 16:19:22 -08:00
Minh Nguyễn
9a280b8d9d [ios] Corrected map accessibility value
Corrected the English override strings for the map view’s accessibility value. Prior to this change, the accessibility value would say “0 annotation” instead of “0 annotations” for some reason.

The zoom level in the map view’s accessibility value is off by two.
2016-05-04 02:23:20 -07:00
Minh Nguyễn
1dd7492fee [ios] Moved .stringsdict from Base.lproj to en.lproj
.stringsdict overrides need to be in real language .lprojs, not Base.lproj.
2016-04-26 21:55:32 -07:00
Minh Nguyễn
51cd97861c [ios] Announce zoom level, visible annotations after zooming
Announce the zoom level and number of visible annotations after zooming using VoiceOver’s swipe up or swipe down gesture.

Works toward #4821.
2016-04-26 16:47:04 -07:00
Minh Nguyễn
193a843013 [ios] Fixed ℹ️, user dot accessibility
The user location annotation view is created lazily, so if the user dot isn’t within view at launch, it doesn’t exist by the time UIKit first queries MGLMapView for child accessibility elements. This caused console spew about missing accessibility elements and prevented the ℹ️ from being visible to XCUITest.
2016-04-26 14:19:05 -07:00
Minh Nguyễn
d9a2a845de [ios] Added accessibility labels, hints, gestures
Fixed an issue where the “return to map” accessibility element lacked a label. Always update the title and subtitle of an annotation accessibility element, in case the title or subtitle changes from one showing to the next.

Added a hint for annotations. Use declarative rather than imperative for hints.

Marked the map view and its annotations as adjustable so that swiping up and down with VoiceOver zooms out and in, respectively.

Added accessibility values to toolbar buttons in iosapp.
2016-04-25 00:24:35 -07:00
Minh Nguyễn
893a777a2f [ios] Made compass and user dot accessible
Made the compass behave like a button when visible. Added accessibility values and hints. The compass’s accessibility value uses the compass direction formatter. Turned off direct interaction with the map because it obscures the ornaments.

The user dot now reports the current coordinates. Its accessibility label now reflects its annotation’s title instead of the hardcoded label “User location”. (It’d be weird to address the VoiceOver user as “user”.)
2016-04-25 00:16:28 -07:00
Minh Nguyễn
95613bd7dd [ios, osx] Made OS X SDK localizable
Replaced the iOS-specific ilocalize make rule with a genstrings make rule that creates iOS, OS X, and shared strings files. Moved the override English .stringsdict file under darwin/resources/. Made the default OS X callout view XIB localizable. Made some hard-coded strings in the OS X SDK source localizable.
2016-04-24 16:18:23 -07:00
Minh Nguyễn
7a1d62dc30 [ios, osx] Corrected quarter wind abbreviations 2016-04-24 16:18:23 -07:00
Minh Nguyễn
f1200d47db [ios, osx] Made localizable strings unique; unlocalized iosapp
Assigned unique IDs to localizable English strings in code.

Made iosapp non-localizable. For the time being, it isn’t worth the trouble to localize more strings for this demo application than for the SDK itself.
2016-04-24 16:17:43 -07:00
Minh Nguyễn
e4752912da [ios, osx] Corrected clock, coordinate formats
Long unit style isn’t intended to be spelled out, so the clock and coordinate direction formatters now use numerals for long unit style, differing from medium unit style in less drastic ways. The locale no longer needs to be exposed, since it’ll always match the overall string’s locale. Added support to the coordinate formatter for different unit styles. Made minutes and seconds of arc optional.

Maintain strings for darwin/ formatter classes in a separate Foundation strings table that can be shared between the iOS and OS X SDKs. Added an English .stringsdict override that correctly pluralizes units.

Capitalize osxapp window titles, now that they spell out the directions.
2016-04-24 16:13:54 -07:00
Minh Nguyễn
6c9ca4be50 [ios] Made SDK and iosapp localizable
Made storyboards and strings throughout the SDK and iosapp localizable. Replaced the compass image with an unlabeled image. Draw a localizable string atop it at runtime.

Redefined NSLocalizedString() and NSLocalizedStringFromTable() macros to look at the SDK bundle rather than the main application bundle. This redefinition has no effect on the host application, because it’s in an internal header. That header must be included in all files that contain localizable strings. See NSBundle+MGLAdditions.h for a full explanation.

Added a make rule that runs genstrings and ensures UTF-8 output (since genstrings insists on UTF-16).

Use MGLCoordinateFormatter in iosapp for dropped pin callouts. Rely on subclasses of MGLPointAnnotation instead of annotation titles to distinguish between different kinds of point annotations.
2016-04-24 16:13:08 -07:00
Minh Nguyễn
d8c066ce0a [ios] Deleted redundant certificates
These certificates were copied to platform/default/resources/ in 4719b73ac7 but remained here, producing build warnings about duplicate build rules.
2016-02-24 12:24:08 -08:00
Leith Bade
717cbd32ad Update metrics test server SSL certificate 2015-10-21 10:04:11 -07:00
Nicki Dlugash
21b42eea44 [ios] [android] Add default marker sprites 2015-10-02 16:53:11 +10:00
Jason Wray
9c1c40b3e5 Add iOS resources README, reminder to minimize image sizes
Ref #2227
2015-09-02 13:17:53 -04:00
Jason Wray
4d5a4d27f1 Optimize bundled images' file sizes
Saves 8KB, because we care.
2015-09-01 13:38:52 -04:00
Brad Leege
d44450ac7b #1659 - Adding tile stream certificate and ssl pin check for test server. 2015-05-28 15:51:50 -07:00
Jason Wray
bffe53dd70 Antialias compass N text, shifted down 1px 2015-04-29 15:33:22 -04:00
Jason Wray
c7556987ca Antialias compass N text 2015-04-29 15:25:52 -04:00
Brad Leege
cde989093b #1307 - Adding digicert to sdks and ssl handshaking check 2015-04-27 12:22:05 -04:00
Brad Leege
736bdca81e #1306 - Renaming certificate to include geotrust name for easier tracking 2015-04-20 19:59:28 -05:00
Brad Leege
6f9bcd86af #1306 - Moving api_mapbox_com.der to iOS Resources directory so that it can be accessed via GL Framework 2015-04-20 19:47:24 -05:00
Minh Nguyễn
d1d4c007a2 Updated Mapbox DOG
Kept the 🐶 (Digital Onscreen Graphic) in the same location, so that the bottom edge of the baseline’s outline remains aligned with the bottom of the  ℹ︎⃝ graphic.

Fixes #90.
2015-03-24 10:29:05 -07:00