There is the word "inhalt" forced to lowercase. I guess it's "Inhalt" with an lcase() function, what is incorrect. This is a context sensitive bug and need to be made one translatable string like Add URL redirect to this content.

<a href="/admin/config/search/redirect/add?redirect=node/51&amp;language=und&amp;destination=node/51/edit">Add URL redirect to this inhalt</a>

Comments

dave reid’s picture

Status: Active » Closed (works as designed)

We are not able to make it translatable in that context because the actual string is "Add URL redirect to this @entity" where @entity is a variable. We do not know all possible entity types.

hass’s picture

Status: Closed (works as designed) » Active

Than you need to leave the string as is, but forcing it lowercase is plain wrong in nearly every language except English.

dave reid’s picture

Patches welcome then.

hass’s picture

The best would be to remove the variable if we cannot translate it.

hass’s picture

Title: Context sensitive translation bug » Translatable string review
Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new5.88 KB

As discussed earlier I have synchronized the link to be generic. It is used 3 times in this modules so the Add URL redirect string is re-used.

Changing title and attaching a larger translatable review patch.

Status: Needs review » Needs work

The last submitted patch, 1712062_redirect_Translatable+string+review.patch, failed testing.

hass’s picture

Status: Needs work » Needs review
StatusFileSize
new6.39 KB

Fixed test

torotil’s picture

Status: Needs review » Reviewed & tested by the community

Changes in the strings look good. It still applies as is. Setting it to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 7: 1712062_redirect_Translatable+string+review2.patch, failed testing.

dave reid’s picture

tomsegarra’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new5.82 KB

I've re-rolled the patch from #7 so that it applies to the latest HEAD. Since it was RTBC before, and a small typographical fix committed to the 7.x-1.x branch was all that broke it, I'm marking it as RTBC again.

pifagor’s picture

Status: Reviewed & tested by the community » Needs review

The author of the patch should not display the status "Reviewed & tested by the community"

hass’s picture

Status: Needs review » Reviewed & tested by the community

As it was only reroled and a small fix this is acceptable. Waiting 6 years is not acceptable.

pifagor’s picture

  • pifagor committed bd16959 on 7.x-2.x authored by tomsegarra
    Issue #1712062 by hass, tomsegarra, Dave Reid, pifagor, torotil:...

  • pifagor committed b75d587 on 7.x-1.x
    Issue #1712062 by hass, tomsegarra, Dave Reid, pifagor, torotil:...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed
hass’s picture

Authored by me. Thanks for not giving credit.

pifagor’s picture

StatusFileSize
new129.34 KB
new52.65 KB

https://www.drupal.org/files/issues/2018-10-28/Selection_057.png - Sorry, I copied the comment, where you are not listed by the author.
I gave you credit - https://www.drupal.org/files/issues/2018-10-28/Selection_058.png

hass’s picture

See "authored by". It is wrong.

pifagor’s picture

You wrote that I did not give you credit. It's not true you got credit. Yes, you are not the author of the patch because I copied the text from the "Git command" column.
As far as I understand, the system put the author's patch "tomsegarra" because he last changed the patch.

Now I can not change anything, sorry. But dissatisfaction should be expressed not to me, but to the system drupal.org, because it makes the author patch the person who the last changed the patch.

Thank you for your contribution to the development of drupal.org

hass’s picture

I wrote the patch and tomsegarra only re-roled. Who do you think is the author of the code? tomsegarra is not.

In core we rollback and re-commit in such a case. No need for this action now, but please look more carefully into the case history before you commit patches in future.

pifagor’s picture

Of course. Thank you for your comments.

Status: Fixed » Closed (fixed)

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