Add: German localized messages
Fix: typo
MODIFY
plugin.xml
plugin.xml
@@ -246,8 +246,11 @@ The native map view is faster, use less network usage, display 3D views, and eve
<framework src="com.android.support:support-core-utils:$ANDROID_SUPPORT_V4_VERSION" />
+ <!-- Base messages -->
<resource-file src="src/android/res/values/pgm_strings.xml" target="res/values/pgm_strings.xml" />
+ <!-- localized messages for Japanese -->
<resource-file src="src/android/res/values-ja/pgm_strings.xml" target="res/values-ja/pgm_strings.xml" />
+ <!-- localized messages for Portuguese -->
<resource-file src="src/android/res/values-pt/pgm_strings.xml" target="res/values-pt/pgm_strings.xml" />
</platform>
@@ -374,9 +377,15 @@ The native map view is faster, use less network usage, display 3D views, and eve
<string>pt</string>
</array>
</config-file>
+
+ <!-- Base messages -->
<resource-file src="src/ios/strings/Base.lproj/pgm_Localizable.strings" target="Base.lproj/pgm_Localizable.strings" />
+ <!-- localized messages for Japanese -->
<resource-file src="src/ios/strings/ja.lproj/pgm_Localizable.strings" target="ja.lproj/pgm_Localizable.strings" />
+ <!-- localized messages for Portuguese -->
<resource-file src="src/ios/strings/pt.lproj/pgm_Localizable.strings" target="pt.lproj/pgm_Localizable.strings" />
+ <!-- localized messages for German -->
+ <resource-file src="src/ios/strings/de.lproj/pgm_Localizable.strings" target="de.lproj/pgm_Localizable.strings" />
<config-file target="*-Info.plist" parent="Google Maps API Key">
<string>$API_KEY_FOR_IOS</string>

MODIFY
src/ios/GoogleMaps/PluginLocationService.m
src/ios/GoogleMaps/PluginLocationService.m
// kCLAuthorizationStatusDenied
// kCLAuthorizationStatusRestricted
//----------------------------------------------------
- NSString *LOCAITON_IS_UNAVAILABLE_ERROR_TITLE = PGM_LOCALIZATION(@"LOCAITON_IS_UNAVAILABLE_ERROR_TITLE", nil);
- NSString *LOCAITON_IS_UNAVAILABLE_ERROR_MESSAGE = PGM_LOCALIZATION(@"LOCAITON_IS_UNAVAILABLE_ERROR_MESSAGE", nil);
- UIAlertController* alert = [UIAlertController alertControllerWithTitle:LOCAITON_IS_UNAVAILABLE_ERROR_TITLE
- message:LOCAITON_IS_UNAVAILABLE_ERROR_MESSAGE
+ NSString *LOCATION_IS_UNAVAILABLE_ERROR_TITLE = PGM_LOCALIZATION(@"LOCATION_IS_UNAVAILABLE_ERROR_TITLE", nil);
+ NSString *LOCATION_IS_UNAVAILABLE_ERROR_MESSAGE = PGM_LOCALIZATION(@"LOCATION_IS_UNAVAILABLE_ERROR_MESSAGE", nil);
+ UIAlertController* alert = [UIAlertController alertControllerWithTitle:LOCATION_IS_UNAVAILABLE_ERROR_TITLE
+ message:LOCATION_IS_UNAVAILABLE_ERROR_MESSAGE
preferredStyle:UIAlertControllerStyleAlert];
NSString *closeBtnLabel = PGM_LOCALIZATION(@"CLOSE_BUTTON", nil);
handler:^(UIAlertAction* action)
{
NSString *error_code = @"service_denied";
- NSString *error_message = PGM_LOCALIZATION(@"LOCAITON_IS_DENIED_MESSAGE", nil);
+ NSString *error_message = PGM_LOCALIZATION(@"LOCATION_IS_DENIED_MESSAGE", nil);
NSMutableDictionary *json = [NSMutableDictionary dictionary];
[json setObject:[NSNumber numberWithBool:NO] forKey:@"status"];

MODIFY
src/ios/strings/Base.lproj/pgm_Localizable.strings
src/ios/strings/Base.lproj/pgm_Localizable.strings
/*
* PluginLocationService.m
*/
-"LOCAITON_IS_UNAVAILABLE_ERROR_TITLE" = "Location Service is not available";
-"LOCAITON_IS_UNAVAILABLE_ERROR_MESSAGE" = "This app needs to access your location. Please turn on 'Settings > Privacy > Location Services'";
+"LOCATION_IS_UNAVAILABLE_ERROR_TITLE" = "Location Service is not available";
+"LOCATION_IS_UNAVAILABLE_ERROR_MESSAGE" = "This app needs to access your location. Please turn on 'Settings > Privacy > Location Services'";
-"LOCAITON_IS_DENIED_MESSAGE" = "This app has rejected to use Location Services.";
+"LOCATION_IS_DENIED_MESSAGE" = "This app has rejected to use Location Services.";
"CAN_NOT_GET_LOCATION_MESSAGE" = "Cannot get your location.";
"LOCATION_REJECTED_BY_USER_MESSAGE" = "Location service is rejected by user.";

Add: German localized messages
Fix: typo