Sha256: ed1b9999eac1935c86add9495c5d388209f7df795704b7533a218297c1dd6902
Contents?: true
Size: 1.73 KB
Versions: 2
Compression:
Stored size: 1.73 KB
Contents
<div> <p><b>In English</b></p> <p> Translation of US is <%= t('US', :scope => 'countries') %> </p> <p> <%= localized_country_select(:user, :country, [], :include_blank => 'Please choose...') %> <%= localized_language_select(:user, :country, [], :include_blank => 'Please choose...') %> <%= localized_currency_select(:user, :country, [], :include_blank => 'Please choose...') %> <%= localized_timezone_select(:user, :country, [], :include_blank => 'Please choose...') %> </p> </div> <div> <p><b>In Deutsch (Germany)</b></p> <% I18n.locale = :de %> <p> Translation of US is <%= t('US', :scope => 'countries') %> </p> <p> <%= localized_country_select(:user, :country, [], :include_blank => 'Please choose...') %> <%= localized_language_select(:user, :country, [], :include_blank => 'Please choose...') %> <%= localized_currency_select(:user, :country, [], :include_blank => 'Please choose...') %> </p> </div> <div> <p><b>In Traditional Chinese</b></p> <% I18n.locale = :'zh-TW' %> <p> Translation of US is <%= t('US', :scope => 'countries') %> </p> <p> <%= localized_country_select(:user, :country, [], {:include_blank => 'Please choose...', :symbol => :append}) %> <%= localized_language_select(:user, :country, [], :include_blank => 'Please choose...') %> <%= localized_currency_select(:user, :country, [], {:include_blank => 'Please choose...', :symbol => :prepend}) %> <%= localized_timezone_select(:user, :country, [], {:include_blank => 'Please choose...', :sort => false, :timezone => :prepend}) %> </p> </div> <div> <% I18n.locale = :en %> <%= form_for @selected do |f| %> <%= f.localized_country_select(:country, [:TW, :CN]) %> <hr/> <%= f.select(:country, localized_country_options_for_select(@selected.country).html_safe) %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
country-select-engine-0.2.1 | test/dummy/app/views/dummy/index.html.erb |
country-select-engine-0.2.0 | test/dummy/app/views/dummy/index.html.erb |