diff options
author | andi <andi@splitbrain.org> | 2005-05-01 13:53:05 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-05-01 13:53:05 +0200 |
commit | 265e3787e12edf6f10be9d7260d20ea1778428cb (patch) | |
tree | c95fede015cc07d40125cb0d79b49d69a2b25c54 /inc | |
parent | cbe3402474d1a9f6a563d717ff38d0120425c184 (diff) | |
download | rpg-265e3787e12edf6f10be9d7260d20ea1778428cb.tar.gz rpg-265e3787e12edf6f10be9d7260d20ea1778428cb.tar.bz2 |
various language fixes (including RTL updates)
darcs-hash:20050501115305-9977f-e7ccfbf5b3f47c7f7ff5fb339ba40c0c50861a3c.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/html.php | 2 | ||||
-rw-r--r-- | inc/parser/xhtml.php | 4 | ||||
-rw-r--r-- | inc/template.php | 7 |
3 files changed, 9 insertions, 4 deletions
diff --git a/inc/html.php b/inc/html.php index 3f6306dc1..0b724bd3e 100644 --- a/inc/html.php +++ b/inc/html.php @@ -165,7 +165,7 @@ function html_topbtn(){ global $lang; $ret = ''; - $ret = '<a href="#top"><input type="button" class="button" value="Back to top" onclick="window.scrollTo(0, 0)" /></a>'; + $ret = '<a href="#top"><input type="button" class="button" value="'.$lang['btn_top'].'" onclick="window.scrollTo(0, 0)" /></a>'; return $ret; } diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 9df02c942..41a07e0a9 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -537,9 +537,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { if(!$isImage){ //if ico exists set additional style if(@file_exists(DOKU_INC.'interwiki/'.$wikiName.'.png')){ - $link['style']='background: transparent url('.DOKU_BASE.'interwiki/'.$wikiName.'.png) 0px 1px no-repeat;'; + $link['style']='background-image: url('.DOKU_BASE.'interwiki/'.$wikiName.'.png)'; }elseif(@file_exists(DOKU_INC.'interwiki/'.$wikiName.'.gif')){ - $link['style']='background: transparent url('.DOKU_BASE.'interwiki/'.$wikiName.'.gif) 0px 1px no-repeat;'; + $link['style']='background-image: url('.DOKU_BASE.'interwiki/'.$wikiName.'.gif)'; } } diff --git a/inc/template.php b/inc/template.php index c879ecff8..5ab8ea6a5 100644 --- a/inc/template.php +++ b/inc/template.php @@ -351,13 +351,17 @@ function tpl_breadcrumbs(){ if(!$conf['breadcrumbs']) return; $crumbs = breadcrumbs(); //setup crumb trace + + //reverse crumborder in right-to-left mode + if($lang['direction'] == 'rtl') $crumbs = array_reverse($crumbs,true); + //render crumbs, highlight the last one print $lang['breadcrumb'].':'; $last = count($crumbs); $i = 0; foreach ($crumbs as $id => $name){ $i++; - print ' » '; + print ' <span class="bcsep">»</span> '; if ($i == $last) print '<span class="curid">'; tpl_link(wl($id),$name,'class="breadcrumbs" title="'.$id.'"'); if ($i == $last) print '</span>'; @@ -373,6 +377,7 @@ function tpl_breadcrumbs(){ * * @author Andreas Gohr <andi@splitbrain.org> * @link http://wiki.splitbrain.org/wiki:tipsandtricks:hierarchicalbreadcrumbs + * @todo May behave starngely in RTL languages */ function tpl_youarehere(){ global $conf; |