problem when gettext is not available

Hi,

I know that gettext is required for localization and setup complains about gettext not being installed, but I've seen that you've registered a gettext function where gettext is not available.

My host doesn't support gettext (I don't need localication anyway) but a few of the pages complain: php files in the admin utilities some have problems (don't get the replacement gettext registered before their use) and as a result, for example when I click on "Backup/Restore" button in admin - overview, I get:

Fatal error: Call to undefined function gettext() in backup_restore.php on line 11

I've fixed the problem for myself by removing calls to 'gettext' in those files, but since I've seen that working without gettext is something almost covered, I thought I'd let you guys know about the problem.

Thanks for the great software,
-Hamed

Comments

  • Thanks for the info. Is it just the utility functions?
  • I have neither gettext() nor setlocale() defined, and it seems that it stops zenphoto from working at all. There is no "Go" button on the installation page, and when I hit zenphoto/zp-core/admin.php, I get an empty page.

    Can I proceed, or am I out ofluck?

    Thanks,

    Martin
  • acrylian Administrator, Developer
    Please try the nightly build.
  • I sorted out my problem. The call to function filesystemToUTF8 () at line 557 in setup.php was a problem. I worked around it by setting $test = 'test'. The installation proceeded and I am up and running.

    Oops, I just saw your reply above, I will give the nightly build a try, too. Thanks.

    Cheers
  • And, the 2009-03-10-trunk build works just fine.

    Thanks
Sign In or Register to comment.