nodebb-plugin-customize: Customize NodeBB Translations and Templates
-
@smartpunter I'm not able to reproduce this. Can you try running
./nodebb build
and restarting?Let me know if you see any errors during build, in the logs, on the client, etc
-
@PitaJ said in nodebb-plugin-customize: Customize NodeBB Translations:
./nodebb build
No, no errors, succesfull build, same problem after restart.
-
Okay this is due to a bug in benchpress (the templating engine NodeBB uses). I'm guessing you have a line like the following in your logs:
[benchpressjs] Unable to build or find a suitable native module, falling back to JS version
This is because you're on a Node version / OS that benchpress doesn't have pre-built binaries for, so it falls back to the slower and less flexible JS compiler.
I'll fix the bug in benchpress, but I recommend you get it working with the native module. I know that Node 10 and most linux distros and Windows version work.
-
Okay, I've fixed benchpress, you should be able to run
npm i benchpressjs@latest
in your nodebb directory to get the fix. Try to get the native version working though. -
BTW, New version of this plugin has been released: [email protected]
You can now customize templates!
-
Indeed, i had this lines regarding benchpress... Unfortunately there is no list of supported Node/OS versions on site I am using Ubuntu 18.04 and node 11.9.0, so my guess it should rather be node 10 LTS, as recommended here
Or, now this plugin has template customizations too, great job! Thank you again! I think this plugin should be bundled into the core...
-
@crazycells the plugin only knows about keys that are already in the NodeBB system. You could try coopting an unused key from something else.
-
With this plugin, can I translate categories to create a multilingual forum?
-
@pitaj said in nodebb-plugin-customize: Customize NodeBB Translations and Templates:
@crazycells the plugin only knows about keys that are already in the NodeBB system. You could try coopting an unused key from something else.
If I understood correctly from what you wrote on the Github issue below, you are planning to add a new property to this plugin...
creating a new "translation token"Am I right?
Multilanguage support of content · Issue #10130 · NodeBB/NodeBB
In the era of the global internet, many platforms have long had multilingual support of content. I think it is high time nodebb as a mature platform have multilingual support of content. To begin with, at a minimal level, at least transl...
GitHub (github.com)
-
@crazycells said in nodebb-plugin-customize: Customize NodeBB Translations and Templates:
@pitaj said in nodebb-plugin-customize: Customize NodeBB Translations and Templates:
@crazycells the plugin only knows about keys that are already in the NodeBB system. You could try coopting an unused key from something else.
If I understood correctly from what you wrote on the Github issue below, you are planning to add a new property to this plugin...
creating a new "translation token"Am I right?
The issue with multilingual content has been resolved. This works by default