Wings 3D Development Forum
[fixed] Language resrc problem,Help > How to defined Hotkeys - 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] Language resrc problem,Help > How to defined Hotkeys (/showthread.php?tid=2024)



[fixed] Language resrc problem,Help > How to defined Hotkeys - tkbd - 06-22-2016

In menubar,select Help > How to defined Hotkeys,then Wings3D make crash log
Of cause,it can't read the document.

Crash in a following Language(Probably All OS):
French(fr),German(de),Japanese(jp),Korean(ko),Turkey(tr) Simplefied Chinese(Zh-cn),Traditional Chinese(Zh-tw)

Translators of each language should be update for built-in help document change to newer.
In prevous update(2.0.3 ?), it had been changed the hot key feature.
So,sentence has been changed.


Reason:In the translation strings.Missing of the format replace string "~ts" cause this crash

Reference for Translators:
See wings_**.lang (It is a translation file for Wings core,not plugins's)

Search 'def_hotkeys' keyword in the file,and fix corresponding locations(two resouces).
Quote: {6,"1. Press ~ts or ~ts key."},
{9,"To delete a hotkey, similarly press the~ts or ~ts key and select ...

Change for example (Note: fix by your language, this example's case it written by english)
Quote:Before {6,"2. Press [Insert] key or [\] key."},
After {6,"1. Press ~ts or ~ts key."},

Before {9,"To delete a hotkey, similarly highlight the command in a menu, and press the [Del] or [\\] key....
After {9,"To delete a hotkey, similarly press the~ts or ~ts key and select ...

Reference for Developers:
Japanse version:
Code:
Dump written 2016-6-22_19-30
Version: 2.0.5
Window: geom
Reason: badarg

Short stack trace:
[]

Long stack trace:
[{io_lib,format,
         [[50,46,91,73,110,115,101,114,116,93,12461,12540,12414,12383,12399,
           91,47,93,12461,12540,12434,25276,12375,12390,12367,12384,12373,
           12356,46],
          [[[8984],73,110,115,101,114,116],[[8984],56]]],
         [{file,"io_lib.erl"},{line,168}]},
{wings_help,def_hotkeys,1,[{file,"wings_help.erl"},{line,263}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,81}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,638}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,932}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,903}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,768}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,660}]}]


German version:

Code:
Dump written 2016-6-22_23-25
Version: 2.0.5
Window: geom
Reason: badarg

Short stack trace:
[]

Long stack trace:
[{io_lib,format,
         ["2. Dr髜ken Sie die [Einfg] oder die [/] Taste.",
          [[[8984],69,105,110,102,103],[[8984],56]]],
         [{file,"io_lib.erl"},{line,168}]},
{wings_help,def_hotkeys,1,[{file,"wings_help.erl"},{line,263}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,81}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,638}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,932}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,903}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,768}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,660}]}]



RE: Language resrc problem,Help > How to defined Hotkeys - micheus - 06-23-2016

tkbd, thanks for report it.

The language files for replacement can be download here.


RE: [fixed] Language resrc problem,Help > How to defined Hotkeys - tkbd - 06-24-2016

Micheus,Thank you for prompt fix!!
I installed and checked these langfiles.

Then,only in the French version(wings_fr.lang) , the order of the macro number was incorrect .
This causes an error in a French version. Please fix it.

Currently French version...
Quote: {def_hotkeys,
[
{1,"Toute commande qui figure dans un menu peut être assignée à une touche de raccourci."},
{4,"Pour assigner une commande à une touche de raccourci :"},
{5,"1. Appuyez sur la touche ~ts ou la touche ~ts."},
{6,"2. Affichez le menu contenant la commande et placez le curseur vis-à-vis d'elle de sorte qu'elle soit surlignée."},
{8,"3. La ligne d'information demande alors d'appuyer sur la touche du clavier à laquelle vous souhaitez lier la commande."},
{9,"Pour effacer un raccourcis, Appuyez sur la touche ~ts ou la touche ~ts ouvrez le menu et placez le curseur de la souris sur la commande. Une fenêtre énumérant toutes les touches déjà assignées à la commande apparaitra afin de vous permettre de choisir quels raccourcis vous souhaitez supprimer. Cochez les cases des raccourcis à effacer et validez."}
]},

Change to...
Quote: {def_hotkeys,
[
{1,"Toute commande qui figure dans un menu peut être assignée à une touche de raccourci."},
{4,"Pour assigner une commande à une touche de raccourci :"},
{6,"1. Appuyez sur la touche ~ts ou la touche ~ts."},
{5,"2. Affichez le menu contenant la commande et placez le curseur vis-à-vis d'elle de sorte qu'elle soit surlignée."},
{8,"3. La ligne d'information demande alors d'appuyer sur la touche du clavier à laquelle vous souhaitez lier la commande."},
{9,"Pour effacer un raccourcis, Appuyez sur la touche ~ts ou la touche ~ts ouvrez le menu et placez le curseur de la souris sur la commande. Une fenêtre énumérant toutes les touches déjà assignées à la commande apparaitra afin de vous permettre de choisir quels raccourcis vous souhaitez supprimer. Cochez les cases des raccourcis à effacer et validez."}
]},

Other Lanuguage data was okay Smile.


RE: [fixed] Language resrc problem,Help > How to defined Hotkeys - micheus - 06-24-2016

Thanks for checking.
The file is updated!