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 Dietmar Winkler)

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 Dietmar Winkler, 5 years ago

Description: modified (diff)

comment:2 by Adeel Asghar, 5 years ago

Cc: Martin Sjölund added

comment:3 by Dietmar Winkler, 5 years ago

Summary: Chineses language no longer avaiable in OMEditChineses language no longer available in OMEdit

comment:4 by Dietmar Winkler, 5 years ago

I tried now also French and German and none of those languages worked. Each time with a message like

[1] 14:13:54 Scripting Notification
Warning: Failed to set locale: 'de_DE'

comment:5 by Martin Sjölund, 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 Martin Sjölund, 5 years ago

This is after installing support for Chinese:

sudo apt install language-pack-zh-hans

comment:7 by Martin Sjölund, 5 years ago

If you set OPENMODELICAHOME=/usr and install the language pack, it works...

in reply to:  7 comment:8 by Dietmar Winkler, 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?

in reply to:  5 comment:9 by Adeel Asghar, 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 Francesco Casella, 5 years ago

Milestone: 1.14.01.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 Martin Sjölund, 5 years ago

https://github.com/OpenModelica/OpenModelica/commit/cc6e3e86ffc - @adeas31 is hardcoding the build directory (@OPENMODELICAHOME@)?

comment:12 by Martin Sjölund, 5 years ago

Owner: changed from Adeel Asghar to Martin Sjölund
Status: newaccepted

comment:13 by Martin Sjölund, 5 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.