Hello Yannis,
In order to get the entire list of language variables available for
the applications on the page, please insert the following code into
the page source after the Echo applications and plugins scripts
inclusions:
<textarea id="language-labels" style="width:500px; height:700px;"></
textarea>
<script type="text/javascript">
var translation = [];
jQuery.each(Echo.Localization.labels, function(key, value) {
translation.push('"' + key + '": "' + value + '"');
});
var container = document.getElementById("language-
labels");container.value = "Echo.Localization.extend({\n" +
translation.join(", \n") + "\n});";
</script>
As a result a text area with complete list of language variables will
be added to page.
Please note: the code provided should be located on test pages only!
After that you can copy the necessary content from the text area,
translate the variables and insert the following construction to the
page source in order to have a translated version of Echo applications
UI:
<script type="text/javascript">
Echo.Localization.extend({
"Submit.createdBy": "Created by",
"Submit.loading": "Loading...",
"Submit.markers": "Markers:"
// other variables...
});
</script>
Please note: the following constructions are equivalent:
Echo.Localization.extend({
"Submit.createdBy": "Created by",
"Submit.loading": "Loading...",
"Submit.markers": "Markers:"
// other variables...
});
Echo.Localization.extend({
"createdBy": "Created by",
"loading": "Loading...",
"markers": "Markers:"
// other variables...
}, "Submit");
Also, regarding the "form-auth.js" and "auth.js" files: the first one
contains the plugin code and the second - Echo.Auth application code,
which is used by the plugin. You should include both of them into the
page source to have the ability to translate the Echo.Auth application
UI.
Feel free to ask any further questions. I'll be glad to help you.
Thank you.
>
http://wiki.aboutecho.com/w/page/32214651/Echo%20Localization%20-%20E...