String context not taken into account when retrieving a translation

Created on 5 October 2011, over 12 years ago
Updated 26 May 2024, about 1 month ago

When the user wants to extract a .po file with translations, if there are two or more identical strings with different contexts and different translations, the translation fetched from database is the same for each string source.
The reason for this is, in the query to obtain the translation, in the WHERE clause:
- the context isn't checked.

I've attached a patch with a fix.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania Alex.Enciu

Live updates comments and jobs are added and updated live.
  • DrupalWTF

    Worse Than Failure. Approximates the unpleasant remark made by Drupal developers when they first encounter a particular (mis)feature.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024