Skip to content

Instantly share code, notes, and snippets.

@robguthrie
Created December 13, 2018 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robguthrie/9812f00672ae6ff857fc58cfed1af255 to your computer and use it in GitHub Desktop.
Save robguthrie/9812f00672ae6ff857fc58cfed1af255 to your computer and use it in GitHub Desktop.
ubuntu@ip-172-26-5-233:~/loomio-deploy/plugins/tapin_loomio_translation$ l
config/ plugin.rb
ubuntu@ip-172-26-5-233:~/loomio-deploy/plugins/tapin_loomio_translation$ ls
config plugin.rb
ubuntu@ip-172-26-5-233:~/loomio-deploy/plugins/tapin_loomio_translation$ ls -la
total 20
drwxrwxr-x 4 ubuntu ubuntu 4096 Feb 13 2018 .
drwxrwxr-x 4 ubuntu ubuntu 4096 Feb 13 2018 ..
drwxrwxr-x 3 ubuntu ubuntu 4096 Feb 13 2018 config
drwxrwxr-x 8 ubuntu ubuntu 4096 Feb 13 2018 .git
-rw-rw-r-- 1 ubuntu ubuntu 235 Feb 13 2018 plugin.rb
ubuntu@ip-172-26-5-233:~/loomio-deploy/plugins/tapin_loomio_translation$ cat plugin.rb
module Plugins
module TapinTranslations
class Plugin < Plugins::Base
setup! :tapin_translations do |plugin|
plugin.enabled = true
plugin.use_translations 'config/locales', :tapin
end
end
end
end
ubuntu@ip-172-26-5-233:~/loomio-deploy/plugins/tapin_loomio_translation$ cat config/locales/tapin.en.yml
en:
decision_tools_card:
title: Facilitation tools
memberships_page:
coordinator_label: 'Administrator'
messages:
make_admin_success: '{{name}} is now a administrator'
remove_admin_success: '{{name}} is no longer a administrator'
remove_admin_from_self:
question: 'Are you sure you no longer want to be a administrator?'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment