Giter VIP home page Giter VIP logo

Comments (10)

fra589 avatar fra589 commented on July 27, 2024 1

how can traslate?, with what program?

Hi @luisluna2,
You don't need to make any change in the Python .py files.

  • First, install the QT linguist software,
  • Then, go to the <cn5X>/i18n directory,
  • Duplicate the file cn5X.en.ts to cn5X.es.ts for example to make the spanish translation (the actual cn5X.es.ts is an empty translated file, so you can replace it),
  • Open your new .ts file with QT linguist software,
  • Change the language cible in the "Edit/File parameter" menu,
  • Replace all the items english translation by your new langage translation,
  • Save the new translated .ts file,
  • Use the "File/Publish" menu to publish the .qm file in the same <cn5X>/i18n directory. It is this cn5X.<LOCALE>.qm wich is used by cn5X to translate the interface at run time,
  • Don't forget to update the i18/cn5X_locales.xml to reflect your new translation,
  • Dont forget to send to me your new .ts file :-)

Thanks for your contribution,

@++;
Gauthier.

from cn5x.

fra589 avatar fra589 commented on July 27, 2024 1

Hi all,

To avoid duplicate work, please, write here the translation you plan to do.

By the way, don't modify the files : mainWindow.py, dlgConfig.py and dlgAPropos.py. Those files are generated by the QT Designer devloppement tool and probably will be crushed by the next ui change.

I make the choice of don't translate some of the ui items, especially the originals Grbl commands or messages wich stay in the Grbl language (for example the "Soft Reset (^X)" button). This can be discuss here :-)

Thanks,
Gauthier.

from cn5x.

fra589 avatar fra589 commented on July 27, 2024

Hi @cneve
You also need to update the cn5X_locales.xml file in the i18n directory...
In wich language do you have made your translation ? It will be fine if you can send it to me :-)
@++;
Gauthier.

from cn5x.

cneve avatar cneve commented on July 27, 2024

I am now changing in the en.ts file. After I have finished, I will send you the TS file. Gauthier thank you for your help.

from cn5x.

luisluna2 avatar luisluna2 commented on July 27, 2024

@fra589
Friend, how can traslate?, with what program?

from cn5x.

cneve avatar cneve commented on July 27, 2024

Gauthier ,if translate some of the original code of grbl, will there be problems?Grblcom connection failure occurs several times when clicking connect.
Today, I translated most of the buttons and labels,I found many failed connections, which led me to reinstall grbl.˃̣̣̥᷄⌓˂̣̣̥᷅

from cn5x.

fra589 avatar fra589 commented on July 27, 2024

HI @cneve,

If you translate the grbl code itself, cn5x to grbl serial com will stop to work since cn5X analyse and wait for the original sentences of grbl.
For example, to complete the connection, cn5X wait to receive a string (case sensitive) wich begin with "Grbl " and end with "help]"... So, if you translate the word "help" in the original code of grbl, cn5X never end its connection.

however, when you made many connections and deconnections, grbl crash ans stop to work correctly (I don't know why but it's a fact). In this case, generaly, it's enought to power off the grbl card and close cn5X, wait few seconds and restart the operation.

@++;
Gauthier.

from cn5x.

luisluna2 avatar luisluna2 commented on July 27, 2024

Hi @fra589 I will modify to Spanish :)

from cn5x.

dbxzjq avatar dbxzjq commented on July 27, 2024

hi @fra589
CN5X can publish WINX86 installation file, thank you!

from cn5x.

fra589 avatar fra589 commented on July 27, 2024

Hi @dbxzjq,
I am sorry, but my Windows develop box is broken (pleonasm 😋), so, I can't make Windows installation files for the moment(and probably for a long time).
But you can install prerequisites separately and run cn5X directly after...

To install on Windows :

  • Download and install latest Python 3 from https://www.python.org (don't forget to add Python in PATH environment variable)
  • Run cmd (as Administrator if you have installed Python for all users)
  • in cmd, type "pip install pyqt5"
  • Download and copy the whole cn5X directory from Github,

=> Double click on the cn5X.py downloaded file in Windows explorer...

Enjoy using cn5X++

@++;
Gauthier.

from cn5x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.