Removed gettext and simplified_localization-plugin. L18n is now the appropriate module.
Upgraded to rails 2.2.2 and replaced complex foodsoft.rb-loader with simple initializers/load_app_config.rb. Multiple foodcoops option is temporarly deactivated.
This commit is contained in:
parent
5b9a7e05df
commit
9f8d0d28ac
121 changed files with 1197 additions and 15237 deletions
|
|
@ -1 +1,4 @@
|
|||
require "action_mailer"
|
||||
require "exception_notifier"
|
||||
require "exception_notifiable"
|
||||
require "exception_notifier_helper"
|
||||
|
|
|
|||
|
|
@ -33,25 +33,25 @@ class ExceptionNotifier < ActionMailer::Base
|
|||
@@sections = %w(request session environment backtrace)
|
||||
cattr_accessor :sections
|
||||
|
||||
def self.reloadable?; false; end
|
||||
self.template_root = "#{File.dirname(__FILE__)}/../views"
|
||||
|
||||
def self.reloadable?() false end
|
||||
|
||||
def exception_notification(exception, controller, request, data={})
|
||||
content_type "text/plain"
|
||||
|
||||
subject "#{email_prefix}#{controller.controller_name}##{controller.action_name} (#{exception.class}) #{exception.message.inspect}"
|
||||
|
||||
recipients exception_recipients
|
||||
from sender_address
|
||||
|
||||
body data.merge({ :controller => controller, :request => request,
|
||||
:exception => exception, :host => request.env["HTTP_HOST"],
|
||||
:exception => exception, :host => (request.env["HTTP_X_FORWARDED_HOST"] || request.env["HTTP_HOST"]),
|
||||
:backtrace => sanitize_backtrace(exception.backtrace),
|
||||
:rails_root => rails_root, :data => data,
|
||||
:sections => sections })
|
||||
end
|
||||
|
||||
def template_root
|
||||
"#{File.dirname(__FILE__)}/../views"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def sanitize_backtrace(trace)
|
||||
|
|
@ -60,8 +60,7 @@ class ExceptionNotifier < ActionMailer::Base
|
|||
end
|
||||
|
||||
def rails_root
|
||||
return @rails_root if @rails_root
|
||||
@rails_root = Pathname.new(RAILS_ROOT).cleanpath.to_s
|
||||
@rails_root ||= Pathname.new(RAILS_ROOT).cleanpath.to_s
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -67,11 +67,12 @@ module ExceptionNotifierHelper
|
|||
end
|
||||
|
||||
def filter_sensitive_post_data_parameters(parameters)
|
||||
exclude_raw_post_parameters? ? @controller.filter_parameters(parameters) : parameters
|
||||
exclude_raw_post_parameters? ? @controller.__send__(:filter_parameters, parameters) : parameters
|
||||
end
|
||||
|
||||
def filter_sensitive_post_data_from_env(env_key, env_value)
|
||||
return env_value unless exclude_raw_post_parameters?
|
||||
(env_key =~ /RAW_POST_DATA/i) ? PARAM_FILTER_REPLACEMENT : env_value
|
||||
return PARAM_FILTER_REPLACEMENT if (env_key =~ /RAW_POST_DATA/i)
|
||||
return @controller.__send__(:filter_parameters, {env_key => env_value}).values[0]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<% max = @request.env.keys.max { |a,b| a.length <=> b.length } -%>
|
||||
<% @request.env.keys.sort.each do |key| -%>
|
||||
* <%= "%*-s: %s" % [max.length, key, filter_sensitive_post_data_from_env(key, @request.env[key].to_s.strip)] %>
|
||||
* <%= "%-*s: %s" % [max.length, key, filter_sensitive_post_data_from_env(key, @request.env[key].to_s.strip)] %>
|
||||
<% end -%>
|
||||
|
||||
* Process: <%= $$ %>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
* URL: <%= @request.protocol %><%= @host %><%= @request.request_uri %>
|
||||
* URL : <%= @request.protocol %><%= @host %><%= @request.request_uri %>
|
||||
* IP address: <%= @request.env["HTTP_X_FORWARDED_FOR"] || @request.env["REMOTE_ADDR"] %>
|
||||
* Parameters: <%= filter_sensitive_post_data_parameters(@request.parameters).inspect %>
|
||||
* Rails root: <%= @rails_root %>
|
||||
|
|
|
|||
20
vendor/plugins/l10n-simplified-0.8/MIT-LICENSE
vendored
20
vendor/plugins/l10n-simplified-0.8/MIT-LICENSE
vendored
|
|
@ -1,20 +0,0 @@
|
|||
Copyright (c) 2006 Jesper Rønn-Jensen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
158
vendor/plugins/l10n-simplified-0.8/README
vendored
158
vendor/plugins/l10n-simplified-0.8/README
vendored
|
|
@ -1,158 +0,0 @@
|
|||
= Localization Simplified (aka LocalizationSimplified or L10n-simplified)
|
||||
|
||||
Localization Simplified plugin for Ruby on Rails. Really simple localization. Written by Jesper Rønn-Jensen ( http://justaddwater.dk/ )
|
||||
|
||||
The goal is to have a dead simple plugin for one-language (non-english) Rails
|
||||
applications. Many of the existing localization / internationalization plugins are
|
||||
too big for this and hard to get started with. Just dump this plugin in
|
||||
/vendor/plugins/, set your language and off you go.
|
||||
|
||||
Unlike the more advanced plugins, you don't have to translate anything in your
|
||||
view files. Just use the standard Rails commands you're used to.
|
||||
|
||||
The simple approach also makes limits. Make sure you understand them to decide if
|
||||
this plugin is right for you.
|
||||
|
||||
I use this plugin when creating new projects. Then later in the development
|
||||
process I can decide to change to a more advanced localization plugin (if necessary)
|
||||
|
||||
=== What it does
|
||||
This plugin modifies the following most used helpers for Rails
|
||||
* Sets UTF-8 connection to database (known to work with MySQL and PostgreSQL)
|
||||
* Localized monthnames on date_select etc. (changing the order of Y-M-D, on date_select and datetime_select from 0.7)
|
||||
* Localized ActiveRecord errors (and error headings)
|
||||
* Localized distance_of_time_in_words
|
||||
* Localized to_currency (from 0.7 also changing the order of unit/currency)
|
||||
* Simple pluralization also available in the lang-file
|
||||
* Uses standard Rails methods. In this way, there is no tedious rewrite required
|
||||
to localize your view files
|
||||
|
||||
|
||||
=== Limitations
|
||||
* More advanced features are not likely to be available here.
|
||||
* If you want support for multiple languages, use another L10N/I18n plugin, like
|
||||
GLoc or Globalize
|
||||
It could be a good idea to take a look at the [comparison chart](http://wiki.rubyonrails.org/rails/pages/InternationalizationComparison) on the Ruby on Rails wiki
|
||||
|
||||
=== Version notes
|
||||
* For Rails 1.1.x or below, use version 0.7.1 of this plugin
|
||||
* For Rails 1.2 or above, use version 0.8 (or higher) of this plugin
|
||||
|
||||
=== Supported languages
|
||||
Curr ently supported languages:
|
||||
* English (for running test cases and comparing to normal texts)
|
||||
* German
|
||||
* Spanish
|
||||
* Spanish (argentinian)
|
||||
* French
|
||||
* Dutch
|
||||
* Italian
|
||||
* Danish
|
||||
* Swedish
|
||||
* Finnish
|
||||
* Canadian French
|
||||
* Korean
|
||||
* Swedish Chef, and Pirate talk (just for the fun of it)
|
||||
* any other language you want. Just dump your translation in the /lib folder
|
||||
|
||||
=== Download code
|
||||
* Project homepage: http://rubyforge.org/projects/l10n-simplified/
|
||||
* Subversion access: svn checkout svn://rubyforge.org/var/svn/l10n-simplified
|
||||
* Browse: http://rubyforge.org/plugins/scmsvn/viewcvs.php/?root=l10n-simplified
|
||||
|
||||
|
||||
|
||||
=== Usage:
|
||||
in init.rb, set your language. That's it. Now your db connection is running UTF-8 and standard Rails output is localized.
|
||||
|
||||
If your view files contains text containing non-English characters (such as ß,ö,ñ or å), you probably also want to save your files as UTF-8.
|
||||
|
||||
|
||||
=== Installation:
|
||||
|
||||
1. Just copy this plugin into your /vendor/plugins/ folder
|
||||
2. Choose your lang-file in init.rb (default is Danish because I am Danish)
|
||||
3. no step three :)
|
||||
|
||||
|
||||
A special note of WARNING: All files here are saved using UTF-8 encoding.
|
||||
It's not required for working, I guess, but other encodings could bring you in trouble.
|
||||
|
||||
=== Your help
|
||||
Feel free to use, translate, modify and improve this code.
|
||||
Do send me translations, improvements, etc. I cannot promise to use it,
|
||||
but chances are that I will unless it bloats the code here completely or makes
|
||||
code harder to maintain.
|
||||
|
||||
I added FIXME notes in the code to indicate where I also could use help.
|
||||
|
||||
=== TODO / wishlist
|
||||
* A Rails application for testing L10n-simplified. This is top of my wish-list.
|
||||
I'd like it to contain a test suite testing ActiveRecord errors, datehelper, necessary
|
||||
numberhelper etc.
|
||||
* Rake task to create a release
|
||||
* Better tests to verify both hooks in Rails and this plugin
|
||||
* Better tests to verify each lang-file
|
||||
* Create rdoc in UTF-8 format and not including every lang-file (only lang_en.rb)
|
||||
* Rake task that modifies all view-files and converts them to UTF-8
|
||||
* Also a task that modifies all generators to use UTF-8
|
||||
|
||||
=== DONE
|
||||
* --- release 0.8 ---
|
||||
* Works with Rails 1.2 (not working with earlier versions)
|
||||
* Whitespace/formatting modifications. Removed commented code not needed
|
||||
* Removed code from plugin because Rails 1.2 date_select and datetime_select
|
||||
now support :order
|
||||
* ActiveRecord hooks updated for Rails 1.2 (thanks Casper Fabricius)
|
||||
* Dots after day number in time formats (Danish), to keep it consistent with Date formats
|
||||
* --- release 0.7.1 ---
|
||||
* Fixed RJS bug where javascript content-header was overwritten with text/html (thanks Jakob Skjerning)
|
||||
* Small language corrections by Wijnand Wiersma
|
||||
* PostGres friendly: Added quotes around ActiveRecord::Base.connection.execute "SET NAMES 'UTF8'" (thanks Wijnand Wiersma)
|
||||
* German language errors corrected by Matthias Tarasiewicz
|
||||
* Added "no step three" in installation section :)
|
||||
* --- release 0.7 ---
|
||||
* Fixed messed-up ø's and a few wording changes in README
|
||||
* Override +number_to_currency+ and +datetime_select+ to support :order
|
||||
even though I prefer these changes to go into Rails Core (2006-10-10)
|
||||
* Added italian lang file (thanks Michele Franzin) (2006-10-08)
|
||||
* Added argentinian flavoured Spanish lang File + corrected bug in lang_es (thanks Damian Janowski) (2006-10-03)
|
||||
* German translation issues (thanks Christian W. Zuckschwerdt) (2006-10-03)
|
||||
* Fixed typo in README File (thanks Diego Algorta Casamayou) (2006-10-02)
|
||||
* Bugfix removed incorrect 'then' after 'else' (thanks Michele Franzin)(2006-09-16)
|
||||
* Added augmented and corrected distance_of_time_in_words from Rails trunk (2006-09-07)
|
||||
* Added date_select and datetime_select on the helper page (2006-09-07)
|
||||
* Updated dutch date-time formats, thanks Jeroen Houben (2006-09-07)
|
||||
* --- release 0.6.1 ---
|
||||
* Added comments in all lang-files, thanks Jarkko Laine for the idea (2006-09-07)
|
||||
* Bugfix: Replaced hardcoded string in distance_of_time_in_words when :include_seconds was false (2006-08-30)
|
||||
* Added Canadian French translation (thanks Daniel) (2006-08-25)
|
||||
* Added comments in lang-file for documentation of how to localize (2006-08-25)
|
||||
* Added French translation (thanks Fred Cavazza) (2006-08-25)
|
||||
* Added Finnish translation (thanks Jarkko Laine) (2006-08-25)
|
||||
* Bugfix re-added HTTP header for UTF-8. Necessary for some lang-files (2004-08-24)
|
||||
* --- release 0.6 ---
|
||||
* Renamed test files to make rake test command work (2006-08-23)
|
||||
* Localized time "Wed Aug 23 12:38:22 Romance Daylight Time 2006" =>
|
||||
"onsdag d. 23 august 2006 12:38:22" (Danish)
|
||||
* Reordering of date_select fields (2006-08-23)
|
||||
* Test that plugin works with the Rails version it is installed next to (2006-08-20)
|
||||
* Added Dutch translation lang_nl.rb, thanks to Jeroen Houben (2006-08-20)
|
||||
* Added Pirate language lang_pirate.rb, thanks to Tobias Michaelsen (2006-08-18)
|
||||
* Added Date and Time#to_formatted_s with locale specific strings (2006-08-18)
|
||||
* Added MIT-license, copied from Ruby on Rails (2006-08-13)
|
||||
* Added tests for plugin (2006-08-13)
|
||||
* Localized version of Array.to_sentence (2006-08-09)
|
||||
* Added test scaffold (2006-08-09)
|
||||
* Added swedish language, thanks to Olle Jonsson (2006-08-09)
|
||||
* Localized version of to_currency helper (2006-08-07)
|
||||
|
||||
|
||||
=== Credits
|
||||
This plugin uses a few bits and pieces from other Rails plugins GLoc (http://rubyforge.org/projects/gloc/) and swe_rails (http://opensource.ki.se/swe_rails.html)
|
||||
|
||||
|
||||
Created 2006-07-28 by
|
||||
Jesper Rønn-Jensen http://justaddwater.dk/
|
||||
http://rubyforge.org/projects/l10n-simplified/
|
||||
http://agilewebdevelopment.com/plugins/localization_simplified
|
||||
22
vendor/plugins/l10n-simplified-0.8/Rakefile
vendored
22
vendor/plugins/l10n-simplified-0.8/Rakefile
vendored
|
|
@ -1,22 +0,0 @@
|
|||
require 'rake'
|
||||
require 'rake/testtask'
|
||||
require 'rake/rdoctask'
|
||||
|
||||
desc 'Default: run unit tests.'
|
||||
task :default => :test
|
||||
|
||||
desc 'Test the l10n_simplified plugin.'
|
||||
Rake::TestTask.new(:test) do |t|
|
||||
t.libs << 'lib'
|
||||
t.pattern = 'test/**/*_test.rb'
|
||||
t.verbose = true
|
||||
end
|
||||
|
||||
desc 'Generate documentation for the l10n_simplified plugin.'
|
||||
Rake::RDocTask.new(:rdoc) do |rdoc|
|
||||
rdoc.rdoc_dir = 'rdoc'
|
||||
rdoc.title = 'LocalizationSimplified'
|
||||
rdoc.options << '--line-numbers' << '--inline-source'
|
||||
rdoc.rdoc_files.include('README')
|
||||
rdoc.rdoc_files.include('lib/**/*.rb')
|
||||
end
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
cd ..
|
||||
svn export l10n-simplified export\l10n-simplified-0.8
|
||||
(right-click to create zip file)
|
||||
FIXME make a rake task and
|
||||
|
||||
cd export
|
||||
tar -czf l10n-simplified-0.8.tar.gz l10n-simplified-0.8
|
||||
|
||||
|
||||
|
||||
|
||||
# ==========
|
||||
# other commands that I use with this plugin
|
||||
# ==========
|
||||
|
||||
|
||||
FIXME Create rdoc in UTF-8 format and not including every lang-file (only lang_en.rb)
|
||||
FIXME describe upload of rdoc to l10n-simplified website
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
20
vendor/plugins/l10n-simplified-0.8/init.rb
vendored
20
vendor/plugins/l10n-simplified-0.8/init.rb
vendored
|
|
@ -1,20 +0,0 @@
|
|||
# Choose language file here
|
||||
# ONLY choose one of the ones below:
|
||||
#require 'lang_en' #default language to run the test cases
|
||||
#require 'lang_da'
|
||||
require 'lang_de'
|
||||
#require 'lang_es'
|
||||
#require 'lang_fi'
|
||||
#require 'lang_fr'
|
||||
#require 'lang_nl'
|
||||
#require 'lang_ko'
|
||||
#require 'lang_se'
|
||||
#require 'lang_chef'
|
||||
#require 'lang_pirate'
|
||||
# You can Add your own localization file and add it here
|
||||
|
||||
|
||||
|
||||
# Also include hook code here
|
||||
require 'localization_simplified'
|
||||
|
||||
118
vendor/plugins/l10n-simplified-0.8/lib/lang_cf.rb
vendored
118
vendor/plugins/l10n-simplified-0.8/lib/lang_cf.rb
vendored
|
|
@ -1,118 +0,0 @@
|
|||
# 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
|
||||
119
vendor/plugins/l10n-simplified-0.8/lib/lang_chef.rb
vendored
119
vendor/plugins/l10n-simplified-0.8/lib/lang_chef.rb
vendored
|
|
@ -1,119 +0,0 @@
|
|||
# lang_chef.rb
|
||||
# Swedish Chef language file for Ruby on Rails
|
||||
# Translation by Jesper Rønn-Jensen ( http://justaddwater.dk/ ), via web based translator
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "chef",
|
||||
: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 => "is nut inclooded in zee leest",
|
||||
:exclusion => "is reserfed",
|
||||
:invalid => "is infeleed",
|
||||
:confirmation => "duesn't metch cunffurmeshun",
|
||||
:accepted => "moost be-a eccepted",
|
||||
:empty => "cun't be-a impty",
|
||||
:blank => "ees reeequired",# alternate, formulation: "is required"
|
||||
:too_long => "is tuu lung (mexeemoom is %d cherecters)",
|
||||
:too_short => "is tuu shurt (meenimoom is %d cherecters)",
|
||||
:wrong_length => "is zee vrung lengt (shuoold be-a %d cherecters)",
|
||||
:taken => "hes elreedy beee tekee",
|
||||
:not_a_number => "is nut a noomber",
|
||||
#Jespers additions:
|
||||
:error_translation => "irrur",
|
||||
:error_header => "%s pruheebited thees %s frum beeeng sefed. Børk! Børk! Børk!",
|
||||
:error_subheader => "Zeere-a vere-a prublems veet zee fullooeeng feeelds:"
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "less thun %d secunds",
|
||||
:half_a_minute => "helff a meenoote-a",
|
||||
:less_than_a_minute => "less thun a meenoote-a",
|
||||
:one_minute => "one-a meenoote-a",
|
||||
:x_minutes => "%d meenootes",
|
||||
:one_hour => "ebuoot one-a huoor",
|
||||
:x_hours => "ebuoot %d huoors",
|
||||
:one_day => "one-a dey",
|
||||
:x_days => "%d deys",
|
||||
:one_month => "one-a munt",
|
||||
:x_months => "%d munts",
|
||||
:one_year => "one-a yeer",
|
||||
:x_years => "%d yeers"
|
||||
}
|
||||
|
||||
# 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{Junooery Febrooery Merch Epreel Mey Joone-a Jooly Oogoost Seeptembooor Ooctuber Nufember Deezember}
|
||||
AbbrMonthnames = [nil] + %w{Jun Feb Mer Epr Mey Joon Jool Oog Sep Ooct Nuf Deez}
|
||||
Daynames = %w{Soondey Mundey Tooesdey Vednesdey Thoorsdey Freedey Setoordey}
|
||||
AbbrDaynames = %w{Soon Mun Tooe-a Ved Thoo Free Set}
|
||||
|
||||
# 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 => 'eend',
|
||||
: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
|
||||
117
vendor/plugins/l10n-simplified-0.8/lib/lang_da.rb
vendored
117
vendor/plugins/l10n-simplified-0.8/lib/lang_da.rb
vendored
|
|
@ -1,117 +0,0 @@
|
|||
# lang_da.rb
|
||||
# Danish translation file
|
||||
# Translation by Jesper Rønn-Jensen ( http://justaddwater.dk/ )
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "da",
|
||||
: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 => "er ikke med på listen",
|
||||
:exclusion => "er et reserveret ord",
|
||||
:invalid => "er ugyldig",
|
||||
:confirmation => "matcher ikke med bekræftelsen",
|
||||
:accepted => "skal accepteres",
|
||||
:empty => "kan ikke være tom",
|
||||
:blank => "skal udfyldes",
|
||||
:too_long => "er for langt (max er %d tegn)",
|
||||
:too_short => "er for kort (minimum er %d tegn)",
|
||||
:wrong_length => "har forkert længde (skal være %d tegn)",
|
||||
:taken => "er allerede taget",
|
||||
:not_a_number => "er ikke et tal",
|
||||
#Jespers additions:
|
||||
:error_translation => "fejl",
|
||||
:error_header => "%s forhindrede %s i at blive gemt",
|
||||
:error_subheader => "Problemer med følgende felter:"
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "under %d sekunder",
|
||||
:half_a_minute => "et halvt minut",
|
||||
:less_than_a_minute => "under et minut",
|
||||
:one_minute => "1 minut",
|
||||
:x_minutes => "%d minutter",
|
||||
:one_hour => "omkring en time",
|
||||
:x_hours => "omkring %d timer",
|
||||
:one_day => "1 dag",
|
||||
:x_days => "%d dage",
|
||||
:one_month => "1 måned",
|
||||
:x_months => "%d måneder",
|
||||
:one_year => "1 år",
|
||||
:x_years => "%d år"
|
||||
}
|
||||
|
||||
# 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{januar februar marts april maj juni juli august september oktober november december}
|
||||
AbbrMonthnames = [nil] + %w{jan feb mar apr maj jun jul aug sep okt nov dec}
|
||||
Daynames = %w{søndag mandag tirsdag onsdag torsdag fredag lørdag}
|
||||
AbbrDaynames = %w{søn man tir ons tors fre lør}
|
||||
|
||||
|
||||
# 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. %B, %Y"
|
||||
}
|
||||
|
||||
TimeFormats = {
|
||||
:default => "%A d. %d %B %Y %H:%M", #no timezone
|
||||
:short => "%d. %b %H:%M",
|
||||
:long => "%d. %B %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 => "kr.",
|
||||
:separator => ",", #unit separator (between integer part and fraction part)
|
||||
:delimiter => ".", #delimiter between each group of thousands. Example: 1.234.567
|
||||
:order => [:number, :unit] #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 => 'og',
|
||||
: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.uncountable %w( fejl )
|
||||
end
|
||||
117
vendor/plugins/l10n-simplified-0.8/lib/lang_de.rb
vendored
117
vendor/plugins/l10n-simplified-0.8/lib/lang_de.rb
vendored
|
|
@ -1,117 +0,0 @@
|
|||
# lang_de.rb
|
||||
# German translation file
|
||||
# Translation by Benedikt Huber
|
||||
# Additions by Matthias Tarasiewicz - parasew (at) gmail
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "de",
|
||||
:updated => "2006-09-28"
|
||||
}
|
||||
|
||||
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 => "ist nicht in der Liste gültiger Optionen enthalten",
|
||||
:exclusion => "ist reserviert",
|
||||
:invalid => "ist ungültig",
|
||||
:confirmation => "entspricht nicht der Bestätigung",
|
||||
:accepted => "muss akzeptiert werden",
|
||||
:empty => "darf nicht leer sein",
|
||||
:blank => "wird benötigt",# alternate, formulation: "is required"
|
||||
:too_long => "ist zu lang (höchstens %d Zeichen)",
|
||||
:too_short => "ist zu kurz (mindestens %d Zeichen)",
|
||||
:wrong_length => "hat eine falsche Länge (sollte %d Zeichen sein)",
|
||||
:taken => "ist schon vergeben",
|
||||
:not_a_number => "ist keine Zahl",
|
||||
#Bennis additions
|
||||
:greater_than => "muss größer sein als %d",
|
||||
#Jespers additions:
|
||||
:error_translation => "Fehler",
|
||||
:error_header => "%s hinderte %s daran, gespeichert zu werden",
|
||||
:error_subheader => "Es gab folgende Probleme: "
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "weniger als %d Sekunden",
|
||||
:half_a_minute => "eine halbe Minute",
|
||||
:less_than_a_minute => "weniger als eine Minute",
|
||||
:one_minute => "1 Minute",
|
||||
:x_minutes => "%d Minuten",
|
||||
:one_hour => "ungefähr 1 Stunde",
|
||||
:x_hours => "ungefähr %d Stunden",
|
||||
:one_day => "1 Tag",
|
||||
:x_days => "%d Tage",
|
||||
:one_month => "1 Monat",
|
||||
:x_months => "%d Monate",
|
||||
:one_year => "1 Jahr",
|
||||
:x_years => "%d Jahre"
|
||||
}
|
||||
|
||||
# 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{Januar Februar März April Mai Juni Juli August September Oktober November Dezember}
|
||||
AbbrMonthnames = [nil] + %w{Jan Feb Mrz Apr Mai Jun Jul Aug Sep Okt Nov Dez}
|
||||
Daynames = %w{Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag}
|
||||
AbbrDaynames = %w{So Mo Di Mi Do Fr Sa}
|
||||
|
||||
# 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 => "%d %B %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 => [:number, :unit] #order is at present unsupported in Rails
|
||||
}
|
||||
end
|
||||
|
||||
class ArrayHelper
|
||||
# Modifies +Array#to_sentence()+
|
||||
# http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274
|
||||
ToSentenceTexts = {
|
||||
:connector => 'und',
|
||||
: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.uncountable %w( Fehler )
|
||||
end
|
||||
119
vendor/plugins/l10n-simplified-0.8/lib/lang_en.rb
vendored
119
vendor/plugins/l10n-simplified-0.8/lib/lang_en.rb
vendored
|
|
@ -1,119 +0,0 @@
|
|||
# lang_en.rb
|
||||
# English baseline translation file. Comes in handy for testing purposes
|
||||
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "en",
|
||||
:updated => "2006-09-01"
|
||||
}
|
||||
|
||||
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 => "is not included in the list",
|
||||
:exclusion => "is reserved",
|
||||
:invalid => "is invalid",
|
||||
:confirmation => "doesn't match confirmation",
|
||||
:accepted => "must be accepted",
|
||||
:empty => "can't be empty",
|
||||
:blank => "can't be blank",# alternate, formulation: "is required"
|
||||
:too_long => "is too long (maximum is %d characters)",
|
||||
:too_short => "is too short (minimum is %d characters)",
|
||||
:wrong_length => "is the wrong length (should be %d characters)",
|
||||
:taken => "has already been taken",
|
||||
:not_a_number => "is not a number",
|
||||
#Jespers additions:
|
||||
:error_translation => "error",
|
||||
:error_header => "%s prohibited this %s from being saved",
|
||||
:error_subheader => "There were problems with the following fields:"
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "less than %d seconds",
|
||||
:half_a_minute => "half a minute",
|
||||
:less_than_a_minute => "less than a minute",
|
||||
:one_minute => "1 minute",
|
||||
:x_minutes => "%d minutes",
|
||||
:one_hour => "about 1 hour",
|
||||
:x_hours => "about %d hours",
|
||||
:one_day => "1 day",
|
||||
:x_days => "%d days",
|
||||
:one_month => "1 month",
|
||||
:x_months => "%d months",
|
||||
:one_year => "1 year",
|
||||
:x_years => "%d years"
|
||||
}
|
||||
|
||||
# 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{January February March April May June July August September October November December}
|
||||
AbbrMonthnames = [nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}
|
||||
Daynames = %w{Sunday Monday Tuesday Wednesday Thursday Friday Saturday}
|
||||
AbbrDaynames = %w{Sun Mon Tue Wed Thu Fri Sat}
|
||||
|
||||
# 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 => 'and',
|
||||
: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
|
||||
115
vendor/plugins/l10n-simplified-0.8/lib/lang_es.rb
vendored
115
vendor/plugins/l10n-simplified-0.8/lib/lang_es.rb
vendored
|
|
@ -1,115 +0,0 @@
|
|||
# lang_es.rb
|
||||
# Spanish translation file.
|
||||
# Translation by Luis Villa del Campo (www.grancomo.com)
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "es",
|
||||
: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 => "no es válido",
|
||||
:confirmation => "no coincide con la conformación",
|
||||
:accepted => "debe ser aceptado",
|
||||
:empty => "no puede estar vacío",
|
||||
:blank => "no puede estar en blanco",# alternate, formulation: "is required"
|
||||
:too_long => "es demasiado largo (el máximo es %d caracteres)",
|
||||
:too_short => "es demasiado corto (el mínimo es %d caracteres)",
|
||||
:wrong_length => "no posee el largo correcto (debería ser de %d caracteres)",
|
||||
:taken => "ya está ocupado",
|
||||
:not_a_number => "no es un número",
|
||||
#Jespers additions:
|
||||
:error_translation => "error",
|
||||
:error_header => "%s no permite guardar %s",
|
||||
:error_subheader => "Ha habido problemas con los siguientes campos:"
|
||||
}
|
||||
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 => "sobre una hora",
|
||||
:x_hours => "sobre %d horas",
|
||||
:one_day => "un día",
|
||||
:x_days => "%d días",
|
||||
:one_month => "1 mes",
|
||||
:x_months => "%d meses",
|
||||
:one_year => "1 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 => "%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 => [: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
|
||||
}
|
||||
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 /^(error)$/i, '\1es'
|
||||
end
|
||||
120
vendor/plugins/l10n-simplified-0.8/lib/lang_es_ar.rb
vendored
120
vendor/plugins/l10n-simplified-0.8/lib/lang_es_ar.rb
vendored
|
|
@ -1,120 +0,0 @@
|
|||
# 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
|
||||
119
vendor/plugins/l10n-simplified-0.8/lib/lang_fi.rb
vendored
119
vendor/plugins/l10n-simplified-0.8/lib/lang_fi.rb
vendored
|
|
@ -1,119 +0,0 @@
|
|||
# lang_fi.rb
|
||||
# Finnish translation file.
|
||||
# Translation by Jarkko Laine ( http://jlaine.net/ )
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "fi",
|
||||
: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 => "ei löydy listalta",
|
||||
:exclusion => "on varattu",
|
||||
:invalid => "on virheellinen",
|
||||
:confirmation => "ei vastaa vahvistusta",
|
||||
:accepted => "on hyväksyttävä",
|
||||
:empty => "ei voi olla tyhjä",
|
||||
:blank => "ei voi olla tyhjä",
|
||||
:too_long => "on liian pitkä (maksimi on %d merkkiä)",
|
||||
:too_short => "on liian lyhyt (minimi on %d merkkiä)",
|
||||
:wrong_length => "on väärän pituinen (oikea pituus %d merkkiä)",
|
||||
:taken => "on jo varattu",
|
||||
:not_a_number => "ei ole numero",
|
||||
#Jespers additions:
|
||||
:error_translation => "virhe",
|
||||
:error_header => "%s esti tämän %s tallentamisen",
|
||||
:error_subheader => "Seuraavat kentät aiheuttivat ongelmia:"
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "alle %d sekuntia",
|
||||
:half_a_minute => "puoli minuuttia",
|
||||
:less_than_a_minute => "alle minuutti",
|
||||
:one_minute => "1 minuutti",
|
||||
:x_minutes => "%d minuuttia",
|
||||
:one_hour => "noin tunti",
|
||||
:x_hours => "noin %d tuntia",
|
||||
:one_day => "1 päivä",
|
||||
:x_days => "%d päivää",
|
||||
:one_month => "1 month",
|
||||
:x_months => "%d months",
|
||||
:one_year => "1 year",
|
||||
:x_years => "%d years"
|
||||
}
|
||||
|
||||
# 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{tammikuu helmikuu maaliskuu huhtikuu toukokuu kesäkuu heinäkuu elokuu syyskuu lokakuu marraskuu joulukuu}
|
||||
AbbrMonthnames = [nil] + %w{tammi helmi maalis huhti touko kesä heinä elo syys loka marras joulu}
|
||||
Daynames = %w{sunnuntai maanantai tiistai keskiviikko torstai perjantai lauantai}
|
||||
AbbrDaynames = %w{su ma ti ke to pe la}
|
||||
|
||||
# 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 => "%e.%m.%Y",
|
||||
:short => "%d.%m.",
|
||||
:long => "%e. %Bta %Y"
|
||||
}
|
||||
|
||||
TimeFormats = {
|
||||
:default => "%a %Bn %e. %H:%M:%S %Z %Y",
|
||||
:short => "%d.%m.%Y %H:%M",
|
||||
:long => "%a %e. %Bta %Y %T"
|
||||
}
|
||||
# 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 => 'ja',
|
||||
: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 )
|
||||
# end
|
||||
118
vendor/plugins/l10n-simplified-0.8/lib/lang_fr.rb
vendored
118
vendor/plugins/l10n-simplified-0.8/lib/lang_fr.rb
vendored
|
|
@ -1,118 +0,0 @@
|
|||
# lang_fr.rb
|
||||
# Traduction française des messages d'erruer. A compléter ou corriger.
|
||||
# Translation by Frédéric Cavazza ( www.fredcavazza.net )
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "fr",
|
||||
: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 inclut dans la liste",
|
||||
:exclusion => "est réservé",
|
||||
:invalid => "est invalide",
|
||||
:confirmation => "ne correspond pas à la confirmation",
|
||||
:accepted => "doit être accepté",
|
||||
:empty => "ne peut pas être vide",
|
||||
:blank => "ne peut pas être vierge",# alternate, formulation: "is required"
|
||||
:too_long => "est trop long (%d caractères maximum)",
|
||||
:too_short => "est trop court(%d caractères minimum)",
|
||||
:wrong_length => "n'est pas de la bonne longueur (devrait être de %d caractères)",
|
||||
:taken => "est déjà prit",
|
||||
:not_a_number => "n'est pas le nombre",
|
||||
#Jespers additions:
|
||||
:error_translation => "erreur",
|
||||
:error_header => "%s interdit ce %s d'être sauvegardé",
|
||||
:error_subheader => "Il y a des problèmes avec 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 => "une demi-minute",
|
||||
:less_than_a_minute => "moins d'une minute",
|
||||
:one_minute => "1 minute",
|
||||
:x_minutes => "%d minutes",
|
||||
:one_hour => "à peut près 1 heure",
|
||||
:x_hours => "à peu près %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 Decembre}
|
||||
AbbrMonthnames = [nil] + %w{Jan Fev Mar Avr Mai Jui Jul Aoû 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
|
||||
}
|
||||
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
|
||||
120
vendor/plugins/l10n-simplified-0.8/lib/lang_it.rb
vendored
120
vendor/plugins/l10n-simplified-0.8/lib/lang_it.rb
vendored
|
|
@ -1,120 +0,0 @@
|
|||
# lang_it.rb
|
||||
# Traduzione italiana.
|
||||
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "it",
|
||||
:updated => "2006-09-16"
|
||||
}
|
||||
|
||||
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 => "non è incluso nella lista",
|
||||
:exclusion => "è riservato",
|
||||
:invalid => "non è valido",
|
||||
:confirmation => "doesn't match confirmation",
|
||||
:accepted => "deve essere accettato",
|
||||
:empty => "non può essere vuoto",
|
||||
:blank => "è richiesto",# alternate, formulation: "is required"
|
||||
:too_long => "è troppo lungo (massimo %d caratteri)",
|
||||
:too_short => "è troppo corto (minimo %d caratteri)",
|
||||
:wrong_length => "è della lunghezza sbagliata (dovrebbe essere di %d caratteri)",
|
||||
:taken => "è già stato assegnato",
|
||||
:not_a_number => "non è un numero",
|
||||
#Jespers additions:
|
||||
:error_translation => "errore",
|
||||
:error_header => "%s impedisce a %s di essere salvato",
|
||||
:error_subheader => "Ci sono dei problemi con i seguenti campi:"
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "meno di %d secondi",
|
||||
:half_a_minute => "mezzo minuto",
|
||||
:less_than_a_minute => "meno di un minuto",
|
||||
:one_minute => "un minuto",
|
||||
:x_minutes => "%d minuti",
|
||||
:one_hour => "circa un'ora",
|
||||
:x_hours => "circa %d ore",
|
||||
:one_day => "un giorno",
|
||||
:x_days => "%d giorni",
|
||||
:one_month => "un mese",
|
||||
:x_months => "%d mesi",
|
||||
:one_year => "un anno",
|
||||
:x_years => "%d anni"
|
||||
}
|
||||
|
||||
# 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( Gennaio Febbraio Marzo Aprile Maggio Giugno Luglio
|
||||
Agosto Settembre Ottobre Novembre Dicembre )
|
||||
Daynames = %w( Domenica Lunedì Martedì Marcoledì Giovedì Venerdì Sabato )
|
||||
AbbrMonthnames = [nil] + %w( Gen Feb Mar Apr Mag Giu
|
||||
Lug Ago Set Ott Nov Dic )
|
||||
AbbrDaynames = %w( Dom Lun Mar Mer Gio Ven Sab )
|
||||
|
||||
# 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 => "%d-%m-%Y",
|
||||
:short => "%e %b",
|
||||
:long => "%e %B, %Y"
|
||||
}
|
||||
|
||||
TimeFormats = {
|
||||
:default => "%a, %d %b %Y %H:%M:%S %z",
|
||||
:short => "%d %b %H:%M",
|
||||
:long => "%d %B, %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 => 'e',
|
||||
: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
|
||||
119
vendor/plugins/l10n-simplified-0.8/lib/lang_ko.rb
vendored
119
vendor/plugins/l10n-simplified-0.8/lib/lang_ko.rb
vendored
|
|
@ -1,119 +0,0 @@
|
|||
# lang_ko.rb
|
||||
# Translation by Jeong Mok, Cho ( http://niceview.egloos.com )
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "ko",
|
||||
:updated => "2006-09-29"
|
||||
}
|
||||
|
||||
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 => "값은 목록에 없습니다.",
|
||||
:exclusion => "값은 이미 사용중입니다.",
|
||||
:invalid => "값이 잘못되었습니다.",
|
||||
:confirmation => "가 일치하지 않습니다.",
|
||||
:accepted => "항목이 채크되어야 합니다.",
|
||||
:empty => "값은 꼭 입력하셔야 합니다.",
|
||||
:blank => "값은 꼭 입력하셔야 합니다.",# alternate, formulation: "is required"
|
||||
:too_long => "값이 너무 깁니다. (최대 %d자 이내)",
|
||||
:too_short => "값이 너무 짧습니다. (최소 %d자 이상)",
|
||||
:wrong_length => "값은 길이가 잘못되었습니다. (%d자로 입력하세요)",
|
||||
:taken => "값은 이미 사용중입니다.",
|
||||
:not_a_number => "값은 숫자가 아닙니다.",
|
||||
#Jespers additions:
|
||||
:error_translation => "개의 애러",
|
||||
:error_header => "%s가 발생하였습니다. 이 %s는(은) 저장되지 않았습니다.",
|
||||
:error_subheader => "다음의 항목에 대한 입력값들이 잘못되었습니다."
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "%d초 이내",
|
||||
:half_a_minute => "30초",
|
||||
:less_than_a_minute => "1분 이내",
|
||||
:one_minute => "1분",
|
||||
:x_minutes => "%d분",
|
||||
:one_hour => "약 1시간",
|
||||
:x_hours => "약 %d시간",
|
||||
:one_day => "1일",
|
||||
:x_days => "%d일",
|
||||
:one_month => "1개월",
|
||||
:x_months => "%d개월",
|
||||
:one_year => "1년",
|
||||
:x_years => "%d년"
|
||||
}
|
||||
|
||||
# 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{1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월}
|
||||
AbbrMonthnames = [nil] + %w{1 2 3 4 5 6 7 8 9 10 11 12}
|
||||
Daynames = %w{일요일 월요일 화요일 수요일 목요일 금요일 토요일}
|
||||
AbbrDaynames = %w{일 월 화 수 목 금 토}
|
||||
|
||||
# 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 => "%m/%d",
|
||||
:long => "%Y년 %b월 %e일 %A"
|
||||
}
|
||||
|
||||
TimeFormats = {
|
||||
#:default => "%a, %d %b %Y %H:%M:%S %z",
|
||||
:default => "%Y/%m/%d (%a) %p %H:%M:%S",
|
||||
:short => "%H:%M",
|
||||
:long => "%Y년 %b월 %e일 %A %p %I시 %M분 %S초"
|
||||
}
|
||||
# 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
|
||||
}
|
||||
end
|
||||
|
||||
class ArrayHelper
|
||||
# Modifies +Array#to_sentence()+
|
||||
# http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274
|
||||
ToSentenceTexts = {
|
||||
:connector => '그리고',
|
||||
: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 '개의 애러'
|
||||
end
|
||||
|
||||
115
vendor/plugins/l10n-simplified-0.8/lib/lang_nl.rb
vendored
115
vendor/plugins/l10n-simplified-0.8/lib/lang_nl.rb
vendored
|
|
@ -1,115 +0,0 @@
|
|||
# lang_nl.rb
|
||||
# Dutch translation by Jeroen Houben
|
||||
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "nl",
|
||||
:updated => "2006-08-23"
|
||||
}
|
||||
|
||||
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 => "zit niet in de lijst",
|
||||
:exclusion => "is gereserveerd",
|
||||
:invalid => "is ongeldig",
|
||||
:confirmation => "is niet hetzelfde als de verificatie",
|
||||
:accepted => "moet worden geaccepteerd",
|
||||
:empty => "mag niet leeg zijn",
|
||||
:blank => "mag niet blanko zijn",# alternate, formulation: "is required"
|
||||
:too_long => "is te lang (maximum is %d karakters)",
|
||||
:too_short => "is te kort (minimum is %d karakters)",
|
||||
:wrong_length => "is de verkeerde lengte (dient %d karakters te zijn)",
|
||||
:taken => "is reeds in gebruik",
|
||||
:not_a_number => "is geen nummer",
|
||||
#Jespers additions:
|
||||
:error_translation => "fout",
|
||||
:error_header => "%s zorgen ervoor dat %s niet kan worden opgeslagen",
|
||||
:error_subheader => "Er zijn problemen met de volgende velden:"
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "minder dan %d seconden",
|
||||
:half_a_minute => "een halve minuut",
|
||||
:less_than_a_minute => "minder dan een halve minuut",
|
||||
:one_minute => "1 minuut",
|
||||
:x_minutes => "%d minuten",
|
||||
:one_hour => "ongeveer 1 uur",
|
||||
:x_hours => "ongeveer %d uur",
|
||||
:one_day => "1 dag",
|
||||
:x_days => "%d dagen",
|
||||
:one_month => "1 maand",
|
||||
:x_months => "%d maanden",
|
||||
:one_year => "1 jaar",
|
||||
:x_years => "%d jaar"
|
||||
}
|
||||
# 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{Januari Februari Maart April Mei Juni Juli Augustus September Oktober November December}
|
||||
AbbrMonthnames = [nil] + %w{Jan Feb Mar Apr Mei Jun Jul Aug Sep Okt Nov Dec}
|
||||
Daynames = %w{Zondag Maandag Dinsdag Woensdag Donderdag Vrijdag Zaterdag}
|
||||
AbbrDaynames = %w{Zo Ma Di Wo Do Vr Za}
|
||||
|
||||
# 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 => "%d-%m-%Y",
|
||||
:short => "%d %b",
|
||||
:long => "%d %B %Y"
|
||||
}
|
||||
|
||||
TimeFormats = {
|
||||
:default => "%a, %d %b %Y %H:%M:%S %z",
|
||||
:short => "%d %b %H:%M",
|
||||
:long => "%d %B %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 => 'en',
|
||||
: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.irregular 'fout', 'fouten'
|
||||
end
|
||||
|
|
@ -1,119 +0,0 @@
|
|||
# lang_pirate.rb
|
||||
# Pirate baseline translation file.
|
||||
# Translated by Tobias Michaelsen , additions by Jesper Rønn-Jensen ( http://justaddwater.dk/ )
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "pirate",
|
||||
: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 => "be not included in the list, me hearty",
|
||||
:exclusion => "be reserrrrved",
|
||||
:invalid => "be innvalid, m hearty",
|
||||
:confirmation => "doesn't match confirmation",
|
||||
:accepted => "must be accepted, arrrrh!",
|
||||
:empty => "no nay ne'er be empty",
|
||||
:blank => "no nay be blank, ye scurvy dog!",# alternate, formulation: "is required"
|
||||
:too_long => "be too vastly in length (no more than %d characters or ye drivin' me nuts)",
|
||||
:too_short => "be way too short (at least %d characters or ye drivin' me nuts)",
|
||||
:wrong_length => "be the wrong length (should be %d characters)",
|
||||
:taken => "has already been taken",
|
||||
:not_a_number => "be not a number, matey",
|
||||
#Jespers additions:
|
||||
:error_translation => "errrorrr",
|
||||
:error_header => "Ahoy me hearty! %s prohibited ye %s from bein' saved",
|
||||
:error_subheader => "Turn the steering wheeel and corrrect these fields, arrrrh."
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "less than %d seconds",
|
||||
:half_a_minute => "half arrr minute",
|
||||
:less_than_a_minute => "less than arrr minute",
|
||||
:one_minute => "1 minute ye landlubber",
|
||||
:x_minutes => "%d minutes accounted ferrrr",
|
||||
:one_hour => "about one hourrr and a bottle of rum",
|
||||
:x_hours => "about %d hourrrs and a bottle of rum",
|
||||
:one_day => "1 day and a dead mans chest arrr",
|
||||
:x_days => "%d days and a ship full of hornpipes",
|
||||
:one_month => "1 full moon",
|
||||
:x_months => "%d full moons",
|
||||
:one_year => "1 yearrrr",
|
||||
:x_years => "%d yearrrrrs"
|
||||
}
|
||||
|
||||
# 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{January February March April May June July August September October November December}
|
||||
AbbrMonthnames = [nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}
|
||||
Daynames = %w{Sunday Monday Tuesday Wednesday Thurrrrrrsday Frrriday Saturrrrday}
|
||||
AbbrDaynames = %w{Sun Mon Tue Wed Thurrrr Frri Sat}
|
||||
|
||||
# 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",
|
||||
: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 => "pieces o' silver",
|
||||
:separator => ".", #unit separator (between integer part and fraction part)
|
||||
:delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567
|
||||
:order => [:number, :unit] #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 => 'and',
|
||||
: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
|
||||
116
vendor/plugins/l10n-simplified-0.8/lib/lang_se.rb
vendored
116
vendor/plugins/l10n-simplified-0.8/lib/lang_se.rb
vendored
|
|
@ -1,116 +0,0 @@
|
|||
# lang_se.rb
|
||||
# Swedish translation file.
|
||||
# Translation from plugin swe_rails by Ola Bini ( http://ola-bini.blogspot.com/ ) and Olle Jonsson ( http://olleolleolle.dk )
|
||||
|
||||
|
||||
module LocalizationSimplified
|
||||
About = {
|
||||
:lang => "se",
|
||||
: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 => "finns inte i listan",
|
||||
:exclusion => "Är reserverat",
|
||||
:invalid => "Är ogiltigt",
|
||||
:confirmation => "stämmer inte övererens",
|
||||
:accepted => "måste vara accepterad",
|
||||
:empty => "för ej vara tom",
|
||||
:blank => "för ej vara blank",
|
||||
:too_long => "Är för lång (maximum är %d tecken)",
|
||||
:too_short => "Är för kort (minimum är %d tecken)",
|
||||
:wrong_length => "har fel längd (ska vara %d tecken)",
|
||||
:taken => "har redan tagits",
|
||||
:not_a_number => "Är ej ett nummer",
|
||||
#Jespers additions:
|
||||
:error_translation => "fel",
|
||||
:error_header => "%s förhindrade %s från at sparse",
|
||||
:error_subheader => "Problemar met dissa felterne:"
|
||||
}
|
||||
end
|
||||
|
||||
# Texts to override +distance_of_time_in_words()+
|
||||
class DateHelper
|
||||
Texts = {
|
||||
:less_than_x_seconds => "mindre än %d sekunder",
|
||||
:half_a_minute => "en halv minut",
|
||||
:less_than_a_minute => "mindre än en minut",
|
||||
:one_minute => "1 minut",
|
||||
:x_minutes => "%d minutter",
|
||||
:one_hour => "ungefär 1 timma",
|
||||
:x_hours => "ungefär %d timmar",
|
||||
:one_day => "1 dygn",
|
||||
:x_days => "%d dygn",
|
||||
:one_month => "1 month",
|
||||
:x_months => "%d months",
|
||||
:one_year => "1 year",
|
||||
:x_years => "%d years"
|
||||
}
|
||||
# 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{januari februari mars april maj juni juli augusti september oktober november december}
|
||||
AbbrMonthnames = [nil] + %w{jan feb mar apr maj jun jul aug sep okt nov dec}
|
||||
Daynames = %w{söndag måndag tisdag onsdag torsdag fredag lördag}
|
||||
AbbrDaynames = %w{sön mån tis ons tors fre lör}
|
||||
|
||||
|
||||
# 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 => [: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 => "kr.",
|
||||
:separator => ",", #unit separator (between integer part and fraction part)
|
||||
:delimiter => ".", #delimiter between each group of thousands. Example: 1.234.567
|
||||
:order => [:number, :unit] #order is at present unsupported in Rails
|
||||
#to support for instance Swedish format, the order is different: Unit comes last (ex. "1.234,00 kr.")
|
||||
}
|
||||
end
|
||||
|
||||
class ArrayHelper
|
||||
# Modifies +Array#to_sentence()+
|
||||
# http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274
|
||||
ToSentenceTexts = {
|
||||
:connector => 'och',
|
||||
: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.uncountable %w( fel )
|
||||
end
|
||||
|
|
@ -1,229 +0,0 @@
|
|||
# LocalizationSimplified (L10n-simplified)
|
||||
# Really simple localization for Rails
|
||||
# By Jesper Rønn-Jensen ( http://justaddwater.dk/ )
|
||||
# Plugin available at http://rubyforge.org/projects/l10n-simplified/
|
||||
#
|
||||
module LocalizationSimplified
|
||||
@@ignore = "\xFF\xFF\xFF\xFF" # %% == Literal "%" character
|
||||
# substitute all daynames and monthnames with localized names
|
||||
# from RUtils plugin
|
||||
def self.localize_strftime(date='%d.%m.%Y', time='')
|
||||
date.gsub!(/%%/, @@ignore)
|
||||
date.gsub!(/%a/, LocalizationSimplified::DateHelper::AbbrDaynames[time.wday])
|
||||
date.gsub!(/%A/, LocalizationSimplified::DateHelper::Daynames[time.wday])
|
||||
date.gsub!(/%b/, LocalizationSimplified::DateHelper::AbbrMonthnames[time.mon])
|
||||
date.gsub!(/%B/, LocalizationSimplified::DateHelper::Monthnames[time.mon])
|
||||
date.gsub!(@@ignore, '%%')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
module ActiveRecord
|
||||
class Errors
|
||||
#Error messages modified in lang file
|
||||
@@default_error_messages.update(LocalizationSimplified::ActiveRecord::ErrorMessages)
|
||||
end
|
||||
end
|
||||
|
||||
module ActionView
|
||||
module Helpers
|
||||
|
||||
#Modify ActiveRecord to use error message headers (text from lang-file)
|
||||
module ActiveRecordHelper
|
||||
alias_method :old_error_messages_for, :error_messages_for
|
||||
|
||||
def error_messages_for(*params)
|
||||
options = params.last.is_a?(Hash) ? params.pop.symbolize_keys : {}
|
||||
objects = params.collect {|object_name| instance_variable_get("@#{object_name}") }.compact
|
||||
count = objects.inject(0) {|sum, object| sum + object.errors.count }
|
||||
unless count.zero?
|
||||
html = {}
|
||||
[:id, :class].each do |key|
|
||||
if options.include?(key)
|
||||
value = options[key]
|
||||
html[key] = value unless value.blank?
|
||||
else
|
||||
html[key] = 'errorExplanation'
|
||||
end
|
||||
end
|
||||
messages = ActiveRecord:: Errors.default_error_messages
|
||||
header_message = format( messages[:error_header],
|
||||
pluralize(count, messages[:error_translation]),
|
||||
(options[:object_name] ||
|
||||
params.first).to_s.gsub("_", " "))
|
||||
error_messages = objects.map {|object| object.errors.full_messages.map {|msg| content_tag(:li, msg) } }
|
||||
content_tag(:div,
|
||||
content_tag(options[:header_tag] || :h2, header_message) <<
|
||||
content_tag(:p, messages[:error_subheader]) <<
|
||||
content_tag(:ul, error_messages),
|
||||
html
|
||||
)
|
||||
else
|
||||
''
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Modify DateHelper to use text from lang-file
|
||||
module DateHelper
|
||||
#Modify DateHelper distance_of_time_in_words
|
||||
alias_method :old_distance_of_time_in_words, :distance_of_time_in_words
|
||||
def distance_of_time_in_words(from_time, to_time = 0, include_seconds = false)
|
||||
from_time = from_time.to_time if from_time.respond_to?(:to_time)
|
||||
to_time = to_time.to_time if to_time.respond_to?(:to_time)
|
||||
distance_in_minutes = (((to_time - from_time).abs)/60).round
|
||||
distance_in_seconds = ((to_time - from_time).abs).round
|
||||
|
||||
#First, I invent a variable (makes it easier for future localization)
|
||||
messages = LocalizationSimplified::DateHelper::Texts #localized
|
||||
case distance_in_minutes
|
||||
when 0..1
|
||||
return (distance_in_minutes==0) ? messages[:less_than_a_minute] : messages[:one_minute] unless include_seconds
|
||||
case distance_in_seconds
|
||||
when 0..5 then format( messages[:less_than_x_seconds], 5 )
|
||||
when 6..10 then format( messages[:less_than_x_seconds], 10 )
|
||||
when 11..20 then format( messages[:less_than_x_seconds], 20 )
|
||||
when 21..40 then messages[:half_a_minute]
|
||||
when 41..59 then messages[:less_than_a_minute]
|
||||
else messages[:one_minute]
|
||||
end
|
||||
|
||||
when 2..44 then format(messages[:x_minutes], distance_in_minutes)
|
||||
when 45..89 then messages[:one_hour]
|
||||
when 90..1439 then format( messages[:x_hours], (distance_in_minutes.to_f / 60.0).round )
|
||||
when 1440..2879 then messages[:one_day]
|
||||
when 2880..43199 then format( messages[:x_days], (distance_in_minutes / 1440).round )
|
||||
when 43200..86399 then messages[:one_month]
|
||||
when 86400..525959 then format( messages[:x_months], (distance_in_minutes / 43200).round )
|
||||
when 525960..1051919 then messages[:one_year]
|
||||
else format( messages[:x_years], (distance_in_minutes / 525960).round )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# Give default settings to number_to_currency()
|
||||
module NumberHelper
|
||||
alias_method :orig_number_to_currency, :number_to_currency
|
||||
#modify number_to_currency to accept :order option
|
||||
def number_to_currency(number, options = {})
|
||||
# Blend default options with localized currency options
|
||||
options.reverse_merge!(LocalizationSimplified::NumberHelper::CurrencyOptions)
|
||||
options[:order] ||= [:unit, :number]
|
||||
options = options.stringify_keys
|
||||
precision, unit, separator, delimiter = options.delete("precision") { 2 }, options.delete("unit") { "$" }, options.delete("separator") { "." }, options.delete("delimiter") { "," }
|
||||
separator = "" unless precision > 0
|
||||
|
||||
#add leading space before trailing unit
|
||||
unit = " " + unit if options["order"] == [:number, :unit]
|
||||
output = ''
|
||||
begin
|
||||
options["order"].each do |param|
|
||||
case param
|
||||
when :unit
|
||||
output << unit
|
||||
when :number
|
||||
parts = number_with_precision(number, precision).split('.')
|
||||
output << number_with_delimiter(parts[0], delimiter) + separator + parts[1].to_s
|
||||
end
|
||||
end
|
||||
rescue
|
||||
output = number
|
||||
end
|
||||
output
|
||||
end
|
||||
end# module NumberHelper
|
||||
|
||||
module DateHelper
|
||||
alias_method :orig_date_select, :date_select
|
||||
# Blend default options with localized :order option
|
||||
def date_select(object_name, method, options = {})
|
||||
options.reverse_merge!(LocalizationSimplified::DateHelper::DateSelectOrder)
|
||||
orig_date_select(object_name, method, options)
|
||||
end
|
||||
|
||||
alias_method :orig_datetime_select, :datetime_select
|
||||
# Blend default options with localized :order option
|
||||
def datetime_select(object_name, method, options = {})
|
||||
options.reverse_merge!(LocalizationSimplified::DateHelper::DateSelectOrder)
|
||||
orig_datetime_select(object_name, method, options)
|
||||
end
|
||||
end #module DateHelper
|
||||
|
||||
end #module Helpers
|
||||
end #module ActionView
|
||||
|
||||
|
||||
class Array
|
||||
alias :orig_to_sentence :to_sentence
|
||||
def to_sentence(options = {})
|
||||
#Blend default options with sent through options
|
||||
options.reverse_merge!(LocalizationSimplified::ArrayHelper::ToSentenceTexts)
|
||||
orig_to_sentence(options)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# Modification of ruby constants
|
||||
class Date
|
||||
#FIXME as these are defined as Ruby constants, they can not be overwritten
|
||||
MONTHNAMES = LocalizationSimplified::DateHelper::Monthnames
|
||||
ABBR_MONTHNAMES = LocalizationSimplified::DateHelper::AbbrMonthnames
|
||||
#DAYNAMES = LocalizationSimplified::DateHelper::Daynames #not in use by Rails
|
||||
#ABBR_DAYNAMES = LocalizationSimplified::DateHelper::AbbrDaynames #not in use by Rails
|
||||
end
|
||||
|
||||
# Modification of default Time format using Time.to_formatted_s(:default)
|
||||
# Localizes the hash with the formats :default, :short, :long
|
||||
# Usage:
|
||||
# <% t = Time.parse('2006-12-25 13:55') %>
|
||||
# <%= t.to_formatted_s(:short) #=> outputs time in localized format %>
|
||||
# <%= t #=> outputs time in localized format %>
|
||||
class Time
|
||||
alias_method :old_strftime, :strftime
|
||||
# Pre-translate format of Time before the time string is translated by strftime.
|
||||
# The <tt>:default</tt> time format is changed by localizing month and daynames.
|
||||
# Also Rails ActiveSupport allow us to modify the <tt>:default</tt> timeformatting string.
|
||||
# Originally, its <tt>:default => "%a, %d %b %Y %H:%M:%S %z"</tt> (RFC2822 names), but as it can be
|
||||
# modified in this plugin, and we can end up with a different file format in logfiles, etc
|
||||
def strftime(date)
|
||||
LocalizationSimplified::localize_strftime(date, self)
|
||||
old_strftime(date)
|
||||
end
|
||||
end
|
||||
|
||||
# Modification of default Date format using Date.to_formatted_s(:default)
|
||||
# Localizes the hash with the formats :default, :short, :long
|
||||
# Usage:
|
||||
# <% d = Date.parse('2006-12-25') %>
|
||||
# <%= d.to_formatted_s(:short) #=> outputs date in localized format %>
|
||||
#
|
||||
# FIXME The Time conversion still does not modify week day and month (for some reason)
|
||||
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(LocalizationSimplified::DateHelper::DateFormats)
|
||||
|
||||
# Modification of default Time format using Time.to_formatted_s(:default)
|
||||
# Localizes the hash with the formats :default, :short, :long
|
||||
# Usage:
|
||||
# <% t = Time.parse('2006-12-25 13:55') %>
|
||||
# <%= t.to_formatted_s(:short) #=> outputs time in localized format %>
|
||||
# <%= t #=> outputs time in localized format %>
|
||||
#
|
||||
# FIXME The Time conversion still does not modify week day and month (for some reason)
|
||||
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(LocalizationSimplified::DateHelper::TimeFormats)
|
||||
|
||||
|
||||
# Modify Actioncontroller to always use UTF-8
|
||||
# Currently this modifies MySQL. Please add other databases you find necessary
|
||||
class ActionController::Base
|
||||
before_filter :configure_charsets
|
||||
|
||||
def configure_charsets(charset='utf-8')
|
||||
# Set connection charset. MySQL 4.0 doesn't support this so it
|
||||
# will throw an error, MySQL 4.1+ needs this.
|
||||
suppress(ActiveRecord::StatementInvalid) do
|
||||
ActiveRecord::Base.connection.execute "SET NAMES 'UTF8'"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: ActionController</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">ActionController</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
<div id="class-list">
|
||||
<h3 class="section-bar">Classes and Modules</h3>
|
||||
|
||||
Class <a href="ActionController/Base.html" class="link">ActionController::Base</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,161 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: ActionController::Base</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">ActionController::Base</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
Modify Actioncontroller to always use UTF-8 Currently this modifies MySQL.
|
||||
Please add other databases you find necessary
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="method-list">
|
||||
<h3 class="section-bar">Methods</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<a href="#M000003">configure_charsets</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
<div id="methods">
|
||||
<h3 class="section-bar">Public Instance methods</h3>
|
||||
|
||||
<div id="method-M000003" class="method-detail">
|
||||
<a name="M000003"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000003" class="method-signature">
|
||||
<span class="method-name">configure_charsets</span><span class="method-args">(charset='utf-8')</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000003-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 197</span>
|
||||
197: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure_charsets</span>(<span class="ruby-identifier">charset</span>=<span class="ruby-value str">'utf-8'</span>)
|
||||
198: <span class="ruby-identifier">$KCODE</span> = <span class="ruby-value str">'u'</span>
|
||||
199: <span class="ruby-comment cmt"># Response header necessary with some lang-files (like lang_pirate.rb for some reason)</span>
|
||||
200: <span class="ruby-ivar">@response</span>.<span class="ruby-identifier">headers</span>[<span class="ruby-value str">"Content-Type"</span>] = <span class="ruby-value str">"text/html; charset=utf-8"</span>
|
||||
201:
|
||||
202: <span class="ruby-comment cmt"># Set connection charset. MySQL 4.0 doesn't support this so it</span>
|
||||
203: <span class="ruby-comment cmt"># will throw an error, MySQL 4.1 needs this</span>
|
||||
204: <span class="ruby-identifier">suppress</span>(<span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">StatementInvalid</span>) <span class="ruby-keyword kw">do</span>
|
||||
205: <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">execute</span> <span class="ruby-value str">'SET NAMES UTF8'</span>
|
||||
206: <span class="ruby-keyword kw">end</span>
|
||||
207: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,117 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: ActionView</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">ActionView</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
Give default settings to number_to_currency()
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
<div id="class-list">
|
||||
<h3 class="section-bar">Classes and Modules</h3>
|
||||
|
||||
Module <a href="ActionView/Helpers.html" class="link">ActionView::Helpers</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,113 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: ActionView::Helpers</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">ActionView::Helpers</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
<div id="class-list">
|
||||
<h3 class="section-bar">Classes and Modules</h3>
|
||||
|
||||
Module <a href="Helpers/ActiveRecordHelper.html" class="link">ActionView::Helpers::ActiveRecordHelper</a><br />
|
||||
Module <a href="Helpers/DateHelper.html" class="link">ActionView::Helpers::DateHelper</a><br />
|
||||
Module <a href="Helpers/NumberHelper.html" class="link">ActionView::Helpers::NumberHelper</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,176 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: ActionView::Helpers::ActiveRecordHelper</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">ActionView::Helpers::ActiveRecordHelper</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
Modify <a href="../../ActiveRecord.html">ActiveRecord</a> to use error
|
||||
message headers (text from lang-file)
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="method-list">
|
||||
<h3 class="section-bar">Methods</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<a href="#M000005">error_messages_for</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
<div id="aliases-list">
|
||||
<h3 class="section-bar">External Aliases</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="aliases">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">error_messages_for</td>
|
||||
<td>-></td>
|
||||
<td class="context-item-value">old_error_messages_for</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
<div id="methods">
|
||||
<h3 class="section-bar">Public Instance methods</h3>
|
||||
|
||||
<div id="method-M000005" class="method-detail">
|
||||
<a name="M000005"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000005" class="method-signature">
|
||||
<span class="method-name">error_messages_for</span><span class="method-args">(object_name, options = {})</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000005-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 65</span>
|
||||
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error_messages_for</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">options</span> = {})
|
||||
66: <span class="ruby-identifier">messages</span> = <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Errors</span>.<span class="ruby-identifier">default_error_messages</span>
|
||||
67: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
|
||||
68: <span class="ruby-identifier">object</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">"@#{object_name}"</span>)
|
||||
69: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">empty?</span>
|
||||
70: <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">"div"</span>,
|
||||
71: <span class="ruby-identifier">content_tag</span>(
|
||||
72: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:header_tag</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">"h2"</span>,
|
||||
73: <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:error_header</span>], <span class="ruby-identifier">pluralize</span>(<span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">count</span>, <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:error_translation</span>]), <span class="ruby-identifier">object_name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"_"</span>, <span class="ruby-value str">" "</span>) )
|
||||
74: <span class="ruby-comment cmt">#"#{pluralize(object.errors.count, "error")} prohibited this #{object_name.to_s.gsub("_", " ")} from being saved"</span>
|
||||
75: ) <span class="ruby-operator">+</span>
|
||||
76: <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">"p"</span>, <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:error_subheader</span>]) <span class="ruby-operator">+</span>
|
||||
77: <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">"ul"</span>, <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">full_messages</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">msg</span><span class="ruby-operator">|</span> <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">"li"</span>, <span class="ruby-identifier">msg</span>) }),
|
||||
78: <span class="ruby-value str">"id"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:id</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">"errorExplanation"</span>, <span class="ruby-value str">"class"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:class</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">"errorExplanation"</span>
|
||||
79: )
|
||||
80: <span class="ruby-keyword kw">else</span>
|
||||
81: <span class="ruby-value str">""</span>
|
||||
82: <span class="ruby-keyword kw">end</span>
|
||||
83: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,233 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: ActionView::Helpers::DateHelper</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">ActionView::Helpers::DateHelper</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
Modify <a href="DateHelper.html">DateHelper</a> to use text from lang-file
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="method-list">
|
||||
<h3 class="section-bar">Methods</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<a href="#M000007">date_select</a>
|
||||
<a href="#M000008">datetime_select</a>
|
||||
<a href="#M000006">distance_of_time_in_words</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
<div id="aliases-list">
|
||||
<h3 class="section-bar">External Aliases</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="aliases">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">distance_of_time_in_words</td>
|
||||
<td>-></td>
|
||||
<td class="context-item-value">old_distance_of_time_in_words</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td> </td>
|
||||
<td colspan="2" class="context-item-desc">
|
||||
Modify <a href="DateHelper.html">DateHelper</a> <a
|
||||
href="DateHelper.html#M000006">distance_of_time_in_words</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">date_select</td>
|
||||
<td>-></td>
|
||||
<td class="context-item-value">orig_date_select</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">datetime_select</td>
|
||||
<td>-></td>
|
||||
<td class="context-item-value">orig_datetime_select</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
<div id="methods">
|
||||
<h3 class="section-bar">Public Instance methods</h3>
|
||||
|
||||
<div id="method-M000007" class="method-detail">
|
||||
<a name="M000007"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000007" class="method-signature">
|
||||
<span class="method-name">date_select</span><span class="method-args">(object_name, method, options = {})</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p>
|
||||
Blend default options with localized :order option
|
||||
</p>
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000007-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 117</span>
|
||||
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {})
|
||||
118: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">DateSelectOrder</span>)
|
||||
119: <span class="ruby-identifier">orig_date_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
|
||||
120: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="method-M000008" class="method-detail">
|
||||
<a name="M000008"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000008" class="method-signature">
|
||||
<span class="method-name">datetime_select</span><span class="method-args">(object_name, method, options = {})</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p>
|
||||
Blend default options with localized :order option
|
||||
</p>
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000008-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 126</span>
|
||||
126: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">datetime_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {})
|
||||
127: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">DateSelectOrder</span>)
|
||||
128: <span class="ruby-identifier">orig_datetime_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
|
||||
129: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="method-M000006" class="method-detail">
|
||||
<a name="M000006"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000006" class="method-signature">
|
||||
<span class="method-name">distance_of_time_in_words</span><span class="method-args">(from_time, to_time = 0, include_seconds = false)</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000006-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 93</span>
|
||||
93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance_of_time_in_words</span>(<span class="ruby-identifier">from_time</span>, <span class="ruby-identifier">to_time</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">include_seconds</span> = <span class="ruby-keyword kw">false</span>)
|
||||
94: <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-identifier">distance_of_time_in_words</span>(<span class="ruby-identifier">from_time</span>, <span class="ruby-identifier">to_time</span>, <span class="ruby-identifier">include_seconds</span>)
|
||||
95: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,157 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: ActionView::Helpers::NumberHelper</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">ActionView::Helpers::NumberHelper</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="method-list">
|
||||
<h3 class="section-bar">Methods</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<a href="#M000004">number_to_currency</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
<div id="aliases-list">
|
||||
<h3 class="section-bar">External Aliases</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="aliases">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">number_to_currency</td>
|
||||
<td>-></td>
|
||||
<td class="context-item-value">orig_number_to_currency</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
<div id="methods">
|
||||
<h3 class="section-bar">Public Instance methods</h3>
|
||||
|
||||
<div id="method-M000004" class="method-detail">
|
||||
<a name="M000004"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000004" class="method-signature">
|
||||
<span class="method-name">number_to_currency</span><span class="method-args">(number, options = {})</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p>
|
||||
Blend default options with localized currency options
|
||||
</p>
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000004-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 107</span>
|
||||
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">number_to_currency</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">options</span> = {})
|
||||
108: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">NumberHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">CurrencyOptions</span>)
|
||||
109: <span class="ruby-identifier">orig_number_to_currency</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">options</span>)
|
||||
110: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,111 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: ActiveRecord</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">ActiveRecord</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
<div id="class-list">
|
||||
<h3 class="section-bar">Classes and Modules</h3>
|
||||
|
||||
Class <a href="ActiveRecord/Errors.html" class="link">ActiveRecord::Errors</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,111 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: ActiveRecord::Errors</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">ActiveRecord::Errors</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,161 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: Array</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">Array</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="method-list">
|
||||
<h3 class="section-bar">Methods</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<a href="#M000002">to_sentence</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
<div id="aliases-list">
|
||||
<h3 class="section-bar">External Aliases</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="aliases">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">to_sentence</td>
|
||||
<td>-></td>
|
||||
<td class="context-item-value">orig_to_sentence</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
<div id="methods">
|
||||
<h3 class="section-bar">Public Instance methods</h3>
|
||||
|
||||
<div id="method-M000002" class="method-detail">
|
||||
<a name="M000002"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000002" class="method-signature">
|
||||
<span class="method-name">to_sentence</span><span class="method-args">(options = {})</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000002-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 137</span>
|
||||
137: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_sentence</span>(<span class="ruby-identifier">options</span> = {})
|
||||
138: <span class="ruby-comment cmt">#Blend default options with sent through options</span>
|
||||
139: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">ArrayHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">ToSentenceTexts</span>)
|
||||
140: <span class="ruby-identifier">orig_to_sentence</span>(<span class="ruby-identifier">options</span>)
|
||||
141: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,136 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: Date</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">Date</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
Modification of ruby constants
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
<div id="constants-list">
|
||||
<h3 class="section-bar">Constants</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="Constants">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">MONTHNAMES</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">LocalizationSimplified::DateHelper::Monthnames</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
FIXME as these are defined as Ruby constants, they can’t be
|
||||
overwritten
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,344 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Module: LocalizationSimplified</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Module</strong></td>
|
||||
<td class="class-name-in-header">LocalizationSimplified</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../files/lib/lang_cf_rb.html">
|
||||
lib/lang_cf.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_chef_rb.html">
|
||||
lib/lang_chef.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_da_rb.html">
|
||||
lib/lang_da.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_de_rb.html">
|
||||
lib/lang_de.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_en_rb.html">
|
||||
lib/lang_en.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_es_rb.html">
|
||||
lib/lang_es.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_fi_rb.html">
|
||||
lib/lang_fi.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_fr_rb.html">
|
||||
lib/lang_fr.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_fr__rb.html">
|
||||
lib/lang_fr_.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_nl_rb.html">
|
||||
lib/lang_nl.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_pirate_rb.html">
|
||||
lib/lang_pirate.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_se_rb.html">
|
||||
lib/lang_se.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/lang_template_rb.html">
|
||||
lib/lang_template.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
<a href="LocalizationSimplified.html">LocalizationSimplified</a> Really
|
||||
simple localization for Rails By Jesper Rønn-Jensen ( <a
|
||||
href="http://justaddwater.dk">justaddwater.dk</a>/ ) Plugin available at <a
|
||||
href="http://rubyforge.org/projects/l10n-simplified">rubyforge.org/projects/l10n-simplified</a>/
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="method-list">
|
||||
<h3 class="section-bar">Methods</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<a href="#M000010">distance_of_time_in_words</a>
|
||||
<a href="#M000009">localize_strftime</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
<div id="class-list">
|
||||
<h3 class="section-bar">Classes and Modules</h3>
|
||||
|
||||
Class <a href="LocalizationSimplified/ActiveRecord.html" class="link">LocalizationSimplified::ActiveRecord</a><br />
|
||||
Class <a href="LocalizationSimplified/ArrayHelper.html" class="link">LocalizationSimplified::ArrayHelper</a><br />
|
||||
Class <a href="LocalizationSimplified/DateHelper.html" class="link">LocalizationSimplified::DateHelper</a><br />
|
||||
Class <a href="LocalizationSimplified/NumberHelper.html" class="link">LocalizationSimplified::NumberHelper</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div id="constants-list">
|
||||
<h3 class="section-bar">Constants</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="Constants">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "cf", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "chef", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "da", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "de", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "en", :updated => "2006-09-01"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "es", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "fi", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "fr", :updated => "2006-09-03"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "fr", :updated => "2006-08-24"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "nl", :updated => "2006-08-23"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "pirate", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "se", :updated => "2006-09-07"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">About</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :lang => "en",#add locale code here :updated => "2006-09-01"</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
<div id="methods">
|
||||
<h3 class="section-bar">Public Class methods</h3>
|
||||
|
||||
<div id="method-M000010" class="method-detail">
|
||||
<a name="M000010"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000010" class="method-signature">
|
||||
<span class="method-name">distance_of_time_in_words</span><span class="method-args">(from_time, to_time = 0, include_seconds = false)</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p>
|
||||
Modify <a href="LocalizationSimplified/DateHelper.html">DateHelper</a> <a
|
||||
href="LocalizationSimplified.html#M000010">distance_of_time_in_words</a>
|
||||
</p>
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000010-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 20</span>
|
||||
20: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">distance_of_time_in_words</span>(<span class="ruby-identifier">from_time</span>, <span class="ruby-identifier">to_time</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">include_seconds</span> = <span class="ruby-keyword kw">false</span>)
|
||||
21: <span class="ruby-identifier">from_time</span> = <span class="ruby-identifier">from_time</span>.<span class="ruby-identifier">to_time</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">from_time</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_time</span>)
|
||||
22: <span class="ruby-identifier">to_time</span> = <span class="ruby-identifier">to_time</span>.<span class="ruby-identifier">to_time</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">to_time</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_time</span>)
|
||||
23: <span class="ruby-identifier">distance_in_minutes</span> = (((<span class="ruby-identifier">to_time</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">from_time</span>).<span class="ruby-identifier">abs</span>)<span class="ruby-operator">/</span><span class="ruby-value">60</span>).<span class="ruby-identifier">round</span>
|
||||
24: <span class="ruby-identifier">distance_in_seconds</span> = ((<span class="ruby-identifier">to_time</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">from_time</span>).<span class="ruby-identifier">abs</span>).<span class="ruby-identifier">round</span>
|
||||
25:
|
||||
26: <span class="ruby-comment cmt">#First, I invent a variable (makes it easier for future i10n)</span>
|
||||
27: <span class="ruby-identifier">messages</span> = <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">Texts</span> <span class="ruby-comment cmt">#localized</span>
|
||||
28: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">distance_in_minutes</span>
|
||||
29: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">1</span>
|
||||
30: <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">distance_in_minutes</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_a_minute</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_minute</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">include_seconds</span>
|
||||
31: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">distance_in_seconds</span>
|
||||
32: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">5</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_x_seconds</span>], <span class="ruby-value">5</span> )
|
||||
33: <span class="ruby-keyword kw">when</span> <span class="ruby-value">6</span><span class="ruby-operator">..</span><span class="ruby-value">10</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_x_seconds</span>], <span class="ruby-value">10</span> )
|
||||
34: <span class="ruby-keyword kw">when</span> <span class="ruby-value">11</span><span class="ruby-operator">..</span><span class="ruby-value">20</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_x_seconds</span>], <span class="ruby-value">20</span> )
|
||||
35: <span class="ruby-keyword kw">when</span> <span class="ruby-value">21</span><span class="ruby-operator">..</span><span class="ruby-value">40</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:half_a_minute</span>]
|
||||
36: <span class="ruby-keyword kw">when</span> <span class="ruby-value">41</span><span class="ruby-operator">..</span><span class="ruby-value">59</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_a_minute</span>]
|
||||
37: <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_minute</span>]
|
||||
38: <span class="ruby-keyword kw">end</span>
|
||||
39:
|
||||
40: <span class="ruby-keyword kw">when</span> <span class="ruby-value">2</span><span class="ruby-operator">..</span><span class="ruby-value">45</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:x_minutes</span>], <span class="ruby-identifier">distance_in_minutes</span>)
|
||||
41: <span class="ruby-keyword kw">when</span> <span class="ruby-value">46</span><span class="ruby-operator">..</span><span class="ruby-value">90</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_hour</span>]
|
||||
42: <span class="ruby-keyword kw">when</span> <span class="ruby-value">90</span><span class="ruby-operator">..</span><span class="ruby-value">1440</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:x_hours</span>], (<span class="ruby-identifier">distance_in_minutes</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-value">60.0</span>).<span class="ruby-identifier">round</span> )
|
||||
43: <span class="ruby-keyword kw">when</span> <span class="ruby-value">1441</span><span class="ruby-operator">..</span><span class="ruby-value">2880</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_day</span>]
|
||||
44: <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:x_days</span>], (<span class="ruby-identifier">distance_in_minutes</span> <span class="ruby-operator">/</span> <span class="ruby-value">1440</span>).<span class="ruby-identifier">round</span> )
|
||||
45: <span class="ruby-keyword kw">end</span>
|
||||
46: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="method-M000009" class="method-detail">
|
||||
<a name="M000009"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000009" class="method-signature">
|
||||
<span class="method-name">localize_strftime</span><span class="method-args">(date='%d.%m.%Y', time='')</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p>
|
||||
substitute all daynames and monthnames with localized names from RUtils
|
||||
plugin
|
||||
</p>
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000009-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 10</span>
|
||||
10: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">localize_strftime</span>(<span class="ruby-identifier">date</span>=<span class="ruby-value str">'%d.%m.%Y'</span>, <span class="ruby-identifier">time</span>=<span class="ruby-value str">''</span>)
|
||||
11: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%%/</span>, <span class="ruby-ivar">@@ignore</span>)
|
||||
12: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%a/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">AbbrDaynames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">wday</span>])
|
||||
13: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%A/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">Daynames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">wday</span>])
|
||||
14: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%b/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">AbbrMonthnames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">mon</span>])
|
||||
15: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%B/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">Monthnames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">mon</span>])
|
||||
16: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-ivar">@@ignore</span>, <span class="ruby-value str">'%%'</span>)
|
||||
17: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,376 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: LocalizationSimplified::ActiveRecord</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">LocalizationSimplified::ActiveRecord</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../files/lib/lang_cf_rb.html">
|
||||
lib/lang_cf.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_chef_rb.html">
|
||||
lib/lang_chef.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_da_rb.html">
|
||||
lib/lang_da.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_de_rb.html">
|
||||
lib/lang_de.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_en_rb.html">
|
||||
lib/lang_en.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_es_rb.html">
|
||||
lib/lang_es.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fi_rb.html">
|
||||
lib/lang_fi.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr_rb.html">
|
||||
lib/lang_fr.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr__rb.html">
|
||||
lib/lang_fr_.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_nl_rb.html">
|
||||
lib/lang_nl.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_pirate_rb.html">
|
||||
lib/lang_pirate.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_se_rb.html">
|
||||
lib/lang_se.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_template_rb.html">
|
||||
lib/lang_template.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
<div id="constants-list">
|
||||
<h3 class="section-bar">Constants</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="Constants">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :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 : "</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "is nut inclooded in zee leest", :exclusion => "is reserfed", :invalid => "is infeleed", :confirmation => "duesn't metch cunffurmeshun", :accepted => "moost be-a eccepted", :empty => "cun't be-a impty", :blank => "ees reeequired",# alternate, formulation: "is required" :too_long => "is tuu lung (mexeemoom is %d cherecters)", :too_short => "is tuu shurt (meenimoom is %d cherecters)", :wrong_length => "is zee vrung lengt (shuoold be-a %d cherecters)", :taken => "hes elreedy beee tekee", :not_a_number => "is nut a noomber", #Jespers additions: :error_translation => "irrur", :error_header => "%s pruheebited thees %s frum beeeng sefed", :error_subheader => "Zeere-a vere-a prublems veet zee fullooeeng feeelds:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "er ikke med på listen", :exclusion => "er et reserveret ord", :invalid => "er ugyldig", :confirmation => "matcher ikke med bekræftelsen", :accepted => "skal accepteres", :empty => "kan ikke være tom", :blank => "skal udfyldes", :too_long => "er for langt (max er %d tegn)", :too_short => "er for kort (minimum er %d tegn)", :wrong_length => "har forkert længde (skal være %d tegn)", :taken => "er allerede taget", :not_a_number => "er ikke et tal", #Jespers additions: :error_translation => "fejl", :error_header => "%s forhindrede %s i at blive gemt", :error_subheader => "Problemer med følgende felter:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "ist nicht in Liste gültiger Optionen enthalten", :exclusion => "ist reserviert", :invalid => "ist ungültig", :confirmation => "entspricht nicht der Best<73>tigung", :accepted => "muß akzeptiert werden", :empty => "darf nicht leer sein", :blank => "darf nicht leer sein",# alternate, formulation: "is required" :too_long => "ist zu lang (höchstens %d Zeichen)", :too_short => "ist zu kurz (mindestens %d Zeichen)", :wrong_length => "hat eine falsche Länge (es sollten %d Zeichen sein)", :taken => "ist schon vergeben", :not_a_number => "ist keine Zahl", #Jespers additions: :error_translation => "Fehl", :error_header => "%s verhinderte dieser %s gespeichert werden", :error_subheader => "Es gab probleme mit dem folgenden:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "is not included in the list", :exclusion => "is reserved", :invalid => "is invalid", :confirmation => "doesn't match confirmation", :accepted => "must be accepted", :empty => "can't be empty", :blank => "can't be blank",# alternate, formulation: "is required" :too_long => "is too long (maximum is %d characters)", :too_short => "is too short (minimum is %d characters)", :wrong_length => "is the wrong length (should be %d characters)", :taken => "has already been taken", :not_a_number => "is not a number", #Jespers additions: :error_translation => "error", :error_header => "%s prohibited this %s from being saved", :error_subheader => "There were problems with the following fields:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "no está incluido en la lista", :exclusion => "está reservado", :invalid => "no es válido", :confirmation => "no coincide con la conformación", :accepted => "debe ser aceptado", :empty => "no puede estar vacío", :blank => "no puede estar en blanco",# alternate, formulation: "is required" :too_long => "es demasiado largo (el máximo es %d caracteres)", :too_short => "es demasiado cordo (el minimo es %d caracteres)", :wrong_length => "is the wrong length (should be %d characters)", :taken => "ya está ocupado", :not_a_number => "no es un número", #Jespers additions: :error_translation => "error", :error_header => "%s no permite guardar %s", :error_subheader => "Ha habido problemas con los siguientes campos:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "ei löydy listalta", :exclusion => "on varattu", :invalid => "on virheellinen", :confirmation => "ei vastaa vahvistusta", :accepted => "on hyväksyttävä", :empty => "ei voi olla tyhjä", :blank => "ei voi olla tyhjä", :too_long => "on liian pitkä (maksimi on %d merkkiä)", :too_short => "on liian lyhyt (minimi on %d merkkiä)", :wrong_length => "on väärän pituinen (oikea pituus %d merkkiä)", :taken => "on jo varattu", :not_a_number => "ei ole numero", #Jespers additions: :error_translation => "virhe", :error_header => "%s esti tämän %s tallentamisen", :error_subheader => "Seuraavat kentät aiheuttivat ongelmia:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "n'est pas inclut dans la liste", :exclusion => "est réservé", :invalid => "est invalide", :confirmation => "ne correspond pas à la confirmation", :accepted => "doit être accepté", :empty => "ne peut pas être vide", :blank => "ne peut pas être vierge",# alternate, formulation: "is required" :too_long => "est trop long (%d caractères maximum)", :too_short => "est trop court(%d caractères minimum)", :wrong_length => "n'est pas de la bonne longueur (devrait être de %d caractères)", :taken => "est déjà prit", :not_a_number => "n'est pas le nombre", #Jespers additions: :error_translation => "erreur", :error_header => "%s interdit ce %s d'être sauvegardé", :error_subheader => "Il y a des problèmes avec les champs suivants :"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :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 : "</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "zit niet in de lijst", :exclusion => "is gereserveerd", :invalid => "is ongeldig", :confirmation => "is niet hetzelfde als de verificatie", :accepted => "moet worden geaccepteerd", :empty => "mag niet leeg zijn", :blank => "mag niet blanko zijn",# alternate, formulation: "is required" :too_long => "is te land (maximum is %d karakters)", :too_short => "is te kort (minimum is %d karakters)", :wrong_length => "is de verkeerde lengte (dient %d karakters te zijn)", :taken => "is reeds in gebruik", :not_a_number => "is geen nummer", #Jespers additions: :error_translation => "fout", :error_header => "%s zorgen ervoor dat %s niet kan worden opgeslagen", :error_subheader => "Er zijn problemen met de volgende velden:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "be not included in the list, me hearty", :exclusion => "be reserrrrved", :invalid => "be innvalid, m hearty", :confirmation => "doesn't match confirmation", :accepted => "must be accepted, arrrrh!", :empty => "no nay ne'er be empty", :blank => "no nay be blank, ye scurvy dog!",# alternate, formulation: "is required" :too_long => "be too vastly in length (no more than %d characters or ye drivin' me nuts)", :too_short => "be way too short (at least %d characters or ye drivin' me nuts)", :wrong_length => "be the wrong length (should be %d characters)", :taken => "has already been taken", :not_a_number => "be not a number, matey", #Jespers additions: :error_translation => "errrorrr", :error_header => "Ohoy! %s prohibited ye %s from bein' saved", :error_subheader => "Turn the steering wheeel and corrrect these fields, arrrrh."</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "finns inte i listan", :exclusion => "Är reserverat", :invalid => "Är ogiltigt", :confirmation => "stämmer inte övererens", :accepted => "måste vara accepterad", :empty => "för ej vara tom", :blank => "för ej vara blank", :too_long => "Är för lång (maximum är %d tecken)", :too_short => "Är för kort (minimum är %d tecken)", :wrong_length => "har fel längd (ska vara %d tecken)", :taken => "har redan tagits", :not_a_number => "Är ej ett nummer", #Jespers additions: :error_translation => "fel", :error_header => "%s förhindrade %s från at sparse", :error_subheader => "Problemar met dissa felterne:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ErrorMessages</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :inclusion => "is not included in the list", :exclusion => "is reserved", :invalid => "is invalid", :confirmation => "doesn't match confirmation", :accepted => "must be accepted", :empty => "can't be empty", :blank => "can't be blank",# alternate, formulation: "is required" :too_long => "is too long (maximum is %d characters)", :too_short => "is too short (minimum is %d characters)", :wrong_length => "is the wrong length (should be %d characters)", :taken => "has already been taken", :not_a_number => "is not a number", #Jespers additions: :error_translation => "error", :error_header => "%s prohibited this %s from being saved", :error_subheader => "There were problems with the following fields:"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
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.
|
||||
|
||||
<p>
|
||||
Remember to modify the Inflector with your localized translation of
|
||||
"error" and "errors" in the bottom of this file
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,304 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: LocalizationSimplified::ArrayHelper</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">LocalizationSimplified::ArrayHelper</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../files/lib/lang_cf_rb.html">
|
||||
lib/lang_cf.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_chef_rb.html">
|
||||
lib/lang_chef.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_da_rb.html">
|
||||
lib/lang_da.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_de_rb.html">
|
||||
lib/lang_de.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_en_rb.html">
|
||||
lib/lang_en.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_es_rb.html">
|
||||
lib/lang_es.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fi_rb.html">
|
||||
lib/lang_fi.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr_rb.html">
|
||||
lib/lang_fr.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr__rb.html">
|
||||
lib/lang_fr_.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_nl_rb.html">
|
||||
lib/lang_nl.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_pirate_rb.html">
|
||||
lib/lang_pirate.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_se_rb.html">
|
||||
lib/lang_se.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_template_rb.html">
|
||||
lib/lang_template.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
<div id="constants-list">
|
||||
<h3 class="section-bar">Constants</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="Constants">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'et', :skip_last_comma => false</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'eend', :skip_last_comma => false</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'og', :skip_last_comma => true</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'und', :skip_last_comma => true</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'and', :skip_last_comma => false</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'y', :skip_last_comma => true</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'ja', :skip_last_comma => true</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'et', :skip_last_comma => false</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'et', :skip_last_comma => false</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'en', :skip_last_comma => false</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'and', :skip_last_comma => false</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'och', :skip_last_comma => true</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">ToSentenceTexts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :connector => 'and', :skip_last_comma => false</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,969 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: LocalizationSimplified::DateHelper</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">LocalizationSimplified::DateHelper</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../files/lib/lang_cf_rb.html">
|
||||
lib/lang_cf.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_chef_rb.html">
|
||||
lib/lang_chef.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_da_rb.html">
|
||||
lib/lang_da.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_de_rb.html">
|
||||
lib/lang_de.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_en_rb.html">
|
||||
lib/lang_en.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_es_rb.html">
|
||||
lib/lang_es.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fi_rb.html">
|
||||
lib/lang_fi.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr_rb.html">
|
||||
lib/lang_fr.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr__rb.html">
|
||||
lib/lang_fr_.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_nl_rb.html">
|
||||
lib/lang_nl.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_pirate_rb.html">
|
||||
lib/lang_pirate.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_se_rb.html">
|
||||
lib/lang_se.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_template_rb.html">
|
||||
lib/lang_template.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
Texts to override +distance_of_time_in_words()+
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
<div id="constants-list">
|
||||
<h3 class="section-bar">Constants</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="Constants">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :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"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Fev Mar Avr Mai Jun Jui Aou Sep Oct Nov Dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Dim Lun Mar Mer Jeu Ven Sam}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:year, :month, :day]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "less thun %d secunds", :half_a_minute => "helff a meenoote-a", :less_than_a_minute => "less thun a meenoote-a", :one_minute => "1 meenoote-a", :x_minutes => "%d meenootes", :one_hour => "ebuoot 1 huoor", :x_hours => "ebuoot %d huoors", :one_day => "1 dey", :x_days => "%d deys"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Junooery Febrooery Merch Epreel Mey Joone-a Jooly Oogoost Seeptembooor Ooctuber Nufember Deezember}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jun Feb Mer Epr Mey Joon Jool Oog Sep Ooct Nuf Deez}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Soondey Mundey Tooesdey Vednesdey Thoorsdey Freedey Setoordey}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Soon Mun Tooe-a Ved Thoo Free Set}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:year, :month, :day]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "under %d sekunder", :half_a_minute => "et halvt minut", :less_than_a_minute => "under et minut", :one_minute => "1 minut", :x_minutes => "%d minutter", :one_hour => "omkring en time", :x_hours => "omkring %d timer", :one_day => "1 dag", :x_days => "%d dage"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{januar februar marts april maj juni juli august september oktober november december}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{jan feb mar apr maj jun jul aug sep okt nov dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{søndag mandag tirsdag onsdag torsdag fredag lørdag}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{søn man tir ons tors fre lør}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%e %b", :long => "%e %B, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%A d. %d %B %Y %H:%M", #no timezone :short => "%d. %b %H:%M", :long => "%d. %B %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:day, :month, :year]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "weniger als %d Sekunden", :half_a_minute => "hälfte ein Minute", :less_than_a_minute => "weniger als ein Minute", :one_minute => "1 minute", :x_minutes => "%d Minuten", :one_hour => "ungefähr 1 Stunden", :x_hours => "ungefähr %d Stunden", :one_day => "1 Tag", :x_days => "%d Tage"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Januar Februar Märtz April Mai Juni Juli August September Oktober November Dezember}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Feb Mrz Apr Mai Jun Jul Aug Sep Oct Nov Dez}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Sontag Montag Dienstag Mittwoch Donnerstag Freitag Samstag}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Son Mon Die Mit Don Fre Sam}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:day, :month, :year]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "less than %d seconds", :half_a_minute => "half a minute", :less_than_a_minute => "less than a minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "about 1 hour", :x_hours => "about %d hours", :one_day => "1 day", :x_days => "%d days"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{January February March April May June July August September October November December}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Sunday Monday Tuesday Wednesday Thursday Friday Saturday}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Sun Mon Tue Wed Thu Fri Sat}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:year, :month, :day]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :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 => "sobre una hora", :x_hours => "sobre %d horas", :one_day => "un día", :x_days => "%d días"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{ene feb mar abr may jun jul ago sep oct nov dic}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{domingo lunes martes miércoles jueves viernes sábado}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{dom lun mar mié jue vie sáb }</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:day, :month, :year]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "alle %d sekuntia", :half_a_minute => "puoli minuuttia", :less_than_a_minute => "alle minuutti", :one_minute => "1 minuutti", :x_minutes => "%d minuuttia", :one_hour => "noin tunti", :x_hours => "noin %d tuntia", :one_day => "1 päivä", :x_days => "%d päivää"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{tammikuu helmikuu maaliskuu huhtikuu toukokuu kesäkuu heinäkuu elokuu syyskuu lokakuu marraskuu joulukuu}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{tammi helmi maalis huhti touko kesä heinä elo syys loka marras joulu}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{sunnuntai maanantai tiistai keskiviikko torstai perjantai lauantai}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{su ma ti ke to pe la}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%e.%m.%Y", :short => "%d.%m.", :long => "%e. %Bta %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a %Bn %e. %H:%M:%S %Z %Y", :short => "%d.%m.%Y %H:%M", :long => "%a %e. %Bta %Y %T"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:day, :month, :year]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "moins de %d secondes", :half_a_minute => "une demi-minute", :less_than_a_minute => "moins d'une minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "à peut près 1 heure", :x_hours => "à peu près %d heures", :one_day => "1 jour", :x_days => "%d jours"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Decembre}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Fev Mar Avr Mai Jui Jul Aoû Sep Oct Nov Dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Dim Lun Mar Mer Jeu Ven Sam}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:year, :month, :day]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :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"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Fev Mar Avr Mai Jun Jui Aou Sep Oct Nov Dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Dim Lun Mar Mer Jeu Ven Sam}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:year, :month, :day]</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "minder dan %d seconden", :half_a_minute => "een halve minuut", :less_than_a_minute => "minder dan een halve minuut", :one_minute => "1 minuut", :x_minutes => "%d minuten", :one_hour => "ongeveer 1 uur", :x_hours => "ongeveer %d uur", :one_day => "1 dag", :x_days => "%d dagen"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Januari Februari Maart April Mei Juni Juli Augustus September October November December}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Feb Mar Apr Mei Jun Jul Aug Sep Oct Nov Dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Zondag Maandag Dinsdag Woensdag Donderdag Vrijdag Zaterdag}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Zo Ma Di Wo Do Vr Za}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:day, :month, :year]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "less than %d seconds", :half_a_minute => "half arrr minute", :less_than_a_minute => "less than arrr minute", :one_minute => "1 minute ye landlubber", :x_minutes => "%d minutes accounted ferrrr", :one_hour => "about one hourrr and a bottle of rum", :x_hours => "about %d hourrrs and a bottle of rum", :one_day => "1 day and a dead mans chest arrr", :x_days => "%d days and a ship full of hornpipes"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{January February March April May June July August September October November December}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Sunday Monday Tuesday Wednesday Thurrrrrrsday Frrriday Saturrrrday}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Sun Mon Tue Wed Thurrrr Frri Sat}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%A, %d %b %Y %H:%M:%S", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:year, :month, :day]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "mindre än %d sekunder", :half_a_minute => "en halv minut", :less_than_a_minute => "mindre än en minut", :one_minute => "1 minut", :x_minutes => "%d minutter", :one_hour => "ungefär 1 timma", :x_hours => "ungefär %d timmar", :one_day => "1 dygn", :x_days => "%d dygn"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{januari februari mars april maj juni juli augusti september oktober november december}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Rails uses Month names in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{jan feb mar apr maj jun jul aug sep okt nov dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{söndag måndag tisdag onsdag torsdag fredag lördag}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{sön mån tis ons tors fre lör}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:day, :month, :year]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Texts</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :less_than_x_seconds => "less than %d seconds", :half_a_minute => "half a minute", :less_than_a_minute => "less than a minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "about 1 hour", :x_hours => "about %d hours", :one_day => "1 day", :x_days => "%d days"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Monthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{January February March April May June July August September October November December}</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Monthnames used by Rails in <a href="../Date.html">Date</a> and time select
|
||||
boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of
|
||||
version 1.1.6), Rails doesn’t use daynames
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrMonthnames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">[nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">Daynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Sunday Monday Tuesday Wednesday Thursday Friday Saturday}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">AbbrDaynames</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">%w{Sun Mon Tue Wed Thu Fri Sat}</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
<a href="../Date.html">Date</a> and time format syntax explained in <a
|
||||
href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a>
|
||||
These are sent to strftime that Ruby’s date and time handlers use
|
||||
internally Same options as php (that has a better list: <a
|
||||
href="http://www.php.net/strftime">www.php.net/strftime</a> )
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">TimeFormats</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">DateSelectOrder</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :order => [:year, :month, :day]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes
|
||||
Note that at present, the current Rails version only supports ordering of
|
||||
date_select boxes
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,304 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: LocalizationSimplified::NumberHelper</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">LocalizationSimplified::NumberHelper</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../../files/lib/lang_cf_rb.html">
|
||||
lib/lang_cf.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_chef_rb.html">
|
||||
lib/lang_chef.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_da_rb.html">
|
||||
lib/lang_da.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_de_rb.html">
|
||||
lib/lang_de.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_en_rb.html">
|
||||
lib/lang_en.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_es_rb.html">
|
||||
lib/lang_es.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fi_rb.html">
|
||||
lib/lang_fi.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr_rb.html">
|
||||
lib/lang_fr.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_fr__rb.html">
|
||||
lib/lang_fr_.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_nl_rb.html">
|
||||
lib/lang_nl.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_pirate_rb.html">
|
||||
lib/lang_pirate.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_se_rb.html">
|
||||
lib/lang_se.rb
|
||||
</a>
|
||||
<br />
|
||||
<a href="../../files/lib/lang_template_rb.html">
|
||||
lib/lang_template.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
<div id="constants-list">
|
||||
<h3 class="section-bar">Constants</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="Constants">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "$", :separator => ".", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "$", :separator => ".", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "kr. ", :separator => ",", #unit separator (between integer part and fraction part) :delimiter => ".", #delimiter between each group of thousands. Example: 1.234.567 :order => [:number, :unit]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "€", :separator => ",", #unit separator (between integer part and fraction part) :delimiter => ".", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "$", :separator => ".", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "€", :separator => ",", #unit separator (between integer part and fraction part) :delimiter => ".", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "€", :separator => " ", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "€", :separator => ".", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "$", :separator => ".", :delimiter => ",", :order => nil</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "€", :separator => ".", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "pieces o' silver", :separator => ".", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "kr. ", :separator => ",", #unit separator (between integer part and fraction part) :delimiter => ".", #delimiter between each group of thousands. Example: 1.234.567 :order => [:number, :unit]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">CurrencyOptions</td>
|
||||
<td>=</td>
|
||||
<td class="context-item-value">{ :unit => "$", :separator => ".", #unit separator (between integer part and fraction part) :delimiter => ",", #delimiter between each group of thousands. Example: 1.234.567 :order => [:unit, :number]</td>
|
||||
<td width="3em"> </td>
|
||||
<td class="context-item-desc">
|
||||
CurrencyOptions are used as default for +Number#to_currency()+ <a
|
||||
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,179 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Class: Time</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="classHeader">
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Class</strong></td>
|
||||
<td class="class-name-in-header">Time</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>In:</strong></td>
|
||||
<td>
|
||||
<a href="../files/lib/localization_simplified_rb.html">
|
||||
lib/localization_simplified.rb
|
||||
</a>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Parent:</strong></td>
|
||||
<td>
|
||||
Object
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
Modification of default <a href="Time.html">Time</a> format using
|
||||
Time.to_formatted_s(:default) Localizes the hash with the formats :default,
|
||||
:short, :long Usage: <% t = Time.parse(‘2006-12-25 13:55’)
|
||||
%> <%= t.to_formatted_s(:short) #=> outputs time in localized
|
||||
format %> <%= t #=> outputs time in localized format %>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="method-list">
|
||||
<h3 class="section-bar">Methods</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<a href="#M000001">strftime</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
<div id="aliases-list">
|
||||
<h3 class="section-bar">External Aliases</h3>
|
||||
|
||||
<div class="name-list">
|
||||
<table summary="aliases">
|
||||
<tr class="top-aligned-row context-row">
|
||||
<td class="context-item-name">strftime</td>
|
||||
<td>-></td>
|
||||
<td class="context-item-value">old_strftime</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
<div id="methods">
|
||||
<h3 class="section-bar">Public Instance methods</h3>
|
||||
|
||||
<div id="method-M000001" class="method-detail">
|
||||
<a name="M000001"></a>
|
||||
|
||||
<div class="method-heading">
|
||||
<a href="#M000001" class="method-signature">
|
||||
<span class="method-name">strftime</span><span class="method-args">(date)</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="method-description">
|
||||
<p>
|
||||
Pre-translate format of <a href="Time.html">Time</a> before the time string
|
||||
is translated by strftime. The <tt>:default</tt> time format is changed by
|
||||
localizing month and daynames. Also Rails ActiveSupport allow us to modify
|
||||
the <tt>:default</tt> timeformatting string. Originally, its <tt>:default
|
||||
=> "%a, %d %b %Y %H:%M:%S %z"</tt> (RFC2822 names), but as it
|
||||
can be modified in this plugin, and we can end up with a different file
|
||||
format in logfiles, etc
|
||||
</p>
|
||||
<p><a class="source-toggle" href="#"
|
||||
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
||||
<div class="method-source-code" id="M000001-source">
|
||||
<pre>
|
||||
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 166</span>
|
||||
166: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">strftime</span>(<span class="ruby-identifier">date</span>)
|
||||
167: <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-identifier">localize_strftime</span>(<span class="ruby-identifier">date</span>, <span class="ruby-keyword kw">self</span>)
|
||||
168: <span class="ruby-identifier">old_strftime</span>(<span class="ruby-identifier">date</span>)
|
||||
169: <span class="ruby-keyword kw">end</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1 +0,0 @@
|
|||
Thu Sep 07 11:04:30 Romance Daylight Time 2006
|
||||
|
|
@ -1,384 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: README</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>README</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>README
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 12:03:56 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
= Localization Simplified (<a
|
||||
href="../classes/LocalizationSimplified.html">LocalizationSimplified</a>)
|
||||
</p>
|
||||
<p>
|
||||
Localization Simplified plugin for Ruby on Rails. Really simple
|
||||
localization. Written by Jesper Rønn-Jensen ( <a
|
||||
href="http://justaddwater.dk">justaddwater.dk</a>/ )
|
||||
</p>
|
||||
<p>
|
||||
The goal is to have a dead simple plugin for one-language (non-english)
|
||||
Rails applications. Many of the existing localization /
|
||||
internationalization plugins are too big for this and hard to get started
|
||||
with. Just dump this plugin in /vendor/plugins/, set your language and off
|
||||
you go.
|
||||
</p>
|
||||
<p>
|
||||
Unlike the more advanced plugins, you don’t have to translate
|
||||
anything in your view files. Just use the standard Rails commands
|
||||
you’re used to.
|
||||
</p>
|
||||
<p>
|
||||
The simple approach also makes limits. Make sure you understand them to
|
||||
decide if this plugin is right for you.
|
||||
</p>
|
||||
<p>
|
||||
I use this plugin when creating new projects. Then later in the development
|
||||
process I can decide to change to a more advanced localization plugin (if
|
||||
necessary)
|
||||
</p>
|
||||
<h3>What it does</h3>
|
||||
<p>
|
||||
This plugin modifies the following most used helpers for Rails
|
||||
</p>
|
||||
<ul>
|
||||
<li>Sets UTF-8 content-type HTTP header
|
||||
|
||||
</li>
|
||||
<li>Sets UTF-8 connection to database
|
||||
|
||||
</li>
|
||||
<li>Localized monthnames on date_select etc. (changing the order of Y-M-D,
|
||||
where Rails allows)
|
||||
|
||||
</li>
|
||||
<li>Localized <a href="../classes/ActiveRecord.html">ActiveRecord</a> errors
|
||||
(and error headings)
|
||||
|
||||
</li>
|
||||
<li>Localized distance_of_time_in_words
|
||||
|
||||
</li>
|
||||
<li>Localized to_currency (but not changing the order of unit/currency)
|
||||
|
||||
</li>
|
||||
<li>Simple pluralization also available in the lang-file (but currently only
|
||||
used for pluralizing "error"=>"errors" in local
|
||||
language)
|
||||
|
||||
</li>
|
||||
<li>Uses standard Rails methods. In this way, there is no tedious rewrite of
|
||||
localization functions in your view files
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h3>Limitations</h3>
|
||||
<ul>
|
||||
<li>More advanced features are not likely to be available here.
|
||||
|
||||
</li>
|
||||
<li>No translation of models or the like.
|
||||
|
||||
</li>
|
||||
<li>If you want support for multiple languages, use another L10N/I18n plugin,
|
||||
like GLoc or Globalize
|
||||
|
||||
</li>
|
||||
<li>No support for re-ordering datetime_select fields or currency indicators.
|
||||
But date_select IS re-ordered. Currently, Rails lacks support of :order on
|
||||
these, but it can be done fairly easy and is already implemented in other
|
||||
frameworks.
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
The reason why I have not reordered the datetime_select fields or currency
|
||||
is that it will introduce an unnecessary dependency here (because functions
|
||||
have to be recoded).
|
||||
</p>
|
||||
<h3>Supported languages</h3>
|
||||
<p>
|
||||
Currently supported languages:
|
||||
</p>
|
||||
<ul>
|
||||
<li>English (for running test cases and comparing to normal texts)
|
||||
|
||||
</li>
|
||||
<li>German
|
||||
|
||||
</li>
|
||||
<li>Spanish
|
||||
|
||||
</li>
|
||||
<li>French
|
||||
|
||||
</li>
|
||||
<li>Dutch
|
||||
|
||||
</li>
|
||||
<li>Danish
|
||||
|
||||
</li>
|
||||
<li>Swedish
|
||||
|
||||
</li>
|
||||
<li>Finnish
|
||||
|
||||
</li>
|
||||
<li>Canadian French
|
||||
|
||||
</li>
|
||||
<li>Swedish Chef, and Pirate talk (just for the fun of it)
|
||||
|
||||
</li>
|
||||
<li>any other language you want. Just dump your translation in the /lib folder
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h3>Download code</h3>
|
||||
<ul>
|
||||
<li>Project homepage: <a
|
||||
href="http://rubyforge.org/projects/l10n-simplified">rubyforge.org/projects/l10n-simplified</a>/
|
||||
|
||||
</li>
|
||||
<li>Subversion access: svn checkout svn://rubyforge.org/var/svn/l10n-simplified
|
||||
|
||||
</li>
|
||||
<li>Browse: <a
|
||||
href="http://rubyforge.org/plugins/scmsvn/viewcvs.php/?root=l10n-simplified">rubyforge.org/plugins/scmsvn/viewcvs.php/?root=l10n-simplified</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h3>Usage:</h3>
|
||||
<p>
|
||||
in init.rb, set your language. That’s it. Now your db connection is
|
||||
running UTF-8 and standard Rails output is localized.
|
||||
</p>
|
||||
<p>
|
||||
If your view files contains text, you probably also want to save your files
|
||||
as UTF-8.
|
||||
</p>
|
||||
<h3>Installation:</h3>
|
||||
<p>
|
||||
1) Just copy this plugin into your /vendor/lib folder 2) Choose your
|
||||
lang-file in init.rb (default is Danish because I am Danish)
|
||||
</p>
|
||||
<p>
|
||||
A special note of WARNING: All files here are saved using UTF-8 encoding.
|
||||
It’s not required for working, I guess, but other encodings could
|
||||
bring you in trouble.
|
||||
</p>
|
||||
<h3>TODO</h3>
|
||||
<ul>
|
||||
<li>Rake task that modifies all view-files and converts them to UTF-8
|
||||
|
||||
</li>
|
||||
<li>Also a task that modifies all generators to use UTF-8
|
||||
|
||||
</li>
|
||||
<li>Other helpers that need modification? (your suggestions and contributions
|
||||
are welcome)
|
||||
|
||||
</li>
|
||||
<li>Add more test cases to verify it works properly
|
||||
|
||||
</li>
|
||||
<li>Modify to_boolean_select_tag with localized true/false?? (normally, I would
|
||||
prefer to use a checkbox for this and NOT a select tag)
|
||||
|
||||
</li>
|
||||
<li>Verify that the lang-files supplied are relevant
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h3>DONE</h3>
|
||||
<ul>
|
||||
<li>Added comments in all lang-files, thanks Jarkko Laine for the idea
|
||||
(2006-09-07)
|
||||
|
||||
</li>
|
||||
<li>Bugfix: Replaced hardcoded string in distance_of_time_in_words when
|
||||
:include_seconds was false (2006-08-30)
|
||||
|
||||
</li>
|
||||
<li>Added Canadian French translation (thanks Daniel) (2006-08-25)
|
||||
|
||||
</li>
|
||||
<li>Added comments in lang-file for documentation of how to localize
|
||||
(2006-08-25)
|
||||
|
||||
</li>
|
||||
<li>Added French translation (thanks Fred Cavazza) (2006-08-25)
|
||||
|
||||
</li>
|
||||
<li>Added Finnish translation (thanks Jarkko Laine) (2006-08-25)
|
||||
|
||||
</li>
|
||||
<li>Bugfix re-added HTTP header for UTF-8. Necessary for some lang-files
|
||||
(2004-08-24)
|
||||
|
||||
</li>
|
||||
<li>Renamed test files to make rake test command work (2006-08-23)
|
||||
|
||||
</li>
|
||||
<li>Localized time "Wed Aug 23 12:38:22 Romance Daylight <a
|
||||
href="../classes/Time.html">Time</a> 2006" =>
|
||||
|
||||
<pre>
|
||||
"onsdag d. 23 august 2006 12:38:22" (Danish)
|
||||
</pre>
|
||||
</li>
|
||||
<li>Reordering of date_select fields (2006-08-23)
|
||||
|
||||
</li>
|
||||
<li>Test that plugin works with the Rails version it is installed next to
|
||||
(2006-08-20)
|
||||
|
||||
</li>
|
||||
<li>Added Dutch translation lang_nl.rb, thanks to Jeroen Houben (2006-08-20)
|
||||
|
||||
</li>
|
||||
<li>Added Pirate language lang_pirate.rb, thanks to Tobias Michaelsen
|
||||
(2006-08-18)
|
||||
|
||||
</li>
|
||||
<li>Added <a href="../classes/Date.html">Date</a> and Time#to_formatted_s with
|
||||
locale specific strings (2006-08-18)
|
||||
|
||||
</li>
|
||||
<li>Added MIT-license, copied from Ruby on Rails (2006-08-13)
|
||||
|
||||
</li>
|
||||
<li>Added tests for plugin (2006-08-13)
|
||||
|
||||
</li>
|
||||
<li>Localized version of <a
|
||||
href="../classes/Array.html#M000002">Array.to_sentence</a> (2006-08-09)
|
||||
|
||||
</li>
|
||||
<li>Added test scaffold (2006-08-09)
|
||||
|
||||
</li>
|
||||
<li>Added swedish language, thanks to Olle Jonsson (2006-08-09)
|
||||
|
||||
</li>
|
||||
<li>Localized version of to_currency helper (2006-08-07)
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h3>Your help</h3>
|
||||
<p>
|
||||
Feel free to use, translate, modify and improve this code. Do send me
|
||||
translations, improvements, etc. I cannot promise to use it, but chances
|
||||
are that I will unless it bloats the code here completely or makes code
|
||||
harder to maintain.
|
||||
</p>
|
||||
<p>
|
||||
I added FIXME notes in the code to indicate where I also could use help.
|
||||
</p>
|
||||
<h3>Credits</h3>
|
||||
<p>
|
||||
This plugin uses a few bits and pieces from other Rails plugins GLoc (<a
|
||||
href="http://rubyforge.org/projects/gloc">rubyforge.org/projects/gloc</a>/)
|
||||
and swe_rails (<a
|
||||
href="http://opensource.ki.se/swe_rails.html">opensource.ki.se/swe_rails.html</a>)
|
||||
</p>
|
||||
<p>
|
||||
Created 2006-07-28 by Jesper Rønn-Jensen <a
|
||||
href="http://justaddwater.dk">justaddwater.dk</a>/
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_chef.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_chef.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_chef.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:57:22 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_chef.rb Swedish Chef language file for Ruby on Rails Translation by
|
||||
Jesper Rønn-Jensen ( <a href="http://justaddwater.dk">justaddwater.dk</a>/
|
||||
), via web based translator
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_da.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_da.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_da.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:55:25 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_da.rb Danish translation file Translation by Jesper Rønn-Jensen ( <a
|
||||
href="http://justaddwater.dk">justaddwater.dk</a>/ )
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,110 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_de.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_de.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_de.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:58:46 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_de.rb German translation file Translation by Jesper Rønn-Jensen ( <a
|
||||
href="http://justaddwater.dk">justaddwater.dk</a>/ ), inspired by example
|
||||
on Rails wiki: <a
|
||||
href="http://wiki.rubyonrails.org/rails/pages/OverridingRailsMessagesInAnotherLanguage">wiki.rubyonrails.org/rails/pages/OverridingRailsMessagesInAnotherLanguage</a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_en.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_en.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_en.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:58:04 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_en.rb English baseline translation file. Comes in handy for testing
|
||||
purposes
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_es.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_es.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_es.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:59:29 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_es.rb Spanish translation file. Translation by Luis Villa del Campo
|
||||
(<a href="http://www.grancomo.com">www.grancomo.com</a>)
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_nl.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_nl.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_nl.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:50:53 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_nl.rb Dutch translation by Jeroen Houben
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_pirate.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_pirate.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_pirate.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:52:50 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_pirate.rb Pirate baseline translation file. Translated by Tobias
|
||||
Michaelsen , additions by Jesper Rønn-Jensen ( <a
|
||||
href="http://justaddwater.dk">justaddwater.dk</a>/ )
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,110 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: lang_se.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>lang_se.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/lang_se.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Thu Sep 07 11:54:24 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
lang_se.rb Swedish translation file. Translation from plugin swe_rails by
|
||||
Ola Bini ( <a
|
||||
href="http://ola-bini.blogspot.com">ola-bini.blogspot.com</a>/ ) and Olle
|
||||
Jonsson ( <a href="http://olleolleolle.dk">olleolleolle.dk</a> )
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,111 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>File: localization_simplified.rb</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
|
||||
function popupCode( url ) {
|
||||
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
||||
}
|
||||
|
||||
function toggleCode( id ) {
|
||||
if ( document.getElementById )
|
||||
elem = document.getElementById( id );
|
||||
else if ( document.all )
|
||||
elem = eval( "document.all." + id );
|
||||
else
|
||||
return false;
|
||||
|
||||
elemStyle = elem.style;
|
||||
|
||||
if ( elemStyle.display != "block" ) {
|
||||
elemStyle.display = "block"
|
||||
} else {
|
||||
elemStyle.display = "none"
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Make codeblocks hidden by default
|
||||
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
||||
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="fileHeader">
|
||||
<h1>localization_simplified.rb</h1>
|
||||
<table class="header-table">
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Path:</strong></td>
|
||||
<td>lib/localization_simplified.rb
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="top-aligned-row">
|
||||
<td><strong>Last Update:</strong></td>
|
||||
<td>Fri Sep 01 14:23:46 Romance Daylight Time 2006</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- banner header -->
|
||||
|
||||
<div id="bodyContent">
|
||||
|
||||
|
||||
|
||||
<div id="contextContent">
|
||||
|
||||
<div id="description">
|
||||
<p>
|
||||
<a
|
||||
href="../../classes/LocalizationSimplified.html">LocalizationSimplified</a>
|
||||
Really simple localization for Rails By Jesper Rønn-Jensen ( <a
|
||||
href="http://justaddwater.dk">justaddwater.dk</a>/ ) Plugin available at <a
|
||||
href="http://rubyforge.org/projects/l10n-simplified">rubyforge.org/projects/l10n-simplified</a>/
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!-- if includes -->
|
||||
|
||||
<div id="section">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- if method_list -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="validator-badges">
|
||||
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<!--
|
||||
|
||||
Classes
|
||||
|
||||
-->
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Classes</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
||||
<base target="docwin" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="index">
|
||||
<h1 class="section-bar">Classes</h1>
|
||||
<div id="index-entries">
|
||||
<a href="classes/ActionController.html">ActionController</a><br />
|
||||
<a href="classes/ActionController/Base.html">ActionController::Base</a><br />
|
||||
<a href="classes/ActionView.html">ActionView</a><br />
|
||||
<a href="classes/ActionView/Helpers.html">ActionView::Helpers</a><br />
|
||||
<a href="classes/ActionView/Helpers/ActiveRecordHelper.html">ActionView::Helpers::ActiveRecordHelper</a><br />
|
||||
<a href="classes/ActionView/Helpers/DateHelper.html">ActionView::Helpers::DateHelper</a><br />
|
||||
<a href="classes/ActionView/Helpers/NumberHelper.html">ActionView::Helpers::NumberHelper</a><br />
|
||||
<a href="classes/ActiveRecord.html">ActiveRecord</a><br />
|
||||
<a href="classes/ActiveRecord/Errors.html">ActiveRecord::Errors</a><br />
|
||||
<a href="classes/Array.html">Array</a><br />
|
||||
<a href="classes/Date.html">Date</a><br />
|
||||
<a href="classes/LocalizationSimplified.html">LocalizationSimplified</a><br />
|
||||
<a href="classes/LocalizationSimplified/ActiveRecord.html">LocalizationSimplified::ActiveRecord</a><br />
|
||||
<a href="classes/LocalizationSimplified/ArrayHelper.html">LocalizationSimplified::ArrayHelper</a><br />
|
||||
<a href="classes/LocalizationSimplified/DateHelper.html">LocalizationSimplified::DateHelper</a><br />
|
||||
<a href="classes/LocalizationSimplified/NumberHelper.html">LocalizationSimplified::NumberHelper</a><br />
|
||||
<a href="classes/Time.html">Time</a><br />
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<!--
|
||||
|
||||
Files
|
||||
|
||||
-->
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Files</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
||||
<base target="docwin" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="index">
|
||||
<h1 class="section-bar">Files</h1>
|
||||
<div id="index-entries">
|
||||
<a href="files/README.html">README</a><br />
|
||||
<a href="files/lib/lang_cf_rb.html">lib/lang_cf.rb</a><br />
|
||||
<a href="files/lib/lang_chef_rb.html">lib/lang_chef.rb</a><br />
|
||||
<a href="files/lib/lang_da_rb.html">lib/lang_da.rb</a><br />
|
||||
<a href="files/lib/lang_de_rb.html">lib/lang_de.rb</a><br />
|
||||
<a href="files/lib/lang_en_rb.html">lib/lang_en.rb</a><br />
|
||||
<a href="files/lib/lang_es_rb.html">lib/lang_es.rb</a><br />
|
||||
<a href="files/lib/lang_fi_rb.html">lib/lang_fi.rb</a><br />
|
||||
<a href="files/lib/lang_fr_rb.html">lib/lang_fr.rb</a><br />
|
||||
<a href="files/lib/lang_fr__rb.html">lib/lang_fr_.rb</a><br />
|
||||
<a href="files/lib/lang_nl_rb.html">lib/lang_nl.rb</a><br />
|
||||
<a href="files/lib/lang_pirate_rb.html">lib/lang_pirate.rb</a><br />
|
||||
<a href="files/lib/lang_se_rb.html">lib/lang_se.rb</a><br />
|
||||
<a href="files/lib/lang_template_rb.html">lib/lang_template.rb</a><br />
|
||||
<a href="files/lib/localization_simplified_rb.html">lib/localization_simplified.rb</a><br />
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<!--
|
||||
|
||||
Methods
|
||||
|
||||
-->
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Methods</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
||||
<base target="docwin" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="index">
|
||||
<h1 class="section-bar">Methods</h1>
|
||||
<div id="index-entries">
|
||||
<a href="classes/ActionController/Base.html#M000003">configure_charsets (ActionController::Base)</a><br />
|
||||
<a href="classes/ActionView/Helpers/DateHelper.html#M000007">date_select (ActionView::Helpers::DateHelper)</a><br />
|
||||
<a href="classes/ActionView/Helpers/DateHelper.html#M000008">datetime_select (ActionView::Helpers::DateHelper)</a><br />
|
||||
<a href="classes/LocalizationSimplified.html#M000010">distance_of_time_in_words (LocalizationSimplified)</a><br />
|
||||
<a href="classes/ActionView/Helpers/DateHelper.html#M000006">distance_of_time_in_words (ActionView::Helpers::DateHelper)</a><br />
|
||||
<a href="classes/ActionView/Helpers/ActiveRecordHelper.html#M000005">error_messages_for (ActionView::Helpers::ActiveRecordHelper)</a><br />
|
||||
<a href="classes/LocalizationSimplified.html#M000009">localize_strftime (LocalizationSimplified)</a><br />
|
||||
<a href="classes/ActionView/Helpers/NumberHelper.html#M000004">number_to_currency (ActionView::Helpers::NumberHelper)</a><br />
|
||||
<a href="classes/Time.html#M000001">strftime (Time)</a><br />
|
||||
<a href="classes/Array.html#M000002">to_sentence (Array)</a><br />
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
|
||||
<!--
|
||||
|
||||
LocalizationSimplified
|
||||
|
||||
-->
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>LocalizationSimplified</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
<frameset rows="20%, 80%">
|
||||
<frameset cols="25%,35%,45%">
|
||||
<frame src="fr_file_index.html" title="Files" name="Files" />
|
||||
<frame src="fr_class_index.html" name="Classes" />
|
||||
<frame src="fr_method_index.html" name="Methods" />
|
||||
</frameset>
|
||||
<frame src="files/README.html" name="docwin" />
|
||||
</frameset>
|
||||
</html>
|
||||
|
|
@ -1,208 +0,0 @@
|
|||
|
||||
body {
|
||||
font-family: Verdana,Arial,Helvetica,sans-serif;
|
||||
font-size: 90%;
|
||||
margin: 0;
|
||||
margin-left: 40px;
|
||||
padding: 0;
|
||||
background: white;
|
||||
}
|
||||
|
||||
h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
|
||||
h1 { font-size: 150%; }
|
||||
h2,h3,h4 { margin-top: 1em; }
|
||||
|
||||
a { background: #eef; color: #039; text-decoration: none; }
|
||||
a:hover { background: #039; color: #eef; }
|
||||
|
||||
/* Override the base stylesheet's Anchor inside a table cell */
|
||||
td > a {
|
||||
background: transparent;
|
||||
color: #039;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* and inside a section title */
|
||||
.section-title > a {
|
||||
background: transparent;
|
||||
color: #eee;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* === Structural elements =================================== */
|
||||
|
||||
div#index {
|
||||
margin: 0;
|
||||
margin-left: -40px;
|
||||
padding: 0;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
|
||||
div#index a {
|
||||
margin-left: 0.7em;
|
||||
}
|
||||
|
||||
div#index .section-bar {
|
||||
margin-left: 0px;
|
||||
padding-left: 0.7em;
|
||||
background: #ccc;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
|
||||
div#classHeader, div#fileHeader {
|
||||
width: auto;
|
||||
color: white;
|
||||
padding: 0.5em 1.5em 0.5em 1.5em;
|
||||
margin: 0;
|
||||
margin-left: -40px;
|
||||
border-bottom: 3px solid #006;
|
||||
}
|
||||
|
||||
div#classHeader a, div#fileHeader a {
|
||||
background: inherit;
|
||||
color: white;
|
||||
}
|
||||
|
||||
div#classHeader td, div#fileHeader td {
|
||||
background: inherit;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
div#fileHeader {
|
||||
background: #057;
|
||||
}
|
||||
|
||||
div#classHeader {
|
||||
background: #048;
|
||||
}
|
||||
|
||||
|
||||
.class-name-in-header {
|
||||
font-size: 180%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
div#bodyContent {
|
||||
padding: 0 1.5em 0 1.5em;
|
||||
}
|
||||
|
||||
div#description {
|
||||
padding: 0.5em 1.5em;
|
||||
background: #efefef;
|
||||
border: 1px dotted #999;
|
||||
}
|
||||
|
||||
div#description h1,h2,h3,h4,h5,h6 {
|
||||
color: #125;;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
div#validator-badges {
|
||||
text-align: center;
|
||||
}
|
||||
div#validator-badges img { border: 0; }
|
||||
|
||||
div#copyright {
|
||||
color: #333;
|
||||
background: #efefef;
|
||||
font: 0.75em sans-serif;
|
||||
margin-top: 5em;
|
||||
margin-bottom: 0;
|
||||
padding: 0.5em 2em;
|
||||
}
|
||||
|
||||
|
||||
/* === Classes =================================== */
|
||||
|
||||
table.header-table {
|
||||
color: white;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
.type-note {
|
||||
font-size: small;
|
||||
color: #DEDEDE;
|
||||
}
|
||||
|
||||
.xxsection-bar {
|
||||
background: #eee;
|
||||
color: #333;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.section-bar {
|
||||
color: #333;
|
||||
border-bottom: 1px solid #999;
|
||||
margin-left: -20px;
|
||||
}
|
||||
|
||||
|
||||
.section-title {
|
||||
background: #79a;
|
||||
color: #eee;
|
||||
padding: 3px;
|
||||
margin-top: 2em;
|
||||
margin-left: -30px;
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
.top-aligned-row { vertical-align: top }
|
||||
.bottom-aligned-row { vertical-align: bottom }
|
||||
|
||||
/* --- Context section classes ----------------------- */
|
||||
|
||||
.context-row { }
|
||||
.context-item-name { font-family: monospace; font-weight: bold; color: black; }
|
||||
.context-item-value { font-size: small; color: #448; }
|
||||
.context-item-desc { color: #333; padding-left: 2em; }
|
||||
|
||||
/* --- Method classes -------------------------- */
|
||||
.method-detail {
|
||||
background: #efefef;
|
||||
padding: 0;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 1em;
|
||||
border: 1px dotted #ccc;
|
||||
}
|
||||
.method-heading {
|
||||
color: black;
|
||||
background: #ccc;
|
||||
border-bottom: 1px solid #666;
|
||||
padding: 0.2em 0.5em 0 0.5em;
|
||||
}
|
||||
.method-signature { color: black; background: inherit; }
|
||||
.method-name { font-weight: bold; }
|
||||
.method-args { font-style: italic; }
|
||||
.method-description { padding: 0 0.5em 0 0.5em; }
|
||||
|
||||
/* --- Source code sections -------------------- */
|
||||
|
||||
a.source-toggle { font-size: 90%; }
|
||||
div.method-source-code {
|
||||
background: #262626;
|
||||
color: #ffdead;
|
||||
margin: 1em;
|
||||
padding: 0.5em;
|
||||
border: 1px dashed #999;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
||||
|
||||
/* --- Ruby keyword styles --------------------- */
|
||||
|
||||
.standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
|
||||
|
||||
.ruby-constant { color: #7fffd4; background: transparent; }
|
||||
.ruby-keyword { color: #00ffff; background: transparent; }
|
||||
.ruby-ivar { color: #eedd82; background: transparent; }
|
||||
.ruby-operator { color: #00ffee; background: transparent; }
|
||||
.ruby-identifier { color: #ffdead; background: transparent; }
|
||||
.ruby-node { color: #ffa07a; background: transparent; }
|
||||
.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
|
||||
.ruby-regexp { color: #ffa07a; background: transparent; }
|
||||
.ruby-value { color: #7fffd4; background: transparent; }
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
# desc "Explaining what the task does"
|
||||
# task :localization_simplified do
|
||||
# # FIXME: Add task to convert all line-endings to UNIX
|
||||
# # FIXME: Add task to convert all line-endings to DOS
|
||||
# # FIXME: Add task to convert all files in project to UTF-8
|
||||
# # FIXME: Add task to convert all files in project to ASCII (standard)
|
||||
# end
|
||||
|
|
@ -1,175 +0,0 @@
|
|||
<p>Use this page to test helpers of the Localization Simplified plugin.
|
||||
Put this file in your applications view directory, add a controller action "helper_tests", and view this page</p>
|
||||
<p>Sentence with UTF-8 characters: Café, Danish(æ,ø,å), Swedish(ä,ö,å), Spanish: (ñ) </p>
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>fn</th>
|
||||
<th>result</th>
|
||||
<th>expected</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(3.seconds.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(3.seconds.ago, true) %></td>
|
||||
<td>'less than 5 seconds'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(9.seconds.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(9.seconds.ago, true) %></td>
|
||||
<td>'less than 10 seconds'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(20.seconds.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(20.seconds.ago, true) %></td>
|
||||
<td>'less than 20 seconds'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(31.seconds.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(31.seconds.ago, true) %></td>
|
||||
<td>'half a minute'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(50.seconds.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(50.seconds.ago, true) %></td>
|
||||
<td>'less than a minute'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(80.seconds.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(80.seconds.ago, true) %></td>
|
||||
<td>'1 minute'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(4.minutes.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(4.minutes.ago, true) %></td>
|
||||
<td>'4 minutes'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(50.minutes.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(50.minutes.ago, true) %></td>
|
||||
<td>'about 1 hour'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(4.hours.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(4.hours.ago, true) %></td>
|
||||
<td>'about 4 hours'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(1.day.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(1.day.ago, true) %></td>
|
||||
<td>'1 day'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(4.days.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(4.days.ago, true) %></td>
|
||||
<td>'4 days'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(1.month.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(1.month.ago, true) %></td>
|
||||
<td>'1 month'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(4.months.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(4.months.ago, true) %></td>
|
||||
<td>'4 months'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(13.months.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(13.months.ago, true) %></td>
|
||||
<td>'1 year'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>time_ago_in_words(26.months.ago, true)</code></td>
|
||||
<td><%= time_ago_in_words(26.months.ago, true) %></td>
|
||||
<td>'2 years'</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p>number_to_currency test:</p>
|
||||
<ul>
|
||||
<li><%= number_to_currency(1008323) %></li>
|
||||
<li><%= number_to_currency(10083.777) %></li>
|
||||
<li><%= number_to_currency(0.2) %></li>
|
||||
</ul>
|
||||
<p>Array.to_sentence test: [1,2,3].to_sentence: "<%= [1,2,3].to_sentence %>" <em>(expected "1,2, and 3")</em></p>
|
||||
|
||||
<% t = Time.parse('2006-12-25 11:55') -%>
|
||||
<% d = Date.parse('2006-12-25 11:55') -%>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Formatted time:</th>
|
||||
<th>result</th>
|
||||
<th>expected</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>t.to_formatted_s()</td>
|
||||
<td><%= t.to_formatted_s() %></td>
|
||||
<td>Mon Dec 25 11:55:00 Romance Standard Time 2006 </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>t.to_formatted_s(:default)</td>
|
||||
<td><%= t.to_formatted_s(:default) %></td>
|
||||
<td>Mon Dec 25 11:55:00 Romance Standard Time 2006 </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>t.to_formatted_s(:long)</td>
|
||||
<td><%= t.to_formatted_s(:long) %></td>
|
||||
<td>December 25, 2006 11:55</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>t.to_formatted_s(:short)</td>
|
||||
<td><%= t.to_formatted_s(:short) %></td>
|
||||
<td> 25 Dec 11:55</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>Formatted date:</th>
|
||||
<th>result</th>
|
||||
<th>expected</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>d.to_formatted_s()</td>
|
||||
<td><%= d.to_formatted_s() %></td>
|
||||
<td>2006-12-25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>d.to_formatted_s(:default)</td>
|
||||
<td><%= d.to_formatted_s(:default) %></td>
|
||||
<td>2006-12-25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>d.to_formatted_s(:long)</td>
|
||||
<td><%= d.to_formatted_s(:long) %></td>
|
||||
<td>December 25, 2006</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>d.to_formatted_s(:short)</td>
|
||||
<td><%= d.to_formatted_s(:short) %></td>
|
||||
<td> 25 Dec</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<h3>date_select and datetime_select tests</h3>
|
||||
<%
|
||||
|
||||
|
||||
%>
|
||||
<p>
|
||||
<label for="testmodel_date">Test order and localized content of date_select</label><br />
|
||||
<%= date_select :testmodel, :date %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="testmodel_datetime">Test order and localized content of datetime_select</label><br />
|
||||
<%= datetime_select :testmodel, :datetime %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="testmodel_select_date">Test order and localized content of select_date</label><br />
|
||||
<%=
|
||||
# this gives exception
|
||||
# select_date :testmodel, :select_date
|
||||
%>
|
||||
</p>
|
||||
|
||||
<h3>String concatenation tests</h3>
|
||||
<p><code> truncate 'Iñtërnâtiônàlizætiøn', 12</code>: <strong><%= truncate 'Iñtërnâtiônàlizætiøn', 12 %></strong> (expected: "Iñtërnâti…")</p>
|
||||
|
|
@ -1,115 +0,0 @@
|
|||
# run from command line "ruby test_the_hooks.rb"
|
||||
#
|
||||
# These tests are testing hooks that this plugin modifies
|
||||
# These tests are written to test standard ruby/rails functions
|
||||
# Note that it requires access to the standard ruby/rails plugins that it modifies
|
||||
|
||||
# require standard gems
|
||||
require 'rubygems'
|
||||
require 'test/unit'
|
||||
|
||||
require 'active_record'
|
||||
require 'action_view'
|
||||
require 'active_support'
|
||||
|
||||
|
||||
require File.dirname(__FILE__) + '/../lib/lang_en'
|
||||
|
||||
|
||||
class LocalizationSimplifiedTest < Test::Unit::TestCase
|
||||
include LocalizationSimplified
|
||||
|
||||
|
||||
def test_language_file_en
|
||||
assert_equal "en",LocalizationSimplified::About[:lang]
|
||||
assert_kind_of Class,LocalizationSimplified::About.class
|
||||
assert_kind_of Class,LocalizationSimplified::ActiveRecord::ErrorMessages.class
|
||||
assert_kind_of Class,LocalizationSimplified::DateHelper::Texts.class
|
||||
assert_kind_of Class,LocalizationSimplified::NumberHelper::CurrencyOptions.class
|
||||
assert_kind_of Class,LocalizationSimplified::ArrayHelper::ToSentenceTexts.class
|
||||
end
|
||||
|
||||
def test_default_active_record_exists
|
||||
assert ::ActiveRecord
|
||||
assert ::ActiveRecord::Errors
|
||||
assert_kind_of Hash, ::ActiveRecord::Errors.default_error_messages
|
||||
end
|
||||
|
||||
def test_default_active_record_hooks
|
||||
hook = ::ActiveRecord::Errors.default_error_messages
|
||||
expect = {
|
||||
:inclusion => "is not included in the list",
|
||||
:exclusion => "is reserved",
|
||||
:invalid => "is invalid",
|
||||
:confirmation => "doesn't match confirmation",
|
||||
:accepted => "must be accepted",
|
||||
:empty => "can't be empty",
|
||||
:blank => "can't be blank",
|
||||
:too_long => "is too long (maximum is %d characters)",
|
||||
:too_short => "is too short (minimum is %d characters)",
|
||||
:wrong_length => "is the wrong length (should be %d characters)",
|
||||
:taken => "has already been taken",
|
||||
:not_a_number => "is not a number",
|
||||
#Jespers additions:
|
||||
:error_translation => "error",
|
||||
:error_header => "%s prohibited this %s from being saved",
|
||||
:error_subheader => "There were problems with the following fields:"
|
||||
}
|
||||
|
||||
assert_equal expect[:inclusion], hook[:inclusion]
|
||||
assert_equal expect[:exclusion], hook[:exclusion]
|
||||
assert_equal expect[:invalid], hook[:invalid]
|
||||
assert_equal expect[:confirmation], hook[:confirmation]
|
||||
assert_equal expect[:accepted], hook[:accepted]
|
||||
assert_equal expect[:empty], hook[:empty]
|
||||
assert_equal expect[:blank], hook[:blank]
|
||||
assert_equal expect[:too_long], hook[:too_long]
|
||||
assert_equal expect[:too_short], hook[:too_short]
|
||||
assert_equal expect[:wrong_length], hook[:wrong_length]
|
||||
assert_equal expect[:taken], hook[:taken]
|
||||
assert_equal expect[:not_a_number], hook[:not_a_number]
|
||||
end
|
||||
|
||||
def test_plugin_hooks_dont exist
|
||||
hook = ::ActiveRecord::Errors.default_error_messages
|
||||
|
||||
#plugin s additions is supposed to not exist on ActiveRecord before plugin is added
|
||||
assert_nil hook[:error_translation], "Should fail if plugin already added"
|
||||
assert_nil hook[:error_header], "Should fail if plugin already added"
|
||||
assert_nil hook[:error_subheader], "Should fail if plugin already added"
|
||||
end
|
||||
|
||||
|
||||
|
||||
def test_number_to_currency
|
||||
assert ActionView::Helpers::NumberHelper
|
||||
obj = ActionView::Base.new
|
||||
assert_respond_to obj, 'number_to_currency'
|
||||
#assert_nil obj.orig_number_to_currency #FIXME this line makes assertion fail. Should be nil.
|
||||
assert_equal "$1,234,567,890.51", obj.number_to_currency(1234567890.506)
|
||||
end
|
||||
|
||||
def test_to_sentence
|
||||
assert ActiveSupport::CoreExtensions::Array::Conversions
|
||||
a = Array.new
|
||||
assert_respond_to a, 'to_sentence'
|
||||
assert_equal "1, 2, and 3", [1,2,3].to_sentence
|
||||
end
|
||||
|
||||
def test_date_helpers
|
||||
assert ActionView::Helpers::NumberHelper
|
||||
a = ActionView::Base.new
|
||||
assert 'less than 5 seconds' , a.time_ago_in_words(3.seconds.ago, true)
|
||||
assert 'less than 10 seconds' , a.time_ago_in_words(9.seconds.ago, true)
|
||||
assert 'less than 20 seconds' , a.time_ago_in_words(20.seconds.ago, true)
|
||||
assert 'half a minute' , a.time_ago_in_words(31.seconds.ago, true)
|
||||
assert 'less than a minute' , a.time_ago_in_words(50.seconds.ago, false)
|
||||
assert 'less than a minute' , a.time_ago_in_words(50.seconds.ago)
|
||||
assert '1 minute' , a.time_ago_in_words(80.seconds.ago)
|
||||
assert '4 minutes' , a.time_ago_in_words(4.minutes.ago)
|
||||
assert 'about 1 hour' , a.time_ago_in_words(50.minutes.ago)
|
||||
assert '4 hours' , a.time_ago_in_words(4.hours.ago)
|
||||
assert '1 day' , a.time_ago_in_words(1.day.ago)
|
||||
assert '4 days' , a.time_ago_in_words(4.days.ago)
|
||||
end
|
||||
end
|
||||
|
|
@ -1,117 +0,0 @@
|
|||
# run from command line: "ruby test_the_plugin.rb"
|
||||
#
|
||||
# Testing hooks that this plugin modifies
|
||||
# These tests are written to test standard ruby/rails functions
|
||||
# Note that it requires access to the standard ruby/rails plugins that it modifies
|
||||
|
||||
# require standard gems
|
||||
require 'rubygems'
|
||||
require 'test/unit'
|
||||
|
||||
require 'active_record'
|
||||
require 'action_view'
|
||||
require 'active_support'
|
||||
|
||||
# FIXME: I want a way to test all languages at a time.
|
||||
# Currently this $language flag has to be changed with every test run
|
||||
$language = "en" unless $language
|
||||
require File.dirname(__FILE__) + '/../lib/lang_' + $language
|
||||
require File.dirname(__FILE__) + '/../lib/localization_simplified'
|
||||
|
||||
|
||||
class LocalizationSimplifiedTest < Test::Unit::TestCase
|
||||
include LocalizationSimplified
|
||||
def setup
|
||||
@languages=%w{chef da de en es se} #languages that should be tested
|
||||
end
|
||||
|
||||
def test_language_file
|
||||
assert_equal $language,LocalizationSimplified::About[:lang]
|
||||
assert_kind_of Class,LocalizationSimplified::About.class
|
||||
assert_kind_of Class,LocalizationSimplified::ActiveRecord::ErrorMessages.class
|
||||
assert_kind_of Class,LocalizationSimplified::DateHelper::Texts.class
|
||||
assert_kind_of Class,LocalizationSimplified::NumberHelper::CurrencyOptions.class
|
||||
assert_kind_of Class,LocalizationSimplified::ArrayHelper::ToSentenceTexts.class
|
||||
end
|
||||
|
||||
|
||||
def test_active_record_hooks_should_be_present
|
||||
expect =LocalizationSimplified::ActiveRecord::ErrorMessages
|
||||
model = ::ActiveRecord::Errors.default_error_messages
|
||||
assert_equal expect[:inclusion], model[:inclusion]
|
||||
assert_equal expect[:exclusion], model[:exclusion]
|
||||
assert_equal expect[:invalid], model[:invalid]
|
||||
assert_equal expect[:confirmation], model[:confirmation]
|
||||
assert_equal expect[:accepted], model[:accepted]
|
||||
assert_equal expect[:empty], model[:empty]
|
||||
assert_equal expect[:blank], model[:blank]
|
||||
assert_equal expect[:too_long], model[:too_long]
|
||||
assert_equal expect[:too_short], model[:too_short]
|
||||
assert_equal expect[:wrong_length], model[:wrong_length]
|
||||
assert_equal expect[:taken], model[:taken]
|
||||
assert_equal expect[:not_a_number], model[:not_a_number]
|
||||
|
||||
#expect's additions is supposed to not exist on ActiveRecord before expect is added
|
||||
assert_equal expect[:error_translation], model[:error_translation]
|
||||
assert_equal expect[:error_header], model[:error_header]
|
||||
assert_equal expect[:error_subheader], model[:error_subheader]
|
||||
end
|
||||
|
||||
def test_active_record_is_loaded_with_plugin_hooks
|
||||
assert_not_nil ::ActiveRecord::Errors.default_error_messages[:error_translation]
|
||||
assert_not_nil ::ActiveRecord::Errors.default_error_messages[:error_header]
|
||||
assert_not_nil ::ActiveRecord::Errors.default_error_messages[:error_subheader]
|
||||
end
|
||||
|
||||
|
||||
#note that this test will fail if currency format is different from "$1.234,00"
|
||||
def test_number_to_currency
|
||||
assert ActionView::Helpers::NumberHelper
|
||||
obj = ActionView::Base.new
|
||||
assert_respond_to obj, 'number_to_currency'
|
||||
assert_respond_to obj, 'orig_number_to_currency'
|
||||
|
||||
assert_equal "$1,234,567,890.51", obj.number_to_currency(1234567890.506), "NOTE: This currency test should fail if locale has different currency format"
|
||||
end
|
||||
|
||||
def test_to_sentence
|
||||
options =LocalizationSimplified::ArrayHelper::ToSentenceTexts
|
||||
arr = [1,2,3]
|
||||
s = "1, 2" + ("," unless options[:skip_last_comma]).to_s + " "+ options[:connector].to_s + " 3"
|
||||
assert_equal s, arr.to_sentence
|
||||
# FIXME: test below fails for some reason I cannot understand
|
||||
# assert_respond_to arr, orig_to_sentence
|
||||
end
|
||||
|
||||
def test_time_ago_in_words
|
||||
assert ActionView::Helpers::NumberHelper
|
||||
a = ActionView::Base.new
|
||||
messages =LocalizationSimplified::DateHelper::Texts
|
||||
assert messages[:less_than_a_minute] , a.time_ago_in_words(3.seconds.ago, false)
|
||||
assert format( messages[:less_than_x_seconds], 5 ) , a.time_ago_in_words(3.seconds.ago, true)
|
||||
assert format( messages[:less_than_x_seconds], 10 ) , a.time_ago_in_words(9.seconds.ago, true)
|
||||
assert format( messages[:less_than_x_seconds], 20 ) , a.time_ago_in_words(20.seconds.ago, true)
|
||||
assert messages[:half_a_minute] , a.time_ago_in_words(31.seconds.ago, true)
|
||||
assert messages[:less_than_a_minute] , a.time_ago_in_words(50.seconds.ago)
|
||||
assert messages[:one_minute] , a.time_ago_in_words(80.seconds.ago)
|
||||
assert messages[:one_hour] , a.time_ago_in_words(50.minutes.ago)
|
||||
assert messages[:one_day] , a.time_ago_in_words(1.day.ago)
|
||||
assert messages[:one_month] , a.time_ago_in_words(1.month.ago)
|
||||
assert messages[:one_year] , a.time_ago_in_words(1.year.ago)
|
||||
# FIXME: 3 tests below are not tested, as they require more logic in the test
|
||||
# Please fix, if possible and simple
|
||||
# assert format(messages[:x_minutes], distance_in_minutes) , a.time_ago_in_words(4.minutes.ago)
|
||||
# assert format( messages[:x_hours], (distance_in_minutes.to_f / 60.0).round ) , a.time_ago_in_words(4.hours.ago)
|
||||
# assert format( messages[:x_days], (distance_in_minutes / 1440).round ) , a.time_ago_in_words(4.days.ago)
|
||||
end
|
||||
|
||||
def test_time_is_localized
|
||||
t = Time.parse('2006-08-23 11:55:44')
|
||||
assert_equal "Wed Aug 23 11:55:44 Romance Daylight Time 2006", t.to_s, "NOTE: This test should fail if locale has different daynames, monthnames, timezone"
|
||||
|
||||
end
|
||||
|
||||
def test_date_is_localized
|
||||
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue