User:Quiddity (WMF)/Gadget-logo-voting.js/translating

From Meta, a Wikimedia project coordination wiki

Translating voting gadget[edit]

Copy the following code and translate all strings wrapped in ticks and place it in TOBEDETERMINED.js/LANG-CODE

//

// DO NOT CHANGE THE NEXT LINE
if (mw.config.get('wgUserLanguage') !== 'en')
// DO NOT CHANGE THE PREVIOUS LINE
	mw.messages.set({
		// Preferences
		// Use user language for i18n
		'gadget-logo-voting-label'  : "Submit your vote -test1",
		'gadget-logo-voting-noticeText'  : "Please reorder the names below in order of preference. -test1 <br>Your vote:",
		'gadget-logo-voting-messageText'  : "Your vote has been recorded. Thank you! You will be redirected soon -test1.",
		'gadget-logo-voting-login'  : "Please login first -test1.",
		'gadget-logo-voting-error'  : "Edit could not be saved -test1",
	    });

// DO NOT CHANGE THE NEXT LINE
if (mw.config.get('wgContentLanguage') !== 'en')
// DO NOT CHANGE THE PREVIOUS LINE
	mw.messages.set({
		// Summaries:
		'gadget-logo-voting-label'  : "Submit your vote -test2",
		'gadget-logo-voting-noticeText'  : "Please reorder the names below in order of preference. -test2<br>Your vote:",
		'gadget-logo-voting-messageText'  : "Your vote has been recorded. Thank you! You will be redirected soon -test2.",
		'gadget-logo-voting-login'  : "Please login first -test2.",
		'gadget-logo-voting-error'  : "Edit could not be saved -test2",
	});
//