#27 error in mailbox_display.php when using Dutch language

closed-fixed
None
5
2005-12-06
2005-10-28
Jaap Grol
No

Squirrelmail 1.4.5
Serverinfo : Apache/1.3.33 (Unix) PHP/4.3.9
mod_ssl/2.8.22 OpenSSL/0.9.6:80
IMAP: Dovecot 0.99.10.5

Error message:
Warning: sprintf(): Too few arguments in
/usr/local/squirrelmail-1.4.5/functions/mailbox_display.php
on line 977

This message occurs on top of the message list of any
folder when this folder contains only 1 message and the
Dutch language is used.

Discussion

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-10-29

    Logged In: YES
    user_id=225877

    Show your Dutch squirrelmail.po or squirrelmail.mo files and
    functions/mailbox_display.php file. In standard squirrelmail
    1.4.5 package Dutch translation does not have formating errors.

     
  • Jaap Grol

    Jaap Grol - 2005-10-29

    Logged In: YES
    user_id=296387

    I have installed the latest stable version, the error still
    exists.
    This is versioninfo from squirrelmail.po:
    <>
    # $Id: squirrelmail.po,v 1.17.2.3 2005/08/03 07:59:36
    jervfors Exp $
    msgid ""
    msgstr ""
    "Project-Id-Version: squirrelmail v1.4.5\n"
    "POT-Creation-Date: 2005-07-03 18:50+0300\n"
    "PO-Revision-Date: 2005-08-03 09:51+0200\n"
    "Last-Translator: M.J. Prinsen
    <translation@prinsenonline.com>\n"
    "Language-Team: Dutch
    <squirrelmail-i18n@lists.sourceforge.net>\n"
    <>

    Do you want me to attach the files to this thread?

    Btw, thanks for the quick respons!

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-10-29

    Logged In: YES
    user_id=225877

    Could you attach these translation files and
    mailbox_display.php to this tracker?

     
  • Jaap Grol

    Jaap Grol - 2005-10-29

    Dutch squirrelmail.po

     
  • Jaap Grol

    Jaap Grol - 2005-10-29

    Logged In: YES
    user_id=296387

    I forgot the mailbox_display.php file.... It is an altered
    version (by the msg_flags plugin, of which I have the latest
    version, 1.4.3.1)
    Using the original file is no cure.
    I attached the file. As well as the translation files.

    A strange thing is that I manage another installation,
    running the same version of squirrelmail, and that does not
    have this error....

     
  • Jaap Grol

    Jaap Grol - 2005-10-29

    Dutch squirrelmail.mo

     
  • Jaap Grol

    Jaap Grol - 2005-10-29

    mailbox_display.php (after changes by msg_flags plugin)

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-10-29

    Logged In: YES
    user_id=225877

    do you have gettext support in php?

     
  • Jaap Grol

    Jaap Grol - 2005-10-29

    Logged In: YES
    user_id=296387

    gettext support: no idea, will check but later...

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-10-29

    Logged In: YES
    user_id=225877

    If you have installed some php cache or optimizer - restart
    apache. Some php caching engines display errors when php
    scripts are modified and webserver is not reloaded.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-11-04
    • milestone: 101717 -->
    • assigned_to: nobody --> tokul
     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-11-04

    Logged In: YES
    user_id=225877

    Is gettext support enabled?

    Can you reproduce your issue, if you replace
    functions/gettext.php with file attached to this tracker?

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-11-04
     
  • Jaap Grol

    Jaap Grol - 2005-11-04

    Logged In: YES
    user_id=296387

    According to phpinfo gettext support is not enabled during .
    Replacing gettext.php by the attached file makes no difference.

    It appears the error is caused by the mailbox_display.php
    that is delivered by the plugin msg_flags.
    I replaced my version by the version out of the original
    sources and the error disappeared.
    The attached file is the error-causing version.

    I tried this file in the other installation I manage, and
    there the error occured as well.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-12-04

    Logged In: YES
    user_id=225877

    Attached patch that disables fuzzy matching in formated strings.

    Your error can be reproduced only in two setups. Invalid
    translation when php gettext is used and fuzzy matching when
    internal gettext functions are used.

    First error is not possible because since 1.4.6 SquirrelMail
    locales force error checking in package generation and
    locales that don't pass error check are not accepted.

    Second error should be fixed with attached patch. Patch can
    be applied with 'patch -p0 < gettext.php.diff' command
    issued in SquirrelMail functions directory. Patch also
    contains two comment formating fixes in order to allow
    better comment alignment.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-12-06
    • status: open --> closed
     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-12-06

    Logged In: YES
    user_id=225877

    fixed in 1.4.6cvs.

    You should use php with gettext support. Internal gettext
    implementation is slower.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-12-06
    • status: closed --> closed-fixed
     

Log in to post a comment.