I deployed marmalade s3eKeyboard sample to iOS with Chinese language. The keyboard pops up when s3eKeyboardSetInt with S3E_KEYBOARD_GET_CHAR, but there is no Chinese character output whatever I input with Chinese input method. There is character output only in English or Number input method. The document says iphone-bundle-localisations should be set, but it make no different when set to 'zh' in deployments of MKB file.
Anyone had such problem or I missed something? Thank you.
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
Following Ray Wenderlich tutorial (https://www.raywenderlich.com/180356/ios-internationalization), the Localizable.strings is as following. Notice there is no Localizable.strings(Base)
But in some other tutorials, they would use Base instead of English, so did I in my project as follow.
My iPhone's preferred language order is English then Chinese and is currently set to English. But whenever I run the app, it goes to Chinese except when I explicitly edit scheme to ask Xcode to run it in English. Does that mean I should have Localizable.strings (English) instead of Localizable.strings (Base)?
Another question, I have Main.storyboard (Base) and Main.strings (Chinese (Simplified)) under Main.storyboard. But no matter what I do, the storyboard always shows up in Chinese version. What have I done wrong?
=== Update ===
I played around with it (simply remove and recreate, nothing changed), and then magically the localization works as expected: The app default to English, which is my system language, and switches to Chinese when I edit scheme. However, now my storyboard is stuck with (Base) version no matter what I do.
I am no expert on this, but as I understand the Base file is a fallback if your app doesn't have a Localizable.strings file for the user's device language.
So if you have English and Chinese as localization files, but your preferred languages are German and Japanese, the system will check the Base file for strings.
In your case you have Chinese and the base files. English is not found, so it takes the other preferred language (Chinese). Therefore the base strings are not used -- the app defaults to the Chinese localization.
To solve the problem, you need to make an English strings file in addition to your base strings.
I am currently developing an iOS app that works a lot with musical symbols. the symbols I would like to use are found on this page:
http://unicode-table.com/en/blocks/musical-symbols/
I am trying out a few examples like assigning the text directly to the label. So this is what I see in Xcode's interface builder:
And this is what I see in the simulator:
I also tried assigning it programatically (Swift code):
label.text = "\u{1D15D}"
But no luck that way either. However, if I send this to the console with println() the note character is correctly printed in the console.
Just in case I tried with a few system fonts and the result was the same (Default, Arial, Verdana and Times New Roman)
So my question/questions would be: Am I doing something wrong? Are these characters not supported by iOS' interface elements like UILabels? Or maybe the problem is in the font?
I would appreciate some help here :) let me know if you need more information than what I provided here.
This is a problem with the font. Very few fonts contain the musical symbols of Unicode. The “UFO” symbols that you see are probably generic symbols for “strange” characters not present in the font. You may need to find a suitable free font and try to bundle it with your application.
A few fonts contain at least some of the musical symbols. The most commonly known of them, FreeSerif, Quivira, and Symbola are listed (with samples) at the Fileformat.info site on page MUSICAL SYMBOL WHOLE NOTE (U+1D15D) Font Support. There is also the Musica font downloadable from the page Unicode Fonts for Ancient Scripts. (The common musical symbols aren’t that ancient, but the font contains also Byzantine musical symbols.)
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.)
I've localized my application in several languages and they all work fine except, I don't know how to test in Chinese. I have made all my .xib files zh for Chinese Simplified but don't know where Chinese is on the iPhone Language settings. I can't tell the difference between Chinese, Korean, Japanese or any other similar far eastern languages therefore, I can't set my simulator or iPhone accordingly to test it. Is there someone who can guide me to the appropriate language setting on the iPhone please?
If you are asking which is which:
繁體中文 - Chinese (Traditional)
简体中文 - Chinese (Simplified)
日本語 - Japanese
한국어 - Korean
iPhone apps already use UTF-8 by default which is a multi-byte character encoding for UNICODE.
See a nice explanation of this type of encoding here.
To Eric.
"한국의 - Korean ", It is wrong.
한국'어' is right, not 한국'의'.