There is 1 update, 3 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d4431468-da67-409f-8f3b-245529317309 XWIKI-18718 Open

Additional unnecessary characters displayed in warning message when editing a subwiki descriptor from Administration

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-3fa2b6c1-4702-4761-b266-cb82b18079a1 Changes by Nikita Petrenko on 14/Aug/25 12:09
 
Assignee: Nikita Petrenko
 
 

3 comments

 
cid:jira-generated-image-avatar-3fa2b6c1-4702-4761-b266-cb82b18079a1 Nikita Petrenko on 14/Aug/25 12:07
 

So, this issue is easily solved by fixing the original translation by replacing '
n' with '\n'. Instead of calling replace or replaceAll method in the speed code because you will end up with a simple 'n' character. You can see that some languages translated by the community contain a single '\n' character and the JS popup will display two lines of text.

 
cid:jira-generated-image-avatar-3fa2b6c1-4702-4761-b266-cb82b18079a1 Nikita Petrenko on 14/Aug/25 12:08
 
So, this issue is easily solved by fixing the original translation by replacing '\\n' with '\n'. Instead of calling replace or replaceAll method in the speed code because you will end up with a simple 'n' character. You can see that some [languages|https://github.com/search?q=repo%3Axwiki%2Fxwiki-platform+platform.wiki.admin.wiki.ownerProblemConfirmation&type=code] translated by the community contain a single '\n' character and the JS popup will display two lines of text.
 
cid:jira-generated-image-avatar-3fa2b6c1-4702-4761-b266-cb82b18079a1 Nikita Petrenko on 14/Aug/25 12:09
 
So, this issue is easily solved by fixing the original translation by replacing '  
{noformat}
\\n ' {noformat}

with '  
{noformat}
\n ' {noformat}
. Instead of calling replace or replaceAll method in the speed code because you will end up with a simple 'n' character. You can see that some [languages|https://github.com/search?q=repo%3Axwiki%2Fxwiki-platform+platform.wiki.admin.wiki.ownerProblemConfirmation&type=code] correctly translated by the community contain a single '\n' character and the JS popup will display two lines of text.