Can't add languages to my app - ios

I'd like to add a 2nd language to my app. If I go to my project und press the + under Localizations I can select a langue but can't go further (no files are displayed). If I click finish the language isn't added.

Maybe you don't have any localizable file ? Or Xcode didn't find them...
Anyway, you can always localize files manually :
Select your file in the left panel
Open the right panel in the "File Inspector" tab (first icon at the top)
Click the "Localize" button
Try again to add a language

Related

How to suppress specific compiler warnings in Xcode11

I am using third party framework in my swift project with Xcode11, which is having many warnings for
Non-portable path to file "HeaderFile.h"; Specified path differs in case from file name on disk Headerfile.h
Is there any way to suppress these specific warnings? or any way to silent framework warnings?
I went through with many threads but did't find the expected solution.
Any inputs would be a great help here, Thank you!!
Add -Wno-nonportable-include-path to your compiler options.
In Xcode, click the “Show the Project navigator” icon at the top left (leftmost icon under the red-yellow-green window buttons) or select View > Navigators > Show Project Navigator.
The select the project (topmost item in the tree shown in the sidebar once the project navigator view is shown). To the right, click on Build Settings. Below that, and to the left, in Basic / Customized / All, click All.
Scroll to “Apple Clang - Custom Compiler Flags”. Click the blank field to the right of “Other Warning Flags”. A dialog with fields to enter options will pop up. Click “+” at the bottom left. In the empty field that becomes editable, enter “-Wno-nonportable-include-path”.

xcode xcworkspace open without tools or Navigator?

I just oen the xcode "xcworkspace" it's open directly to the small screen without any tools or bars how can i back to the normal workspace ?
Try below option may be it will work
Right-click on the toolbar area beside your project title, i think you can see 'Show Toolbar' option & click it.
On the far right of this toolbar, click the leftmost 'Show Navigator' button in the group of three 'View' icons.
This should present your project in the navigator on the left for you to access.

How to apply localization without Storyboard

I don't use storyboard or xib for this project (full code)
When I add new localization, it shows no file in the list, and when I press Finish, no folder created.
You need a Localizable.strings file. If you already have that, select the file in the left panel. Then, click the button that should be in the right panel that says "Localize..."
Once you do this, you should be able to add other localizations the way you were trying to.

How can I resolve a red (moved) file in Xcode 5?

In Xcode 4 when you would move a file, you could resolve the new location of the file by clicking a button in the right menu, and selecting the new location through Finder.
In Xcode 5, there is no button in the right menu and I haven't found any way to specify the new location of the file through right clicking the file, or the top menu bar options.
Right click the file in Xcode and select "Show File Inspector"
In the file inspector click the little folder icon next to the file path.
This will open a file dialog allowing you to update the file path.
Just delete the old one and add the moved one.

IOS keyboard default buttons translation

Actually, I need to translate only "done"/"pref"/"next" buttons at decimal pad keyboard to russian language or other. By the way, localization of the application in russian. Moreover, all other buttons like "cancel" at other control was translated automatically when I changed localization language. But not this.
Can it be done without customization?
It will help you.
iPhone: Change Keyboard language programmatically.
No this is not possible - user can only change their language in the settings.
However you can give the user an "English" keyboard if you choose (or ask them their preference)
you do this using: UIKeyboardTypeASCIICapable
You can change keyboard directly on the keyboard by pressing "globe icon" on the bottom row.
First, you have to enable those language for input in Settings. Then pressing the globe button on the keyboard would toggle between those languages.
I found the solution: You have to create a infoPlist.strings in your xCode project, and add this code:
/*
InfoPlist.strings
*/
"Done" = "OK";
Then, in your project-> Info, add your language (Spanish in my case).
Later, go back to your infoPlist file, and target "Spanish" in the right menu, under "Localization" tab.
In "Edit scheme", clicking next to the "stop application" button, click run->options and in "Application language" select "System language".
Repeat for all the languages of your app.
Success!!
In his following answer, Oscar describes how to create a custom button and add it as a subview to a UIKeyboard.
You can use the above to create the needed button with the required custom text & selector, then add it to the UIKeyboard in place.

Resources