I have localized my app. However, the storyboard text is failing in 1 instance. In Xcode, previewing the view controller for the required display language shows the correct text, and running on the simulator also works.
However, when running on a real device (with the same display language set), the non-localized text is shown (ie the localization lookup is failing).
This only happens for one particular piece of text, all the others appear correctly.
In the Main.strings file, all formatting for this failing bit of text is the same as the others.
Does anyone know why? Anyone know how to fix?
Thanks.
Related
I am having application name as "MYApplication" but it showing me as "MYApplica..." below app icon in mobile.
Now i want to show that fullname as application name, please give me any solution to fix this issue
Note : I have already set appname as "MYApplication" in info.plist (Bundle name)
Thank you.
This is an iOS limitation; not anything that you can control. Even the SE app is effected by this.
Just use a shorter name if you don't want it to be cut off.
The exact cut off point will likely depend on the resolution of the screen it's being displayed on though. If you're worried about how your app name will appear when cut off, you may want to play around with an emulator or something to see how it displays on different devices.
I seem to recall it being possible to effect how many characters are shown if your iPhone is jailbroken, but that only effects your phone obviously, not the phones of people who use your app.
Your app name is getting truncate trail.
You can keep max 13 or 14 characters only. Depending on character width. “I” takes less width while “B” makes much width. So think about appropriate name of app and set it. In iOS we can not keep 2 line app name like Android device has option.
I am trying to localize my iOS 8 Today center widget.
I have a storyboard specifically for the widget and hit the localize button and selected Spanish. The same way I localized the normal part of the app. As you can see here:
The files have the following settings with Target Membership set to my extension:
No matter what I try (using .strings or individual .storyboards for each language or even setting the NSLocalizedStrings through code), I cannot get the language to show up correctly localized in the notification center widget. Everything works as expected in the regular app. Anyone have any experience or thoughts? Thanks!
For those experiencing the same problem, I had to delete the storyboard and rebuild a new one. Localizing this seemed to work.
I have been trying to make a font type app for iOS in Xcode. It alters the normal text into emoji and unicode type letters and there are several different font variations to choose from. Right now, every time a new font is chosen, it changes the whole text field to that one selected font. But I'm trying to make it so that it doesn't effect the whole text field when a new font is selected, only the words that will be typed from that point on. I would appreciate if someone could help me with the code that would allow this. I would think its very easy but just not sure what to do.
An example app that does what my app does: https://itunes.apple.com/us/app/textizer-fonts-fun-looking/id563544682?mt=8
An example app that does what i want my app to do: https://itunes.apple.com/us/app/better-fonts-free-cool-new/id735011588?mt=8
Thanks in advance!
***Edit: My question is different because others are referring to actual fonts in the code and program. My situation is totally different. This is a special kind of app and the "font" is actually unicode symbols which is all the same language to a computer. So im actually just trying to make xcode and the app change without clearing the last symbol effect on the keyboard. It just like normal typing, and would actually be normal if it didn't change after a new one is selected. Not sure why the whole text box changes to the font that is selected, but i would think that its really easy to just add a line of code that doesn't make it change all the letters. If you just checked my links you would easily be able to see. Thanks again and sorry for the confusion. All help and code is appreciated.
In the simulator I pasted into a UITextView. I wasn't aware I still had some objective-c code on my pasteboard, so the pasted text included multiple lines and some tabs.
I was surprised to see that the text field suddenly became multiline (it looked awful obviously, since the view is tall enough for only 1-2 lines).
I have also experienced in UITextFields that pasting in the same formatted text messes with my implementation of sizeWithFont:constrainedToSize: which I use to size some views correctly.
Can anyone shed some light on what is happening, and whether I need to code around this possibility? On the device itself, does the OS somehow handle the issue? I am also going to try hosting the same piece of text on a website to see if copying and pasting from within the device exhibits the same behavior.
I really hope it is just a limitation of the simulator and copying from an external environment.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Localization of Default.png is not working
My splash screen has English text in it, so I would like to be able to have a different splash image when users have a different language set.
Is this possible?
Yes, it's possible. Pretty much the same way you localize all your resources.
You just need to provide a Default.png image and then enable all the languages you're interested in. The result is that you'll get a copy of the image for each language into the respective folders. Then edit (or overwrite) each image as you need. I have tested it right now and it works fine (on iOS 5 but I believe is the same for older versions). Here is a screenshot for easy reference:
EDIT:
Regarding any doubts about whether or not this is a good practice, this is straight from Apple's documentation:
In addition to including the launch images at the top level of your
bundle, you can also include localized versions of your launch images
in your app’s language-specific project subdirectories. For more
information on localizing resources in your app, see Table 6-2.
No.
Edit: Indeed, I'm dumbfounded. Like nevan-king I'm going to leave my answer nevertheless, since I still think that's the way it is intended to be done by the iOS guidelines (and my personal opinion about localizing whole images in order to localize its text...).
A splash screen is not intended to provide information. Splash screens are only shown for like a second or so, so it would be unfeasible to show text anyway.
Common practice for what you want to do is to use your image without text as splashscreen, and after that show a custom view with your image and localized text for a few seconds.
That way it will seem like you had a localized splash screen (and the text appears shortly after the image, which is fine).
However, keep in mind that the idea of iOS apps is fast responsiveness, so only show a "startup screen" if you must (for marketing reasons or whatever).
Read this for further information: http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5
There's no way to do this. Instead, make a Default.png with no text.
Edit: I stand corrected. Just tried Alladinian's method and it worked. I'll leave my answer, as it's a useful technique to know.
You can do this pretty easily in Photoshop by selecting a square, then copying it and pasting it over the text. Use Marquee to select a square of your graphic (say an empty part of a navigation bar). Then hit "v" for the move tool. Use cmd-opt and move the square a little to the left, then cmd-opt-shift so that it doesn't move up or down. Move the square over the text and let go of the mouse button. Repeat as necessary.
If you want to see how Apple handles multi-language splash screens, open Maps or Mail. They have a Default screen with no text, then the text appears (in whatever language) when the app has loaded.