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
[qBittorrent webui] custom theme is broken by default #18109
Comments
For what it's worth I can also replicate this with themes from https://github.com/GilbN/theme.park, they have a issue open too: themepark-dev/theme.park#458 |
With PR #17616 only the builtin WebUI gets translated. The builtin WebUI uses this construct As a fix you should apply a search+replace regex on all copied files.
and capture the translatable string in the 1st capturing group. Then use ATTENTION: Apply the first regex before the second one, otherwise it won't work. |
Thank you @sledgehammer999 for your solution,
In pycharm I did it like this: Ctrl-Shift-R -> Enable regex search by pressing Alt-x -> Paste expression in find input -> Type But this solution won't fix everything, since when strings which translate combined by a number or another string (shown in the sidebar) are still broken as shown in this picture: Better solution: Best solution: |
qBittorrent will no longer offer translated string to 3rd party webuis. The 3rd party webuis are supposed to handle the translation themselves (usually client-side). Hint: The builtin webui files when copied and loaded as an alternative webui == 3rd party webui.
The copied webui is offered as a base/example to start off coding. It sucks that the contained strings aren't immediately usable as a 3rd party webui. |
Thank you for clarifying that.
That's unfortunate, this requires extra code and effort when you simple want to change a background color (I know this is possible through extensions like dark reader) or an icon you don't like, It would be better if handling i18n translations from webui was at least it an option from settings. However... thank you for guiding me. |
… more information on how i fixed it
Is this issue still valid ? |
yes, i just found this thread while searching info on how to fix this :/ |
qBittorrent & operating system versions
qBittorrent: v4.5.0 (64-bit)
Operating system: Fedora Linux 37 (Workstation Edition) (64-bit)
Qt: 5.15.7
libtorrent-rasterbar: 1.2.18.0
What is the problem?
I've followed the Developing alternate WebUIs (WIP) document, my commands are as followed:
And then changed my webui settings to match this path.
Result is as show in the screenshot.
I thought maybe the git version was the problem, so I downloaded the latest tag (v4.5.0) and:
But the result didn't change. This seems to be an issue with translation, so I changed my client's language to "فارسی" to see if that would fix it, but it was the same.
Steps to reproduce
No response
Additional context
This issue was first witnessed by my theme's issues page.
Log(s) & preferences file(s)
No response
The text was updated successfully, but these errors were encountered: