I wonder, if l10n_server can support textgroups. I'm currently thinking about letting customers provide translations of User defined strings for multiple sites.
Gabor, do you know if there was or maybe is any approach of dealing with that?

CommentFileSizeAuthor
#4 1227734-textgroups-4.patch3.76 KBguillaumev

Comments

gábor hojtsy’s picture

Category: feature » support
Status: Active » Fixed

You can possibly hack that with context values, but this software was not really designed for the use case you are looking at.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

derhasi’s picture

Gabor, yes using context would work for the moment - I allready thought about that. Will stick with that, thanks.

guillaumev’s picture

Version: 6.x-3.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Active
StatusFileSize
new3.76 KB

I'd like to reopen this issue because I have the same problem.

I found a way, on .po file imports, to import comments written above messages. This allows me to build files with the format:

#: field:field_tags:audio:label
msgctxt "field_tags:audio:label"
msgid "Tags"
msgstr ""

which can then be imported into the right textgroup using the patch for l10n_update here: http://drupal.org/node/1421600#comment-6116752.

I know that textgroups are going to disappear in D8 (which is a good thing) and that it would therefore be a waste of time to try to support them fully in l10n_server, but this kind of hackish way that I'm providing here (even though I tested it and so far it worked just fine) would allow people who have the same use case to actually translate the fields, views, blocks etc... in their features using a translation server, saving them a lot of pain...

guillaumev’s picture

Status: Active » Needs review