npgettext is still broken

Bug #674440 reported by Ondřej Vodáček
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-gettext
Fix Released
High
Данило Шеган

Bug Description

If the translation is not found and $number = 1, then npgettext returns $context\004$message. Similar to bug #553091.

Related branches

Revision history for this message
Ondřej Vodáček (voda) wrote :
Revision history for this message
Данило Шеган (danilo) wrote :

Hi Ondřej, thanks for the bug report and proposed fix.

It'd be nice if you can also provide a test :) If not, I'll probably come up with it later when I also commit your fix.

Changed in php-gettext:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Ondřej Vodáček (voda) wrote :

I have a wrapper around the 'gettext_reader' class and I'm testing that. So made a new test for this bug only:
tests/gettext_readerTest.php

Revision history for this message
Данило Шеган (danilo) wrote :

Thanks and sorry for the delay: it slipped under my radar. Fix committed as r55.

Changed in php-gettext:
assignee: nobody → Данило Шеган (danilo)
status: Triaged → Fix Committed
Changed in php-gettext:
milestone: none → 1.0.11
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.