revMail with french interface

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
masterfab
Posts: 8
Joined: Fri Jan 13, 2012 10:32 am

revMail with french interface

Post by masterfab » Thu Mar 15, 2012 5:41 pm

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.
Last edited by masterfab on Fri Mar 16, 2012 9:12 am, edited 1 time in total.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revMail with french interface

Post by Mark » Thu Mar 15, 2012 7:59 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: revMail with french interface

Post by Dixie » Thu Mar 15, 2012 8:52 pm

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

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: revMail with french interface

Post by monte » Thu Mar 15, 2012 8:56 pm

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.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

masterfab
Posts: 8
Joined: Fri Jan 13, 2012 10:32 am

Re: revMail with french interface

Post by masterfab » Fri Mar 16, 2012 3:43 pm

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 ?

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: revMail with french interface

Post by monte » Sun Mar 18, 2012 8:41 pm

Create an empty folder called fr.lproj and then go to copy files in the standalone builder and add the folder.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

masterfab
Posts: 8
Joined: Fri Jan 13, 2012 10:32 am

Re: revMail with french interface

Post by masterfab » Mon Mar 19, 2012 11:37 am

It works perfectly !!!

Thank you very much monte !!

Best regards.

Post Reply