Sha256: b4a2ac210d6d3adf4fe3f78cfda365af9604733e057ec829367b67ee4f39b208

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 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',										
					:nb => 'Norsk'
				}
			end
			alias_method :dk, :da

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
world-flags-0.3.2.1 lib/world_flags/languages.rb
world-flags-0.3.2 lib/world_flags/languages.rb