backdrop / backdrop-issues

Issue tracker for Backdrop core.
144 stars 40 forks source link

Locale module importing targets as sources #886

Open pablo-romero opened 9 years ago

pablo-romero commented 9 years ago

Locale module is somehow importing many target strings as sources. Here is an example for Spanish:

locale-bug

Legend:

  1. There are more "fake" string sources (red, already in Spanish) than "genuine" ones (blue, in English).
  2. They mostly come from a .po file import so these texts should not be sources, but targets.
  3. As a result, they are assumed as untranslated, which is wrong.

I didn't touch any multilingual features, I've only tested Locale and Language modules (Content Translation disabled). The .po file has been exported from a fresh Backdrop installation: I double-ckecked sources and targets with different Gettext editors and they are ok.

Steps to reproduce

  1. Install Backdrop in English
  2. Enable Language and Locale modules
  3. Add any language
  4. Import a .po file for that language.
  5. Go to admin -> Interface translation and select Untranslated strings in the filter.
quicksketch commented 9 years ago

Thanks for opening this @pablo-romero! I admit, I'm not very familiar with the normal functionality of Locale module, so I'm glad to have your reports on these problems. We changed very little about the inner workings over Locale, so I'm surprised to see that we would have introduced such a regression (and that this either isn't being tested or the test is incorrect). Could you provide a link to the .po file you're importing, just so I could get the exact set of inputs you're trying for my own testing?

pablo-romero commented 9 years ago

I've been testing this locally so I have no links, but I'll send you something for your tests.