finish mailer i18n

This commit is contained in:
wvengen 2013-02-06 00:50:59 +01:00
parent b12a906a74
commit de730808e7
10 changed files with 115 additions and 77 deletions

View file

@ -1,17 +1,6 @@
Hallo!
\
#{@invite.user.name} (#{@invite.user.email}) hat dich in die Gruppe "#{@invite.group.name}" eingeladen.
Um die Einladung anzunehmen und der Foodcoop beizutreten, gehe zu: #{@link}
Dieser Link kann nur einmal aufgerufen werden und ist nur bis #{I18n.l @invite.expires_at} gültig.
\
Grüße sendet die Foodsoft!
\
=======
\
Hi!
\
#{@invite.user.name} (#{@invite.user.email}) has invited you to join the group "#{@invite.group.name}".
To accept the invitation and to join the foodcoop please follow this link: #{@link}
This link works only once and expires on #{I18n.l @invite.expires_at, locale: :en}.
\
Greetings, your FoodSoft Team!
= t '.text', user: @invite.user.name, mail: @invite.user.email, group: @invite.group.name, link: @link, expires: I18n.l(@invite.expires_at)
-# append english text only if the locale is not english
- if not I18n.locale.to_s.start_with?('en')
=======
\
= t '.text', user: @invite.user.name, mail: @invite.user.email, group: @invite.group.name, link: @link, expires: I18n.l(@invite.expires_at, locale: :en), locale: :en