How can I implement iOS with RTL for Arabic Hebrew?












7















I'm developing an application on Xcode 5 target iOS 7.1 with single view having only two items image and label on it, the Auto layout is enabled and the constraint is set using 'add missing constraint' with trailing and leading attributes.



According to Apple site below, this component should flip when I change to Arabic language with no more modification in the code, only with the help of the Auto layout, but this did not work
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010853-CH13-SW1



I search for other member question here and found that other saying that I should implement different storyboard for each language like what is mentioned in that link
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/BPInternational.html#//apple_ref/doc/uid/10000171-SW1



In my main storyboard I can found under localization only Base and english, how to add Hebrew and Arabic?



I found the below questions but they do not add much support:
Multi Language Design support in IOS
Right to left and left to right languages in the same app?





Flip UIImageViews for Right to Left Languages





iOS : How to build a bi-language iOS native application





Using Constraints in Auto Layouts of Objective C to support RTL Languages





RTL (Right-to-left) via auto layout broken on iOS 6.1 / iOS 7.0?





Right to Left UI in iPhone (Hebrew)





This link is similar to my implementation but it did not work with me like that one
AutoLayout + RTL + UILabel text alignment













share|improve this question

























  • When you say "it does not work", what do you mean exactly? Is the text written left-to-right? If so, does the text have the RTL mark? Does that label not have the right size? Is it positioned wrong? Please be more specific. A short code example would also be a good idea (edit your question and add a string that is displayed "wrong").

    – DarkDust
    May 29 '14 at 15:53











  • when I say "it does not work" I mean that the screen is not mirrored, it does not flip, the layout of the component does not effect by the change of the language.

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:54











  • I have also add a storyboard for Hebrew and Arabic, but it is still the same result, the layout does not flip or mirrored when change the language

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:56
















7















I'm developing an application on Xcode 5 target iOS 7.1 with single view having only two items image and label on it, the Auto layout is enabled and the constraint is set using 'add missing constraint' with trailing and leading attributes.



According to Apple site below, this component should flip when I change to Arabic language with no more modification in the code, only with the help of the Auto layout, but this did not work
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010853-CH13-SW1



I search for other member question here and found that other saying that I should implement different storyboard for each language like what is mentioned in that link
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/BPInternational.html#//apple_ref/doc/uid/10000171-SW1



In my main storyboard I can found under localization only Base and english, how to add Hebrew and Arabic?



I found the below questions but they do not add much support:
Multi Language Design support in IOS
Right to left and left to right languages in the same app?





Flip UIImageViews for Right to Left Languages





iOS : How to build a bi-language iOS native application





Using Constraints in Auto Layouts of Objective C to support RTL Languages





RTL (Right-to-left) via auto layout broken on iOS 6.1 / iOS 7.0?





Right to Left UI in iPhone (Hebrew)





This link is similar to my implementation but it did not work with me like that one
AutoLayout + RTL + UILabel text alignment













share|improve this question

























  • When you say "it does not work", what do you mean exactly? Is the text written left-to-right? If so, does the text have the RTL mark? Does that label not have the right size? Is it positioned wrong? Please be more specific. A short code example would also be a good idea (edit your question and add a string that is displayed "wrong").

    – DarkDust
    May 29 '14 at 15:53











  • when I say "it does not work" I mean that the screen is not mirrored, it does not flip, the layout of the component does not effect by the change of the language.

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:54











  • I have also add a storyboard for Hebrew and Arabic, but it is still the same result, the layout does not flip or mirrored when change the language

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:56














7












7








7


2






I'm developing an application on Xcode 5 target iOS 7.1 with single view having only two items image and label on it, the Auto layout is enabled and the constraint is set using 'add missing constraint' with trailing and leading attributes.



According to Apple site below, this component should flip when I change to Arabic language with no more modification in the code, only with the help of the Auto layout, but this did not work
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010853-CH13-SW1



I search for other member question here and found that other saying that I should implement different storyboard for each language like what is mentioned in that link
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/BPInternational.html#//apple_ref/doc/uid/10000171-SW1



In my main storyboard I can found under localization only Base and english, how to add Hebrew and Arabic?



