cotonti.com : loading lang files https://www.cotonti.com Останні повідомлення в темі Cotonti en Tue, 02 Dec 2025 12:01:52 -0000 GHengeveld Сб, 07 Бер 2009 23:35:56 -0000 Trustmaster Сб, 07 Бер 2009 20:44:04 -0000 esclkm
Now it is like this:
if (file_exists($path_lang_alt))
{ require_once($path_lang_alt); }
elseif (file_exists($path_lang_def))
{ require_once($path_lang_def); }
I think better will be like this:
if (file_exists($path_lang_def))
{ require_once($path_lang_def); }
if (file_exists($path_lang_alt))
{ require_once($path_lang_alt); }

Reason in example:
-if user uses ua, ru or other (not english) language from old version of cotonti on new ones, lang will work not correctly. Some strings will be replaced with free space.

-after remaking^ it will load eng firstly and than user lang. What do you think about this?]]>
Пт, 06 Бер 2009 14:53:28 -0000