qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

qbittorrent-nox 4.5.0 web UI cannot load Simplified Chinese.

Open hazaki520 opened this issue 2 years ago • 9 comments

qBittorrent & operating system versions

qBittorrent: 4.5.0 x64 nox Operating system: Arch Linux Qt:6.4.1 libtorrent-rasterbar: 2.0.8.0

What is the problem?

Simplified Chinese cannot be loaded after using pacman to upgrade to 4.5.0. After selecting Simplified Chinese to save, the page is still in English.

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

hazaki520 avatar Nov 28 '22 20:11 hazaki520

The same thing happened here. I'm using "binhex-qbittorrentvpn" docker on Unraid system.

eUnisk avatar Nov 28 '22 23:11 eUnisk

ping @sledgehammer999 @glassez This is caused by hardcoding language codes in JS and will be fixed by #17994. Can you guys review this pr?

brvphoenix avatar Nov 29 '22 02:11 brvphoenix

I build some debug nox builds with the patch people can test

https://github.com/userdocs/qbt_static_test/releases/tag/release-4.5.0_v2.0.8

https://github.com/userdocs/qbt_static_test/releases/tag/release-4.5.0_v1.2.18

Looked ok to me

image

userdocs avatar Nov 29 '22 23:11 userdocs

This method can be used to temporarily process

  • Open Tools->Options...->Web UI
  • Open the browser's developer tools and enter the following code
    document.querySelector("#locale_select > option:nth-child(54)").value = 'zh_CN';
    document.querySelector("#locale_select > option:nth-child(54)").selected = true; 
    
  • Click save

Sowevo avatar Nov 30 '22 03:11 Sowevo

same

RUANRUI1995 avatar Nov 30 '22 03:11 RUANRUI1995

Traditional Chinese is ok.Simplified Chinese is not.

RUANRUI1995 avatar Nov 30 '22 03:11 RUANRUI1995

windows client same problem

RUANRUI1995 avatar Nov 30 '22 03:11 RUANRUI1995

This issue is caused by 27a69d9cca1003e8099395a1aaa2f4ab91b017be (06c4c5861349c3cea948c384ea2043dbd686deb3 on master branch). It only affect the language setting with Simplified Chinese.

A simple fix is

@@ -719,7 +719,7 @@
             <option value="uk_UA">Українська</option>
             <option value="uz@Latn">أۇزبېك</option>
             <option value="vi_VN">Tiếng Việt</option>
-            <option value="zh">简体中文</option>
+            <option value="zh_CN">简体中文</option>
             <option value="zh_HK">香港正體字</option>
             <option value="zh_TW">正體中文</option>
         </select>

With #17994, all the similar issues can be avoided.

windows client same problem

This issue only affects clients using the WebUI. With the GUI client, you need switch to another language, then switch back and save settings.

brvphoenix avatar Nov 30 '22 04:11 brvphoenix

I have the same problem.

tobylibo avatar Dec 02 '22 09:12 tobylibo

Linuxserver.io version:- 4.5.0-r1-ls241 Build-date:- 2023-01-22T21:48:31-06:00 image

AkarinLiu avatar Jan 29 '23 12:01 AkarinLiu

Version 4.5.1 has fixed this issue

hazaki520 avatar Feb 19 '23 16:02 hazaki520