1 function loc_key(key) {
2 if (arguments.length > 1 && console && console.log)
3 console.log("loc_key() does not support substitution! (for key: " + key + ")")
6 if (RT.I18N && RT.I18N.Catalog)
7 msg = RT.I18N.Catalog[key];
9 if (msg == null && console && console.log) {
10 console.log("I18N key '" + key + "' not found in catalog");
11 msg = "(no translation for key: " + key + ")";