Hi,

I'm using l10n server for Brazilian Portuguese translation. Sometimes, I have to change a string that is translated correctly, but in the wrong case. For instance:

Og: Grupo: Número de Inscritos

I want it to read:

OG: Grupo: Número de inscritos

(think of a more extreme case: somebody mistakenly wrote something like "LOCAlization serVer")

The problem is when I try to save the corrected translation it says it's duplicated. But it's not really duplicated.

My request is to remove case-insensitiveness from duplicated translations checker.

Comments

gábor hojtsy’s picture

Good idea, agreed.

meba’s picture

The search and code itself IS case-sensitive. It's made insensitive in MySQL. I need to investigate if the problem is in the table definition/db definition or it's just safe to change the query to "WHERE xyz = BINARY 'xyZ'"

meba’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

OK, I have seen few BINARY occurences in current code. This patch should fix it.

tobiasb’s picture

Version: 6.x-1.0-alpha3 » 6.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

THX. That's works.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed
StatusFileSize
new1.31 KB

Also added a line of comment to make it more clear, and committed this one.

gábor hojtsy’s picture

Category: feature » bug

Status: Fixed » Closed (fixed)

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

SebCorbin’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Needs work

The corresponding query has not been translated correctly in 7.x-1.x http://drupalcode.org/project/l10n_server.git/blob/refs/heads/7.x-1.x:/l...

anemes’s picture

anemes’s picture

Status: Needs work » Needs review
StatusFileSize
new584 bytes

Status: Needs review » Needs work
anemes’s picture

anemes’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
anemes’s picture

Status: Needs work » Needs review
StatusFileSize
new933 bytes

We cannot use condition() method for the where clause because it would include the BINARY operator as part of the string, this is why we use the where() method.

SebCorbin’s picture

Status: Needs review » Postponed

Could anyone give an exhaustive configuration description of collations, engines and such, because I cannot reproduce this behavior.