Code Monkey home page Code Monkey logo

Comments (5)

DaanSelen avatar DaanSelen commented on July 23, 2024 1

Excuse my reopening, but the commands regarding the translate.js I get this:

celdrith@mesh:/opt/meshcentral/node_modules/meshcentral/translate$ node translate --translate
MeshCentral web site translator
Usage "node translate.js [command] [options]
Possible commands:

  CHECK [files]
    Check will pull string out of a web page and display a report.

  EXTRACT [languagefile] [files]
    Extract strings from web pages and generate a language (.json) file.

  EXTRACTALL (languagefile)
    Extract all MeshCentral strings from web pages and generate the languages.json file.

  TRANSLATE [language] [languagefile] [files]
    Use a language (.json) file to translate web pages to a give language.

  TRANSLATEALL (languagefile) (language code)
    Translate all MeshCentral strings using the languages.json file.

  MINIFY [sourcefile]
    Minify a single file.

  MINIFYDIR [sourcedir] [destinationdir]
    Minify all files in a directory.

  MINIFYALL
    Minify the main MeshCentral english web pages.

  MERGE [sourcefile] [targetfile] [language code]
    Merge a language from a translation file into another translation file.

  TOTEXT [translationfile] [textfile] [language code]
    Save a text for with all strings of a given language.

  FROMTEXT [translationfile] [textfile] [language code]
    Import raw text string as translations for a language code.

from meshcentral.

si458 avatar si458 commented on July 23, 2024

this might be because the default.handlebars hasnt been updated in the other repo.
every time we change the default.handlebars file in the master repo,
other people need to also update theres as the could be javascript changes/things moved placed
you can see the last commit we did was only 2 weeks ago
https://github.com/Ylianst/MeshCentral/commits/master/views/default.handlebars

from meshcentral.

si458 avatar si458 commented on July 23, 2024

also the default.handlebars is for ENGLISH
so if you change the page to say french/german/etc, it wont use the version you want so you need to run the translate

  1. cd /opt/meshcentral/node_modules/meshcentral/translate
  2. node translate.js -> this will install extra packages and WILL FAIL BUT ITS OK!
  3. node translate.js -> run it again and this time it should now output info
  4. node translate.js --translate -> have a brew and wait 5-10mins
  5. restart meshcentral
  6. refresh ur web ui

from meshcentral.

DaanSelen avatar DaanSelen commented on July 23, 2024

Yes, it was the language setting which made it not work. Are those set into the handlebars?

Already answered, thanks.

from meshcentral.

si458 avatar si458 commented on July 23, 2024

DUPLICATE #6022
looking into it soon

EDIT: you might need to run node node_modules/meshcentral --translate instead sorry

from meshcentral.

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.