diff options
author | Masoud Abkenar <ampbox@gmail.com> | 2017-04-24 22:39:15 +0200 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-24 22:39:15 +0200 |
commit | bb04a9be52e005fb8bbeef22e5b8d30f0d202903 (patch) | |
tree | a42cca2b528b1030d81eeb1ddb1b584889c34bec /app/helpers | |
parent | 338df98ddf14493d655a72f38f2bde482becab54 (diff) |
Persian translation (#2405)
* Persian translation * adding :fa to make the site use the rtl stylesheet based on [this comment](https://github.com/tootsuite/mastodon/pull/2405#issuecomment-296721105) * fix missing quotes * add 'fa' locale
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/settings_helper.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e2ea94856..ba6803b4b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -10,7 +10,7 @@ module ApplicationHelper end def add_rtl_body_class(other_classes) - other_classes = "#{other_classes} rtl" if [:ar].include?(I18n.locale) + other_classes = "#{other_classes} rtl" if [:ar, :fa].include?(I18n.locale) other_classes end end diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index 128e1e98c..cbc0adbba 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.rb @@ -8,6 +8,7 @@ module SettingsHelper de: 'Deutsch', eo: 'Esperanto', es: 'Español', + fa: 'فارسی', fi: 'Suomi', fr: 'Français', hr: 'Hrvatski', |