Opened 5 years ago
Closed 5 years ago
#5640 closed defect (fixed)
Chineses language no longer available in OMEdit
Reported by: | Dietmar Winkler | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | OMEdit | Version: | v1.14.0-dev-nightly |
Keywords: | Cc: | Martin Sjölund |
Description (last modified by )
When trying to set up the Chinese interface for OMEdit it fails with:
1] 13:53:56 Scripting Notification Warning: Failed to set locale: 'zh_CN' [2] 13:54:00 Scripting Notification QString::arg: 1 argument(s) missing in 无法解析%2中的符号“%2”:%3
This is on
Connected to OpenModelica 1.14.0~dev-26741-gf7ba6ee Connected to OMSimulator unknown-linux
"unknown-linux" being Ubuntu 18.04.3
Change History (13)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Cc: | added |
---|
comment:3 by , 5 years ago
Summary: | Chineses language no longer avaiable in OMEdit → Chineses language no longer available in OMEdit |
---|
comment:4 by , 5 years ago
follow-up: 9 comment:5 by , 5 years ago
Using strace I get the following new behaviour (I guess Adeel changed something since before it used some other relative path...)
access("/var/lib/jenkins/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26680-gc8a5546/build/share/omedit/nls/OMEdit_zh_CN.qm", R_OK) = -1 ENOENT (No such file or directory) access("/var/lib/jenkins/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26680-gc8a5546/build/share/omedit/nls/OMEdit_zh.qm", R_OK) = -1 ENOENT (No such file or directory) access("/var/lib/jenkins/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26680-gc8a5546/build/share/omedit/nls/OMEdit.qm", R_OK) = -1 ENOENT (No such file or directory)
comment:6 by , 5 years ago
This is after installing support for Chinese:
sudo apt install language-pack-zh-hans
follow-up: 8 comment:7 by , 5 years ago
If you set OPENMODELICAHOME=/usr and install the language pack, it works...
comment:8 by , 5 years ago
Replying to sjoelund.se:
If you set OPENMODELICAHOME=/usr and install the language pack, it works...
Yes that works. Still I would expect it to work without having to set the env var, right?
comment:9 by , 5 years ago
Replying to sjoelund.se:
Using strace I get the following new behaviour (I guess Adeel changed something since before it used some other relative path...)
access("/var/lib/jenkins/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26680-gc8a5546/build/share/omedit/nls/OMEdit_zh_CN.qm", R_OK) = -1 ENOENT (No such file or directory) access("/var/lib/jenkins/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26680-gc8a5546/build/share/omedit/nls/OMEdit_zh.qm", R_OK) = -1 ENOENT (No such file or directory) access("/var/lib/jenkins/ws/LINUX_BUILDS/tmp.build/openmodelica-1.14.0~dev-26680-gc8a5546/build/share/omedit/nls/OMEdit.qm", R_OK) = -1 ENOENT (No such file or directory)
AFAIR I haven't changed anything related to it.
comment:10 by , 5 years ago
Milestone: | 1.14.0 → 1.16.0 |
---|
Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0
comment:11 by , 5 years ago
https://github.com/OpenModelica/OpenModelica/commit/cc6e3e86ffc - @adeas31 is hardcoding the build directory (@OPENMODELICAHOME@)?
comment:12 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:13 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
I tried now also French and German and none of those languages worked. Each time with a message like