User tests: Successful: Unsuccessful:
Pull Request for Issue #29748
Allow translation of Content Security Policy
in the fieldset label as this is not the code part but the concept itself.
Comment added is
; Please do not translate (CSP) in the following language string
as this shorthand is common to all languages.
Enable debug lang
Load csp administrator/index.php?option=com_config&view=component&component=com_csp
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_csp Language & Strings |
Afaik that one is not translatable. We can change the fieldset label to take off hyphens but I would not create a lang string. Have also to check rtl.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
rtc
Labels |
Added:
?
?
|
Category | Administration com_csp Language & Strings | ⇒ | Administration com_csp Language & Strings Front End Plugins |
When i'm requested to leave my comments here it is but this is just my personal opinion. Up to the merging maintainer to take the final decision. In my opinion this is a technical term and we should not suggest the translators to translate it.
I understand your comment.
The solution is to NEVER use the term without hyphens, which means that it also has to be modified in each string and comment should be added to NEVER translate it.
For example:
COM_CSP_AUTO_UNSAFE_EVAL_WARNING="You have configured a rule that still allows 'unsafe-eval' that bypasses the Content Security Policy and allows the execution of code injected into DOM APIs such as eval()."
should be
COM_CSP_AUTO_UNSAFE_EVAL_WARNING="You have configured a rule that still allows 'unsafe-eval' that bypasses the Content-Security-Policy and allows the execution of code injected into DOM APIs such as eval()."
COM_CSP_CONTENTSECURITYPOLICY="<a href='https://scotthelme.co.uk/content-security-policy-an-introduction' target='_blank' rel='noopener noreferrer'>Content Security Policy (CSP)</a>"
to
COM_CSP_CONTENTSECURITYPOLICY="<a href='https://scotthelme.co.uk/content-security-policy-an-introduction' target='_blank' rel='noopener noreferrer'>Content-Security-Policy (CSP)</a>"
and
COM_CSP_FILTER_SEARCH_LABEL="Search Content Security Policy Reports"
to
COM_CSP_FILTER_SEARCH_LABEL="Search Content-Security-Policy Reports"
I am closing this now.
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-06-24 06:40:18 |
Closed_By | ⇒ | infograf768 | |
Labels |
Added:
?
|
I have tested this item✅ successfully on 5f0a1d3
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29768.