CFBundleDevelopmentRegion not working - ios7

I've added several localizations to my app.
English
Japanese
zh-hans
zh-hant
and I set value "English" in the key CFBundleDevelopmentRegion at info.plist file.
When download app on iOS7 and I change system language from Japanese
to other language (ex. korea), my app show me Japanese.
Another, When change from zh-hans to other language,
my app show me Japanese.
It is not expected and It happen only iOS7.
How to set default language on iOS7 ?

Related

expo-image-picker translate buttons on iOS

I need to change the text (translate to my language) when the user choose to take a photo from camera on iOS. I didn't find anything in docs. On android the buttons appear with the language configured on the device, but on iPhone the text of the buttons always appears in English. I would like to be able to change the language of these buttons
I had the same problem and found a solution on a Github issue.
You can fix it by setting the CFBundleDevelopmentRegion to the language of your app in the app.json config:
"expo":{
...
"ios":{
"infoPlist":{
"CFBundleDevelopmentRegion":"de"
}
}
}
The property accepts any two-letter ISO 639-1 language code (like "en", "de" or "ja") or a three-letter ISO 639-2 code.

Using international characters in React Native

I have the following international text in my react native app:
<Text>ᚘᚘᚘ</Text>
However, a blank line is displayed to my screen where the text should go. I have tried for other international characters as well and it is the same result.
I am using notepad++ and making sure that encoding is set to UTF-8. If I use console.log("ᚘᚘᚘ") it displays to the console just fine. Do I specifically need to embed a particular unicode font in my React Native project for it to work correctly? Or what should I be doing so that it displays my text correctly?
On further investigation I am using a Samsung Galaxy S2 for testing purposes. It does not seem to handle unicode characters in all applications, so I think my app will not work in older devices unless I specifically embed a Unicode font. Am I correct in my thinking?
The only solution I found to this was to add a custom font. This link explains how to use a custom font: https://blog.bam.tech/developper-news/add-a-custom-font-to-your-react-native-app . The font I used is called GNU FreeFont located here: https://www.gnu.org/software/freefont/

iTunes app name taken

The name of my iOS app is already taken for English US.
I've noticed that I am able to use the name that I would like to if I make the default language English UK or English CA instead of English US.
Will setting the default language to English UK or English CA, and not having an English US langauge not allow the app to be visible in the US? Are there any other workarounds that I could use to make it so I could use the app name that I would like to for the US app store?
As an option, you can use some long app name as iTunesConnect name e.g. ("Documents 5 - Fast PDF reader, media player and download manager", "Lifesum - Join the health movement").
This name is used on the app store page and defined on iTunesConnect when you upload the app.
The name of your binary is in your Project Setting (Bundle display name) and there you can use shorter name of your app (refering to previous example will be: "Documents" and "Lifesum").
If you could use English UK or CA instead of US in order to achieve desired name of your App then go for it. Your app will not be invisible from US App Store. Until and unless you restrict your app visibility from some countries which obviously you shouldn't do when configuring your App for submission.
For submission details see below links:
Publishing to the App Store
Build and Publish Your iOS App to the App Store
How To Submit an iOS App to the App Store

iOS7 app locale won't show Chinese app name and splash screens

An already existing iOS app of a client is now being localized for various languages.
I localized the storyboard, InfoPlist.strings, Localizable.strings, splash screens and icons.
For the English, Spanish and Dutch languages the app name gets translated, as well the settings screen.
However, for the Chinese languages (both Traditional and Simplified) the name of the app (as being displayed below the app icon and in settings) remains what is set by the base localize InfoPlist.strings The splash screens also won't change
Everything else (Storyboard, translating strings through code) gets translated as normally.
For the testing of the translations the simulator is being used.
This is in my InfoPlist.strings file for Chinese Simplified:
"CFBundleDisplayName" = "Simplified";
The file is located in zh-Hans-CN.lproj
For the Traditional InfoPlist.strings file the content is similar, and the location is zh-Hant-TW.lproj
Both files were auto generated by Xcode 5.1
In the same directory the Localizable.strings are also present, and those files get loaded correctly.
Any suggestions?
You should localize for the general Chinese languages zh-Hans.lproj and zh-Hant.lproj not the special Chinese Simplified (China) and Chinese Traditional (Taiwan)

Custom font on iOS7 app which supports iOS 6

I have made an app which has several custom fonts, but i'm struggling to make it work on ios6 devices, i have added them in myApp-Info.plist and it works without any problem on labels and buttons and everywhere except uiwebviews in ios7 , but in ios 6 it looks like the default font in everywhere and there is no change throughout the whole app in fonts. After searching couple of weeks, still haven't find any answer that would work.
Here is my code for assigning a font to label :
titleLable.font=[UIFont fontWithName:#"B Yekan" size:17];
I just encountered this problem, also, and found that in iOS 7, font names aren't case-sensitive; i.e., I was trying to use "ChunkFive-Roman", which worked in iOS 7 even though my code said "Chunkfive-Roman".
However, this doesn't work in iOS 6... I was getting the default font instead. Changing the font name to "ChunkFive-Roman" fixed it so that that the text was appearing correctly in both. (Note -- was using Simulator in both cases).
You have to follow the rules in this link, once you do it there u go..
Add your custom font into your project , i.e. Dragged the font's ttf file (CALIBRIZ_0.TTF) into your resource folder from finder and check the "copy file to project folder" option. )
Edit Info.plist: Add a new entry with the key Fonts provided by application.
For each of your files, add the file name to this array (Fonts provided by application)
Now set font to your label:
MyLabel.font = [UIFont fontWithName:#"Calibri" size:16];
http://blog.builtwithlogic.com/post/73503283890/installing-custom-fonts-on-iphone-and-ipad-ios-devices
Covers how to add fonts - Little confused though by your question you specifically mention iOS6 as the problem and UIWebView - Be interested to know what you mean by that piece?
Have you tried setting the fonts using UIAppearance ? or are you subclassing and amending the fonts as it could be that you've not done it right there. Could you supply some code showing how you setting you custom fonts throughout the app?
If you haven't already I'd ensure you've followed the steps in that email and then add a custom category to UIFont to pass back a specific font. If you haven't already done so I would also set the fonts in UIAppearance for your labels, Titles etc this is the cleanest and most efficient way to do it throughout your application as you only need set it one and you can set differently based on how a for example Label is presented -in a tableview in a navigation bar etc.
here's a link to the official docs
https://developer.apple.com/library/ios/documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html
Appreciate this question is old but love to know if that helps.
I had a similar problem where the custom font would work in iOS7, but not iOS6.
The solution for me was to use the true font name not the filename.
To do this check the font name as shown in OSX's FontBook.
iOS7 allowed me to use the the filename (less the .ttf suffix), but iOS6 wanted the true font name as shown in FontBook.
For example for a font named CustomFont.ttf .....
I followed all the steps listed by others here to add the font to my app, but then used it by referencing it as #"CustomFont".
When I added the font to my mac and looked at it in FontBook (mac utility), it was actually named #"Custom font" - with a space and a lower case letter.
Hopefully this helps someone else out there :-)
iOS 6 cannot do custom fonts. That is a new feature only available in iOS 7.