When I develop a Mac app with localized interface with Xcode, I tend to modify the English resources and have them localized/translated only when the rest of the development work is done. Being on a non-English system, when I ask Xcode to run the app, it uses the localization to my own language, when I would want to choose myself (and choose English, in most cases).
So, how do I tell Xcode what language I want the app in during debug sessions?
When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.
Starting from iOS 13, users can choose a different language for each of their apps. They can have their device in English, but they can decide to have a specific app in another language. This can be done by navigating to the device Settings, select an app, select language, and change the chosen language.
In current Xcode you can set the Application Language that you launch if you Edit the Scheme and go to the Run options.
You are probably looking for an answer for Xcode 4.X but I hope that this will help.
In Xcode 3.2.6 in the Groups & Files section of the project window open up the Executable section. Select the executable you want to run in English, and do command I. Click on the "Arguments" tab and then click on the + at the bottom. Then add:
-AppleLanguages "English"
as an argument.
hth
If you are debugging on iOS Simulator:
If you are debugging on Device - repeat all steps from 2) till 6).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With