Opened 7 years ago

Closed 15 months ago

#8461 closed defect (wontfix)

Catalan translation and issues with msgid's

Reported by: Jordi Mallach Owned by:
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords: i18n
Cc: Robert Corsaro, Ryan J Ollos Trac Release: 0.12



Attached is an initial Catalan translation of most of Announcer plugin. It is “most” and not the complete translation because I figured the strings need fixing, and I'll have to retranslate most of the thing again, so better not bother to do it now.

The problem with the strings is that the plugin uses "string concatenation" in many parts of the code. This is a big problem for some languages, which simply won't be able to translate Announcer using correctly structured sentences:

#: announcer/templates/fullblog_plaintext.txt:20
#, python-format
msgid ""
"{% end %}\\\n"
"{% end %}\\\n"
"{% if category == 'post deleted' %}\\\n"
"Deleted post \""
msgstr ""

In this case, the string is missing an argument, which can't be placed in some other place of the sentence, if the translator needs to do that. Also, in Catalan we translate " quotes as «, so I'm not able to replace the closing " with ».

msgid "Deleted version \""
msgid "\" of post \""

This is an example of concatenated strings, which should be avoided like a pest. Please use something like Deleted version "%s" of post "%s".

Attachments (1) (22.8 KB) - added by Jordi Mallach 7 years ago.
Catalan translation of Announcer

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by Jordi Mallach

Attachment: added

Catalan translation of Announcer

comment:1 Changed 7 years ago by Steffen Hoffmann

Keywords: i18n added
Owner: changed from Robert Corsaro to Steffen Hoffmann
Summary: Catalan translation && issues with stringsCatalan translation and issues with msgid's

Hey, just checking some tickets that came in here over the last few moths.

Since I've done i18n, I assign it to myself. And there is more work by Jun Omae towards better msgid's (#9192), that I'll resolve together with your comment.

Thank you for this valuable contribution (108 of 136 msgid's translated), and sorry for not seeing it earlier.

comment:2 Changed 7 years ago by Steffen Hoffmann

Cc: Robert Corsaro Ryan J Ollos added; anonymous removed

Let the maintainer and a fellow developer keep track too.

comment:3 Changed 7 years ago by Jordi Mallach

Thanks hasienda, I just subscribed to that ticket. Looks promising!

comment:4 Changed 19 months ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

comment:5 Changed 15 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Please upgrade to Trac 1.2, which has integrated the core of AnnouncerPlugin. Please raise the issue on the trac:MailingList if you encounter the issue with Trac 1.2.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The ticket will remain with no owner.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.