NB: This might be a core bug, but this happen only with extra string that i18n let us translate, that's why I'm posting it here.

So, the bug is that when I go to the Translate interface, the column Languages only show French (in my case), even if French is the system language and default language. For the built-in string, it make sense that fr is shown with or without a strikethrough since the orignal text is in English (see the top part of the screen shot).

But when it comes to other kind of string (Fields, Node types, Menu, Taxonomy, Blocks, etc.), the languages column still only show fr and always with a strikethrough. In my case, since the original text is in French, it doesn't make any sense. And yet, as you can see in the bottom part of the screenshot, Drupal seem to know that the missing language is English (he ask for that english missing string), and probably know that the original string is in French. Even though in the overview they are all at 0% translated (even if they are all French string... See the screenshot)

If it's not a i18n bug, let me know, I'll report this where it goes (probably core, content translation module)

Comments

jox’s picture

Subscribing and mentioning this post which is a consequence of this bug: #1197404: Content-Type name translation

jose reyero’s picture

Status: Active » Postponed

We are moving away from using that 'Translate interface' page, we won't have these issues anymore when it is completed, #1191662: Migrate away from textgroups to own storage in i18n

jose reyero’s picture

Status: Postponed » Active

Forget my previous comment, we are still using this UI for now. So we should fix this one.

jose reyero’s picture

Priority: Normal » Minor

There was another related issue with strings source language (that can be configured now) and was not being used for these translations form.

As a first step, done a full replacement of the translation form. Will need a full cache clear and a menu rebuild.

About the original issue (wrong translation languages displayed), marking it as minor, maybe for later.

cyberwolf’s picture

Subscribing.

I confirm the problem in the translation form (string source language not used) is fixed in the latest dev release of i18n_strings. Great!

lsolesen’s picture

Any progress on this one?

drclaw’s picture

Category: Bug report » Feature request
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new6.11 KB

@axel.rutz that's a nice clean fix, but I don't know how likely it is that they'll accept a core patch that relies on a variable provided by a contrib module...?

Here's a solution (patch attached) in the same vein as the translation form fix mentioned in comment #5. We just override the translation interface listing page with a hook_menu_alter and fix what we need. Most of the code is just copied from the core locale module but with a few function overrides and @axel.rutz's patch.

Thanks!
drclaw

damienmckenna’s picture

devad’s picture

Status: Needs review » Reviewed & tested by the community

I have tested patch #8 and it fixes the issue the same way as @axel.rutz patch #1 from #2534898: Translation overview page does not respect i18n source language.

Changing issue status as "Reviewed & tested by community". Thanx @drclaw. More reviews are welcome of course.

robertom’s picture

attached a rerolled patch

paulvandenburg’s picture

+1 for the RTBC. Has been in use for several years in several productions sites in our DvG distribution: #2676858: Fix i18n issue without a core patch

joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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