From: Tom Hughes <%= t 'user.login.already have' %> <%= t 'user.login.with username' %> <%= t 'user.login.with openid' %> <%= t 'user.login.to make changes' %> <%= t 'user.login.create account minute' %> <%= t 'user.login.create account minute' %> <%= button_to t('user.login.register now'), :action => :new, :referer => params[:referer] %><%= t 'user.login.heading' %>
-
<%= submit_tag t('user.login.login_button'), :tabindex => 3 %>
+
+ <%= t 'user.login.email or username' %> <%= text_field('user', 'email',{:value => "", :size => 28, :maxlength => 255, :tabindex => 1}) %> <%= t 'user.login.password' %> <%= password_field('user', 'password',{:value => "", :size => 28, :maxlength => 255, :tabindex => 2}) %> (<%= link_to t('user.login.lost password link'), :controller => 'user', :action => 'lost_password' %>) <%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %>
+
+
+
+
+
+ <%=
+ link_to_function(image_tag("openid_large.png", :alt => t("user.login.openid_providers.openid.title")), nil, :title => t("user.login.openid_providers.openid.title")) do |page|
+ page[:login_form][:openid_url].value = "http://"
+ page[:login_openid_buttons].hide
+ page[:login_openid_url].show
+ page[:login_openid_submit].show
+ end
+ %>
+
+ <%= openid_button "yahoo", "me.yahoo.com" %>
+ <%= openid_button "google", "gmail.com" %>
+
+
+ <%= openid_button "myopenid", "myopenid.com" %>
+ <%= openid_button "wordpress", "wordpress.com" %>
+ <%= openid_button "myspace", "myspace.com" %>
+
+
+
+ <%= submit_tag t('user.login.login_button'), :tabindex => 6, :id => "login_openid_submit" %>
<% end %>
+
-
+
+
+ <%= t 'user.login.openid', :logo => openid_logo %>
+
+
+ <%= text_field_tag("openid_url", "", { :size => 28, :maxlength => 255, :tabindex => 3, :class => "openid_url" }) %>
+ (<%= t 'user.account.openid.link text' %>)
+
+
+
+
+ <%= check_box_tag "remember_me", "yes", false, :tabindex => 5 %>
+
+
<%= t 'user.login.new to osm' %>
+
+
<%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %> - <% if params[:user] %> + <% if @user.new_record? %> <%= hidden_field('user', 'email') %> <%= hidden_field('user', 'email_confirmation') %> <%= hidden_field('user', 'display_name') %> <%= hidden_field('user', 'pass_crypt') %> <%= hidden_field('user', 'pass_crypt_confirmation') %> + <%= hidden_field('user', 'openid_url') %> <% end %>
+<%= t 'user.terms.guidance', :summary => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary', :translations => 'http://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %>
<% end %> diff --combined config/locales/en.yml index 1509ba917,d8d7c13b3..a95544017 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@@ -1516,15 -1516,15 +1516,15 @@@ en login: title: "Login" heading: "Login" - please login: "Please login or {{create_user_link}}." - create_account: "create an account" email or username: "Email Address or Username:" password: "Password:" + openid: "{{logo}} OpenID:" remember: "Remember me:" lost password link: "Lost your password?" login_button: "Login" register now: Register now - already have: Already have an OpenStreetMap account? Please login. + with username: "Already have an OpenStreetMap account? Please login with your username and password:" + with openid: "Alternatively please use your OpenID to login:" new to osm: New to OpenStreetMap? to make changes: To make changes to the OpenStreetMap data, you must have an account. create account minute: Create an account. It only takes a minute. @@@ -1533,28 -1533,6 +1533,28 @@@ webmaster: webmaster auth failure: "Sorry, could not log in with those details." notice: "Find out more about OpenStreetMap's upcoming license change (translations) (discussion)" + openid missing provider: "Sorry, could not contact your OpenID provider" + openid invalid: "Sorry, your OpenID seems to be malformed" + openid_logo_alt: "Log in with an OpenID" + openid_providers: + openid: + title: Login with an OpenID URL + alt: Login with an OpenID URL + yahoo: + title: Login with a Yahoo! OpenID + alt: Login with a Yahoo! OpenID + google: + title: Login with a Google OpenID + alt: Login with a Google OpenID + myopenid: + title: Login with a myOpenID OpenID + alt: Login with a myOpenID OpenID + wordpress: + title: Login with a Wordpress.com OpenID + alt: Login with a Wordpress.com OpenID + myspace: + title: Login with a MySpace OpenID + alt: Login with a MySpace OpenID logout: title: "Logout" heading: "Logout from OpenStreetMap" @@@ -1587,21 -1565,8 +1587,21 @@@ not displayed publicly: 'Not displayed publicly (see privacy policy)' display name: "Display Name:" display name description: "Your publicly displayed username. You can change this later in the preferences." + openid: "{{logo}} OpenID:" password: "Password:" confirm password: "Confirm Password:" + use openid: "Alternatively, use {{logo}} OpenID to login" + openid no password: "With OpenID a password is not required, but some extra tools or server may still need one." + openid association: | +Your OpenID is not associated with a OpenStreetMap account yet.
+