media.show() and localization

Hi everybody,

Is there a way to translate labels when media.show is called ?
“Cancel”, “retake”, “use”, “preview”, etc

Thank you [import]uid: 3638 topic_id: 19699 reply_id: 319699[/import]

Solved :

This was my issue :

Solved with (exa in french)

build.settings
[lua]settings =
{
iphone =
{
plist =
{
CFBundleLocalizations =
{
“fr”
}
},
},
}[/lua] [import]uid: 3638 topic_id: 19699 reply_id: 76573[/import]

Hey @Sunny, thanks for sharing this info!

Very helpfull for me in this momment.

Just a question: You have only included the “fr” into the build.setting file and your app started to show in French language automatically, that`s all? :\
Thanks in advance.

Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19699 reply_id: 76633[/import]

Hi @Rodrigo,

Yep, that’s all ! It works also with localization in others native functions such as mapview…

But “CFBundleLocalizations” supports multiple languages see here for languages designations :

http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDesignations.html#//apple_ref/doc/uid/20002144-BBCEGGFF

[lua]CFBundleLocalizations =
{
“fr”,
“en”,
“es”
}[/lua]

Finally, doing this enable the right langage for you app on the app store. See this post for more info : http://developer.anscamobile.com/forum/2011/09/13/language-localization-foreign-language-apps-build-settings#comment-64043 [import]uid: 3638 topic_id: 19699 reply_id: 76680[/import]

Hi @Sunny ,

Hey, thank you so much for all this explanation, really! :slight_smile:

It helped a lot as I was going to start to look for this exactly subject as you`ve exposed here.

PS: I am only wondering that when you say: (It works also with localization in others native functions such as mapview…) you mean that setting the line (CFBundleLocalizations = ) into the build.setting file is sufficient to get our app “translated”/Localized automatically when using those API`s (as for media, mapview…). Sorry, but am I right? :\

Many thanks for sharing this info.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19699 reply_id: 76687[/import]