Permalink
Browse files

added danish translation and updated README

  • Loading branch information...
kristianmandrup committed Jan 14, 2011
1 parent 8c3854c commit 55a7d7e943839e5f87649b25e04d0f3f123b1bb4
Showing with 1,191 additions and 1,183 deletions.
  1. +11 −3 README.textile
  2. +1 −1 install.rb
  3. +2 −0 lib/localized_language_select/i18n.rb
  4. +161 −161 locale/da.yml
  5. +6 −0 locale/de.yml
  6. +0 −509 locale/fr.rb
  7. +505 −0 locale/fr.yml
  8. +0 −509 locale/nl.rb
  9. +505 −0 locale/nl.yml
View
@@ -33,15 +33,17 @@ Insert in Gemfile
<pre>gem 'localized_language_select'</pre>
-Then run:
+Then to instal it, run:
<pre>$ bundle install</pre>
-Then run:
+Then to install the locale files, run:
<pre>$ rails g localized_language_select:locales</pre>
-In order to copy locale files to your Rails config/locales dir. Note: you can specify which locales using the @--locales@ option, which takes a list of locales.
+This will copy the locale files to your Rails config/locales dir. The files will be called 'language.en.yml' and so on...
+
+Note: you can specify which locales using the @--locales@ option, which takes a list of locales.
<pre>$ rails g localized_language_select:locales --locales da en fr</pre>
@@ -80,6 +82,12 @@ h2. Options
<%= localized_language_select(:user, :language, ['English'], :include_blank => 'Please choose...', :only => ['German', 'French']) %>
</pre>
+h2. Todo - Request
+
+Please add translations for your language!
+
+Would be nice to have at least: German, Spanish, Chinese, Japanese, Russian, Indian and Arabic (Persian?) in there as well...
+
h2. Framework usage
This plugin should also integrate nicely with various formbuilders, including Formtastic
View
@@ -1,4 +1,4 @@
# Show the README text file
puts "\n\n"
-puts IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
+puts IO.read(File.join(File.dirname(__FILE__), 'README.textile'))
puts "\n"
@@ -1,5 +1,7 @@
# encoding: utf-8
+# TODO !!! ("stolen" from Formtastic, but can't seem to make it work... waiting for engines to do this magic OOTB !)
+
# module LocalizedLanguageSelect
# module I18n
# DEFAULT_SCOPE = [:languages].freeze
Oops, something went wrong.

0 comments on commit 55a7d7e

Please sign in to comment.