qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

Add ability to use external language (.qm) files instead of default translations

Open b-user opened this issue 2 years ago • 13 comments
trafficstars

Suggestion

I would like to be able to use an external language file for the GUI. For example, if there is a file ~~"qbittorrent_xx_YY.ts"~~ "qbittorrent_xx_YY.qm" in the "translations" folder exist and if the language "xx_YY" was selected in the program interface, the result will be the use of an external language file ~~"qbittorrent_xx_YY.ts"~~ "qbittorrent_xx_YY.qm" for the GUI.

Use case

using updated and custom translations (without recompilation). https://github.com/qbittorrent/qBittorrent/issues/18304

Extra info/examples/attachments

No response

b-user avatar Jan 15 '23 06:01 b-user

For example, if there is a file "qbittorrent_xx_YY.ts" in the "translations" folder exist and if the language "xx_YY" was selected in the program interface, the result will be the use of an external language file "qbittorrent_xx_YY.ts" for the GUI.

You probably mean "qbittorrent_xx_YY.qm" since *.ts files are "translation sources" that need to be transformed in binary form using lrelease tool.

glassez avatar Jan 16 '23 12:01 glassez

You probably mean "qbittorrent_xx_YY.qm

Yes, .qm

lrelease

or lconvert . it does not matter

b-user avatar Jan 17 '23 17:01 b-user

I recall knowing about this...something about Qt allowing for this feature by adding a translations/ subdirectory in the qbit config directory ?

luzpaz avatar Sep 15 '23 13:09 luzpaz

FreeCAD project has documentation on this: https://github.com/FreeCAD/FreeCAD-translations/#testing

The difference is that FreeCAD uses Crowdin and qBittorrent uses Transifex. What they have in common though is both are built on Qt. So we'd need to modify those instructions for the users to get latest translation sources from Transifex, make modifications, convert them in to .qm files and move them in to the qBittorrent user config directory so qBit can find said translations and use them instead of the default translations in the current qBit version.

luzpaz avatar Sep 17 '23 21:09 luzpaz

The difference is that FreeCAD

can use external language files, but Bittorrent can't.

b-user avatar Sep 18 '23 04:09 b-user

@b-user you've confirmed this how ?

luzpaz avatar Sep 18 '23 14:09 luzpaz

@b-user you've confirmed this how ?

qBittorrent have no such feature implemented.

glassez avatar Sep 18 '23 14:09 glassez

I thought this was a Qt feature available by default

luzpaz avatar Sep 18 '23 15:09 luzpaz

@glassez, please tell me, what is the probability that it will appear in version 5.1?

b-user avatar Oct 16 '24 09:10 b-user

@glassez, please tell me, what is the probability that it will appear in version 5.1?

It's undetermined.

glassez avatar Oct 16 '24 10:10 glassez

@qbittorrent/bug-handlers What do you think about this feature? How useful could it be?

glassez avatar Oct 16 '24 10:10 glassez

@qbittorrent/bug-handlers What do you think about this feature? How useful could it be?

Doesn't affect me so if all i have at hand to decide is OP's use case of incomplete translations, it would be hard for me to justify its usefulness.

thalieht avatar Oct 16 '24 10:10 thalieht

Guys, have you fixed this situation? https://github.com/qbittorrent/qBittorrent/discussions/18400

b-user avatar Oct 17 '24 08:10 b-user

Up!

stalkerok avatar Feb 11 '25 10:02 stalkerok

@glassez Do you still have plans to implement using your own translation file?

stalkerok avatar Feb 20 '25 20:02 stalkerok

@glassez Do you still have plans to implement using your own translation file?

I doubt it's in demand to put it at the forefront of my to-do list. But I don't reject it...

glassez avatar Feb 21 '25 06:02 glassez

ANNOUNCEMENT!

For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future! Here are some options available to you:

  1. Please select/click the 👍 &/orreactions in the original/opening post of this ticket.

  2. Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket. (new/existing contributors/developers are always welcome)


DO:

  • Provide constructive feedback.
  • Display how other projects implemented same/similar etc.

DO NOT:

  • Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s). (These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)

xavier2k6 avatar May 25 '25 09:05 xavier2k6