Multi Language Design support in IOS - ios

I want to develop ios app which support multi language, country wise.
So when app will supporting English language, its design should be left to right and when app will supporting arabic language for example then, design/text should be right to left.
So any body has any idea for this functionality? Or we need to manage it programmatically manage?
Thanks,
Hardik Shah

As Mike Weller mentioned in his comment, Autolayout should do this:
https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html#//apple_ref/doc/uid/TP40010853-CH1-SW1
"You don’t even have to specify new layout for languages like Hebrew and Arabic in which the left to right ordering of elements themselves should generally be reversed."
This question seems to have been answered a couple of time before, including here:
Right to left and left to right languages in the same app?
and here for determining which direction the language should be:
iOS: Determine if device language is Right to Left (RTL)

Related

How can I make Apple Shortcuts speak text in a different language than the one set for the device?

My iPad Pro is set to work in language x (let’s say, English).
I’m writing a Shortcut that’s supposed to speak text in language y (let’s say, Italian).
Shortcuts instead speaks the text in English. How can I get to make it speak the text in Italian?
If the device is set to work in Italian, of course, everything works.
Thanks in advance for the advice!
Use Speak action : you can choose any language you want :

How to user Right-To-Left for RTL languages like Arabic in iOS using swift?

I already looked through all of the similar questions at stack overflow. I am sorry if this is a duplicate. If it is, I will gladly delete this since I already have my answer.
I am developing an application in Swift that supports English and Arabic languages. I added AutoLayout constraints (leading and trailing, not left and right as pointed out by some answers). I have the strings localized.
The user has the option to change their language INSIDE the application. I am talking inside the application, not about the whole phone. He could have had his phone language be Arabic but chose English as his application language.
Can someone help me with how to proceed with that? Some answers pointed to use semanticContentAttribute by forcing it right to left, and some did not.
I want my application to be mirrored, all of it. It includes collectionViews, TableViews, etc ...
Example:

Mirror programming for uicontrols in xcode

I am new to multi-language app.
What I am doing is,
an app with two languages.
English & Arabic
The language of the app depends upon the device language.
(I want to change this too, that app language should be controlled from inside the app. not device dependant but thats next question)
I am having some controls like UIButton,UITextField,UILabel, etc....
When my app is in English I gave these controls frame starting from left corner of device, and when my app is in Arabic I gave them frames starting from Right corner of device. (As arabic is written from Right - to - left)
My Question is,
For this purpose I need to do extra work,
i.e. check device language and then set the frames of control.
on each view I may have "n" number of controls, and giving the frame sizes to all controls for both language doesn't seems good from my view.
Is there anything available in Xcode itself by using which I can do this.
means I need to give frames for default language (i.e. English) and if my device language is change to Arabic then frames of Controls will be automatically Mirrored from Right to left.
Following screens may give some idea.
(I used different frames for all those controls checking device language)
Any help is accepted.
Thanks in advance.
sorry If question is asked already. But I didn't find anything.
If anyone found then link to that is Welcome :)
From Supporting Right-to-Left Languages:
Your user interface should be mirrored when displaying right-to-left languages. If you use base internationalization and Auto Layout, most of the user interface will appear mirrored automatically for you. The text direction changes to right-to-left with the exception of phone numbers and country codes which are always left-to-right. Some views and controls in your user interface may not change direction automatically which you can fix programmatically.
They functionality you're looking for is called Auto Layout which was introduced a few years ago by Apple. It will handle lots of things you need, but there's also a lot to do for you. The guide above will guide you through the necessary steps.
Update from iOS 9.0:
iOS 9 brings comprehensive support for right-to-left languages, which makes it easier for you to provide a flipped user interface. For example:
Standard UIKit controls automatically flip in a right-to-left context.
UIView defines semantic content attributes that let you specify how particular views should appear in a right-to-left context.
UIImage adds the imageFlippedForRightToLeftLayoutDirection method, which makes it easy to flip an image programmatically when appropriate.
To learn more about providing a flipped user interface, see Supporting Right-to-Left Languages.

Right to left and left to right languages in the same app?

To my understanding apple doesn't allow 2 identical apps in diferrent languages on the appstore but what if one language is left to right and the other is right to left? That means diferrent menus, different positioning of items, different UI etc' (even the segues are different). Obviously i can't use regualr localization for this.
Is there a solution for that or I'm just going to write a very big app with a lot of "if user is using hebrew go to vc1 else go to vc2" ?
Consider Auto Layout feature of iOS 6.0.
https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html
"You don’t even have to specify new layout for languages like Hebrew and Arabic in which the left to right ordering of elements themselves should generally be reversed."

How to make constant UI in English and Arabic in Blackberry?

I am making one application which can support English and Arabic language. My almost all code is done but now i am facing one problem that ,when i run application setting English language it looks great,but for arabic my UI get distrubed because English language has left allignment and Arabic has right allignment by default....what to do now ??please any one have idea then please help me.....waiting for reply
If it's about right align UI elements - use the Field.RIGHT style to have your components right align. It is left aligned by default. If you are using a HorizontalFieldManager you will also want to set the style for the scroll direction to be LEFTWARD.
To set the style pass in these in the components constructor OR'ed, so:
new myField(Field.RIGHT | Manager.LEFTWARD);
Use the Locale object to determine which language is currently set and set the alignment based on it.
APPROACH: Using third party library
Have a look at Arabic and English.
LWUIT UI library is pretty easy to create a common UI for both left-to-right and right-to-left languages. It might sound an uphill task now but going forward you will need to
support multiple ODM's
multipe screen device resolution
multiple flavors of VM, etc
LWUIT library resolves all these problems and to top it the library source code is licensed under GPLv2 with the classpath exception. This essentially means you can use this library in your commercial projects. It is supports most mordern Blackberry OS's.

Resources