Topic: Default C Language errors
When no language is chosen for the FA user interface, the fallback language is "C".
Older PHP versions did not have native gettext support or it was not compiled into it or it was not enabled in the php.ini.
For such instances, the fallback was a language translation array that was generated if the <locale>.php file was not compiled after the corresponding .po file.
If the lang/new_language_template/C.php, then it would throw up errors in the tmp/errors.log file.
To mitigate this, in the includes/lang/gettext.inc file, after:
function _load_domain($domain, $path = "./locale")
{
$src_domain = $path . "/$this->_lang_code/LC_MESSAGES/$domain.po";
$php_domain = $path . "/$this->_lang_code/LC_MESSAGES/$domain.php";
insert the following:
if ( $this->_lang_code == 'C' ) {
$src_domain = $path . "/new_language_template/LC_MESSAGES/empty.po";
$php_domain = $path . "/new_language_template/LC_MESSAGES/C.php";
}
and create the file lang/new_language_template/C.php with the following contents:
<?php
return array();
This fix is available in my FA24Mods commit.