summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorPascal Chevrel <pascal@chevrel.org>2012-03-12 15:40:15 +0100
committerPascal Chevrel <pascal@chevrel.org>2012-03-12 15:40:15 +0100
commit5378cf37d8d3dde29a2e7a67e94f3966696288e6 (patch)
treed2beff7282a5e5e2ddcd870113117944587084a7 /admin
parente6ab308bbdb024fe8f65f6e6419482d94dc54eab (diff)
downloadplanet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar
planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.gz
planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.bz2
planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.xz
planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.zip
l10n support for moonmoon
Diffstat (limited to 'admin')
-rwxr-xr-x[-rw-r--r--]admin/administration.php14
-rwxr-xr-xadmin/index.php30
-rwxr-xr-xadmin/template.php10
3 files changed, 27 insertions, 27 deletions
diff --git a/admin/administration.php b/admin/administration.php
index 894ebd3..1202e91 100644..100755
--- a/admin/administration.php
+++ b/admin/administration.php
@@ -1,7 +1,7 @@
<?php
require_once dirname(__FILE__) . '/inc/auth.inc.php';
-require_once dirname(__FILE__) . '/../app/lib/lib.opml.php';
+require_once dirname(__FILE__) . '/../app/app.php';
$opml = OpmlManager::load(dirname(__FILE__) . '/../custom/people.opml');
$opml_people = $opml->getPeople();
@@ -11,7 +11,7 @@ $header_extra = <<<"HTML"
window.onload = function(){
var formManage = document.getElementById('frmPurge');
formManage.onsubmit = function(){
- return confirm('Are you sure you want to purge the cache?');
+ return confirm("{$l10n->getString('Are you sure you want to purge the cache?')}");
}
}
</script>
@@ -21,17 +21,17 @@ HTML;
$page_content = <<<"FRAGMENT"
<div class="widget">
- <h3>Clear cache</h3>
+ <h3>{$l10n->getString('Clear cache')}</h3>
<form action="purgecache.php" method="post" id="frmPurge">
- <p><label>Clear cache:</label><input type="submit" class="submit delete" name="purge" id="purge" value="Clear" /></p>
- <p class="help">Clearing the cache will make moonmoon reload all feeds.</p>
+ <p><label>{$l10n->getString('Clear cache:')}</label><input type="submit" class="submit delete" name="purge" id="purge" value="{$l10n->getString('Clear')}" /></p>
+ <p class="help">{$l10n->getString('Clearing the cache will make moonmoon reload all feeds.')}</p>
</form>
</div>
<div class="widget">
- <h3>Change administrator password</h3>
+ <h3>{$l10n->getString('Change administrator password')}</h3>
<form action="changepassword.php" method="post" id="frmPassword">
- <p><label for="password">New password:</label> <input type="password" class="text" value="" name="password" id="password" size="20" /> <input type="submit" class="submit delete" name="changepwd" id="changepwd" value="Change password" /></p>
+ <p><label for="password">{$l10n->getString('New password:')}</label> <input type="password" class="text" value="" name="password" id="password" size="20" /> <input type="submit" class="submit delete" name="changepwd" id="changepwd" value="{$l10n->getString('Change password')}" /></p>
</form>
</div>
diff --git a/admin/index.php b/admin/index.php
index 77ba04d..28f7198 100755
--- a/admin/index.php
+++ b/admin/index.php
@@ -71,34 +71,34 @@ ob_start();
?>
<div class="widget">
- <h3>Add a new feed</h3>
+ <h3><?=_g('Add Feed')?></h3>
<form action="subscriptions.php" method="post" id="feedimport">
<fieldset>
- <label for="url">Link:</label>
+ <label for="url"><?=_g('Link:')?></label>
<input type="text" class="text" name="url" id="url" placeholder="http://" class="text" size="50" />
- <input type="submit" class="submit add" name="add" value="Add feed" />
+ <input type="submit" class="submit add" name="add" value="<?=_g('Add Feed')?>" />
</fieldset>
- <p class="help">Accepted formats are RSS and ATOM. If the link is not a feed, moonmoon will try to autodiscover the feed.</p>
+ <p class="help"><?=_g('Accepted formats are RSS and ATOM. If the link is not a feed, moonmoon will try to autodiscover the feed.')?></p>
</form>
</div>
<div class="widget">
- <h3>Manage existing feeds</h3>
+ <h3><?=_g('Manage existing feeds')?></h3>
<form action="subscriptions.php" method="post" id="feedmanage">
<p class="action">
- <span class="count">Number of feeds: <?=$count_feeds?></span>
- <input type="submit" class="submit save" name="save" id="save" value="Save changes" />
- <input type="submit" class="submit delete" name="delete" id="delete" value="Delete selected" />
+ <span class="count"><?php echo sprintf(_g('Number of feeds: %s'), $count_feeds)?></span>
+ <input type="submit" class="submit save" name="save" id="save" value="<?=_g('Save changes')?>" />
+ <input type="submit" class="submit delete" name="delete" id="delete" value="<?=_g('Delete selected Feeds')?>" />
</p>
- <p class="select">Select : <a href="javascript:void(0);" id="selectall">All</a>, <a href="javascript:void(0);" id="selectnone">None</a></p>
+ <p class="select"><?=_g('Select :')?> <a href="javascript:void(0);" id="selectall"><?=_g('All')?></a>, <a href="javascript:void(0);" id="selectnone"><?=_g('None')?></a></p>
<table>
<thead>
<tr>
- <th><span>Selection</span></th>
- <th>Name</th>
- <th>Last entry</th>
- <th>Website link</th>
- <th>Feed link</th>
+ <th><span><?=_g('Selection')?></span></th>
+ <th><?=_g('Name')?></th>
+ <th><?=_g('Last entry')?></th>
+ <th><?=_g('Website link')?></th>
+ <th><?=_g('Feed link')?></th>
</tr>
</thead>
<tbody>
@@ -116,7 +116,7 @@ ob_start();
if (count($items) > 0) {
echo $items[0]->get_date();
} else {
- echo "Not in cache";
+ echo _g('Not in cache');
}
?>
</td>
diff --git a/admin/template.php b/admin/template.php
index 6a3c2ea..d5641f9 100755
--- a/admin/template.php
+++ b/admin/template.php
@@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <title>moonmoon administration</title>
+ <title><?=_g('moonmoon administration')?></title>
<link rel="stylesheet" media="screen" type="text/css" href="default.css">
<!--[if lte IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -17,16 +17,16 @@
<div id="page">
<header>
<h1>moonmoon</h1>
- <p><a href="../">Back to main page</a></p>
+ <p><a href="../"><?=_g('Back to main page')?></a></p>
</header>
<?php if($admin_access == 1) : ?>
- <p class="logout"><a href="logout.php">Logout</a></p>
+ <p class="logout"><a href="logout.php"><?=_g('Logout')?></a></p>
<nav>
<ul>
- <li id="nav-feed"><a href="index.php">Feeds</a></li>
- <li id="nav-admin"><a href="administration.php">Administration</a></li>
+ <li id="nav-feed"><a href="index.php"><?=_g('Feeds')?></a></li>
+ <li id="nav-admin"><a href="administration.php"><?=_g('Administration')?></a></li>
</ul>
</nav>