Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Adding a new language to DWC

    Scheduled Pinned Locked Moved
    Duet Web Control
    3
    6
    308
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Grzegorzundefined
      Grzegorz
      last edited by

      Hello,
      I have Duet Web Control in the second version. I want to add a new language to it, so after editing the language.xml file, I zipped it up and uploaded, but with no results. is there any other file i should edit or am i doing something wrong?

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @Grzegorz
        last edited by

        @grzegorz you need to edit the source and compile a new version of DWC using NPM.

        The source is here https://github.com/Duet3D/DuetWebControl
        The language bits are here https://github.com/Duet3D/DuetWebControl/tree/master/src/i18n

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        Grzegorzundefined Chri55undefined 2 Replies Last reply Reply Quote 0
        • Grzegorzundefined
          Grzegorz @jay_s_uk
          last edited by

          @jay_s_uk thanks, it worked

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @Grzegorz
            last edited by

            @grzegorz if you're adding a language, please send a PR so it can be added to the official release

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            Grzegorzundefined 1 Reply Last reply Reply Quote 1
            • Grzegorzundefined
              Grzegorz @jay_s_uk
              last edited by

              @jay_s_uk I uploaded it here
              https://github.com/GrzegorzGrudzinski/languages.git

              1 Reply Last reply Reply Quote 1
              • Chri55undefined
                Chri55 @jay_s_uk
                last edited by Chri55

                @jay_s_uk Hi, I also tryed to add a new language to the older version of DWC and after updating it like you sad in this post i have a small problem with a tool states. Insted of "active" i have "stedby", and insted of "off" I have "generic.heaterStates.disconnected" and "generic.heaterStates.disconnected" isn't in the .js file anywhare. The translation is made correctly because those words stay the same. And the question is if change the order in the language .js file will it be ok? or do i have to do some other changes? Before actualization the was WDC was in version 2.something unfotunately i do not remeber and now it is 3.4.0b1
                The electronics is in second version that might be a reason why this bug occured.
                DWC bug.png translation.png

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA