Skip to content

Commit

Permalink
dev: fixed gettext leak by caching result
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8726 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
mennodekker committed May 19, 2010
1 parent 17f1a82 commit 646a447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/core/surveytranslator.php
Expand Up @@ -125,7 +125,9 @@ function getLanguageDetails($codetosearch)

function getLanguageData($orderbynative=false) {
global $clang;
static $supportedLanguages;

if (!isset($supportedLanguages)) {
// Albanian
$supportedLanguages['sq']['description'] = $clang->gT('Albanian');
$supportedLanguages['sq']['nativedescription'] = 'Shqipe';
Expand Down Expand Up @@ -450,6 +452,7 @@ function getLanguageData($orderbynative=false) {
$supportedLanguages['vi']['nativedescription'] = 'Tiếng Việt';
$supportedLanguages['vi']['rtl'] = false;
$supportedLanguages['vi']['dateformat'] = 5;
}

if ($orderbynative)
{
Expand Down

0 comments on commit 646a447

Please sign in to comment.