EddyVerbruggen / Calendar-PhoneGap-Plugin

:date: Cordova plugin to Create, Change, Delete and Find Events in the native Calendar
773 stars 402 forks source link

UI Localization #249

Open mrbubbaz opened 8 years ago

mrbubbaz commented 8 years ago

Is it possible to localize the UI according to the user language on iOS?

etienneCharignon commented 8 years ago

I'm having the same problem. Apparently, this has to be done in the generated xCode project. See: http://stackoverflow.com/questions/12424859/ekeventeditviewcontroller-localization

Zapmobilegames commented 8 years ago

Hello, I'm using Intel XDK with Cordova and I'm not able to act as suggested above. Is there an option to set the localized UI foreseen in iOS? In Android we got no issues like this.

EddyVerbruggen commented 8 years ago

Hi all,

This is about createEventInteractively/createEventInteractivelyWithOptions, right? That link @etienneCharignon posted gave me a clue: if you add those localizations to the plist you can support other languages as well. When that's been added your app (this plugin) will pick up the current system language and (if supported in the plist) will show the user's language.

I can make the plugin add those languages but I'm not sure about the repercussions of adding those. So let's try this: I've added English, Dutch, Italian, French and German to the plugin.

Please grab the latest version from this Github's master branch (the default) and let me know what happens. Also very curious if you need to do anything additionally when uploading the app to Apple.

Here's a few screenshots of this feature in action.

Config (will be done by the plugin, don't worry about it):

screen shot 2016-04-11 at 19 42 49

When changing the system language the Calendar UI updates as well:

simulator screen shot 11 apr 2016 19 41 29

simulator screen shot 11 apr 2016 19 42 07

simulator screen shot 11 apr 2016 19 42 48

pcsantana commented 6 years ago

Could you please add "pt-BR" to the plugin localization array? Thank you!

EddyVerbruggen commented 6 years ago

@pcsantana A little PR is welcome.

pcsantana commented 6 years ago

Done! :)

457

kiozer001 commented 2 years ago

@EddyVerbruggen could you please add Spanish to the plugin localization array ? Thanks!!