Is there a way to force Xcode to localize the app name in other languages?
I am creating a macOS app compiled for 10.12. My computer is in english, my region is Portugal.
The app is created in 3 languages: english (the development one, default), portuguese brazil and portuguese portugal.
I want to localize the app name.
I have created a InfoPlist.strings
file with the following keys for english:
"CFBundleDisplayName" = "My App";
"CFBundleName" = "My App";
"CFBundleExecutable" = "My App";
and for portuguese br and pt
"CFBundleDisplayName" = "Minha App";
"CFBundleName" = "Minha App";
"CFBundleExecutable" = "Minha App";
I have added these keys to the Info.plist
CFBundleDisplayName = $(PRODUCT_NAME)
CFBundleExecutable = $(PRODUCT_NAME)
CFBundleName = $(PRODUCT_NAME)
CFBundleIdentifier = $(PRODUCT_BUNDLE_IDENTIFIER)
LSHasLocalizedDisplayName = YES
inside Building Settings I have
Product Name = My App
I go to Product > Scheme > Edit Scheme > Run > Options and I set Application Language
to english and run the app.
Xcode generates an app with the name My App.app
that is correct and expected.
I return to the options and set the language to Portuguese and Xcode continues to generate an app called My App.app
instead of Minha App.app
.
How do I force Xcode to localize the app name shown in Finder.
xcode localization localizable.strings
add a comment |
I am creating a macOS app compiled for 10.12. My computer is in english, my region is Portugal.
The app is created in 3 languages: english (the development one, default), portuguese brazil and portuguese portugal.
I want to localize the app name.
I have created a InfoPlist.strings
file with the following keys for english:
"CFBundleDisplayName" = "My App";
"CFBundleName" = "My App";
"CFBundleExecutable" = "My App";
and for portuguese br and pt
"CFBundleDisplayName" = "Minha App";
"CFBundleName" = "Minha App";
"CFBundleExecutable" = "Minha App";
I have added these keys to the Info.plist
CFBundleDisplayName = $(PRODUCT_NAME)
CFBundleExecutable = $(PRODUCT_NAME)
CFBundleName = $(PRODUCT_NAME)
CFBundleIdentifier = $(PRODUCT_BUNDLE_IDENTIFIER)
LSHasLocalizedDisplayName = YES
inside Building Settings I have
Product Name = My App
I go to Product > Scheme > Edit Scheme > Run > Options and I set Application Language
to english and run the app.
Xcode generates an app with the name My App.app
that is correct and expected.
I return to the options and set the language to Portuguese and Xcode continues to generate an app called My App.app
instead of Minha App.app
.
How do I force Xcode to localize the app name shown in Finder.
xcode localization localizable.strings
add a comment |
I am creating a macOS app compiled for 10.12. My computer is in english, my region is Portugal.
The app is created in 3 languages: english (the development one, default), portuguese brazil and portuguese portugal.
I want to localize the app name.
I have created a InfoPlist.strings
file with the following keys for english:
"CFBundleDisplayName" = "My App";
"CFBundleName" = "My App";
"CFBundleExecutable" = "My App";
and for portuguese br and pt
"CFBundleDisplayName" = "Minha App";
"CFBundleName" = "Minha App";
"CFBundleExecutable" = "Minha App";
I have added these keys to the Info.plist
CFBundleDisplayName = $(PRODUCT_NAME)
CFBundleExecutable = $(PRODUCT_NAME)
CFBundleName = $(PRODUCT_NAME)
CFBundleIdentifier = $(PRODUCT_BUNDLE_IDENTIFIER)
LSHasLocalizedDisplayName = YES
inside Building Settings I have
Product Name = My App
I go to Product > Scheme > Edit Scheme > Run > Options and I set Application Language
to english and run the app.
Xcode generates an app with the name My App.app
that is correct and expected.
I return to the options and set the language to Portuguese and Xcode continues to generate an app called My App.app
instead of Minha App.app
.
How do I force Xcode to localize the app name shown in Finder.
xcode localization localizable.strings
I am creating a macOS app compiled for 10.12. My computer is in english, my region is Portugal.
The app is created in 3 languages: english (the development one, default), portuguese brazil and portuguese portugal.
I want to localize the app name.
I have created a InfoPlist.strings
file with the following keys for english:
"CFBundleDisplayName" = "My App";
"CFBundleName" = "My App";
"CFBundleExecutable" = "My App";
and for portuguese br and pt
"CFBundleDisplayName" = "Minha App";
"CFBundleName" = "Minha App";
"CFBundleExecutable" = "Minha App";
I have added these keys to the Info.plist
CFBundleDisplayName = $(PRODUCT_NAME)
CFBundleExecutable = $(PRODUCT_NAME)
CFBundleName = $(PRODUCT_NAME)
CFBundleIdentifier = $(PRODUCT_BUNDLE_IDENTIFIER)
LSHasLocalizedDisplayName = YES
inside Building Settings I have
Product Name = My App
I go to Product > Scheme > Edit Scheme > Run > Options and I set Application Language
to english and run the app.
Xcode generates an app with the name My App.app
that is correct and expected.
I return to the options and set the language to Portuguese and Xcode continues to generate an app called My App.app
instead of Minha App.app
.
How do I force Xcode to localize the app name shown in Finder.
xcode localization localizable.strings
xcode localization localizable.strings
asked Dec 29 '18 at 18:33
SpaceDogSpaceDog
16.1k41197380
16.1k41197380
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
That's not how localization works on macOS. You don't build a Portuguese-specific version of the app. The one app supports localization for any of its supported languages.
Under the hood, in the file system, your app bundle's directory will always be named "My App.app", never "Minha App.app". Localization occurs only at the point of display in the GUI.
You do not need to rebuild your app.
So, your issue is not with Xcode, it's with the Finder and the system. To see the other localizations in the Finder, you need to switch your account's language setting to use (one of the) Portuguese languages. I don't recall if the Finder switches live or if you need to relaunch it (hold down the Option/Alt key, right-click on its Dock icon, and click Relaunch; alternatively, log out and back in).
I was suspecting that. THANKS!!!
– SpaceDog
Dec 30 '18 at 12:10
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53972298%2fis-there-a-way-to-force-xcode-to-localize-the-app-name-in-other-languages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
That's not how localization works on macOS. You don't build a Portuguese-specific version of the app. The one app supports localization for any of its supported languages.
Under the hood, in the file system, your app bundle's directory will always be named "My App.app", never "Minha App.app". Localization occurs only at the point of display in the GUI.
You do not need to rebuild your app.
So, your issue is not with Xcode, it's with the Finder and the system. To see the other localizations in the Finder, you need to switch your account's language setting to use (one of the) Portuguese languages. I don't recall if the Finder switches live or if you need to relaunch it (hold down the Option/Alt key, right-click on its Dock icon, and click Relaunch; alternatively, log out and back in).
I was suspecting that. THANKS!!!
– SpaceDog
Dec 30 '18 at 12:10
add a comment |
That's not how localization works on macOS. You don't build a Portuguese-specific version of the app. The one app supports localization for any of its supported languages.
Under the hood, in the file system, your app bundle's directory will always be named "My App.app", never "Minha App.app". Localization occurs only at the point of display in the GUI.
You do not need to rebuild your app.
So, your issue is not with Xcode, it's with the Finder and the system. To see the other localizations in the Finder, you need to switch your account's language setting to use (one of the) Portuguese languages. I don't recall if the Finder switches live or if you need to relaunch it (hold down the Option/Alt key, right-click on its Dock icon, and click Relaunch; alternatively, log out and back in).
I was suspecting that. THANKS!!!
– SpaceDog
Dec 30 '18 at 12:10
add a comment |
That's not how localization works on macOS. You don't build a Portuguese-specific version of the app. The one app supports localization for any of its supported languages.
Under the hood, in the file system, your app bundle's directory will always be named "My App.app", never "Minha App.app". Localization occurs only at the point of display in the GUI.
You do not need to rebuild your app.
So, your issue is not with Xcode, it's with the Finder and the system. To see the other localizations in the Finder, you need to switch your account's language setting to use (one of the) Portuguese languages. I don't recall if the Finder switches live or if you need to relaunch it (hold down the Option/Alt key, right-click on its Dock icon, and click Relaunch; alternatively, log out and back in).
That's not how localization works on macOS. You don't build a Portuguese-specific version of the app. The one app supports localization for any of its supported languages.
Under the hood, in the file system, your app bundle's directory will always be named "My App.app", never "Minha App.app". Localization occurs only at the point of display in the GUI.
You do not need to rebuild your app.
So, your issue is not with Xcode, it's with the Finder and the system. To see the other localizations in the Finder, you need to switch your account's language setting to use (one of the) Portuguese languages. I don't recall if the Finder switches live or if you need to relaunch it (hold down the Option/Alt key, right-click on its Dock icon, and click Relaunch; alternatively, log out and back in).
answered Dec 29 '18 at 21:46
Ken ThomasesKen Thomases
69.7k669106
69.7k669106
I was suspecting that. THANKS!!!
– SpaceDog
Dec 30 '18 at 12:10
add a comment |
I was suspecting that. THANKS!!!
– SpaceDog
Dec 30 '18 at 12:10
I was suspecting that. THANKS!!!
– SpaceDog
Dec 30 '18 at 12:10
I was suspecting that. THANKS!!!
– SpaceDog
Dec 30 '18 at 12:10
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53972298%2fis-there-a-way-to-force-xcode-to-localize-the-app-name-in-other-languages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown