Posts made by Gordon Gu
-
RE: [nodebb-plugin-poll] Poll plugin
@yariplus what the string to put in the tpl? I tried following:
<a class="poll-view-result-votecount" href="#">{options.votecount} [[poll:votes]]</a>
but translator didn't work:(
-
RE: [nodebb-plugin-poll] Poll plugin
@psychobunny I tried to localize the poll plugin, but the translation doesn't happen (nodebb v0.6.x). I saw the client side js use window.templates.parse(pathToTpl, data, callback ) to process the tpl and translate string such as "[[poll.votes]]" not being replaced. Any suggestion? I guess tpl translation only happens at server side code?
-
RE: get v0.7.X dockerfile
Seems this forum is not helpful. I'm also a newbie. After some investigation, I think you can build your own docker image for nodebb v0.6.x. I'm not sure which git branch corresponding to v0.7.x.
Get a sample docker file from
change the line:
RUN cd /opt ; git clone -b v0.5.x https://github.com/NodeBB/NodeBB nodebb
to
RUN cd /opt ; git clone -b v0.6.x https://github.com/NodeBB/NodeBB nodebbfollow the instruction on:
https://docs.docker.com/userguide/dockerimages/#building-an-image-from-a-dockerfile