Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the exported .po files, the msgctxt parts are in the middle but according to the .po file format's specification (http://www.gnu.org/software/hello/manual/gettext/PO-Files.html):
"Here also, a msgctxt context can be specified before msgid, like above."
Comment | File | Size | Author |
---|---|---|---|
#8 | msgctxt-to-before-msgid-core7.patch | 998 bytes | Gábor Hojtsy |
#7 | msgctxt-to-before-msgid-potx7.patch | 2.54 KB | Gábor Hojtsy |
#6 | msgctxt-to-before-msgid-potx.patch | 2.36 KB | Gábor Hojtsy |
#5 | msgctxt-to-before-msgid.patch | 1.67 KB | Gábor Hojtsy |
Comments
Comment #1
Gábor HojtsyCan you provide an excerpt of how is this exactly broken?
Comment #2
Gábor HojtsyBTW we just use the Drupal 7 core code, which does exactly this (around line 1321). http://drupalcode.org/viewvc/drupal/drupal/includes/locale.inc?revision=...
Comment #3
aries CreditAttribution: aries commentedmsgfmt --stat drupal-7.0-alpha1-hu2.po
You'll receive similar error messages:
etc.
The good version:
Comment #4
Gábor HojtsyI've rolled out a quick fix live to help your work on the server and will come back to commit fixes to l10n_server and potx and submit a core issue.
Comment #5
Gábor HojtsyCommitted this one to l10n_server.
Comment #6
Gábor HojtsyThis change should go into Potx module as well, also committed there.
Comment #7
Gábor HojtsyAnd this goes to the 7.x branch of potx as well. Fun :) Committed there.
Comment #8
Gábor HojtsyAnd here comes the Drupal 7 core patch. I'll not be able to commit, and we need to wait for automated testing on it anyway.
Comment #9
Gábor Hojtsy@aries: looks good for an RTBC? :)
Comment #10
aries CreditAttribution: aries commented@goba: I checked on a test environment, and looks ok, works well.
Comment #11
aspilicious CreditAttribution: aspilicious commentedComment #12
plachCleaning-up the "language system" issue queue as per http://cyrve.com/criticals.
Comment #13
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.