define(['Dictionary', './Template'], function(Dictionary, Template) {
"use strict";
- var languageItems = new Dictionary();
+ var _languageItems = new Dictionary();
/**
* @constructor
*
* @param {Object.<string, string>} object
*/
- addObject: function (object) {
- languageItems.merge(Dictionary.fromObject(object));
+ addObject: function(object) {
+ _languageItems.merge(Dictionary.fromObject(object));
},
/**
* @param {string} value
*/
add: function(key, value) {
- languageItems.set(key, value);
+ _languageItems.set(key, value);
},
/**
get: function(key, parameters) {
if (!parameters) parameters = { };
- var value = languageItems.get(key);
+ var value = _languageItems.get(key);
if (value === undefined) {
console.warn("Trying to get() undefined language item.");
if (typeof value === 'string') {
// lazily convert to WCF.Template
- languageItems.set(key, new Template(value));
- value = languageItems.get(key);
+ _languageItems.set(key, new Template(value));
+ value = _languageItems.get(key);
}
if (value instanceof Template) {