Mac OS 和 PackageMaker:允许用户在安装过程中选择语言

发布于 2024-10-25 00:20:33 字数 281 浏览 8 评论 0原文

我正在实现一个 Mac 应用程序。其Windows版本已经实现。现在我面临以下问题: 使用多种语言实现新包。即,对于Windows版本的软件,在执行安装文件时,用户可以选择安装应用程序的语言。我希望 Mac 版本中包含此功能。

目前Mac版本中多语言支持是通过NSLocalizedString实现的,以便应用程序根据系统语言偏好选择语言并本地化安装包。

但是,我特别希望用户在安装时能够选择应用程序的安装语言。我现在正在使用PackageMaker。请帮助解决这个问题。我几个月来一直试图实现这个功能,但没有成功。

I am implementing a Mac application. Its Windows version is already implemented. Now I am facing the following issue:
implementation of the new package with multiple languages. I.e., for the Windows version of the software, when executing the installation file, the user can choose the language in which the application should be installed. I want this feature to be included in the Mac version.

Currently in the Mac version multiple language support is implemented using NSLocalizedString so that the app chooses a language according to the system language preference and the installation package is localized.

However, I specifically want the users to be able to choose the installation language of the app when installing. I am using PackageMaker now. Please help to solve this issue. I have been trying to implement this feature for several months, but no luck.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

朱染 2024-11-01 00:20:33

Apple 的官方建议是你不应该这样做;只需将所有本地化内容包含到应用程序中,就像您已经做的那样。
因此,如果这不是您的雇主对您提出的要求,请不要这样做并在您的应用程序上实现更多有用的东西。

选择仅安装英文版本的英语用户可能会突然嫁给一个可能想用日语使用它的日本人!

The official recommendation from Apple is that you shouldn't do that; just include all of the localization to the app just as you already do.
So, if it is not the requirement imposed on you by your employer, just don't do that and implement more useful things on your app.

The English user, who chose to install just English version, might suddenly marry a Japanese, who might want to use it in Japanese!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文