You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

In order to add your language to the interface so that it can be chosen from the dropdown at the top of the screen, you will need to translate the following file, renaming the file from en.json to the two character representation of the relevant language (for example Danish would dk.json or French would be fr.json).

In the file you will a long list of labels with the existing English translation. Each label which needs to be translated is represented with the label being on the left with the phrase to be translated on the right, i.e.

 

label:language
e.g.
"help":"Aide" for French
or
"help":"Help" for English

The following block is an example of the first part of the file containing the English version in order to demonstrate what you need to translate. 

en.json
{
	"global":{
		"title":"mlds",
		"browsehappy":"You are using an <strong>outdated</strong> browser. Please <a href=\"http://browsehappy.com/?locale=en\">upgrade your browser</a> to improve your experience.",
		"menu":{
			"home":"Home",
			"account":{
				"main":"Account",
				"contactInfo":"Contact Info",
				"password":"Password",
				"sessions":"Sessions",
				"tracker":"User tracker",
				"metrics":"Metrics",
				"logs":"Logs",
				"audits":"Audits",
				"login":"Login",
				"logout":"Log out",
				"apidocs":"API",
				"register":"Register",
				"affiliates":"Affiliates",
				"dashboard":"Dashboard"
			},
			"dashboard":"Dashboard",
			"help":"Help",
			"usageReports":"Usage Reports",
			"applications":"Applications",
			"releasePackages":"Release Packages",
			"affiliate":{
				"accountInformation":"Account Information",
				"changePassword":"Change Password",
				"logout":"Logout"
			},
			"language":"Language"
		}
...

The next block is the same lines, but in the (machine translated) French version:

fr.json
{
	"global":{
		"title":"MLDS",
		"browsehappy":"Vous utilisez un navigateur <strong>désuet</strong>. <a href=\"http://browsehappy.com/?locale=en\"> Mise à niveau </a> de votre navigateur pour améliorer votre expérience .",
		"menu":{
			"home":"Home",
			"account":{
				"main":"Compte",
				"contactInfo":"Coordonnées",
				"password":"Mot de passe",
				"sessions":"Sessions",
				"tracker":"Tracker Utilisateur",
				"metrics":"Métriques",
				"logs":"Logs",
				"audits":"Audits",
				"login":"Connexion",
				"logout":"Déconnexion",
				"apidocs":"API",
				"register":"Inscription",
				"affiliates":"Affiliés",
				"dashboard":"Table au Debord"
			},
			"dashboard":"Table au Debord",
			"help":"Aidez-Moi",
			"usageReports":"Les Rapports d'Utilisation",
			"applications":"Applications",
			"releasePackages":"Package Publié",
			"affiliate":{
				"accountInformation":"Informations du Compte",
				"changePassword":"Change Password",
				"logout":"Déconnexion"
			},
			"language":"Langue"
		},
...