// Create a Javascript associative array who contain all sentences from module var LANG_JS = new Array(); // designer.js LANG_JS["Changed, press to save"] = 'Changed, press to save'; // Common Widgets LANG_JS["Feed"] = 'Feed'; LANG_JS["Feed value"] = 'Feed value'; LANG_JS["Value"] = 'Value'; LANG_JS["Value to show"] = 'Value to show'; LANG_JS["Units"] = 'Units'; LANG_JS["Units to show"] = 'Units to show'; LANG_JS["Type"] = 'Type'; LANG_JS["Type to show"] = 'Type to show'; LANG_JS["Max value"] = 'Max value'; LANG_JS["Max value to show"] = 'Max value to show'; // button_render.js LANG_JS["Feed to set, control with caution, make sure device being controlled can operate safely in event of emoncms failure."] = 'Feed to set, control with caution, make sure device being controlled can operate safely in event of emoncms failure.'; LANG_JS["Starting value"] = 'Starting value'; // cylinder_render.js LANG_JS["Bottom"] = 'Bottom'; LANG_JS["Top"] = 'Top'; LANG_JS["Bottom feed value"] = 'Bottom feed value'; LANG_JS["Top feed value"] = 'Top feed value'; // dial_render.js LANG_JS["Scale"] = 'Scale'; LANG_JS["Scale to show"] = 'Scale to show'; // vis_render.js LANG_JS["Fill"] = 'Fill'; LANG_JS["Fill value"] = 'Fill value'; LANG_JS["Currency"] = 'Currency'; LANG_JS["Currency to show"] = 'Currency to show'; LANG_JS["Kwh price"] = 'Kwh price'; LANG_JS["Set kwh price"] = 'Set kwh price'; LANG_JS["kwhd"] = 'kwhd'; LANG_JS["kwhd source"] = 'kwhd source'; LANG_JS["Power"] = 'Power'; LANG_JS["Power to show"] = 'Power to show'; LANG_JS["Threshold A"] = 'Threshold A'; LANG_JS["Threshold B"] = 'Threshold B'; LANG_JS["Threshold A used"] = 'Threshold A used'; LANG_JS["Threshold B used"] = 'Threshold B used'; LANG_JS["Consumption"] = 'Consumption'; LANG_JS["Solar"] = 'Solar'; LANG_JS["Consumption feed value"] = 'Consumption feed value'; LANG_JS["Solar feed value"] = 'Solar feed value'; LANG_JS["Ufac"] = 'Ufac'; LANG_JS["Ufac value"] = 'Ufac value'; LANG_JS["Mid"] = 'Mid'; LANG_JS["Mid value"] = 'Mid value'; function _Tr(key) { // will return the default value if LANG_JS[key] is not defined. return LANG_JS[key] || key; }