Closed DaanSelen closed 3 weeks ago
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
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
cd /opt/meshcentral/node_modules/meshcentral/translate
node translate.js
-> this will install extra packages and WILL FAIL BUT ITS OK!node translate.js
-> run it again and this time it should now output infonode translate.js --translate
-> have a brew and wait 5-10minsYes, it was the language setting which made it not work. Are those set into the handlebars?
Already answered, thanks.
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.
DUPLICATE https://github.com/Ylianst/MeshCentral/issues/6022 looking into it soon
EDIT: you might need to run node node_modules/meshcentral --translate
instead sorry
Describe the bug MeshCentral ignores meshcentral-web folder -- I have downloaded a custom MeshCentral UI from here: https://github.com/DaanSelen/meshcentral-material.git But once I move the meshcentral-web with the views and public to the meshcentral root folder, it does not work on a restart.
To Reproduce
Expected behavior In the past, these steps would produce a new looking MeshCentral UI.
Screenshots
Web-Page (In Dutch):
Server Software (please complete the following information):
Node.js v18.19.0
Client Device (please complete the following information):
Additional context Add any other context about the problem here.
Your config.json file
Thanks in advance.