more tranlations for validations. Bug fix for the missing translation of the gps upload
This commit is contained in:
parent
835a57c28a
commit
2875a2c4b3
3 changed files with 75 additions and 3 deletions
|
@ -142,6 +142,7 @@ class TraceController < ApplicationController
|
||||||
@trace.errors.add(:gpx_file, "can't be blank")
|
@trace.errors.add(:gpx_file, "can't be blank")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@title = I18n.t('trace.create.upload_trace')
|
||||||
end
|
end
|
||||||
|
|
||||||
def data
|
def data
|
||||||
|
|
|
@ -12,8 +12,8 @@ class User < ActiveRecord::Base
|
||||||
has_many :changesets
|
has_many :changesets
|
||||||
|
|
||||||
validates_presence_of :email, :display_name
|
validates_presence_of :email, :display_name
|
||||||
validates_confirmation_of :email, :message => 'Email addresses must match'
|
validates_confirmation_of :email#, :message => ' addresses must match'
|
||||||
validates_confirmation_of :pass_crypt, :message => 'Password must match the confirmation password'
|
validates_confirmation_of :pass_crypt#, :message => ' must match the confirmation password'
|
||||||
validates_uniqueness_of :display_name, :allow_nil => true
|
validates_uniqueness_of :display_name, :allow_nil => true
|
||||||
validates_uniqueness_of :email
|
validates_uniqueness_of :email
|
||||||
validates_length_of :pass_crypt, :within => 8..255
|
validates_length_of :pass_crypt, :within => 8..255
|
||||||
|
|
|
@ -1,4 +1,75 @@
|
||||||
en:
|
en:
|
||||||
|
activerecord:
|
||||||
|
# Translates all the model names, which is used in error handling on the web site
|
||||||
|
models:
|
||||||
|
acl: "Access Control List"
|
||||||
|
changeset: "Changeset"
|
||||||
|
changeset_tag: "Changeset Tag"
|
||||||
|
country: "Country"
|
||||||
|
diary_comment: "Diary Comment"
|
||||||
|
diary_entry: "Diary Entry"
|
||||||
|
friend: "Friend"
|
||||||
|
language: "Language"
|
||||||
|
message: "Message"
|
||||||
|
node: "Node"
|
||||||
|
node_tag: "Node Tag"
|
||||||
|
notifier: "Notifier"
|
||||||
|
old_node: "Old Node"
|
||||||
|
old_node_tag: "Old Node Tag"
|
||||||
|
old_relation: "Old Relation"
|
||||||
|
old_relation_member: "Old Relation Member"
|
||||||
|
old_relation_tag: "Old Relation Tag"
|
||||||
|
old_way: "Old Way"
|
||||||
|
old_way_node: "Old Way Node"
|
||||||
|
old_way_tag: "Old Way Tag"
|
||||||
|
relation: "Relation"
|
||||||
|
relation_member: "Relation Member"
|
||||||
|
relation_tag: "Relation Tag"
|
||||||
|
session: "Session"
|
||||||
|
trace: "Trace"
|
||||||
|
tracepoint: "Trace Point"
|
||||||
|
tracetag: "Trace Tag"
|
||||||
|
user: "User"
|
||||||
|
user_preference: "User Preference"
|
||||||
|
user_token: "User Token"
|
||||||
|
way: "Way"
|
||||||
|
way_node: "Way Node"
|
||||||
|
way_tag: "Way Tag"
|
||||||
|
# Translates all the model attributes, which is used in error handling on the web site
|
||||||
|
# Only the ones that are used on the web site are translated at the moment
|
||||||
|
attributes:
|
||||||
|
diary_comment:
|
||||||
|
body: "Body"
|
||||||
|
diary_entry:
|
||||||
|
user: "User"
|
||||||
|
title: "Title"
|
||||||
|
latitude: "Latitude"
|
||||||
|
longitude: "Longitude"
|
||||||
|
language: "Language"
|
||||||
|
friend:
|
||||||
|
user: "User"
|
||||||
|
friend: "Friend"
|
||||||
|
trace:
|
||||||
|
user: "User"
|
||||||
|
visible: "Visible"
|
||||||
|
name: "Name"
|
||||||
|
size: "Size"
|
||||||
|
latitude: "Latitude"
|
||||||
|
longitude: "Longitude"
|
||||||
|
public: "Public"
|
||||||
|
description: "Description"
|
||||||
|
message:
|
||||||
|
sender: "Sender"
|
||||||
|
title: "Title"
|
||||||
|
body: "Body"
|
||||||
|
recipient: "Recipient"
|
||||||
|
user:
|
||||||
|
email: "Email"
|
||||||
|
active: "Active"
|
||||||
|
display_name: "Display Name"
|
||||||
|
description: "Description"
|
||||||
|
languages: "Languages"
|
||||||
|
pass_crypt: "Password"
|
||||||
map:
|
map:
|
||||||
view: View
|
view: View
|
||||||
edit: Edit
|
edit: Edit
|
||||||
|
@ -349,7 +420,7 @@ en:
|
||||||
map_key: "Map key"
|
map_key: "Map key"
|
||||||
trace:
|
trace:
|
||||||
create:
|
create:
|
||||||
upload: "Upload GPS Trace"
|
upload_trace: "Upload GPS Trace"
|
||||||
edit:
|
edit:
|
||||||
filename: "Filename:"
|
filename: "Filename:"
|
||||||
uploaded_at: "Uploaded at:"
|
uploaded_at: "Uploaded at:"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue