diff --git a/app/views/shared/_counter.slim b/app/views/shared/_counter.slim index 8c6556a..3836f55 100644 --- a/app/views/shared/_counter.slim +++ b/app/views/shared/_counter.slim @@ -1,4 +1,7 @@ -#counter.pull-right +#counter.pull-right aria-hidden="true" = t('.supporters') - Supporter.counter.to_s.split('').each do |x| .counter_char= x +.sr-only + h2 lang='en' Counter + = t('.amount_of_supporters', amount: Supporter.counter) diff --git a/config/locales/de.yml b/config/locales/de.yml index 8671f31..c677b9b 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -39,6 +39,7 @@ de: shared: counter: supporters: "Unterstützer:" + amount_of_supporters: Zurzeit haben wir %{amount} Unterstützer. mongoid: attributes: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index e25e6dc..cc21237 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -39,6 +39,7 @@ fr: shared: counter: supporters: "Militant:" + amount_of_supporters: Nous avons actuellement %{amount} supporters. mongoid: attributes: diff --git a/config/locales/it.yml b/config/locales/it.yml index f2623ea..a84873c 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -39,6 +39,7 @@ it: shared: counter: supporters: "Sostenitore:" + amount_of_supporters: Al momento abbiamo %{amount} sostenitori. mongoid: attributes: