diff options
author | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-07-30 08:52:25 -0300 |
---|---|---|
committer | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-07-30 08:52:25 -0300 |
commit | 1c06ed45b1881e90cc0c8ac75b753bd884c7ed1e (patch) | |
tree | 72d6380cfd25f77a465382a2089fb9466b02c93d /usr/local/www/graph_cpu.php | |
parent | 28dd1a3e5c2468f176a011bebddde348c042c589 (diff) | |
download | pfsense-1c06ed45b1881e90cc0c8ac75b753bd884c7ed1e.zip pfsense-1c06ed45b1881e90cc0c8ac75b753bd884c7ed1e.tar.gz |
Implement gettext() calls on graph_cpu.php
Diffstat (limited to 'usr/local/www/graph_cpu.php')
-rw-r--r-- | usr/local/www/graph_cpu.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/graph_cpu.php b/usr/local/www/graph_cpu.php index 2dce113..87743c7 100644 --- a/usr/local/www/graph_cpu.php +++ b/usr/local/www/graph_cpu.php @@ -78,8 +78,8 @@ print('<?xml version="1.0" encoding="iso-8859-1"?>' . "\n");?> <text id="grid_txt2" x="100%" y="50%" <?=$attribs['grid_txt']?> text-anchor="end">50%</text> <text id="grid_txt3" x="100%" y="75%" <?=$attribs['grid_txt']?> text-anchor="end">25%</text> <text id="graph_cpu_txt" x="4" y="8" <?=$attribs['cpu']?>> </text> - <text id="error" x="50%" y="50%" visibility="hidden" <?=$attribs['error']?> text-anchor="middle">Cannot get CPU load</text> - <text id="collect_initial" x="50%" y="50%" visibility="hidden" <?=$attribs['collect_initial']?> text-anchor="middle">Collecting initial data, please wait...</text> + <text id="error" x="50%" y="50%" visibility="hidden" <?=$attribs['error']?> text-anchor="middle"><?=gettext("Cannot get CPU load"); ?></text> + <text id="collect_initial" x="50%" y="50%" visibility="hidden" <?=$attribs['collect_initial']?> text-anchor="middle"><?=gettext("Collecting initial data, please wait"); ?>...</text> </g> <script type="text/ecmascript"> <![CDATA[ @@ -91,14 +91,14 @@ print('<?xml version="1.0" encoding="iso-8859-1"?>' . "\n");?> if (typeof getURL == 'undefined') { getURL = function(url, callback) { if (!url) - throw 'No URL for getURL'; + throw gettext('No URL for getURL'); try { if (typeof callback.operationComplete == 'function') callback = callback.operationComplete; } catch (e) {} if (typeof callback != 'function') - throw 'No callback function for getURL'; + throw gettext('No callback function for getURL'); var http_request = null; if (typeof XMLHttpRequest != 'undefined') { @@ -114,7 +114,7 @@ if (typeof getURL == 'undefined') { } } if (!http_request) - throw 'Both getURL and XMLHttpRequest are undefined'; + throw gettext('Both getURL and XMLHttpRequest are undefined'); http_request.onreadystatechange = function() { if (http_request.readyState == 4) { |