Page 1 of 1

revMail with french interface

Posted: Thu Mar 15, 2012 5:41 pm
by masterfab
Hello from Paris.

First, sorry for my bad English.
I would want if it is possible to create an email message with the revMail command and a french interface.
For the moment, when the keyboard appears, the interface is in English (Send, Cancel, To, Subject...) and the keyboard is QWERTY.

Re: revMail with french interface

Posted: Thu Mar 15, 2012 7:59 pm
by Mark
Hi,

I'm working on it. Meanwhile, you can download an external that detects the keyboard language. At least, you'll be able to warn the user if the keyboard is not French. The external can be downloaded from the private section of Economy-x-Talk's website and is only available after making a donation.

Kind regards,

Mark

Re: revMail with french interface

Posted: Thu Mar 15, 2012 8:52 pm
by Dixie
Hi...
Well I guess that if an Englishman is using his iPhone then the 'language' in the settings of the iphone will be 'British English', a Frenchman will have his settings set to "French'... and so for the rest of the different nationalities... so, why not use what liveCode has provided ? :-

-- Page 37 of the iOS Release Notes.
Locale and system language query support
You can query the list of preferred languages using the iphonePreferredLanguages() function.
This returns a return-delimited list of standard language tags in order of user preference (for
example "en", "fr", "de", etc.)
You can query the currently configured locale using the iphoneCurrentLocale() function. This
returns a standard locale tag (for example "en_GB", "en_US", "fr_FR", etc.)

-- Page 30 of the iOS Release Notes.
iphoneComposeMail subject, [ recipients, [ ccs, [ bccs, [ body, [ attachments ]]]]]

and then use the above command... and err... save yourself some money ! :D

be well

Dixie

Re: revMail with french interface

Posted: Thu Mar 15, 2012 8:56 pm
by monte
Have you tried including the localization folders in your app. Create empty folders for each language and include them in copy files. That should localize any standard iOS buttons.

Re: revMail with french interface

Posted: Fri Mar 16, 2012 3:43 pm
by masterfab
Thank you all !

Dixie : I can query preferred languages, I can query the currently configured locale, but unfortunately, I can't set the iphoneComposeMail command with it !
The result is exactly the same as the revMail command.
For example, if I cancel the mail, I have a list of choices in English : "Save draft", "Cancel Draft"...

Monte : I have not understand the hierarchy for your solution. Is it : root->localization->fr ?

Mark : Your solution applies only the keyboard and not the interface ?

Re: revMail with french interface

Posted: Sun Mar 18, 2012 8:41 pm
by monte
Create an empty folder called fr.lproj and then go to copy files in the standalone builder and add the folder.

Re: revMail with french interface

Posted: Mon Mar 19, 2012 11:37 am
by masterfab
It works perfectly !!!

Thank you very much monte !!

Best regards.