Comments

plach’s picture

Status: Active » Needs review
StatusFileSize
new1.29 KB

Here is a patch for the bot. Needs tests.

good_man’s picture

I can only see (without your patch) this function getting the current active language, not all languages. OTOH, URL rewrite displays only active languages.

bforchhammer’s picture

I tested the patch in #1 in conjunction with the patch in #284625 and can confirm that it works.

plach’s picture

This comes from #284625: Non-localized links in translation table....

Steps to reproduce:

  1. add a couple of additional languages, say german and french
  2. disable french
  3. enable URL language detection
  4. create a node in english
  5. try to translate it in french

Edit: You'll see the issue after applying the latest patch in the issue above.

plach’s picture

StatusFileSize
new2.68 KB
new3.98 KB

And here is the test.

The test-only version of the patch is supposed to fail testing to show that the complete patch fixes the issue.

bforchhammer’s picture

The test-only version of the patch is supposed to fail testing to show that the complete patch fixes the issue.

Hm, so why is the test-only version NOT failing the test-bot then? ;-)

plach’s picture

Strange, on my box it fails. I'll give it a look. But I suppose the problem is it's difficult to configure a locale-proof test environment.

Can you test the two patches on your machine? You just need to run the UI Language negotiation test.

bforchhammer’s picture

Can you test the two patches on your machine? You just need to run the UI Language negotiation test.

I'll give it a go later today.

bforchhammer’s picture

Status: Needs review » Needs work

I just tried the test-only patch, and it also passes... looks like this needs more work.

plach’s picture

Status: Needs work » Needs review
StatusFileSize
new3.44 KB
new4.73 KB

Tests were missing a static cache reset. I don't know how could they fail on my box yesterday...

plach’s picture

StatusFileSize
new21.22 KB
new9.73 KB

:(

@bforchhammer, what about you?

bforchhammer’s picture

Status: Needs review » Needs work
StatusFileSize
new31.03 KB
new11.91 KB

Seems like the results are the same on my test machine...

Why are they different on the test-bots? Is that something that's happened before? Is it a caching issue? I guess that's something that we should probably figure out before this becomes rtbc...?

plach’s picture

Sure, I'm trying a different approach.

plach’s picture

Status: Needs work » Needs review
StatusFileSize
new6.31 KB
new5.01 KB

Let's try this.

bforchhammer’s picture

Works as expected. I like the changes, the test-case seems more clear now.

Let's see what the bot says...

bforchhammer’s picture

Status: Needs review » Needs work

Still the same...

plach’s picture

Status: Needs work » Needs review

Oh, fuck :(

plach’s picture

Status: Needs review » Needs work

I'll try and see if it's a clean ulr issue, but I doubt...

plach’s picture

Status: Needs work » Needs review

#14: language-926212-14-test.patch queued for re-testing.

plach’s picture

#14: language-926212-14.patch queued for re-testing.

plach’s picture

I can't reproduce the bot's behavior on my box(es). I filed an issue in the infrastructure queue: #931020: Test passing when it should fail.

plach’s picture

#14: language-926212-14-test.patch queued for re-testing.

plach’s picture

StatusFileSize
new3.46 KB
new4.66 KB

Rerolled after the latest commits.

Status: Needs review » Needs work

The last submitted patch, language-926212-23-test.patch, failed testing.

bforchhammer’s picture

StatusFileSize
new3.46 KB

Wrong line endings...

bforchhammer’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, language-926212-25-test.patch, failed testing.

bforchhammer’s picture

Status: Needs work » Needs review
StatusFileSize
new3.37 KB

Hm... and this time fixed for real.

plach’s picture

StatusFileSize
new4.76 KB
new3.47 KB

@DamZ helped me fix the test. Now we should be ok.

plach’s picture

yay!

bforchhammer’s picture

Status: Needs review » Reviewed & tested by the community

Finally :)

plach’s picture

StatusFileSize
new5.13 KB

Improved PHPdocs

Status: Reviewed & tested by the community » Needs work

The last submitted patch, language-926212-32.patch, failed testing.

plach’s picture

Status: Needs work » Needs review
StatusFileSize
new5 KB

windows newlines...

plach’s picture

Status: Needs review » Reviewed & tested by the community
tom_o_t’s picture

#34: language-926212-34.patch queued for re-testing.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)

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