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

[MU4] Fix #7970: Help > About... Replace link to donate page, change text, say GPL version, say build etc. #7988

Merged
merged 3 commits into from
Apr 29, 2021

Conversation

Jojo-Schmitz
Copy link
Contributor

Resolves: #7970

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Apr 20, 2021

This is how it now looks:
image

Clipboard content (on my PC): OS: Windows 10 Version 2009, Arch.: x86_64, MuseScore version (64-bit): 4.0.0-767298131, revision: github-musescore-musescore-abc123456
(Why is that revision not matching the git-SHA?)

Darn, just spotted a typo... ("it" vs. "its")

@Jojo-Schmitz Jojo-Schmitz force-pushed the about-master branch 2 times, most recently from c44d8e2 to 10b85b0 Compare April 20, 2021 17:55
@@ -36,7 +38,7 @@ AboutModel::AboutModel(QObject* parent)

QString AboutModel::museScoreVersion() const
{
return QString::fromStdString(configuration()->museScoreVersion());
return QString::fromStdString(configuration()->museScoreVersion()) + (mu::framework::Version::unstable() ? " development build" : "");
Copy link
Contributor

Choose a reason for hiding this comment

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

We normally try to make a distinction between "development build" (PR build) and "nightly build" (master branch). Is it possible to access the BUILD_CONFIG string here? If not then I think we should just say "unstable prerelease" or something like that here.

Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Apr 20, 2021

Choose a reason for hiding this comment

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

Well, we don't, never did as far as I can tell, in 3.x we used "Unstable prerelease of 3..." if and when Version::unstable() returned true . We can use that wording for master too of course, but that's not really what you originally requested?

"development build" is the new name for "nightly build" (and since quite long), so the same thing really.
I'm not sure whether we can distinguish a PR artifact from a build of a merged PR.
BUILD_CONFIG would be "dev" in either case, as far as I can tell. that would change with a beta or release, see CMakeLists.txt:

set(MUSESCORE_BUILD_CONFIG "dev" CACHE STRING "Build config")
# Possible MUSESCORE_BUILD_CONFIG values:
# - dev     - for development/nightly builds
# - testing - for testing versions (alpha, beta, RC)
# - release - for stable release builds

Copy link
Contributor

@shoogle shoogle Apr 20, 2021

Choose a reason for hiding this comment

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

I originally requested "developer build" or "nightly build" (i.e. use the one that is most appropriate for a given build), but you are correct that the config string doesn't make this distinction anymore. Nightly still appears in the CI scripts but you won't have access to it here.

TLDR: Ok, let's stick with "development build" then.

Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Apr 21, 2021

Choose a reason for hiding this comment

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

Should it be translatable? The old term "Unstable Prerelease for Version: %1" was translatable.
It would be actually only translated after the 4.0 translation round starts, so around a Beta, but that's true for very many strings.

Copy link
Contributor

Choose a reason for hiding this comment

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

There's no harm in translating the string, but I don't think it really matters. It doesn't appear in release builds, and anybody using a development build would have had to navigate through the nightly builds page or one of the compilation guides, all of which are only available in English.

Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Apr 28, 2021

Choose a reason for hiding this comment

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

I though so too. So will leave it as is.

What the heck... why not just do it the same way as in 3.x. Or at least similar (Ignore the missing SHA):
image
Translable too. Just let me know.

Ah, just let's do it

…ge text, say GPL version, say build etc.

and keep HTML out of translatable text as far as possible
Useful for pasting into a forum topic or issue.
Same to what MuseScore 3.x provided.
@wizofaus
Copy link
Contributor

Revision is still not right though...

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.

[MU4 Issue] Help > About... Replace link to donate page, change text, say GPL version, say build etc.
4 participants