Opened 6 years ago

# Catalan translation and issues with msgid's

Reported by: Owned by: jordi hasienda normal AnnouncerPlugin normal i18n doki_pen, rjollos 0.12

### Description

Hi,

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"
"\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".

### Changed 6 years ago by jordi

Catalan translation of Announcer

### comment:1 Changed 5 years ago by hasienda

• 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!