-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(platform): add osx multiple locale support #389
Conversation
Thanks @nurishi. Clear description. I can't test it right now though unfortunately |
lib/index.js
Outdated
@@ -413,11 +413,11 @@ NwBuilder.prototype.copyNwjs = function () { | |||
var options = {}; | |||
|
|||
if(['nw', 'nwjs.app', 'nw.exe'].indexOf(destFile) !== -1){ | |||
// ignore nwjs.app/Contents/Resources/*.lproj, otherwise the app name will show as nwjs.app in | |||
// ignore nwjs.app/Contents/Resources/*.lproj/InfoPlist.strings, otherwise the app name will show as nwjs.app in. *.lproj directory itself needs to be kept to support multiple locales. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word Finder
(from the next line) should come after nwjs.app in
(as in ... nwjs.app in Finder. *.lproj ...
)
@nurishi I'm in the process of cleaning up PRs and issues. Could you please confirm / make sure the code here is up to date? |
This PR is still required and would fix issue my issue #524 |
Ran into the issue that OSX multi locale support becomes unavailable when we build with nw-builder. (Tested with nw-builder 3.1.2 and nwjs 0.14.7 SDK build which works fine with their official build. FYI, currently 0.14.7 Normal build has an issue in multi locale support nwjs/nw.js#4824 so you can only check it with SDK build unless you manually apply the fix suggested in the ticket to Normal build)
Found out the root cause of the issue and it was in the part of omitting creation of Contents/Resources/*.lproj directories. I understand that this line was required to support the custom app name but instead of dropping the whole directory, it should only ignore InfoPlist.string file inside so that the directory itself will be still generated.
Hope this pull request could be merged and save the people facing the same issue.