Modulo:Link utilities/i18n

El Vikivojaĝo

Versiokontrolo[redakti]

Versionomo en Vikidatumoj: 2024-01-07 Ok!


-- shared internationalisation for link modules

return {
	-- documentation
	moduleInterface = {
		suite  = 'Link utilities',
		sub    = 'i18n',
		serial = '2024-01-07',
		item   = 104200158
	},

	-- maximum count of items to display in listing
	addNum    = 3,
	addNumFax = 2,
	addMail   = 2,
	addSkype  = 2,

	texts = {
		comma       = ', ',
		space       = ' ',
		parentheses = '()'
	},

	-- patterns for delimiters except ',' (en + de)
	delimiters      = { ' [aA][nN][dD] ', ' [oO][rR] ', ' [uU][nN][dD] ', ' [oO][dD][eE][rR] ' },

	-- patterns for phone extensions (en + de)
	extensions = {
		';?[Ee][Xx][Tt]%.?[ =]+%d+', -- ext. #### (en, intl)
		                             -- including RFC 3966 syntax ";ext=####"
		'x%d+',                      -- x#### (en, intl)
		'[Aa][Pp][Pp]%.? +%d+'       -- App. #### (de)
	},

	-- phone number options
	options = {
		withCountryCode    = false, -- add country calling code in output in any case
		preventLeadZero    = false, -- remove lead zero from output

		-- enable formatting of phone numbers retrieved from Wikidata
		formattingWikidata = true,  -- format phone numbers retrieved from Wikidata
		addZeros           = true,  -- add trunc prefix (0)
	},

	-- Skype query parameters
	params = {
		add       = 1,
		call      = 1,
		chat      = 1,
		sendfile  = 1,
		userinfo  = 1,
		voicemail = 1
	},

	-- error categories. Leading [[Category: is added in modules
	categories = {
		noCC         = 'Kontakt: Telefon ohne Ländervorwahl]] <span class="error">Telefon ohne Ländervorwahl</span>',
		invalid	     = 'Kontakt: Ungültiges Telefonformat]] <span class="error">Ungültiges Telefonformat</span>',
		withSlash    = 'Kontakt: Telefon mit Schrägstrich]] <span class="error">Telefon mit Schrägstrich</span>',

		onlyDomestic = 'Die Telefonnummer kann nur im Inland benutzt werden.',

		invalidMail  = 'Kontakt: Ungültiges Email-Format]] <span class="error">Ungültiges Email-Format</span>',
		nonASCII     = 'Kontakt: Email enthält Unicode-Zeichen]] <span class="listing-check-recommended" style="display:none;">Email enthält Unicode-Zeichen</span>',

		invalidSkype = 'Kontakt: Ungültiger Skype-Nutzername]] <span class="error">Ungültiger Skype-Nutzername</span>',
	},

	-- LinkISBN support
	isbnTexts = {
		booksourcesClass = 'wv-booksources', -- CSS class
		invalidISBN      = '<span class="error"> Ungültige ISBN</span>',
		invalidCat       = '[[Category:Seiten mit ISBN-Fehlern]]'
	}
}