Initial commit of foodsoft 2
This commit is contained in:
commit
5b9a7e05df
657 changed files with 70444 additions and 0 deletions
118
vendor/plugins/l10n-simplified-0.8/lib/lang_cf.rb
vendored
Executable file
118
vendor/plugins/l10n-simplified-0.8/lib/lang_cf.rb
vendored
Executable file
|
|
@ -0,0 +1,118 @@
|
|||
# lang_cf.rb
|
||||
# french canadian translation file
|
||||
# Translation by Daniel Lepage ( http://www.solulabs.com/ )
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "cf",
|
||||
:updated => "2006-09-07"
|
||||
}
|
||||
|
||||
class ActiveRecord
|
||||
# ErrorMessages to override default messages in
|
||||
# +ActiveRecord::Errors::@@default_error_messages+
|
||||
# This plugin also replaces hardcoded 3 text messages
|
||||
# :error_translation is inflected using the Rails
|
||||
# inflector.
|
||||
#
|
||||
# Remember to modify the Inflector with your localized translation
|
||||
# of "error" and "errors" in the bottom of this file
|
||||
#
|
||||
ErrorMessages = {
|
||||
:inclusion => "n'est pas inclus dans la liste",
|
||||
:exclusion => "est réservé",
|
||||
:invalid => "est non valide",
|
||||
:confirmation => "ne correspond pas à la confirmation",
|
||||
:accepted => "doit être accepté",
|
||||
:empty => "ne peut pas être vide",
|
||||
:blank => "ne peut pas être laissé à blanc",
|
||||
:too_long => "dépasse la longueur permise (le maximum étant de %d caractères)",
|
||||
:too_short => "est trop court (le minimum étant de %d caractères)",
|
||||
:wrong_length => "n'est pas de la bonne longueur (doit être de %d caractères)",
|
||||
:taken => "as déjà été pris",
|
||||
:not_a_number => "n'est pas un nombre",
|
||||
#Jespers additions:
|
||||
:error_translation => "erreur",
|
||||
:error_header => "%s interdit d'enregistrer %s ",
|
||||
:error_subheader => "Il y a des erreurs dans les champs suivants : "
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "moins de %d secondes",
|
||||
:half_a_minute => "30 secondes",
|
||||
:less_than_a_minute => "moins d'une minute",
|
||||
:one_minute => "1 minute",
|
||||
:x_minutes => "%d minutes",
|
||||
:one_hour => "environ 1 heure",
|
||||
:x_hours => "environ %d heures",
|
||||
:one_day => "1 jour",
|
||||
:x_days => "%d jours",
|
||||
:one_month => "1 mois",
|
||||
:x_months => "%d mois",
|
||||
:one_year => "1 an",
|
||||
:x_years => "%d ans"
|
||||
}
|
||||
|
||||
# Rails uses Month names in Date and time select boxes
|
||||
# (+date_select+ and +datetime_select+ )
|
||||
# Currently (as of version 1.1.6), Rails doesn't use daynames
|
||||
Monthnames = [nil] + %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre}
|
||||
AbbrMonthnames = [nil] + %w{Jan Fev Mar Avr Mai Jun Jui Aou Sep Oct Nov Dec}
|
||||
Daynames = %w{Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi}
|
||||
AbbrDaynames = %w{Dim Lun Mar Mer Jeu Ven Sam}
|
||||
|
||||
# Date and time format syntax explained in http://www.rubycentral.com/ref/ref_c_time.html#strftime
|
||||
# These are sent to strftime that Ruby's date and time handlers use internally
|
||||
# Same options as php (that has a better list: http://www.php.net/strftime )
|
||||
DateFormats = {
|
||||
:default => "%Y-%m-%d",
|
||||
:short => "%b %e",
|
||||
:long => "%B %e, %Y"
|
||||
}
|
||||
|
||||
TimeFormats = {
|
||||
:default => "%a, %d %b %Y %H:%M:%S %z",
|
||||
:short => "%d %b %H:%M",
|
||||
:long => "%B %d, %Y %H:%M"
|
||||
}
|
||||
# Set the order of +date_select+ and +datetime_select+ boxes
|
||||
# Note that at present, the current Rails version only supports ordering of date_select boxes
|
||||
DateSelectOrder = {
|
||||
:order => [:year, :month, :day] #default Rails is US ordered: :order => [:year, :month, :day]
|
||||
}
|
||||
end
|
||||
|
||||
class NumberHelper
|
||||
# CurrencyOptions are used as default for +Number#to_currency()+
|
||||
# http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449
|
||||
CurrencyOptions = {
|
||||
:unit => "$",
|
||||
:separator => ".", #unit separator (between integer part and fraction part)
|
||||
:delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567
|
||||
:order => [:unit, :number] #order is at present unsupported in Rails
|
||||
#to support for instance Danish format, the order is different: Unit comes last (ex. "1.234,00 dkr.")
|
||||
}
|
||||
end
|
||||
|
||||
class ArrayHelper
|
||||
# Modifies +Array#to_sentence()+
|
||||
# http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274
|
||||
ToSentenceTexts = {
|
||||
:connector => 'et',
|
||||
:skip_last_comma => false
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# Use the inflector below to pluralize "error" from
|
||||
# @@default_error_messages[:error_translation] above (if necessary)
|
||||
# Inflector.inflections do |inflect|
|
||||
# inflect.plural /^(ox)$/i, '\1en'
|
||||
# inflect.singular /^(ox)en/i, '\1'
|
||||
# inflect.irregular 'person people'
|
||||
# inflect.uncountable %w( information )
|
||||
# end
|
||||
Loading…
Add table
Add a link
Reference in a new issue