Index: trunk/admin/xcache.tpl.php
===================================================================
--- trunk/admin/xcache.tpl.php	(revision 118)
+++ trunk/admin/xcache.tpl.php	(revision 123)
@@ -11,10 +11,10 @@
 
 	<link rel="stylesheet" type="text/css" href="xcache.css" />
-	<title>XCache <?php echo $xcache_version; ?> Administration</title>
+	<title><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></title>
 </head>
 
 <body>
-<h1>XCache <?php echo $xcache_version; ?> Administration</h1>
-<a href="help.php" target="_blank" id="help">Help &raquo;</a>
+<h1><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></h1>
+<a href="help.php" target="_blank" id="help"><?php echo _T("Help") ?> &raquo;</a>
 <span class="switcher"><?php echo switcher("type", $types); ?></span>
 <?php
@@ -22,5 +22,5 @@
 $b = new Cycle('class="col1"', 'class="col2"');
 ?>
-Caches:
+<?php echo _T('Caches'); ?>:
 <table cellspacing="0" cellpadding="4" class="cycles">
 	<col />
@@ -41,21 +41,23 @@
 	<tr <?php echo $a->next(); ?>>
 		<th>-</th>
-		<th>Slots</th>
-		<th>Size</th>
-		<th>Avail</th>
-		<th>%</th>
-		<th>Clear</th>
-		<th>Compiling</th>
-		<th>Hits</th>
-		<th>Misses</th>
-		<th>Clogs</th>
-		<th>OOMs</th>
-		<th>Protected</th>
-		<th>Cached</th>
-		<th>Deleted</th>
-		<th>GC</th>
+		<th><?php echo _T('Slots'); ?></th>
+		<th><?php echo _T('Size'); ?></th>
+		<th><?php echo _T('Avail'); ?></th>
+		<th><?php echo _T('%'); ?></th>
+		<th><?php echo _T('Clear'); ?></th>
+		<th><?php echo _T('Compiling'); ?></th>
+		<th><?php echo _T('Hits'); ?></th>
+		<th><?php echo _T('Misses'); ?></th>
+		<th><?php echo _T('Clogs'); ?></th>
+		<th><?php echo _T('OOMs'); ?></th>
+		<th><?php echo _T('Protected'); ?></th>
+		<th><?php echo _T('Cached'); ?></th>
+		<th><?php echo _T('Deleted'); ?></th>
+		<th><?php echo _T('GC'); ?></th>
 	</tr>
 	<?php
 	$numkeys = explode(',', 'hits,misses,clogs,ooms,cached,deleted');
+	$l_clear = _T('Clear');
+	$l_clear_confirm = _T('Sure to clear?');
 	foreach ($cacheinfos as $i => $ci) {
 		echo "
@@ -81,5 +83,5 @@
 					<input type="hidden" name="type" value="{$ci['type']}">
 					<input type="hidden" name="cacheid" value="{$ci['cacheid']}">
-					<input type="submit" name="clearcache" value="Clear" class="submit" onclick="return confirm('Sure to clear?');" />
+					<input type="submit" name="clearcache" value="{$l_clear}" class="submit" onclick="return confirm('{$l_clear_confirm}');" />
 				</div>
 			</form>
@@ -101,5 +103,5 @@
 	<?php } ?>
 </table>
-Free Blocks:
+<?php echo _T('Free Blocks'); ?>:
 <?php
 foreach ($cacheinfos as $i => $ci) {
@@ -108,5 +110,5 @@
 <table cellspacing="0" cellpadding="4" class="cycles freeblocks">
 	<tr>
-		<th><?php echo $ci['cache_name']; ?> size<br>offset</th>
+		<th><?php echo $ci['cache_name']; ?> <?php echo _T("size"); ?><br><?php echo _T("offset"); ?></th>
 	<?php
 	foreach ($ci['free_blocks'] as $block) {
@@ -136,5 +138,5 @@
 		$a->reset();
 		echo "
-		<caption>{$cachelist['type_name']} $listname</caption>";
+		<caption>", _T("{$cachelist['type_name']} $listname"), "</caption>";
 		?>
 
@@ -162,21 +164,21 @@
 		?>
 
-			<th><a href="javascript:" onclick="resort(this); return false">Cache</a></th>
-			<th><a href="javascript:" onclick="resort(this); return false">entry</a></th>
-			<th><a href="javascript:" onclick="resort(this); return false">Hits</a></th>
-			<th><a href="javascript:" onclick="resort(this); return false">Ref count</a></th>
-			<th><a href="javascript:" onclick="resort(this); return false">Size</a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Cache'); ?></a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('entry'); ?></a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Hits'); ?></a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Refcount'); ?></a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Size'); ?></a></th>
 			<?php if ($isphp) { ?>
-			<th><a href="javascript:" onclick="resort(this); return false">SrcSize</a></th>
-			<th><a href="javascript:" onclick="resort(this); return false">Modify</a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('SrcSize'); ?></a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Modify'); ?></a></th>
 			<?php if ($haveinode) { ?>
-			<th><a href="javascript:" onclick="resort(this); return false">device</a></th>
-			<th><a href="javascript:" onclick="resort(this); return false">inode</a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('device'); ?></a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('inode'); ?></a></th>
 			<?php } ?>
 			<?php } ?>
-			<th><a href="javascript:" onclick="resort(this); return false">Access</a></th>
-			<th><a href="javascript:" onclick="resort(this); return false">Create</a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Access'); ?></a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Create'); ?></a></th>
 			<?php if ($listname == 'Deleted') { ?>
-			<th><a href="javascript:" onclick="resort(this); return false">Delete</a></th>
+			<th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Delete'); ?></a></th>
 			<?php } ?>
 		</tr>
@@ -245,5 +247,5 @@
 <div class="footnote">
 <?php echo <<<EOS
-Powered By: {$xcache_version}, {$xcache_modules}
+Powered By: XCache {$xcache_version}, {$xcache_modules}
 EOS;
 ?>