I found the below questions but they do not add much support:
Multi Language Design support in IOS
Right to left and left to right languages in the same app?





Flip UIImageViews for Right to Left Languages





iOS : How to build a bi-language iOS native application





Using Constraints in Auto Layouts of Objective C to support RTL Languages





RTL (Right-to-left) via auto layout broken on iOS 6.1 / iOS 7.0?





Right to Left UI in iPhone (Hebrew)





This link is similar to my implementation but it did not work with me like that one
AutoLayout + RTL + UILabel text alignment













share|improve this question
















I'm developing an application on Xcode 5 target iOS 7.1 with single view having only two items image and label on it, the Auto layout is enabled and the constraint is set using 'add missing constraint' with trailing and leading attributes.



According to Apple site below, this component should flip when I change to Arabic language with no more modification in the code, only with the help of the Auto layout, but this did not work
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010853-CH13-SW1



I search for other member question here and found that other saying that I should implement different storyboard for each language like what is mentioned in that link
https://developer.apple.com/library/ios/documentation/MacOSX/Conceptual/BPInternational/BPInternational.html#//apple_ref/doc/uid/10000171-SW1



In my main storyboard I can found under localization only Base and english, how to add Hebrew and Arabic?



I found the below questions but they do not add much support:
Multi Language Design support in IOS
Right to left and left to right languages in the same app?





Flip UIImageViews for Right to Left Languages





iOS : How to build a bi-language iOS native application





Using Constraints in Auto Layouts of Objective C to support RTL Languages





RTL (Right-to-left) via auto layout broken on iOS 6.1 / iOS 7.0?





Right to Left UI in iPhone (Hebrew)





This link is similar to my implementation but it did not work with me like that one
AutoLayout + RTL + UILabel text alignment










ios arabic right-to-left hebrew






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 '17 at 12:00









Community

11




11










asked May 6 '14 at 14:28









Mahmoud IbrahimMahmoud Ibrahim

44113




44113













  • When you say "it does not work", what do you mean exactly? Is the text written left-to-right? If so, does the text have the RTL mark? Does that label not have the right size? Is it positioned wrong? Please be more specific. A short code example would also be a good idea (edit your question and add a string that is displayed "wrong").

    – DarkDust
    May 29 '14 at 15:53











  • when I say "it does not work" I mean that the screen is not mirrored, it does not flip, the layout of the component does not effect by the change of the language.

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:54











  • I have also add a storyboard for Hebrew and Arabic, but it is still the same result, the layout does not flip or mirrored when change the language

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:56



















  • When you say "it does not work", what do you mean exactly? Is the text written left-to-right? If so, does the text have the RTL mark? Does that label not have the right size? Is it positioned wrong? Please be more specific. A short code example would also be a good idea (edit your question and add a string that is displayed "wrong").

    – DarkDust
    May 29 '14 at 15:53











  • when I say "it does not work" I mean that the screen is not mirrored, it does not flip, the layout of the component does not effect by the change of the language.

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:54











  • I have also add a storyboard for Hebrew and Arabic, but it is still the same result, the layout does not flip or mirrored when change the language

    – Mahmoud Ibrahim
    Jul 10 '14 at 11:56

















When you say "it does not work", what do you mean exactly? Is the text written left-to-right? If so, does the text have the RTL mark? Does that label not have the right size? Is it positioned wrong? Please be more specific. A short code example would also be a good idea (edit your question and add a string that is displayed "wrong").

– DarkDust
May 29 '14 at 15:53





When you say "it does not work", what do you mean exactly? Is the text written left-to-right? If so, does the text have the RTL mark? Does that label not have the right size? Is it positioned wrong? Please be more specific. A short code example would also be a good idea (edit your question and add a string that is displayed "wrong").

– DarkDust
May 29 '14 at 15:53













when I say "it does not work" I mean that the screen is not mirrored, it does not flip, the layout of the component does not effect by the change of the language.

– Mahmoud Ibrahim
Jul 10 '14 at 11:54





when I say "it does not work" I mean that the screen is not mirrored, it does not flip, the layout of the component does not effect by the change of the language.

– Mahmoud Ibrahim
Jul 10 '14 at 11:54













I have also add a storyboard for Hebrew and Arabic, but it is still the same result, the layout does not flip or mirrored when change the language

– Mahmoud Ibrahim
Jul 10 '14 at 11:56





I have also add a storyboard for Hebrew and Arabic, but it is still the same result, the layout does not flip or mirrored when change the language

– Mahmoud Ibrahim
Jul 10 '14 at 11:56












3 Answers
3






active

oldest

votes


















2














Little late to the party, but iOS 9 has a lot of these things built-in for free.



As of iOS 9, standard UIKit controls are flipped automatically in right-to-left languages (such as UITabBar, UINavigationBar, UITableView etc.), which in conjunction with Auto Layout can make your app 'just work' on RTL.



iOS 9 also has API for flipping images that are directionally-tied, among a few other things.



More info here: https://developer.apple.com/library/prerelease/ios/documentation/MacOSX/Conceptual/BPInternational/SupportingRight-To-LeftLanguages/SupportingRight-To-LeftLanguages.html#//apple_ref/doc/uid/10000171i-CH17






share|improve this answer































    0














    I have followed the instruction in this link to get this work, it is now working
    In addition to using the constraints of the auto layout.






    share|improve this answer

































      0














      The best and the simplest way to enable RTL language support in your application is by defining constraints (Auto layout) rather than defining frames and bounds.



      You can follow the link to kick-start auto layout implementation:
      Autolayout documentation by Apple






      share|improve this answer


























      • The link you shared is not active any more please update it or remove it with more details explaining your answer.

        – rptwsthi
        Sep 5 '18 at 7:27













      • Have updated the link. Thanks for pointing this out.

        – Anu Mittal
        Nov 22 '18 at 4:04











      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23497553%2fhow-can-i-implement-ios-with-rtl-for-arabic-hebrew%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      Little late to the party, but iOS 9 has a lot of these things built-in for free.



      As of iOS 9, standard UIKit controls are flipped automatically in right-to-left languages (such as UITabBar, UINavigationBar, UITableView etc.), which in conjunction with Auto Layout can make your app 'just work' on RTL.



      iOS 9 also has API for flipping images that are directionally-tied, among a few other things.



      More info here: https://developer.apple.com/library/prerelease/ios/documentation/MacOSX/Conceptual/BPInternational/SupportingRight-To-LeftLanguages/SupportingRight-To-LeftLanguages.html#//apple_ref/doc/uid/10000171i-CH17






      share|improve this answer




























        2














        Little late to the party, but iOS 9 has a lot of these things built-in for free.



        As of iOS 9, standard UIKit controls are flipped automatically in right-to-left languages (such as UITabBar, UINavigationBar, UITableView etc.), which in conjunction with Auto Layout can make your app 'just work' on RTL.



        iOS 9 also has API for flipping images that are directionally-tied, among a few other things.



        More info here: https://developer.apple.com/library/prerelease/ios/documentation/MacOSX/Conceptual/BPInternational/SupportingRight-To-LeftLanguages/SupportingRight-To-LeftLanguages.html#//apple_ref/doc/uid/10000171i-CH17






        share|improve this answer


























          2












          2








          2







          Little late to the party, but iOS 9 has a lot of these things built-in for free.



          As of iOS 9, standard UIKit controls are flipped automatically in right-to-left languages (such as UITabBar, UINavigationBar, UITableView etc.), which in conjunction with Auto Layout can make your app 'just work' on RTL.



          iOS 9 also has API for flipping images that are directionally-tied, among a few other things.



          More info here: https://developer.apple.com/library/prerelease/ios/documentation/MacOSX/Conceptual/BPInternational/SupportingRight-To-LeftLanguages/SupportingRight-To-LeftLanguages.html#//apple_ref/doc/uid/10000171i-CH17






          share|improve this answer













          Little late to the party, but iOS 9 has a lot of these things built-in for free.



          As of iOS 9, standard UIKit controls are flipped automatically in right-to-left languages (such as UITabBar, UINavigationBar, UITableView etc.), which in conjunction with Auto Layout can make your app 'just work' on RTL.



          iOS 9 also has API for flipping images that are directionally-tied, among a few other things.



          More info here: https://developer.apple.com/library/prerelease/ios/documentation/MacOSX/Conceptual/BPInternational/SupportingRight-To-LeftLanguages/SupportingRight-To-LeftLanguages.html#//apple_ref/doc/uid/10000171i-CH17







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 25 '15 at 22:09









          wakachamowakachamo

          1,1451816




          1,1451816

























              0














              I have followed the instruction in this link to get this work, it is now working
              In addition to using the constraints of the auto layout.






              share|improve this answer






























                0














                I have followed the instruction in this link to get this work, it is now working
                In addition to using the constraints of the auto layout.






                share|improve this answer




























                  0












                  0








                  0







                  I have followed the instruction in this link to get this work, it is now working
                  In addition to using the constraints of the auto layout.






                  share|improve this answer















                  I have followed the instruction in this link to get this work, it is now working
                  In addition to using the constraints of the auto layout.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 3 '14 at 16:18









                  888

                  1,84763054




                  1,84763054










                  answered Aug 3 '14 at 15:40









                  Mahmoud IbrahimMahmoud Ibrahim

                  44113




                  44113























                      0














                      The best and the simplest way to enable RTL language support in your application is by defining constraints (Auto layout) rather than defining frames and bounds.



                      You can follow the link to kick-start auto layout implementation:
                      Autolayout documentation by Apple






                      share|improve this answer


























                      • The link you shared is not active any more please update it or remove it with more details explaining your answer.

                        – rptwsthi
                        Sep 5 '18 at 7:27













                      • Have updated the link. Thanks for pointing this out.

                        – Anu Mittal
                        Nov 22 '18 at 4:04
















                      0














                      The best and the simplest way to enable RTL language support in your application is by defining constraints (Auto layout) rather than defining frames and bounds.



                      You can follow the link to kick-start auto layout implementation:
                      Autolayout documentation by Apple






                      share|improve this answer


























                      • The link you shared is not active any more please update it or remove it with more details explaining your answer.

                        – rptwsthi
                        Sep 5 '18 at 7:27













                      • Have updated the link. Thanks for pointing this out.

                        – Anu Mittal
                        Nov 22 '18 at 4:04














                      0












                      0








                      0







                      The best and the simplest way to enable RTL language support in your application is by defining constraints (Auto layout) rather than defining frames and bounds.



                      You can follow the link to kick-start auto layout implementation:
                      Autolayout documentation by Apple






                      share|improve this answer















                      The best and the simplest way to enable RTL language support in your application is by defining constraints (Auto layout) rather than defining frames and bounds.



                      You can follow the link to kick-start auto layout implementation:
                      Autolayout documentation by Apple







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Nov 22 '18 at 4:01

























                      answered May 8 '18 at 3:12









                      Anu MittalAnu Mittal

                      166




                      166













                      • The link you shared is not active any more please update it or remove it with more details explaining your answer.

                        – rptwsthi
                        Sep 5 '18 at 7:27













                      • Have updated the link. Thanks for pointing this out.

                        – Anu Mittal
                        Nov 22 '18 at 4:04



















                      • The link you shared is not active any more please update it or remove it with more details explaining your answer.

                        – rptwsthi
                        Sep 5 '18 at 7:27













                      • Have updated the link. Thanks for pointing this out.

                        – Anu Mittal
                        Nov 22 '18 at 4:04

















                      The link you shared is not active any more please update it or remove it with more details explaining your answer.

                      – rptwsthi
                      Sep 5 '18 at 7:27







                      The link you shared is not active any more please update it or remove it with more details explaining your answer.

                      – rptwsthi
                      Sep 5 '18 at 7:27















                      Have updated the link. Thanks for pointing this out.

                      – Anu Mittal
                      Nov 22 '18 at 4:04





                      Have updated the link. Thanks for pointing this out.

                      – Anu Mittal
                      Nov 22 '18 at 4:04


















                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23497553%2fhow-can-i-implement-ios-with-rtl-for-arabic-hebrew%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      RAC Tourist Trophy