Opened 6 years ago

# Catalan translation and issues with msgid's

Reported by: Owned by: Jordi Mallach normal AnnouncerPlugin normal i18n Robert Corsaro, Ryan J Ollos 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 Mallach

Catalan translation of Announcer

### comment:1 Changed 5 years ago by Steffen Hoffmann

Keywords: i18n added changed from Robert Corsaro to Steffen Hoffmann Catalan translation && issues with strings → 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 Steffen Hoffmann

Cc: Robert Corsaro Ryan J Ollos added; anonymous removed

Let the maintainer and a fellow developer keep track too.

### comment:3 Changed 5 years ago by Jordi Mallach

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

### comment:4 Changed 3 months ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

### Modify Ticket

Action
as new The ticket will remain with no owner.