Translation keys available client side (Dict.S()) : format + JS/PHPDoc

SVN:trunk[5890]
This commit is contained in:
Pierre Goiffon
2018-06-18 15:55:10 +00:00
parent 46a647ae66
commit b02c30a525
2 changed files with 467 additions and 383 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -688,6 +688,10 @@ function Format() {
return str;
}
/**
* Enable to access translation keys client side.
* The called keys needs to be exported using \WebPage::add_dict_entry
*/
var Dict = {};
if (typeof aDictEntries == 'undefined') {
Dict._entries = {}; // Entries have not been loaded (we are in the setup ?)