sabrogden / Ditto

Ditto is an extension to the Windows Clipboard. You copy something to the Clipboard and Ditto takes what you copied and stores it in a database to retrieve at a later time.
https://ditto-cp.sourceforge.io/
3.9k stars 206 forks source link

Translation of Ditto strings #24

Open ashed opened 3 years ago

ashed commented 3 years ago

There are values are present in English.xml

<Item English_Text = "Transparency" ID = "-1"></Item>
        <Item English_Text = "None" ID = "32800"></Item>
        <Item English_Text = "5 " ID = "32808"></Item>
        <Item English_Text = "10 " ID = "32792"></Item>
        <Item English_Text = "15 " ID = "32794"></Item>
        <Item English_Text = "20 " ID = "32796"></Item>
        <Item English_Text = "25 " ID = "32798"></Item>
        <Item English_Text = "30 " ID = "32799"></Item>
        <Item English_Text = "35 " ID = "32950">tt</Item>
        <Item English_Text = "40 " ID = "32790"></Item>

        //22.12.2020 10:41:58 - ashed
        <Item English_Text = "Increase " ID = "32589"></Item>
        <Item English_Text = "Decrease " ID = "32588"></Item>
        <Item English_Text = "Toggle Enabled " ID = "32587"></Item>

And there are not the same ID values in menu 248 when I open Ditto.exe via Restorator

 POPUP "Transparency"
   {
    MENUITEM "None", -32736
    MENUITEM "5 %", -32728
    MENUITEM "10 %", -32744
    MENUITEM "15 %", -32742
    MENUITEM "20 %", -32740
    MENUITEM "25 %", -32738
    MENUITEM "30 %", -32737
    MENUITEM "35 %", -32586
    MENUITEM "40 %", -32746
    MENUITEM SEPARATOR
    MENUITEM "Increase", -32589
    MENUITEM "Decrease", -32588
    MENUITEM "Toggle Enabled", -32587

How this ID values correlate? I wish to create a full translation of Ditto, but there are a lot of lacks in i18n res.

sabrogden commented 3 years ago

Not sure what you are asking, the english.xml should contain the master copy of ids, If you have any specific translations that are missing let me know.

Geeyun-JY3 commented 3 years ago

@sabrogden I have a question about the translation files. Will the translation files update with the source string file (English.xml)? It seems that some translation files are missing some strings. Or this should be fixed by translators? For example, the following strings: https://github.com/sabrogden/Ditto/blob/605f3250d0636078b08bad3e94472016c532a05f/Debug/Language/English.xml#L131-L149 is missing in Chinese.xml. And this is why #104 is here (not only above strings).