nodebb-plugin-customize: Customize NodeBB Translations and Templates
-
-
Doesn't work as expected...
Input strings are empty for namespace, for language a bunch of '{}'This is a very usefull plugin, i really look forward to using it.
-
@smartpunter what nodebb version? Can you take a screenshot with the select drop-down open?
-
The latest one, it looks like this:
-
@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?
-
@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