Topic on Project:Support desk/Flow

translate : html span tag appears on translated page

2
Summary by Wladek92

closing subject with workaround; follow subject in Phabricator

Wladek92 (talkcontribs)

Hi all, I cannot understand why -> https://www.mediawiki.org/wiki/Manual:Image_authorization#Apache_Step_2._Execute_Script_img_auth.php_for_all_Accesses

shows normal display for EN page:

Apache Step 2. Execute Script img_auth.php for all Accesses[modifier]
Apache Step 2.1. Change $wgUploadPath in LocalSettings.php. This is not needed if  Apache step 2.2 is done.

but once translated, a span tag with following anchor appears on the FR page (a < p > tag is inserted before next title such as if its anchor were made redundant):

Apache étape 2. Executer le script img_auth.php pour tous les accès
<span id="Apache_Step_2.1._Change_$wgUploadPath_in_LocalSettings.php._This_is_not_needed_if_Apache_step_2.2_is_done.">
Apache étape 2.1. modifier $wgUploadPath dans LocalSettings.php. Pas utile si l'étape 2.2 Apache a été faite

Same problem for steps 4.1 and 4.2.

On the other side 4.3 and 4.4 are ok.

any idea ? Thanks -- Christian 🇫🇷 FR (talk) 10:30, 2 April 2023 (UTC)

Wladek92 (talkcontribs)

Applying Proposed workaround => ok now.

"This can be worked around by adding nowrap attribute for that translation unit"