Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XWIKI-22205: Underline inline link in CSRF confirmation Panel #3200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Jun 12, 2024

Jira URL

https://jira.xwiki.org/browse/XWIKI-22205

Changes

Description

  • Fixed all the translation values by adding a class to force this specific link to be underlined.

Clarifications

  • This translation breaks a lot of our translation rules, but reworking it (and probably deprecating the old translation key) is out of the scope of this PR. I decided to update all the instances of this translation instead. It was possible to figure out what markup needs an update whatever the language, so this solution seemed correct.

Screenshots & Video

None.

Executed Tests

None. This is a style only change with a very low scope.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None

* Fixed all the translation values by adding a class to force this specific link to be underlined.
@@ -3576,7 +3576,7 @@ platform.index.attachments.emptyvalue=
### Missing: XWiki.SearchSuggestSourceClass_activated.hint=Whether this source is used or not (as long as the source search engine matches the search engine used by the current wiki).

### CSRFToken resources
### Missing: csrf.confirmation=<p>This request contains an invalid authentication information.</p><p>This might happen in the following situations:</p><ul><li>You left the editor open in another window/tab and logged off and on again</li><li>Your authentication token expired after a long period of inactivity</li><li>Somebody tried to perform a CSRF attack</li></ul><p>If you are sure that none of these situations apply in your case, you might have found a bug. We are sorry about that, please report it on <a href="http://jira.xwiki.org/">XWiki JIRA</a></p><p>Do you want to resend the request? If unsure, say <strong>No</strong>.</p>
### Missing: csrf.confirmation=<p>This request contains an invalid authentication information.</p><p>This might happen in the following situations:</p><ul><li>You left the editor open in another window/tab and logged off and on again</li><li>Your authentication token expired after a long period of inactivity</li><li>Somebody tried to perform a CSRF attack</li></ul><p class="force-underline">If you are sure that none of these situations apply in your case, you might have found a bug. We are sorry about that, please report it on <a href="http://jira.xwiki.org/">XWiki JIRA</a></p><p>Do you want to resend the request? If unsure, say <strong>No</strong>.</p>
Copy link
Member

@surli surli Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to edit other translations file when it's about a missing key and you actually shouldn't: those are commented so they aren't used.

Copy link
Member

@surli surli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd really won't go towards this solution. The translation is already bad and adding the class is really not improving anything. I prefer we keep having the bug and we fix once for all the translations to get rid of all html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants