In Xcode 7
I have created a Localizable.string and in Inspector I can only see two languages - how do I add more?
Thanks
Ok, I found the solution:
In Project settings under "info" you can add additions languages.
Select Name project in PROJECT, Info, Localizations, and press "+" to add language.
After, you can select the Resource File.
Then, you can modify the Localizable.strings(new-language) created with your translations and Build to verify possible errors.
Related
I'm following this tutorial for setting up an app.config on a Xamarin app.
The Tutorial
one of the last steps is:
Add this PCL app.config file as a linked file on all your platform projects. For android, make sure to set the build action to ‘AndroidAsset’, for UWP set the build action to ‘Content’
Access your setting:
I have no idea what they are taking about, how in Vs2017 do I add a file as a linked file to the sub-os projects?
I'm sure this is stupid simple, but I'm totally missing it. thanks.
I figured it out
Right click on Project, add existing select teh file, on the add dialog the add button has a dropdown, change it to add link.
I have a swift app where I now want to add translations for some of the strings used in the app using NSLocalizedString.
In order to do this, I added a file named Localizable.strings to the project and pressed the "localize" button in the file inspector in order to add multiple languages to it. However only english appeared in the localization list, and I seem to be unable to add more.
Having looked around at SO and just googling around, many of the articles on how to do this mention that I should add more languages to my project under build settings. But the only setting I can change under Localization is one named "Localized String Macro Names", and there is no option to add languages there. There is also no "Use Base Internationalization" marker to check.
I have also tried to click on my project, then Editor -> Add Localization, but there all the languages are greyed out and I am unable to chose any of them.
I therefore suppose that you are supposed to do this differently in the latest version of xcode (10.1 atm). Can anyone help me figure out how you are supposed to do it?
It's about the project settings. Take a look at the image:
Under the Localizations you add new languages. After you add the language here you select which files you want to localize.
// update
Click on the top right button shown in the screen below and select your project under the PROJECT tab.
You just selected the wrong settings. The picture that you attached is actually under TARGET settings -> Build Settings, rather than project settings.
See the picture below to select "project settings" under xcode 10:
Xcode 10, project settings
I have finished my first game project with Spritebuilder and its time for localisation. But, when I try to add a new localisation, even though I follow all the correct steps, no language is added in Xcode and no localised project folder are created after I click finish (see attached photo).
Hint: If I try to add the language again the list with the resource files is empty...
Any ideas?
Faced similar issue with SpriteBuilder, if you prefer Xcode's string format. Try this answer to restore this capability
I deleted the Localizations in Xcode, then I cannot add any Localizations back
I'm using xcode 4.6.x and creating a blank project in C and adding existing files to it.
When all files are added, the cmd + click navigation doesn't work, stating a "Symbol not found" error.
Does anyone have a clue of what is going on?
Btw, I did try the solution suggested in Xcode code sense and cmd+click to symbol doesn't work for 1 of my projects, but it's not effective.
I had the same issue with Swift project w/ CocoaPods.
Try this:
Click on your scheme -> Manage Schemes -> make sure that Container for your scheme is set to your Workspace
P.S.: fixes no Quick Help issue as well
Does your blank project have a target defined, and do the added modules belong to it? I've seen cmd+click not work inside modules that didn't belong to the target.
Try this steps
1) Open "Organizer"
2) Click "Projects" tab
3) CLick "Your Project" at left column
4) Click "Delete" on Derived Data line
5) Restart Xcode
In the localizable.strings, I'm not able no add more languages than English. The "+" doesn't appear. On the right panel of the localizable, the location is "en.lproj/Localizable.strings"
Any ideas? May be there something to do with the -Info.plist?
In this file, the only line related is "Localization native development | String | en"
If you are using XCode 4.4 or 4.4.1, please consider this area in the Files Inspector:
You will get this:
Then, you can add localized copy:
Of course, you have first to go into Project Settings > Info > Localization and click on the "+" in the bottom-left corner to add languages.
Then you can localize your files.
I meet this problem too when upgrade from XCode 4.0 to XCode 4.4.1. If I create a new project on XCode 4.4.1, the localization works fine and the first letter is "L" not "l". To make the old project works, I removed all the localization setting and add it again. Besure all your localization resources are backed up before remove it. Hope it helps you.