aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-08 01:38:37 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-08 01:38:37 +0000
commitfe23062161d1e50a97685822c8ab94cdc2d43263 (patch)
treee3455673a4ebedc519afc03b1195a21eb4edb398 /include/functions_html.inc.php
parentc68914a3b962b39f341eb4a42f467f7c1143a8b9 (diff)
- upload.tpl goes smarty
- start some language cleanup and a small attempt to standardize a bit ... - debug_language now calls trigger_error instead of echo when missing language key git-svn-id: http://piwigo.org/svn/trunk@2265 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 2b0486e70..36d56aea9 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -26,7 +26,7 @@
function get_icon($date, $is_child_date = false)
{
- global $page, $user, $lang;
+ global $page, $user;
if (empty($date))
{
@@ -54,8 +54,10 @@ function get_icon($date, $is_child_date = false)
if ( !isset($page['get_icon_cache']['_icons_'] ) )
{
$icons = array(false => 'recent', true => 'recent_by_child' );
- $title = l10n('recent_image').'&nbsp;'.$user['recent_period']
- .'&nbsp;'.l10n('days');
+ $title = sprintf(
+ l10n('elements posted during the last %d days'),
+ $user['recent_period']
+ );
foreach ($icons as $key => $icon)
{
$icon_url = get_themeconf('icon_dir').'/'.$icon.'.png';
@@ -78,7 +80,7 @@ function create_navigation_bar(
$url, $nb_element, $start, $nb_element_page, $clean_url = false
)
{
- global $lang, $conf;
+ global $conf;
$pages_around = $conf['paginate_pages_around'];
$start_str = $clean_url ? '/start-' :
@@ -374,8 +376,6 @@ SELECT id, name, permalink
*/
function get_html_menu_category($categories, $selected_category)
{
- global $lang;
-
$ref_level = 0;
$level = 0;
@@ -558,7 +558,7 @@ function name_compare($a, $b)
*/
function access_denied()
{
- global $user, $lang;
+ global $user;
$login_url =
get_root_url().'identification.php?redirect='
@@ -649,7 +649,7 @@ function get_tags_content_title()
)
)
.'" title="'
- .l10n('See pictures linked to this tag only')
+ .l10n('See elements linked to this tag only')
.'">'
.$page['tags'][$i]['name']
.'</a>';
@@ -747,4 +747,4 @@ function render_category_literal_description($desc)
{
return strip_tags($desc, '<span><p><a><br><b><i><small><big><strong><em>');
}
-?> \ No newline at end of file
+?>