Skip to content

Instantly share code, notes, and snippets.

@GRoguelon
Last active August 29, 2015 14:00
Show Gist options
  • Save GRoguelon/11324007 to your computer and use it in GitHub Desktop.
Save GRoguelon/11324007 to your computer and use it in GitHub Desktop.
French locales of Rails 4.1.0
fr:
errors:
# The default format to use in full error messages.
format: "%{attribute} %{message}"
# The values :model, :attribute and :value are always available for interpolation
# The value :count is available when applicable. Can be used for pluralization.
messages:
inclusion: "n'est pas inclus(e) dans la liste"
exclusion: "n'est pas disponible"
invalid: "n'est pas valide"
confirmation: "ne concorde pas avec la confirmation"
accepted: "doit être accepté(e)"
empty: "doit être rempli(e)"
blank: "doit être rempli(e)"
present: "doit être vide"
too_long:
one: "est trop long (pas plus d'un caractère)"
other: "est trop long (pas plus de %{count} caractères)"
too_short:
one: "est trop court (au moins un caractère)"
other: "est trop court (au moins %{count} caractères)"
wrong_length:
one: "ne fait pas la bonne longueur (doit comporter un seul caractère)"
other: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
not_a_number: "n'est pas un nombre"
not_an_integer: "doit être un nombre entier"
greater_than: "doit être supérieur à %{count}"
greater_than_or_equal_to: "doit être supérieur ou égal à %{count}"
equal_to: "doit être égal à %{count}"
less_than: "doit être inférieur à %{count}"
less_than_or_equal_to: "doit être inférieur ou égal à %{count}"
other_than: "doit être différent de %{count}"
odd: "doit être impair"
even: "doit être pair"
fr:
# Attributes names common to most models
#attributes:
#created_at: "Created at"
#updated_at: "Updated at"
# Default error messages
errors:
messages:
taken: "n'est pas disponible"
# Active Record models configuration
activerecord:
errors:
messages:
record_invalid: "La validation a échoué : %{errors}"
restrict_dependent_destroy:
one: "Suppression impossible : un autre enregistrement est lié"
many: "Suppression impossible : d'autres enregistrements sont liés"
# Append your own errors here or at the model/attributes scope.
# You can define own errors for models or model attributes.
# The values :model, :attribute and :value are always available for interpolation.
#
# For example,
# models:
# user:
# blank: "This is a custom blank message for %{model}: %{attribute}"
# attributes:
# login:
# blank: "This is a custom blank message for User login"
# Will define custom blank validation message for User model and
# custom blank validation message for login attribute of User model.
#models:
# Translate model names. Used in Model.human_name().
#models:
# For example,
# user: "Dude"
# will translate User model name to "Dude"
# Translate model attribute names. Used in Model.human_attribute_name(attribute).
#attributes:
# For example,
# user:
# login: "Handle"
# will translate User attribute "login" as "Handle"
fr:
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
datetime:
distance_in_words:
half_a_minute: "une demi-minute"
less_than_x_minutes:
zero: "moins d'une minute"
one: "moins d'une minute"
other: "moins de %{count} minutes"
x_seconds:
one: "1 seconde"
other: "%{count} secondes"
less_than_x_seconds:
zero: "moins d'une seconde"
one: "moins d'une seconde"
other: "moins de %{count} secondes"
x_minutes:
one: "1 minute"
other: "%{count} minutes"
about_x_hours:
one: "environ une heure"
other: "environ %{count} heures"
x_days:
one: "1 jour"
other: "%{count} jours"
about_x_months:
one: "environ un mois"
other: "environ %{count} mois"
x_months:
one: "1 mois"
other: "%{count} mois"
about_x_years:
one: "environ un an"
other: "environ %{count} ans"
over_x_years:
one: "plus d'un an"
other: "plus de %{count} ans"
almost_x_years:
one: "presqu'un an"
other: "presque %{count} ans"
prompts:
year: "Année"
month: "Mois"
day: "Jour"
hour: "Heure"
minute: "Minute"
second: "Seconde"
helpers:
select:
# Default value for :prompt => true in FormOptionsHelper
prompt: "Veuillez sélectionner"
# Default translation keys for submit and button FormHelper
submit:
create: "Créer un(e) %{model}"
submit: "Enregistrer ce(tte) %{model}"
update: "Modifier ce(tte) %{model}"
fr:
date:
formats:
# Use the strftime parameters for formats.
# When no format has been given, it uses default.
# You can provide other formats here if you like!
default: "%d/%m/%Y"
short: "%e %b"
long: "%e %B %Y"
day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
# Don't forget the nil at the beginning; there's no such thing as a 0th month
month_names: [~, janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre]
abbr_month_names: [~, jan., fév., mar., avr., mai, juin, juil., août, sept., oct., nov., déc.]
# Used in date_select and datetime_select.
order:
- :day
- :month
- :year
time:
formats:
default: "%d %B %Y %H:%M:%S"
long: "%A %d %B %Y %H:%M"
short: "%d %b %H:%M"
am: "am"
pm: "pm"
# Used in array.to_sentence.
support:
array:
words_connector: ", "
two_words_connector: " et "
last_word_connector: " et "
number:
# Used in NumberHelper.number_to_delimited()
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
format:
# Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
separator: ","
# Delimits thousands (e.g. 1,000,000 is a million) (always in groups of three)
delimiter: " "
# Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00)
precision: 3
# If set to true, precision will mean the number of significant digits instead
# of the number of decimal digits (1234 with precision 2 becomes 1200, 1.23543 becomes 1.2)
significant: false
# If set, the zeros after the decimal separator will always be stripped (eg.: 1.200 will be 1.2)
strip_insignificant_zeros: false
# Used in NumberHelper.number_to_currency()
currency:
format:
# Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
format: "%n %u"
unit: "€"
# These five are to override number.format and are optional
separator: ","
delimiter: " "
precision: 2
significant: false
strip_insignificant_zeros: false
# Used in NumberHelper.number_to_percentage()
percentage:
format:
# These five are to override number.format and are optional
# separator:
delimiter: ""
# precision:
# significant: false
# strip_insignificant_zeros: false
format: "%n %"
# Used in NumberHelper.number_to_rounded()
precision:
format:
# These five are to override number.format and are optional
# separator:
delimiter: ""
# precision:
# significant: false
# strip_insignificant_zeros: false
# Used in NumberHelper.number_to_human_size() and NumberHelper.number_to_human()
human:
format:
# These five are to override number.format and are optional
# separator:
delimiter: ""
precision: 2
significant: true
strip_insignificant_zeros: true
# Used in number_to_human_size()
storage_units:
# Storage units output formatting.
# %u is the storage unit, %n is the number (default: 2 MB)
format: "%n %u"
units:
byte:
one: "octet"
other: "octets"
kb: "ko"
mb: "Mo"
gb: "Go"
tb: "To"
# Used in NumberHelper.number_to_human()
decimal_units:
format: "%n %u"
# Decimal units output formatting
# By default we will only quantify some of the exponents
# but the commented ones might be defined or overridden
# by the user.
units:
# femto: Quadrillionth
# pico: Trillionth
# nano: Billionth
# micro: Millionth
# mili: Thousandth
# centi: Hundredth
# deci: Tenth
unit: ""
# ten:
# one: Ten
# other: Tens
# hundred: Hundred
thousand: "millier"
million: "million"
billion: "milliard"
trillion: "billion"
quadrillion: "million de milliards"
Locales compiled from https://github.com/svenfuchs/rails-i18n repository.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment