From bb04a9be52e005fb8bbeef22e5b8d30f0d202903 Mon Sep 17 00:00:00 2001 From: Masoud Abkenar Date: Mon, 24 Apr 2017 22:39:15 +0200 Subject: 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 --- app/helpers/application_helper.rb | 2 +- app/helpers/settings_helper.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app/helpers') 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', -- cgit