Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#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

<< < 1 2 (Page 2 of 2)
  • 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

     
    Attachments
  • 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-04

     
    Attachments
  • 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
     
<< < 1 2 (Page 2 of 2)