Skip to content
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

Merged
merged 2 commits into from
May 18, 2022

Conversation

nurishi
Copy link
Contributor

@nurishi nurishi commented Oct 27, 2016

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.

@nurishi nurishi mentioned this pull request Nov 3, 2016
@adam-lynch
Copy link
Contributor

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.
Copy link
Contributor

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 ...)

@kessler
Copy link
Contributor

kessler commented Dec 18, 2018

@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?

limitedeternity added a commit to limitedeternity/nw-builder that referenced this pull request Feb 1, 2019
@charlielee
Copy link

This PR is still required and would fix issue my issue #524

@ayushmanchhabra ayushmanchhabra added the bug Priority: 1 label May 17, 2022
@ayushmanchhabra ayushmanchhabra changed the title Fix for OSX multiple locale support fix(platform): add osx multiple locale support May 18, 2022
@ayushmanchhabra ayushmanchhabra removed the bug Priority: 1 label May 18, 2022
@ayushmanchhabra ayushmanchhabra self-requested a review May 18, 2022 03:55
@ayushmanchhabra ayushmanchhabra merged commit 3388a73 into nwutils:master May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants