Wings 3D Development Forum
[fixed] When non-latin language, Wings does output error log. - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [fixed] When non-latin language, Wings does output error log. (/showthread.php?tid=1970)



[fixed] When non-latin language, Wings does output error log. - tkbd - 05-15-2016

In Constraint command,If a tag string has been translated by non-latin string.
Wings does output following error log.
Code:
wpc_constraints:command/3: bad return value: {'EXIT',
                                              {badarg,
                                               [{io,format,
                                                 [<0.90.0>,
                                                  "The ~s constraint bound to ~s is now set to ~p\n\n",
                                                  [[22238,36578,37327],
                                                   "Alt",90.0]],
                                                 []},
                                                {wpc_constraints,
                                                 set_constraint,3,
                                                 [{file,"wpc_constraints.erl"},
                                                  {line,1053}]},
                                                {wpc_constraints,set_angle,3,
                                                 [{file,"wpc_constraints.erl"},
                                                  {line,902}]},
                                                {wings_develop,time_command,
                                                 2,
                                                 [{file,"wings_develop.erl"},
                                                  {line,81}]},
                                                {wings_plugin,command,3,
                                                 [{file,"wings_plugin.erl"},
                                                  {line,139}]},
                                                {wings,raw_command_1,3,
                                                 [{file,"wings.erl"},
                                                  {line,641}]},
                                                {wings,raw_command,4,
                                                 [{file,"wings.erl"},
                                                  {line,638}]},
                                                {wings_wm,handle_event,3,
                                                 [{file,[...]},{line,...}]}]}}
My Enviroment is...
Wings3D v2.0.4
MacOSX v10.11.4
CPU: Mac mini 2.8 GHz Intel Core i5,Mem: 8GB
GPU: Intel Iris 1536 MB
---------------
tkbd


RE: When non-latin language, Wings does output error log. - micheus - 06-04-2016

Fixed!
The update cam be found here: wpc_constraints.beam
It must be put in some place like this C:\Program Files\wings3d_2.0.4\lib\wings-2.0.4\plugins\commands


RE: [fixed] When non-latin language, Wings does output error log. - tkbd - 06-05-2016

Thank you micheus!
The message has been displayed properly.

However,In the process to check it,I fell into a problem on the usability of constrains command.
Quote:"The ~ts constraint bound to ~ts is now set to ~p\n\n"
Currently, this message is only output in log window.
Hmm...Will this specification is made intentionally so?
Default using,an user can't notice his operation is wheather effective.

In constaraints's a modal command should be feedback to message window.
(For example, open a message dialog when constraints binding is successful.)
If you've time to spare to do,please consider it.Biggrin


RE: [fixed] When non-latin language, Wings does output error log. - micheus - 06-05-2016

(06-05-2016, 03:46 AM)tkbd Wrote: Hmm...Will this specification is made intentionally so?
It seems to be.

Quote:In constaraints's a modal command should be feedback to message window.
(For example, open a message dialog when constraints binding is successful.)
If you've time to spare to do,please consider it.Biggrin
I liked the idea. The .beam file above was update.
I kept the message being output to the Log window just in case the use needs to remember about the last setting. Smile


RE: [fixed] When non-latin language, Wings does output error log. - tkbd - 06-11-2016

Certainly a nice idea.
It is convenient that the change history of operation remains in the log!

And...I'm grad if you would correspond the string to macro for translation.
For example ?__(key,"string")


RE: [fixed] When non-latin language, Wings does output error log. - micheus - 06-11-2016

(06-11-2016, 04:03 AM)tkbd Wrote: And...I'm grad if you would correspond the string to macro for translation.
For example ?__(key,"string")
I did that. Wink