@yariplus said:
gist:8fbed0308828c980e117
GitHub Gist: instantly share code, notes, and snippets.
Gist (gist.github.com)
no luck:(
my poll.json
The result
@yariplus said:
gist:8fbed0308828c980e117
GitHub Gist: instantly share code, notes, and snippets.
Gist (gist.github.com)
no luck:(
my poll.json
The result
@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:(
@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?
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
https://registry.hub.docker.com/u/nodebb/docker/dockerfile/
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 nodebb
follow the instruction on:
https://docs.docker.com/userguide/dockerimages/#building-an-image-from-a-dockerfile