မေႃႇၵျူး:Coordinates/i18n

လုၵ်ႉတီႈ ဝီႇၶီႇဝွႆးဢဵတ်ႇꩡ် မႃး

Documentation for this module may be created at မေႃႇၵျူး:Coordinates/i18n/doc

-- Separating code from internationalization

return {
	-- internationalisation
	errorMsg = {
		'No parameter(s)',						--  1: no parameter(s)
		'Too many parameters',					--  2: too many parameters
		'Illegal characters',					--  3: illegal characters
		'More than 3 numeric dms parameters',	--  4: more than 3 numeric dms parameters
		'Degree out of range',					--  5: degree out of range
		'Minute out of range',					--  6: minute out of range
		'Degree no integer',					--  7: degree no integer
		'Second out of range',					--  8: second out of range
		'Minute no integer',					--  9: minute no integer
		'Direction not last parameter',			-- 10: direction not last parameter
		'Invalid negative value',				-- 11: invalid negative value
		'Wrong lat/long direction',				-- 12: wrong lat/long direction
		'Latitude out of range',				-- 13: latitude out of range
		'No pattern given',						-- 14: no pattern given

		noError = 'No Error',					-- no Error
		unknown = 'Unknown error',				-- unknown error
		faulty  = 'Faulty coordinate'			-- faulty coordinate
	},

	-- maintenance categories
	categories = {
		faulty = '[[Category:Pages with malformed coordinate tags]]',
	    	-- faulty coordinate
	    	-- same as defined in [[MediaWiki:Geodata-broken-tags-category]]
		dms    = ''--'[[Category:DMS coordinate]]'
	    	-- coordinate given as dms, not as decimal
	},

	-- for input
	-- de:     O = E -> +1
	-- it, fr: O = W -> -1
	inputLetters = {
		N = {  1, 'lat' },
		S = { -1, 'lat' },
		E = {  1, 'long' },
		W = { -1, 'long' },
	},

	-- for output
	outputLetters = { N = 'N', S = 'S', E = 'E', W = 'W' },
	decimalPoint  = '.',

	-- predefined deg-min-sec output formats
	dmsFormats = {
		f1 = { delimiter = ' ', leadZeros = false }, -- default
		f2 = { delimiter = ' ', leadZeros = true },
		f3 = { delimiter =  '', leadZeros = false },
		f4 = { delimiter =  '', leadZeros = true }
	}
}