How can I find the Chinese translation corresponding to QCAD's Chinese and English? For example, ExAddBlock.init = function(basePath) {
var action = new RGuiAction(qsTr("&Create Block"), RMainWindowQt.getMainWindow());
action.setRequiresDocument(true);
action.setScriptFile(basePath + "/ExAddBlock.js");
action.setGroupSortOrder(79100);
action.setSortOrder(100);
action.setWidgetNames(["BlockExamplesMenu"]);
}; qsTr("&Create Block" )How to modify the corresponding translation file?
Translation issues
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
-
- Full Member
- Posts: 84
- Joined: Fri Oct 20, 2023 7:21 am
Translation issues
- Attachments
-
- VeryCapture_20231114100125.jpg (160.9 KiB) Viewed 4696 times
Re: Translation issues
Hi,
You could have included the code in a code panel with the </> button above the text panel.
While scripting is native in English qsTr("&Create Block") will translate the string.
The translation files are standard Qt see the QCAD installation folder and then under folder 'ts'.
I would not mess with those.
Contact Andrew with updated translations as you can not include Chinese text on this forum.
Just guessing: menu Misc .. Script Examples ..
And further I can not read Chinese.
Regards,
CVH
You could have included the code in a code panel with the </> button above the text panel.
Code: Select all
ExAddBlock.init = function(basePath) {
var action = new RGuiAction(qsTr("&Create Block"), RMainWindowQt.getMainWindow());
action.setRequiresDocument(true);
action.setScriptFile(basePath + "/ExAddBlock.js");
action.setGroupSortOrder(79100);
action.setSortOrder(100);
action.setWidgetNames(["BlockExamplesMenu"]);
};
The translation files are standard Qt see the QCAD installation folder and then under folder 'ts'.
I would not mess with those.
Contact Andrew with updated translations as you can not include Chinese text on this forum.
Just guessing: menu Misc .. Script Examples ..
And further I can not read Chinese.
Regards,
CVH
-
- Full Member
- Posts: 84
- Joined: Fri Oct 20, 2023 7:21 am
Re: Translation issues
Thanks, I've learned how to do itYou could have included the code in a code panel with the </> button above the text panel.
I found that QCAD Chinese translation has many inaccuracies. How should I correct it?
Re: Translation issues
This is an automatic translations and is likely to contain many errors.
You can find all translations for the QCAD core at:
https://github.com/qcad/qcad
Translation sources are "*.ts" files in in the "ts" folder. You can either edit the .ts files in a text editor (XML) or in github or with Qt Linguist. Feel free to issue a pull request on github or send the corrected files.
If you cannot find a string, it is most likely part of the QCAD Professional module. In this case, please send us a message with the original and the corrected string.
Many thanks for any corrections you can make.
You can find all translations for the QCAD core at:
https://github.com/qcad/qcad
Translation sources are "*.ts" files in in the "ts" folder. You can either edit the .ts files in a text editor (XML) or in github or with Qt Linguist. Feel free to issue a pull request on github or send the corrected files.
If you cannot find a string, it is most likely part of the QCAD Professional module. In this case, please send us a message with the original and the corrected string.
Many thanks for any corrections you can make.
-
- Full Member
- Posts: 84
- Joined: Fri Oct 20, 2023 7:21 am
Re: Translation issues
Okay, I understand. I will summarize the incorrect translations after I finish the work at hand.