Skip to content

Commit

Permalink
Update gettext module
Browse files Browse the repository at this point in the history
  • Loading branch information
daris committed Jan 24, 2012
1 parent d85613f commit df5f5ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/classes/lang.php
Expand Up @@ -143,15 +143,15 @@ public function load($resource)
$trans_cache = $cache->get($this->lang.'_'.$resource);
if ($trans_cache === \fluxbb\cache\Cache::NOT_FOUND)
{
$trans_cache = \fluxbb\gettext\Gettext::parse($filename);
$trans_cache = \fluxbb\gettext\parse($filename);

// If this is not the default language, load that, too
if ($this->defaultLang != $this->lang)
{
$def_trans_cache = $cache->get($this->defaultLang.'_'.$resource);
if ($def_trans_cache === \fluxbb\cache\Cache::NOT_FOUND)
{
$def_trans_cache = \fluxbb\gettext\Gettext::parse($default_filename);
$def_trans_cache = \fluxbb\gettext\parse($default_filename);

$cache->set($this->defaultLang.'_'.$resource, $def_trans_cache);
}
Expand Down
2 changes: 1 addition & 1 deletion modules/gettext

0 comments on commit df5f5ec

Please sign in to comment.