diff --git a/app/views/invitations/build.html.erb b/app/views/invitations/build.html.erb index 8e07a7b..5d068de 100644 --- a/app/views/invitations/build.html.erb +++ b/app/views/invitations/build.html.erb @@ -1,42 +1,30 @@
- Request an Invitation + <%= t('.buildinvtitle') %>
-

- If you don't know (or can't find) an existing user from - whom to request an invitation, you can make a public request for one. This - will display your name and memo to all other logged-in users who can then - send you an invitation if they recognize you. -

- -

- Your e-mail address must be valid and confirmed by visiting a URL e-mailed to - you before your request will be displayed. Your e-mail address will not be - shown to any other users (except moderators). -

+ <%= raw t('.buildinvtext') %> <%= form_for @invitation_request, :url => create_invitation_by_request_path do |f| %>

- <%= f.label :name, "Name:" %> + <%= f.label :name, t('.buildinvname') %> <%= f.text_field :name, :size => 30 %>
- <%= f.label :email, "E-mail Address:" %> + <%= f.label :email, t('.buildinvemail') %> <%= f.text_field :email, :size => 30 %>
- <%= f.label :memo, "URL:" %> + <%= f.label :memo, t('.buildinvurl') %> <%= f.text_field :memo, :size => 30 %>
- URL to verify you (Personal website, Github account, - etc.) + <%= t('.buildinvverificationurl') %>

- <%= submit_tag "Request Invitation" %> + <%= submit_tag t('.buildinvrequest') %>

<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index d6ab1b2..2276eaa 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -96,6 +96,15 @@ en: home: index: homerecentsdesc: "The newest stories with a random sampling of recently submitted stories that have not yet reached the front page." + invitations: + build: + buildinvtitle: "Request an Invitation" + buildinvtext: "

If you don't know (or can't find) an existing user from whom to request an invitation, you can make a public request for one. This will display your name and memo to all other logged-in users who can then send you an invitation if they recognize you.

Your e-mail address must be valid and confirmed by visiting a URL e-mailed to you before your request will be displayed. Your e-mail address will not be shown to any other users (except moderators).

" + buildinvname: "Name:" + buildinvemail: "E-mail Address:" + buildinvurl: "URL:" + buildinvverificationurl: "URL to verify you (Personal website, Github account, etc.)" + buildinvrequest: "Request Invitation" login: index: login: "Login" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 486a0bd..7a8150e 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -99,6 +99,15 @@ fr: home: index: homerecentsdesc: "Les plus récentes infos avec un panaché aléatoire des infos récentes soumises qui n'ont pas encore atteint la page principale." + invitations: + build: + buildinvtitle: "Demander une invitation" + buildinvtext: "

Si vous ne connaissez pas ou ne pouvez trouver un utilisateur existant auquel vous pourriez demander une invitation, vous pouvez le faire publiquement. Vous receverez directement l'invitation si elle vous est envoyée.

Votre adresse e-mail doit être valide et confirmée en visitant l'url qui vous est envoyée par e-mail avant que votre demande soit affichée. Votre adresse e-mail ne sera pas visible par les autres, à l'exception des modérateurs.

" + buildinvname: "Nom :" + buildinvemail: "Adresse e-mail :" + buildinvurl: "URL :" + buildinvverificationurl: "URL permettant la vérification (site web personnel, compte Github, etc.)" + buildinvrequest: "Demande d'invitation" login: index: login: "Se connecter"