Skip to content
Alfonso Saavedra "Son Link" edited this page May 31, 2015 · 6 revisions

Translate

Weblate

Weblate is a web based translation tool with version control integration. I upload to Opensfift and use is very easy. Firts you need create a account or sign up use your Facebook, Google and/or Github account. It top menu click on Proyects and after FireJamendo and FireJamendo again on the proyect page. You can edit any location or add another.

Go to Weblate

Manual

Translating FireJamendo is very easy. The data folder contains the available languages. In order to add another location you need to create another file named *.properties, where * is the code for each language (es for Spanish, en for English, and so on), or open an existing file as a template.

The text after = is the string to translate. For example:

stream_error = An error occurred while getting the stream.

Its equivalent Spanish translation would be:

stream_error = Ocurrió un error al obtener el stream

manifest.webapp

This file contain the app information as name, version, permissions, etc. This info is show on the Firefox Marketplace. The location array containing this information in each of the languages. for example:

		"es": {
			"name": "FireJamendo",
			"description": "Reproductor de Jamendo para Firefox OS y para navegador Firefox",
			"permissions": {
				"systemXHR": {
					"description":"Necesario para acceder a la API de Jamendo"
				},
				"backgroundservice": {
					"description": "Necesario para que FireJamendo se siga ejecutando en segundo plano"
				},
					"audio-channel-content": {
					"description": "Necesario para que FireJamendo siga reproduciendo la música en segundo plano"
				},
				"desktop-notification": {
					"description": "Necesario para mostrar las notificaciones"
				}
			}
		}

Submit a translation

To submit a new translation (or update a existing one), you need to fork the project, add or edit location, pull changes and send pull merge. If you know how to do it, read this guide.

Clone this wiki locally