1. Gábor showed us in his presentation that the installer has a link to the proper place where the language (.po) files can be downloaded from (to be able to install D8 in other languages than English). This link should have no "target" attribute (to be consistent with others, see below).

2. The language administration screen on http://example.com/admin/config/regional/language has a download link, but this one leads the user to a page on l.d.o where s/he can't download anything from (though this link doesn't have the "target" attribute, either). This link should lead to the same page mentioned in 1.

3. The module administration screen on http://example.com/admin/modules has also a download link which leads to the module list on d.o, and it doesn't have the "target" attribute either.

So the feature request here is to fix 1. and 2.; patch is on the way.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Boobaa’s picture

Assigned: Boobaa » Unassigned
Status: Active » Needs review
FileSize
3.76 KB
1.34 KB

Attached is a patch containing only tests and a patch with test and fix. The first one should fail (on the admin screen text), the second one should pass. The install screen text is not tested as I don't know how could it be tested.

Status: Needs review » Needs work

The last submitted patch, d8-1751380-1-tests-and-fix.patch, failed testing.

Boobaa’s picture

Uh-oh. Am i not allowed to create a new file in the Tests directory? I have tried both the patches locally before submitting and they did not fail to apply. Now what?

attiks’s picture

Your patches are deleting files, instead of adding them. I assume you created your patch backwards

+++ /dev/nullundefined
@@ -1,41 +0,0 @@
-<?php
-
-/**
- * @file
- * Definition of Drupal\locale\Tests\LocaleUITextTest.
- */
-
-namespace Drupal\locale\Tests;
-
-use Drupal\simpletest\WebTestBase;

must be a + as first char

Boobaa’s picture

Status: Needs work » Needs review
FileSize
3.76 KB
1.33 KB

Looks like I had a hangover or something.

attiks’s picture

Patch is looking good, since I missed the discussion with Gabor about removing the target attribute I'll leave it to him to RTBC. I personally don't like it either, but on an installer it can be handy that the link opens in a new window so the installation isn't aborted.

Gábor Hojtsy’s picture

Status: Needs review » Needs work

1. I think its pretty excessive to have a test for this piece of link in core. I don't think we do this elsewhere either. I'd just drop the test.

2. As for the target attribute, it depends I guess, the goal was not to drive people out of the installer. We might or might not assume that much savvy from people. It is true most other links and buttons will not open in new tabs (or overlays) in Drupal, so we can remove that target probably, yeah.

attiks’s picture

Status: Needs work » Reviewed & tested by the community

Since the test is here, we can leave it.

Asking for a retest, but should be RTBC

attiks’s picture

#5: d8-1751380-5-tests-and-fix.patch queued for re-testing.

Gábor Hojtsy’s picture

FileSize
2.43 KB

I think having a test for the test's sake is not really useful. Tests run long enough :) Here is the same patch from #5 without the tests.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

Gábor Hojtsy’s picture

Issue tags: +D8MI, +language-ui

Thanks! Adding tags that should in fact have been there before.

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