Added translation scaffold for inflection of nouns by grammatical gender in some languages.

This commit is contained in:
Paweł Wilk 2010-12-01 05:09:06 +01:00
parent 279b08ae4a
commit 65c796572d
2 changed files with 50 additions and 13 deletions

View file

@ -10,7 +10,7 @@ module LanguageHelper
def options_for_gender_select(user) def options_for_gender_select(user)
grammatical_gender = user.grammatical_gender grammatical_gender = user.grammatical_gender
genders_list = I18n::Backend::Genderize.known_genders.map do |gender| genders_list = I18n::Backend::Genderize.known_genders.map do |gender|
[t("#{gender}"), gender] [t(".#{gender}"), gender]
end end
if grammatical_gender.blank? if grammatical_gender.blank?
grammatical_gender = I18n::Backend::Genderize.guess(user.profile.gender) grammatical_gender = I18n::Backend::Genderize.guess(user.profile.gender)

View file

@ -21,7 +21,10 @@ en:
email: "Email" email: "Email"
password: "Password" password: "Password"
password_confirmation: "Password confirmation" password_confirmation: "Password confirmation"
are_you_sure: "Are you sure?" are_you_sure:
masculine: "Are you sure?"
feminine: "Are you sure?"
neuter: "Are you sure?"
fill_me_out: "Fill me out" fill_me_out: "Fill me out"
back: "Back" back: "Back"
the_world: "the world" the_world: "the world"
@ -103,7 +106,10 @@ en:
your_diaspora_username_is: "Your Diaspora username is: %{diaspora_handle}" your_diaspora_username_is: "Your Diaspora username is: %{diaspora_handle}"
create_request: "Find by Diaspora handle" create_request: "Find by Diaspora handle"
diaspora_handle: "diaspora@handle.org" diaspora_handle: "diaspora@handle.org"
know_email: "Know their email address? You should invite them" know_email:
masculine: "Know their email address? You should invite them"
feminine: "Know their email address? You should invite them"
neuter: "Know their email address? You should invite them"
invitations: invitations:
invite_someone: "Invite someone" invite_someone: "Invite someone"
invitations_left: "(%{count} left)" invitations_left: "(%{count} left)"
@ -183,6 +189,10 @@ en:
download_photos: "download my photos" download_photos: "download my photos"
your_handle: "Your diaspora handle" your_handle: "Your diaspora handle"
your_email: "Your email" your_email: "Your email"
address_me_as: "Address me as"
masculine: "a man"
feminine: "a woman"
neuter: "a neuter"
destroy: "Account successfully closed." destroy: "Account successfully closed."
getting_started: getting_started:
welcome: "Welcome to Diaspora!" welcome: "Welcome to Diaspora!"
@ -241,9 +251,18 @@ en:
back_to_list: "Back to List" back_to_list: "Back to List"
post_it: "post it!" post_it: "post it!"
create: create:
runtime_error: "Photo upload failed. Are you sure that your seatbelt is fastened?" runtime_error:
integrity_error: "Photo upload failed. Are you sure that was an image?" masculine: "Photo upload failed. Are you sure that your seatbelt is fastened?"
type_error: "Photo upload failed. Are you sure an image was added?" feminine: "Photo upload failed. Are you sure that your seatbelt is fastened?"
neuter: "Photo upload failed. Are you sure that your seatbelt is fastened?"
integrity_error:
masculine: "Photo upload failed. Are you sure that was an image?"
feminine: "Photo upload failed. Are you sure that was an image?"
neuter: "Photo upload failed. Are you sure that was an image?"
type_error:
masculine: "Photo upload failed. Are you sure an image was added?"
feminine: "Photo upload failed. Are you sure an image was added?"
neuter: "Photo upload failed. Are you sure an image was added?"
update: update:
notice: "Photo successfully updated." notice: "Photo successfully updated."
error: "Failed to edit photo." error: "Failed to edit photo."
@ -272,11 +291,20 @@ en:
sent: "Invitations have been sent to: " sent: "Invitations have been sent to: "
rejected: "The following email addresses had problems: " rejected: "The following email addresses had problems: "
no_more: "You have no more invitations." no_more: "You have no more invitations."
already_sent: "You already invited this person." already_sent:
already_contacts: "You are already connected with this person" masculine: "You already invited this person."
feminine: "You already invited this person."
neuter: "You already invited this person."
already_contacts:
masculine: "You are already connected with this person."
feminine: "You are already connected with this person."
neuter: "You are already connected with this person."
new: new:
invite_someone_to_join: "Invite someone to join Diaspora!" invite_someone_to_join: "Invite someone to join Diaspora!"
if_they_accept_info: "if they accept, they will be added to the aspect you invited them." if_they_accept_info:
masculine: "if they accept, they will be added to the aspect you invited them."
feminine: "if they accept, they will be added to the aspect you invited them."
neuter: "if they accept, they will be added to the aspect you invited them."
comma_seperated_plz: "You can enter multiple email addresses separated by commas." comma_seperated_plz: "You can enter multiple email addresses separated by commas."
to: "To" to: "To"
message: "Message:" message: "Message:"
@ -307,10 +335,16 @@ en:
incoming_request: "You have an incoming request from this person." incoming_request: "You have an incoming request from this person."
return_to_aspects: "Return to your aspects page" return_to_aspects: "Return to your aspects page"
to_accept_or_ignore: "to accept or ignore it." to_accept_or_ignore: "to accept or ignore it."
request_people: "If you'd like, you can request to place him/her in one of your aspects." request_people: "If you'd like, you can request to place him in one of your aspects."
already_requested: "You have already sent a request to %{name}." already_requested:
masculine: "You have already sent a request to %{name}."
feminine: "You have already sent a request to %{name}."
neuter: "You have already sent a request to %{name}."
does_not_exist: "Person does not exist!" does_not_exist: "Person does not exist!"
not_connected: "You are not connected with this person" not_connected:
masculine: "You are not connected with this person"
feminine: "You are not connected with this person"
neuter: "You are not connected with this person"
edit: edit:
info_available_to: "This info will be available to whomever you connect with on Diaspora." info_available_to: "This info will be available to whomever you connect with on Diaspora."
your_profile: "Your profile" your_profile: "Your profile"
@ -350,7 +384,10 @@ en:
ignore: "Ignored contact request." ignore: "Ignored contact request."
create: create:
sending: "Sending" sending: "Sending"
sent: "You've asked to share with %{name}. They should see it next time they log in to Diaspora." sent:
masculine: "You've asked to share with %{name}. They should see it next time they log in to Diaspora."
feminine: "You've asked to share with %{name}. They should see it next time they log in to Diaspora."
neuter: "You've asked to share with %{name}. They should see it next time they log in to Diaspora."
new_request_to_person: new_request_to_person:
sent: "sent!" sent: "sent!"
services: services: