Xcode 10 Arabic (RTL) storyboard not gets load - ios

I have multi-language enabled in my project. In previous Xcode versions, it was working perfectly fine but in new Xcode 10, Arabic storyboard is not being loaded.
instead of (Arabic storyboard) views, it's only loading/replacing the Arabic text in LTR(English storyboard) views.
I don't know if its due to the change in New Localization Pattern introduced in Xcode 10, XLIFF?
Or is it a bug in new Xcode?
I've also filed a bug report to Apple 44931689.

It's quite old, but I think the issue was related to the hardcoded language set in Project Scheme.
Go to Product -> Scheme -> Edit Schemes
OR beside simulator selection click on your project name and select Edit Scheme.
Select "Options" and check the app language, if it's other than "System Language" then this issue could occur.

Related

Localized Interface builder storyboard doesn't work in Xcode 10

After updated to Swift 4.2 I tested new app version on iPhone where is a main language is Russian. Region is also Russia, but app using English Interface builder storyboard (Base). Even I have Russian one.
I also have Localizable strings for UIAlertController.
And it works. I mean, when I use my app on my iPhone (Russian language. Region is Russia) then I see English Interface builder storyboard, but alerts on Russian.
I didn't set language in scheme.
I even created new project there made 2 languages. Same problem.
Help me please where is a problem. Why iOS doesn't wanna see necessary Interface builder storyboard
Just FYI. I had the same issue and I accidentially removed a semicolon in the Storyboard translation file.
Syntax errors in the Localizeable.strings will prevent Xcode from compiling, but NOT in in the storyboard . This will cause XCode to ignore this file and just skip this translation.
I'm facing the same issue, I have Chinese and English(Base) in my MacOS App. The App always showing the Base Storyboard in Xcode 10 while it displays correctly in Xcode 9.x.
In the Build Log View, zh-CN.lproj/Main.storyboard never shows up, that means Xcode 10 does not compile it at all.
Since I update to Xcode 10.1, the issue disappeared.
I think Apple have fixed it.

How to open Xcode 8 project's storyboard into Xcode 7 without any error?

This link is not use full for me : The document Main.storyboard requires Xcode 8.0 or later
It's possible to do this, but I would be wary about doing so. You can find information here: http://radex.io/xcode7-xcode8/
Go through all of your .xib and .storyboard files, open the right
sidebar, go to the first (File inspector) tab, and find the “Opens in”
setting.
It will most likely say “Default (7.0)”. Change it to “Xcode 7.0”.
This will ensure that even if you touch the file in Xcode 8, it will
only make changes that are backwards-compatible with Xcode 7.

Cannot localize images in Xcode 6.1

I was reading the iOS 8 series from RayWenderlich.com website.
I came to the localization and internationalization. Read every single bit of it but I could not succeed on localizing images. (I did localized strings with no errors :) )
Here is what I have done:
1- Created a project of Single View Application
2- Placed an UIImageView on the Sotryboard by drag and drop.
3- Added my image to my project (back.png).
4- Assigned my UIImageView to that image (back.png).
Now is the steps for localization:
1- Go to project navigator and select the project.
2- Under localization, "Use Base Internationalization" us checked by default.
3- I added Arabic language.
4- Localized Storyboard files and its .strings and my image (back.png)
I have two image files English and Arabic versions. Each file on its respective folder. See screenshot.
When I run my app on the simulator which has Arabic language installed and selected. My imageView still displays the English version of the image.
I tried to use ar_SA (Arabic, Saudi Arabia) but still same issue. My image is displayed in English.
I have my simulator reset, and I have deleted derived files form library/dev.../xcode... But my app does not care about the Arabic version of the image.
if you want to localize app according to system language it is not happen in iOS 8 because it is a bug.
you can be sure from this point by trying to run the code in the following link.
https://github.com/EmanRezk/Localize.git
change simulator language to arabic in
iphone5s (7.0) then run app you will see the arabic image.
iphone5s (8.1) then run app you will see the english image.
I advice you to localize app according to app language not the system language.

Certain fonts not working for UIButton in XCode

When visually editing my app using the Storyboard in XCode 6 (also available in XCode 5) I can change the font of UIButtons using the Attributes Inspector. I can change from "System - System" to "Custom" which allows me to change the Family. However, it appears only some families work, as when I try to select others such as "Iowan Old Style" the selection doesn't stick and it shows the previous font. Is this a bug or are fonts restricted in some way that I'm not aware of?
This is a bug in Beta 5. I've experienced the same issues and verified that they programmatically work just setting them via UIFont. This is also a regression since this was working in Beta 4.
Unfortunately, it looks like we're gonna just have to wait until the next beta release (beta 6) for a fix.

Tab disappears when changing language in iOS

One of the tabs in my UITabBar disappears when I change the language of my iOS Simulator to Norwegian. Why is this? I have created the app with Version 4.6.3 of XCode.
There could be a lot of reasons for this. You need to provide more information. How do you define your UITabBar? Are you using Storyboards or Nibs? Your Norwegian localized Storyboard / Nib might have only 1 tab defined while your English version might have three tabs.
I have found the problem.
When I tried to get my app translated I added my own languange in the Localizations section under Project-Info.
When I did this there was an extra .storyboard file created for the spesific language, so when I change the storyboard I had in xCode that did not change the second storyboard created for my language. I found my second storyboard in the directory of my app, and deleted it, and now everything works fine.
So, if your app is weird with one spesific language, it may have a spesific storyboard that does not change automatic.

Resources