Initial commit of foodsoft 2

This commit is contained in:
Benjamin Meichsner 2009-01-06 11:49:19 +01:00
commit 5b9a7e05df
657 changed files with 70444 additions and 0 deletions

View file

@ -0,0 +1,120 @@
# lang_es-AR.rb
# Argentinean-flavored Spanish translation file.
# Translation by Damian Janowski damian.janowski@gmail.com
# (based on lang_es.rb by Luis Villa del Campo)
module LocalizationSimplified
About = {
:lang => "es-ar",
:updated => "2006-10-03"
}
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 => "no está incluido en la lista",
:exclusion => "está reservado",
:invalid => "es inválido",
:confirmation => "no coincide con la confirmación",
:accepted => "debe ser aceptado",
:empty => "no puede estar vacío",
:blank => "no puede estar en blanco", # alternate, formulation: "es requerido"
:too_long => "es demasiado largo (el máximo es de %d caracteres)",
:too_short => "es demasiado corto (el mínimo es de %d caracteres)",
:wrong_length => "no posee el largo correcto (debería ser de %d caracteres)",
:taken => "ya está tomado",
:not_a_number => "no es un número",
#Jespers additions:
:error_translation => "error ocurrió",
:error_header => "%s al guardar su %s",
:error_subheader => "Los siguientes campos presentan problemas:"
}
end
# Texts to override +distance_of_time_in_words()+
class DateHelper
Texts = {
:less_than_x_seconds => "menos de %d segundos",
:half_a_minute => "medio minuto",
:less_than_a_minute => "menos de un minuto",
:one_minute => "1 minuto",
:x_minutes => "%d minutos",
:one_hour => "una hora",
:x_hours => "%d horas",
:one_day => "un día",
:x_days => "%d días",
:one_month => "un mes",
:x_months => "%d meses",
:one_year => "un año",
:x_years => "%d años"
}
# 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{enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre}
AbbrMonthnames = [nil] + %w{ene feb mar abr may jun jul ago sep oct nov dic}
Daynames = %w{domingo lunes martes miércoles jueves viernes sábado}
AbbrDaynames = %w{dom lun mar mié jue vie sáb}
# 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 => "%e %b",
:long => "%e de %B de %Y"
}
TimeFormats = {
:default => "%a, %d de %b de %Y %H:%M:%S %z",
:short => "%b %d %H:%M",
:long => "%d de %B de %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 => [:day, :month, :year] #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 => 'y',
:skip_last_comma => true
}
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 )
inflect.plural /^(error ocurrió)$/i, 'errores ocurrieron'
end