Download & Extend

Extract language to .po adds [2] near @count

Project:Drupal core
Version:5.x-dev
Component:locale.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (cannot reproduce)

Issue Summary

Loaded content:
msgid "1 item"
msgid_plural "@count items"
msgstr[0] "@count tr0"
msgstr[1] "@count tr1"
msgstr[2] "@count tr2"

When extracting .po you see regular adding [2]
msgid "1 item"
msgid_plural "@count items"
msgstr[0] "@count tr0"
msgstr[1] "@count tr1"
msgstr[2] "@count[2] tr2"

build 2001-jan-10

Comments

#1

can you make a sample PO file available? Attach it to the issue.

#2

see attached file

AttachmentSizeStatusTest resultOperations
ru_po.txt1.98 KBIgnored: Check issue status.NoneNone

#3

Status:active» postponed (maintainer needs more info)

Hm, as far as I see, _locale_export_remove_plural() should remove that too. Could you please try editing line 1187 to say $i > 0 instead of $i > 1? That is the line before _locale_export_remove_plural() gets called. There is probably some indenxing problem there. Thanks!

#4

Status:postponed (maintainer needs more info)» closed (cannot reproduce)

http://api.drupal.org/api/drupal/includes--locale.inc/function/_locale_e... just removes the plural number at all times now.

nobody click here