diff options
author | Pascal Chevrel <pascal@chevrel.org> | 2012-03-12 15:40:15 +0100 |
---|---|---|
committer | Pascal Chevrel <pascal@chevrel.org> | 2012-03-12 15:40:15 +0100 |
commit | 5378cf37d8d3dde29a2e7a67e94f3966696288e6 (patch) | |
tree | d2beff7282a5e5e2ddcd870113117944587084a7 /custom/views/archive/index.tpl.php | |
parent | e6ab308bbdb024fe8f65f6e6419482d94dc54eab (diff) | |
download | planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.gz planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.bz2 planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.tar.xz planet-5378cf37d8d3dde29a2e7a67e94f3966696288e6.zip |
l10n support for moonmoon
Diffstat (limited to 'custom/views/archive/index.tpl.php')
-rwxr-xr-x[-rw-r--r--] | custom/views/archive/index.tpl.php | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/custom/views/archive/index.tpl.php b/custom/views/archive/index.tpl.php index c09e266..2bb8f36 100644..100755 --- a/custom/views/archive/index.tpl.php +++ b/custom/views/archive/index.tpl.php @@ -5,7 +5,7 @@ $week = Array(); $month = Array(); $older = Array(); $now = time(); - + foreach ($items as $item) { $age = ($now - $item->get_date('U')) / (60*60*24); if ($age < 1) { @@ -22,7 +22,7 @@ foreach ($items as $item) { header('Content-type: text/html; charset=UTF-8'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$conf['locale']?>" lang="<?=$conf['locale']?>"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> @@ -35,69 +35,69 @@ header('Content-type: text/html; charset=UTF-8'); <body> <div id="page"> <?php include(dirname(__FILE__).'/top.tpl.php'); ?> - + <div id="content"> <?php if (0 == count($items)) :?> <div class="article"> <h2 class="article-title"> - No article + <?=_g('No article')?> </h2> - <p class="article-content">No news, good news.</p> + <p class="article-content"><?=_g('No news, good news.')?></p> </div> <?php endif; ?> <?php if (count($today)): ?> <div class="article"> - <h2>Today</h2> + <h2><?=_g('Today')?></h2> <ul> <?php foreach ($today as $item): ?> <?php $feed = $item->get_feed(); ?> <li> - <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : - <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $item->get_permalink(); ?>" title="<?=_g('Go to original place')?>"><?php echo $item->get_title(); ?></a> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> - + <?php if (count($week)): ?> <div class="article"> - <h2>This week</h2> + <h2><?=_g('This week')?></h2> <ul> <?php foreach ($week as $item): ?> <?php $feed = $item->get_feed(); ?> <li> - <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : - <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $item->get_permalink(); ?>" title="<?=_g('Go to original place')?>"><?php echo $item->get_title(); ?></a> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> - + <?php if (count($month)): ?> <div class="article"> - <h2>This month</h2> + <h2><?=_g('This month')?></h2> <ul> <?php foreach ($month as $item): ?> <?php $feed = $item->get_feed(); ?> <li> - <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : - <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $item->get_permalink(); ?>" title="<?=_g('Go to original place')?>"><?php echo $item->get_title(); ?></a> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> - + <?php if (count($older)): ?> <div class="article"> - <h2>Older items</h2> + <h2><?=_g('Older items')?></h2> <ul> <?php foreach ($older as $item): ?> <?php $feed = $item->get_feed(); ?> <li> - <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : + <a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> : <a href="<?php echo $item->get_permalink(); ?>" title="Go to original place"><?php echo $item->get_title(); ?></a> </li> <?php endforeach; ?> @@ -105,9 +105,9 @@ header('Content-type: text/html; charset=UTF-8'); </div> <?php endif; ?> </div> - + <?php include_once(dirname(__FILE__).'/sidebar.tpl.php'); ?> - + <?php include(dirname(__FILE__).'/footer.tpl.php'); ?> </div> </body> |