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 list of available translations in macOS/Info.plist.in #26020

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

Jojo-Schmitz
Copy link
Contributor

And create a Readme.md in share/locale

Copy link
Contributor

@shoogle shoogle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have access to a macOS device right now, so I can't test the changes to Info.plist.in. I'm not sure what it does. Possibly it displays these languages somewhere in System Preferences, as a way to override the language for a particular application?

@cbjeukendrup commented:

I've tried to find out what this CFBundleLocalizations key is used for, and can't find much. It seems it's mainly used for apps in the App Store, to display what languages they support. But I don't think it influences any functionality.

So it's possibly not relevant to MuseScore since we don't use the App Store, but we're not 100% certain.

share/locale/README.md Outdated Show resolved Hide resolved
<string>bg</string>
<string>br</string>
<string>ca</string>
<string>ca@Valencia</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether this a valid language code or just a Transifex-specific extention?

I guess we can keep it for now and someone on macOS can test it for us.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to find out what this CFBundleLocalizations key is used for, and can't find much. It seems it's mainly used for apps in the App Store, to display what languages they support. But I don't think it influences any functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes all this more of a cosmetic change, as we don't use the App Strore, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems so, yes. And I'd rather have an up-to-date list with perhaps a few invalid entries than a completely outdated list with potentially also some invalid entries.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IOW: a cosmetic change worth doing, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say so, yes

<string>cs</string>
<string>cy</string>
<string>da</string>
<string>de</string>
<string>el</string>
<string>en</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that you also include en_US and en_GB below. Again, someone on macOS should test this.

<string>sv</string>
<string>th</string>
<string>tr</string>
<string>uk</string>
<string>uz@Latn</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another fancy one that should be tested.

<string>ar</string>
<string>ar_DZ</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a valid language code, but Apple might want it all lowercase or separated with a hyphen instead of an underscore. Someone with access to a Mac should test it for us.

And create a Readme.md in share/locale
@shoogle
Copy link
Contributor

shoogle commented Jan 10, 2025

@cbjeukendrup, I'm happy with the README. I'll let you merge if you're satisfied with Info.plist.in.

@shoogle shoogle changed the title Fix list of available translations in macOS/Info.plist.on Fix list of available translations in macOS/Info.plist.in Jan 10, 2025
@cbjeukendrup
Copy link
Contributor

I've checked that this build runs well and doesn't show any strange behaviour w.r.t. translations on first sight, so I feel confident enough to merge this.

@cbjeukendrup cbjeukendrup merged commit ed9f1f2 into musescore:master Jan 10, 2025
11 checks passed
@Jojo-Schmitz Jojo-Schmitz deleted the translations branch January 10, 2025 22:50
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.

3 participants