Opened 5 years ago

Last modified 5 years ago

#8461 new defect

Catalan translation and issues with msgid's

Reported by: jordi Owned by: hasienda
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords: i18n
Cc: doki_pen, rjollos 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 5 years ago.
Catalan translation of Announcer

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by jordi

Catalan translation of Announcer

comment:1 Changed 5 years ago by hasienda

  • Keywords i18n added
  • Owner changed from doki_pen to hasienda
  • Summary changed from Catalan translation && issues with strings to Catalan 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 5 years ago by hasienda

  • Cc doki_pen rjollos added; anonymous removed

Let the maintainer and a fellow developer keep track too.

comment:3 Changed 5 years ago by jordi

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

Add Comment

Modify Ticket

as new The owner will remain hasienda.

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

Note: See TracTickets for help on using tickets.