Wings 3D Development Forum
Same string ID used two times ? - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Programming (https://www.wings3d.com/forum/forumdisplay.php?fid=7)
+--- Thread: Same string ID used two times ? (/showthread.php?tid=529)



Same string ID used two times ? - TulipVorlax - 12-29-2013

While updating Wings 3D french translation (at last), i've stumbled on this in the file [...]\wings3d_1.5.2_x64\lib\wings-1.5.2\ebin\wings_en.lang

Code:
{wings_shape,
[
  {create_folder,
   [
    {1,"A folder by that name already exists"}
   ]},
  {create_folder_dialog,
   [
    {1,"Choose Folder Name"},
    {2,"Create Folder"}
   ]},
  {do_menu,
   [
    {1,"Duplicate"},
    {2,"Duplicate selected objects"},
    {3,"Delete"},
    {4,"Delete selected objects"},
    {5,"Rename"},
    {6,"Rename selected objects"},
    {7,"Create Folder"},
    {8,"Rename Folder"},
    {9,"Delete Folder"},
    {10,"Delete folder and its contents"},
    {11,"Move to Folder"},
    {12,"Move selected objects to this folder"},
    {13,"Empty Folder"},
    {14,"Remove From Folder"},
    {14,"Rename all selected objects"},
    {15,"Remove Selected From Folders"},
    {15,"Rename objects using Search and Replace"}
   ]},

That last line is using the same ID as the previous one. Is it intentional ? Thanks.

Edit : Oh ! I missed that ID 14 is also used two times. So both 14 and 15 appear twice.


RE: Same string ID used two times ? - micheus - 12-31-2013

(12-29-2013, 03:57 AM)TulipVorlax Wrote: That last line is using the same ID as the previous one. Is it intentional ?
It shouldn't be. I did that changes it has two years. Usually we are advised by the compiler about that - I don't know what happened.

Each function name should use a unique ID for the "strings".

Thanks for report.


RE: Same string ID used two times ? - TulipVorlax - 12-31-2013

No problem.
When i translate a file i open the english one in the left pane of Notepad++ and the french one in the right pane.
Then i slowly compare each file for any differencies in line number, string ID and all.
Ok, since the main french file has more lines of comment at the start than the english one i began by putting a few blank lines in the english one, but i dont submit the english.
Anyway, this way of doing might not tell me wich already translated strings need updating because the english one changed, but i see what whas removed, added and sometimes i also see when the ID arent the same.
Like in a few cases, some ID was changed to add "_1" at the end but the string stayed the same (and the translation didn't need any uptate).

In fewer words ; i think it's part of my "work" to see things like this. Even if it's late. Lol.


RE: Same string ID used two times ? - micheus - 01-12-2014

I fixed it. I should be applied to the next release of Wings3D.


RE: Same string ID used two times ? - johncosta - 07-15-2014

sorry i have no idea about that ....

online gambling in Australia