File to edit language in Duet 3D
@chri55 Did you generate the actual DWC bundle with
npm run buildbefore uploading the file from the
distfolder? If yes, try clearing the browser cache or reload DWC with Ctrl+Shift+R.
@jay_s_uk I am trying to add a Polish language, letter identifier is "pl" which I used.
To confirm which files should I upload? may be I am making a mistake not sending correct files.
I uploaded zip with a directory named "i18n" that consists all language files like fr.js, en.js and new pl.js an corrected index.js.
Should I upload something more?
Where I can find those .json files?
@chri55 You cannot simply change a source code file and upload it on the System page, it's required to rebuild DWC every time that's done. Can you share your pl translations file? Then I can build new DWC ZIPs for you and I can integrate your translations right away into the next DWC version.
@chrishamm In what file extension should i send it because I con not sent .js file?
And the translation is not 100% done but It needs a few corrections but to do that i need to see context when text is shown.
@chri55 .txt should work.
@chri55 You've got to set up NodeJS first (there are countless tutorials for that on the web) and when you're done, just run two commands from a command-line prompt in the DWC directory:
npm install npm run build
That will generate DuetWebControl-*.zip files in the
distdirectory. This procedure is already documented here.
I'm going to build new DWC versions for you in a moment.
@chrishamm Ok. I need to watch some of those tutorials and educate myself. Thank you for the information. I never did stuff like that and it seemed like and easy task just to translate but it happened to be a bit over my abilities. Thank you again.
@chrishamm Thank you very much, sorry that I did not reply earlier but I did not take my laptop with me for a weekend. The translation works well and seems to be translated correctly for a part that i checked for now. If I find some mistakes I will try correct them.
Hey, I am sending you a file with a few corrections that I found while checking the DWC and printing test models. There are still not translated words and phrases. I have no idea how to translate them to keep them short or I am missing the context and I am not sure which meaning I should use to be 100% correct. Maybe there are some other users from Poland and have better knowledge in that matter.
You could load this file with the next update of the program, just not to update all for the language corrections (when most people use English anyway).
pl with a few corrections.js
domka999 last edited by
@chrishamm Hey, I wanted to remind ourselves in case you didn't see Chri55 post above!
Thanks in advance!
jay_s_uk last edited by
@domka999 why not issue a PR on github? It will probably get integrated much more quickly
@chri55 Thanks! I'll add your updated version to DWC 3.4-b2.