From 08652df7ac0d2eae6e05e952509aa700f5877ab6 Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 16 Aug 2013 10:45:01 -0400 Subject: [PATCH] js/catalog-link.js: i18n --- js/catalog-link.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/catalog-link.js b/js/catalog-link.js index 124a3e9a..c3eb0de6 100644 --- a/js/catalog-link.js +++ b/js/catalog-link.js @@ -18,7 +18,7 @@ var link = document.createElement('a'); link.href = catalog_url; if (pages) { - link.textContent = 'Catalog'; + link.textContent = _('Catalog'); link.style.color = '#F10000'; link.style.padding = '4px'; link.style.paddingLeft = '9px'; @@ -29,7 +29,7 @@ if (pages) { pages.appendChild(link) } else { - link.textContent = '[Catalog]'; + link.textContent = '['+_('Catalog').']'; link.style.paddingLeft = '10px'; link.style.textDecoration = "underline"; document.body.insertBefore(link, bottom); @@ -37,7 +37,7 @@ else { if (subtitle) { var link2 = document.createElement('a'); - link2.textContent = 'Catalog'; + link2.textContent = _('Catalog'); link2.href = catalog_url; var br = document.createElement('br'); @@ -46,4 +46,5 @@ if (subtitle) { } } } + $(document).ready(catalog);