Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 1.11 KB

README.md

File metadata and controls

19 lines (10 loc) · 1.11 KB

Country and region select

Provides a simple helper to get an HTML select list of countries and regions. The list of countries comes from iso-codes package and follows IBM Globalization guideline to avoid culturally-sensitive issues in Taiwan and China.

This plugin is modified from Rails iso-3166-country-select plugin and licensed under the MIT

Internationalization

The plugin provides support for translating country names via the Rails I18n framework provided with Rails 2.2 (see the Rails Internationalization (I18n) API guide for details).

The original english country names are stored in the database and will be used as translation keys when translating the country names into their equivalent names in the current locale.

Example

country_select("user", "country_name")