Sha256: 9a0acea31503b0ccd4ddfe983534338bf162ee4fcec6021234dcd0b3cb08229e

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

module WorldFlags
	module Languages
		class << self		
 			attr_writer :en

			def en
				@en ||= {
					:ar => 'Argentinian Spanish',
					:br => 'Brazilian Portuguese',
					:po => 'Portuguese',
					:gr => 'Greek',
					:gb => 'British English',
					:us => 'US English',				
					:es => 'Spanish',
					:it => 'Italian',
					:nl => 'Dutch',
					:de => 'German',
					:dk => 'Danish',
					:se => 'Swedish',
					:sv => 'Swedish',
					:no => 'Norwegian',
					:nb => 'Norwegian',
					:fi => 'Finnish'
				}
			end

			def da
				{
					:gb => 'Engelsk',
					:us => 'Engelsk',				
					:es => 'Spansk',
					:de => 'Tysk',
					:dk => 'Dansk',
					:se => 'Svensk',
					:sv => 'Svensk',
					:no => 'Norsk'
				}
			end
			alias_method :dk, :da

			def se
				{
					:gb => 'Engelska',
					:us => 'Engelska',				
					:es => 'Spansk',
					:de => 'Tysk',
					:dk => 'Dansk',
					:se => 'Svenska',
					:sv => 'Svenska',
					:no => 'Norsk'
				}
			end
			alias_method :sv, :se

			def no
				{
					:gb => 'Engelsk',
					:us => 'Engelsk',				
					:es => 'Spansk',
					:de => 'Tysk',
					:dk => 'Dansk',
					:se => 'Svensk',
					:sb => 'Svensk',
					:no => 'Norsk'
				}
			end
			alias_method :nb, :no
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
world-flags-0.3.2.2 lib/world_flags/languages.rb