mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Fix translations
This commit is contained in:
parent
b64fedfacd
commit
2052137eb1
26 changed files with 55 additions and 41 deletions
|
|
@ -1341,6 +1341,10 @@ class ServiceActions
|
|||
foreach ($aLangKeys as $sKey)
|
||||
{
|
||||
$sString = isset($aResultLang[$sKey]) ? $aResultLang[$sKey] : $sKey;
|
||||
if (\is_array($sString))
|
||||
{
|
||||
$sString = \implode("\n", $sString);
|
||||
}
|
||||
|
||||
$sLangJs .= '"'.\str_replace('"', '\\"', \str_replace('\\', '\\\\', $sKey)).'":'
|
||||
.'"'.\str_replace(array("\r", "\n", "\t"), array('\r', '\n', '\t'),
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ class Utils
|
|||
$isYml = '.yml' === substr($sFileName, -4);
|
||||
if ($isYml)
|
||||
{
|
||||
$aLang = \spyc_load(\str_replace(array(': >-', ': |-'), array(': >', ': |'), \file_get_contents($sFileName)));
|
||||
$aLang = \spyc_load(\str_replace(array(': >-', ': |-', ': |+'), array(': >', ': |', ': |'), \file_get_contents($sFileName)));
|
||||
if (\is_array($aLang))
|
||||
{
|
||||
\reset($aLang);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue