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

translations: Use OpenShot_locale.qm file names #3507

Merged
merged 2 commits into from
May 28, 2020
Merged

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented May 22, 2020

While names of the form OpenShot.locale.qm are supported by Qt, many packaging tools expect translations to use _ separators in the file naming, so our filenames cause some difficulties.

This PR renames all OpenShot.$LANG_$LOC.qm files to OpenShot_$LANG_$LOC.qm, and makes the necessary changes to launch.py, classes.info, classes.language, the openshot_lang.qrc file, and etc. to support the updated names.

(External scripts — like anything that manages the Launchpad translations — may also have to be corrected, though. If it's not part of this repo, I haven't fixed it.)

We've been using a custom find_lang.sh script in the RPM Fusion packaging for several years now, due to this naming issue. Issue #418 was the initial report of that problem, and while we worked around it, the naming was something I failed to completely correct in #1795.

Fixes #418 (which should give you an idea of just how old this issue is)

While OpenShot.locale.qm is supported by Qt, many packaging tools
expect names to use _ separators, so our naming causes difficulties.
@jonoomph jonoomph merged commit be25896 into develop May 28, 2020
@jonoomph
Copy link
Member

LGTM! I'm fixing the launchpad translation system right now, so it will produce the correct *.qrc file, and the correct file naming. I'll test this out in a moment.

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.

Nomenclature of .qm translation files
2 participants