Skip to content

Don't translate "Default" sound pack name #2568

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

CoBC
Copy link
Contributor

@CoBC CoBC commented Apr 11, 2025

Avoid to ask for default sound pack usage at every language change.
@bear101 The migratioon of SETTINGS_SOUNDS_PACK in utilui.cpp isn't apply, do you know why, I don't understand :(

@CoBC CoBC added this to the TeamTalk v5.18 milestone Apr 11, 2025
@CoBC CoBC requested a review from bear101 April 11, 2025 11:31
@CoBC CoBC self-assigned this Apr 11, 2025
@@ -177,6 +177,10 @@ void migrateSettings()
ttSettings->remove("texttospeech/tts-timestamp");
}
#endif

// Default sounds pack name changed in 5.5 format
if (ttSettings->value(SETTINGS_SOUNDS_PACK, SETTINGS_SOUNDS_PACK_DEFAULT).toString() == QCoreApplication::translate("UtilUI", "Default"))
Copy link
Contributor

Choose a reason for hiding this comment

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

To disable the translation shouldn't it be:
if (ttSettings->value(SETTINGS_SOUNDS_PACK, QCoreApplication::translate("UtilUI", SETTINGS_SOUNDS_PACK_DEFAULT)).toString() == QCoreApplication::translate("UtilUI", "Default"))

Otherwise you'll compare "Default" to translated "Default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried but the result is same, migration isn't apply :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants