Topic: missing en_US.po file, nowhere to be found

I know this is a really basic issue, but I am continuously getting errors about en_US.po not found and I cannot find that file anywhere. It is not in the 2.4.7 distribution. It was in the 2.4.4 distro, but that one breaks 2.4.7.

It doesn't seem to be required for the system to function, but the tmp/errors.log just grows and grows.

Everything I've read says the the .mo file is the compiled version of the .po file and the .po file shouldn't be needed. I need clarification on this, please!

Re: missing en_US.po file, nowhere to be found

On a related note: I'm not sure what would happen if I ran the install wizard over the top of an existing multi-company installation. I don't want to add any new companies or change any of my settings.

The upgrade guide makes no mention of language files. I cannot locate any download on Sourceforge that references language packs.

I apologize if I'm missing something obvious. I have searched my filesystem, read the Wiki and googled this.

Re: missing en_US.po file, nowhere to be found

The necessary ANSI files are at:
https://github.com/apmuthu/FA24extensions/tree/master/Languages/en_US

Also attached here.

Post's attachments

en_US.zip 477 kb, 6 downloads since 2019-09-17 

You don't have the permssions to download the attachments of this post.

Re: missing en_US.po file, nowhere to be found

Thank you!

Re: missing en_US.po file, nowhere to be found

I guess I spoke too soon. When I put those files into my language folder, the system seems to hang/timeout at line 307 of includes/lang/gettext.inc.

It just keeps returning to this block:

if (!$this->_lang_code) 
{
    $this->_jobs[] = array($domain, $path); 
    return;
}

and the value of $this->_jobs[] =

[17-Sep-2019 13:36:41 America/New_York] Array
(
    [0] => Array
        (
            [0] => en_US
            [1] => ../lang
        )

    [1] => Array
        (
            [0] => en_US
            [1] => ../lang
        )

)

Re: missing en_US.po file, nowhere to be found

I'm getting 4 calls to gettext_php_support->set_language() (trying to generate an invoice) as follows:

[17-Sep-2019 13:43:16 America/New_York] set_language(en_US,iso-8859-1)
[17-Sep-2019 13:43:17 America/New_York] set_language(en_US,ISO-8859-1)
[17-Sep-2019 13:43:18 America/New_York] set_language(en_US,ISO-8859-1)
[17-Sep-2019 13:43:18 America/New_York] set_language(,)

Re: missing en_US.po file, nowhere to be found

Is the generated PHP file supposed to look like this? ...

return array(
    '' => 'Cannot update work orders costs:
%s',
    'Main  Menu' => '',
    'Logout' => '',
    'Restricted access' => '',
    'Login as user: demouser and password: password' => '',
    ...

Re: missing en_US.po file, nowhere to be found

Just disregard this entire thread. I figured out how to access the install/update languages feature in FA and I used that. Now my reports are working, again. I wonder if there was something amiss in the language files you were kind enough to zip for me.

The generated PHP file is completely different.

Re: missing en_US.po file, nowhere to be found

The generated PHP file is for windows users who do not have a useable GD library due to different way that windows recognises locales. It is a fallback for those who cannot use the newer php GD library in FA. Some js related double escaped strings cause problems here.