Transit translation system (#309)

* update schemas

* update schemas

* update schemas

* schema update

* update translation

* upd
This commit is contained in:
brindosch
2016-12-04 19:32:23 +01:00
committed by redPanther
parent 3124bb8bf1
commit 8d55154164
82 changed files with 3120 additions and 1850 deletions

View File

@@ -1,26 +1,4 @@
/**
* Enables translation for the form
* with the ID given in "formID"
* Generates token with the given token prefix
* and an underscore followed by the input id
* Example: input id = input_one
* token prefix = tokenprefix
* The translation token would be: "tokenprefix_input_one"
* Default language in "lang" attribute will always be "en"
* @param {String} tokenPrefix
* @param {String} formID
function enableFormTranslation(tokenPrefix, formID) {
var $inputs = $("#" + formID + " label");
$inputs.each(function() {
console.log("InputID: " + $(this).attr('id'));
var oldtext = $("label[for='" + $(this).attr('id') + "']").text();
$("label[for='" + $(this).attr('id') + "']").html('<span lang="en" data-lang-token="' + tokenPrefix + "_" + $(this).attr('id') + '">' + oldtext + '</span>');
});
}
*/
// global vars
var currentVersion;
var cleanCurrentVersion;