Simple hack to add Lithuanian language to Discourse.
Newest translations can be found at https://www.transifex.com/discourse/discourse-org/language/lt/
Edit your app.yml (by default located in /var/discourse/containers) file and in hooks part add second exec section to make sure that translations stay in the container after rebuild.
It should look similar like this:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- exec:
cd: /tmp
cmd:
- git clone https://github.com/4Giedrius/discourse-lithuanian-locale.git locale
- cp -rT locale/ /var/www/discourse/
- cp -f locale/reload_i18n.sh /root/reload_i18n.sh
- chmod +x /root/reload_i18n.sh
- rm -rf localeRebuild your app by running ./launcher rebuild app
SSH into container and recompile assets:
cd /var/discourse
./launcher ssh app
./reload_i18n.sh
exit
./launcher restart app- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request