Hard error when unloading in an one file:
-------

#: pathauto_user.inc:14,14
msgid "Pattern for user account page paths"
msgstr ""
"РЁР°Р+Р>Р_Р_ Р_Р>С_ Р°Р_С_РчС_Р_Р_ РїР_Р>С_Р·Р_Р_Р°С'РчР>С_С_РєРёС: "
"С_С'С_Р°Р_РёС┼"

msgid = 1 string, msgstr = 3 string ?

CommentFileSizeAuthor
#4 l10-error.png8.4 KBpvasili

Comments

gábor hojtsy’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

This is normal format for PO files. Multiple "" strings on successive lines are translations for the original string. If the string is long, PO files wrap the translation (or the source string) this way. What's the error with this?

pvasili’s picture

1) Mistake with empty first line. The file cannot be loaded in offline editors.

gábor hojtsy’s picture

It is common to start a multiline translation with msgstr "" (or a multiline source string also with msgid ""), so it should not affect its compatibility with offline editors. Drupal uses this format for years without problems.

pvasili’s picture

StatusFileSize
new8.4 KB

1) /translate/languages/ru/edit
2) Module: pathauto
3) English: Pattern for user account page paths
Russian: Шаблон для адресов пользовательских страниц
4) I press "export"
5) I try import the file in drupal /admin/settings/locale/language/import and see:
* The translation file pathauto-5.x-2.0-ru.po contains an error: "msgstr" was expected but not found on line 74.
* The translation import of pathauto-5.x-2.0-ru.po failed.
6) I open in a poEdit 1.3.9 and see:
21:23:23: Broken catalog file: singular form msgstr used together with msgid_plural
21:23:23: Couldn't load file c:\pathauto-5.x-2.0-ru.po, it is probably corrupted.
------------------
#: pathauto_taxonomy.inc:140,140
msgid ""
"Bulk update of forums and forum containers completed, one alias "
"generated."
msgid_plural ""
"Bulk update of forums and forum containers completed, @count aliases "
"generated."

#: pathauto_user.inc:14,14
msgid "Pattern for user account page paths"
msgstr ""
"РЁР°Р+Р>Р_Р_ Р_Р>С_ Р°Р_С_РчС_Р_Р_ РїР_Р>С_Р·Р_Р_Р°С'РчР>С_С_РєРёС: "
"С_С'С_Р°Р_РёС┼"

-----------------
A problem in msgid_plural !.

I can not use buttons (see an attachments File).
I think this(http://drupal.org/node/212658) same problem...

pvasili’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)