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

Solved :

This was my issue :

Solved with (exa in french)

build.settings

1
2
3
4
5
6
7
8
9
10
11
12
13
settings =
{
        iphone =
        {
                plist =
                {
                        CFBundleLocalizations = 
                        {
                                "fr"
                        }
                },
        },
}

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.

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

1
2
3
4
5
6
CFBundleLocalizations = 
                        {
                                "fr",
                                "en",
                                "es"
                        }

Hi @Sunny,

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

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.

views:1753 update:2012/1/3 13:02:13
corona forums © 2003-2011