Skip to content
Permalink
Browse files

link external sites in selected language; updates #801

  • Loading branch information...
following5 committed Aug 25, 2015
1 parent 83a7ad5 commit 4f84ebf355fd935e8ac770b262ba4fad1309aa23
Showing with 3 additions and 3 deletions.
  1. +1 −1 htdocs/config2/locale.inc.php
  2. +1 −1 htdocs/map2.php
  3. +1 −1 htdocs/templates2/ocstyle/viewcache.tpl
@@ -64,7 +64,7 @@
// geokrety language key association
$opt['geokrety']['locales']['DE'] = 'de_DE.UTF-8';
$opt['geokrety']['locales']['EN'] = 'en_EN';
$opt['geokrety']['locales']['IT'] = 'en_EN';
$opt['geokrety']['locales']['IT'] = 'it_IT.UTF-8';
$opt['geokrety']['locales']['ES'] = 'es_ES.UTF-8';
$opt['geokrety']['locales']['SV'] = 'sv_SE.UTF-8';
$opt['geokrety']['locales']['NO'] = 'no_NO.UTF-8';
@@ -112,7 +112,7 @@
else
$tpl->error($translate->t('There is no google maps key registered for this domain.', '', '', 0));
$tpl->add_header_javascript('http://maps.googleapis.com/maps/api/js?sensor=false&key=' . urlencode($sGMKey));
$tpl->add_header_javascript('http://maps.googleapis.com/maps/api/js?sensor=false&key=' . urlencode($sGMKey) . '&language=' . strtolower($opt['template']['locale']));
// https is supported by google, but may make problems in some environments,
// e.g. does not work with MSIE 7 on WinXP
$tpl->add_header_javascript('resource2/misc/map/dragzoom_packed.js');
@@ -237,7 +237,7 @@
<img src="resource2/{$opt.template.style}/images/viewcache/ignore-16.png" class="icon16" alt="" /> {$cache.ignorercount} {if $cache.ignorecount==1}{t}Ignorer{/t}{else}{t}Ignorers{/t}{/if}<br />
<img src="resource2/{$opt.template.style}/images/viewcache/16x16-visitors.png" class="icon16" alt="" /> {$cache.visits} {if $cache.visits==1}{t}Page visit{/t}{else}{t}Page visits{/t}{/if}<br />
<span style="white-space:nowrap;"><img src="resource2/{$opt.template.style}/images/viewcache/16x16-pictures.png" class="icon16" alt="" /> {$logpics} {if $logpics>0}<a class="link" href="viewcache.php?cacheid={$cache.cacheid|urlencode}&logpics=1">{/if}{if $logpics==1}{t}Log picture{/t}{else}{t}Log pictures{/t}{/if}{if $logpics>0}</a>{/if}</span><br />
<span style="white-space:nowrap;"><img src="resource2/{$opt.template.style}/images/viewcache/gk.png" class="icon16" alt="" title="GeoKrety visited" /> <a href="http://geokrety.org/szukaj.php?lang=de_DE.UTF-8&wpt={$cache.wpoc}" target="_blank">{t}Geokrety history{/t}</a></span><br />
<span style="white-space:nowrap;"><img src="resource2/{$opt.template.style}/images/viewcache/gk.png" class="icon16" alt="" title="" /> <a href="http://geokrety.org/szukaj.php?lang={$opt.geokrety.locales[$opt.template.locale]}&wpt={$cache.wpoc}" target="_blank">{t}Geokrety history{/t}</a></span><br />
{if $cache.topratings>0}
<img src="resource2/{$opt.template.style}/images/viewcache/rating-star.gif" class="icon16" alt="" /> {$cache.topratings} {t}Recommendations{/t}<br />
{/if}

0 comments on commit 4f84ebf

Please sign in to comment.
You can’t perform that action at this time.