Skip to content

Commit

Permalink
added danish translation and updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed Jan 14, 2011
1 parent 8c3854c commit 55a7d7e
Show file tree
Hide file tree
Showing 9 changed files with 1,191 additions and 1,183 deletions.
14 changes: 11 additions & 3 deletions README.textile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ Insert in Gemfile


<pre>gem 'localized_language_select'</pre> <pre>gem 'localized_language_select'</pre>


Then run: Then to instal it, run:


<pre>$ bundle install</pre> <pre>$ bundle install</pre>


Then run: Then to install the locale files, run:


<pre>$ rails g localized_language_select:locales</pre> <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> <pre>$ rails g localized_language_select:locales --locales da en fr</pre>


Expand Down Expand Up @@ -80,6 +82,12 @@ h2. Options
<%= localized_language_select(:user, :language, ['English'], :include_blank => 'Please choose...', :only => ['German', 'French']) %> <%= localized_language_select(:user, :language, ['English'], :include_blank => 'Please choose...', :only => ['German', 'French']) %>
</pre> </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 h2. Framework usage


This plugin should also integrate nicely with various formbuilders, including Formtastic This plugin should also integrate nicely with various formbuilders, including Formtastic
Expand Down
2 changes: 1 addition & 1 deletion install.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
# Show the README text file # Show the README text file
puts "\n\n" 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" puts "\n"
2 changes: 2 additions & 0 deletions lib/localized_language_select/i18n.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,7 @@
# encoding: utf-8 # 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 LocalizedLanguageSelect
# module I18n # module I18n
# DEFAULT_SCOPE = [:languages].freeze # DEFAULT_SCOPE = [:languages].freeze
Expand Down
Loading

0 comments on commit 55a7d7e

Please sign in to comment.