diff --git a/template/header.tpl b/template/header.tpl
index dd8b504..d82fb22 100644
--- a/template/header.tpl
+++ b/template/header.tpl
@@ -1,7 +1,7 @@
-{if $PAGE_TITLE=='Home'|@translate}{$GALLERY_TITLE}{else}{$PAGE_TITLE}{/if}
+{if $PAGE_TITLE!=l10n('Home') && $PAGE_TITLE!=$GALLERY_TITLE}{$PAGE_TITLE} | {/if}{$GALLERY_TITLE}
{* cannot be loaded by combine_css because it contains relative urls *}
{strip}{get_combined_css}