I have a problem with my Xcode, For example i'm gonna to NSLog #"سلام"; when i did writing it'll show NSLog #"مالس";. They are reveresed. I'm asking this for both Arabic and Persian!
tnx!
Actually its problem with Editor so change the Editor as in my case I opened file in TextEdit and wrote Arabic and Persian which worked correctly for me.
Related
I am having a strange bug where in iOS is picking up the second preferred language on the phone as the main language and showing the strings in that language. I use react-native and it started to happen after I upgraded to 0.64.0. For example, in the below screenshot, the month strings are shown in Hindi. Hindi is the second preferred language on the phone.
The Cancel and Select buttons are added by JS side code which appears fine in English language. After I removed Hindi as the second preferred language leaving only English as the phone language, the month string started to appear in Spanish.
I am not sure what is triggering it and how to fix this problem. Any kind of help is much appreciated. I provide Hindi and Spanish translations for the app and have InfoPlist.strings file present for Hindi and Spanish in the app. If I remove those string files, then the strings are shown in English as expected.
Please note that the problem is not limited to the date picker. It is for any of the dialogs shown by iOS. For example, if I select any text, the copy label appears in Spanish. I have attached some other screenshots where the problem can be seen.
Open the Settings app.
Navigate to a--name > Preferred Language > Language.
Change the preferred language to Spanish.
also try setting the preferred language to just English and forget the Hindi and let us know what happens. also good chance this might fix you up:https://github.com/formatjs/formatjs
I have a released IOS app using HighChart v. 7.2. I'm now trying to localize the app to Spanish and French etc. by localizing my Localizable.strings.
When I run the app on the iPhone simulator with the iPhone language is set to Spanish the Highchart does not render. French is ok. Some languages work but most does not. I have not changed any strings in the language-specific files so they are still all English.
Any hints are highly appreciated.
Sorry :-) Found the issue in my own code. I was passing a bad Moment format string in the tooltip formatter.
I have a problem with the localization of my app. I want to have french and english (default).
The localization seems to work with the Storyboard as text from there is translated to french (on simulator & iPhone in french). But the strings from Localizable.strings are not translated.
I checked the name of the file and it is correct "Localizable.strings". I validated the content of the files with "plutil -lint " and it was OK.
Checking the target->build phases->copy bundle resources: the Localizable.strings is there.
In the code I am using:
NSLocalizedString("KEY", comment: "")
Checking the NSLocale of the simulator, it seems as the preferred language is french, so I do not understand why it is not working.
Any idea?
Thanks,
Henry
You might be missing some settings in your scheme.
This tutorial on YouTube really helped me localize my last app. It's under 8 minutes. Hope it helps.
I fixed my issue. There was a mistake in my Localizable.strings. I had the following for one line:
"..."; = "...";
It would be good if there was a tool to validate this.
Thanks for the effort,
Bye
I faced same issue, but I found a mistake in Localizable.strings as user3900157.
I missed semicolon at the end. After added semicolon to all sentences, it worked.
Hope to help you.
I have got same issue in Xcode 12.5
My Issues: I worked with English and Arabic text. English text was working fine but not able to extract Arabic Text. Have tried all solutions.
My Solution 1:
Actually I had copied and pasted Arabic text from Google which caused issue in Xcode(Xcode was not able to read those texts.)
So I copied Arabic texts first in Notes App and then copied to Xcode.
My Solution 2:
I have tracked this issue after 4-5 afters.
I checked the texts which are working fine in Arabic and checked the last line from where texts are not working. So i found that Arabic text was pasted improperly. So I cut that text and copied to Notes App and copied from Notes App and pasted back to code.
And Boom It worked.
I am using "MSH-Quraan1" font for the Arabic text in my app. I have added the MSH-Quraan1.tff file in the project. Included it in the info.plist file as well. When I am loading Arabic text,i.e., with out numbers, the text is using the font. But when I load the text along with the numbers, the number are not converting, and it is displaying in English numericals.
I even tried localizing the numbers but nothing is happening. When localize the text it works, but not the numbers.
Please help.
Update
I think the ASCII character of Arabic numbers and English numbers are different due to which it is unable to recognize the characters.
I face issue sometime ago. Can you please look into this converter which will work smoothly in your scenario.
Try it if possilbe : https://github.com/Accorpa/Arabic-Converter-From-and-To-Arabic-Presentation-Forms-B
After using this library text and numeric numbers are working fine for me. If you find any issue using this library just contact me.
(Note : Your font file contains arabic numbers as well.)
Hi i dont seem to have a problem with doing localization it has worked fine in other apps, however this app is doing something quite funky.
It localizes fine to french , or other languages, but not the base language english in that regard the label is left empy any ideas why that could be the case?
Solved my own problem..lol
I had go to the main project window click on the minus sign remove english localization and then click + and add english , as it had not localized the storyboard for English, this i could see by how it had localized 2 files where the other languages had localized 3.