N°5625 Fix crash when opening DocumentFile in ES language

Regression introduced in 3.0.1 with a merge : 67fa156c
The % was removed in 530ec111 but we kept the call to Dict::Format, and the merge restored the % in ES dict

A larger fix will be done later with N°5491
This commit is contained in:
Pierre Goiffon
2022-10-20 16:46:37 +02:00
parent 87db88254b
commit 4b670cfa90
3 changed files with 4 additions and 4 deletions

View File

@@ -3667,7 +3667,7 @@ HTML;
$sDisplayLabel = Dict::S('UI:OpenDocumentInNewWindow_');
$sDisplayUrl = $oDocument->GetDisplayURL(get_class($this), $this->GetKey(), $sAttCode);
$sDownloadLabel = Dict::Format('UI:DownloadDocument_');
$sDownloadLabel = Dict::S('UI:DownloadDocument_');
$sDownloadUrl = $oDocument->GetDownloadURL(get_class($this), $this->GetKey(), $sAttCode);
$sDisplayValue = <<<HTML

View File

@@ -472,7 +472,7 @@ class CMDBChangeOpSetAttributeBlob extends CMDBChangeOpSetAttribute
$sDisplayLabel = Dict::S('UI:OpenDocumentInNewWindow_');
$sDisplayUrl = $oPrevDoc->GetDisplayURL(get_class($this), $this->GetKey(), 'prevdata');
$sDownloadLabel = Dict::Format('UI:DownloadDocument_');
$sDownloadLabel = Dict::S('UI:DownloadDocument_');
$sDownloadUrl = $oPrevDoc->GetDownloadURL(get_class($this), $this->GetKey(), 'prevdata');
$sDocView = <<<HTML

View File

@@ -1053,8 +1053,8 @@ Cuando se asocien con un disparador, cada acción recibe un número de "orden",
'UI:iTopVersion:Long' => '%1$s versión %2$s-%3$s compilada en %4$s',
'UI:PropertiesTab' => 'Propiedades',
'UI:OpenDocumentInNewWindow_' => 'Abra este documento en una ventana nueva: %1$s',
'UI:DownloadDocument_' => 'Descargue este documento: %1$s',
'UI:OpenDocumentInNewWindow_' => 'Abrir~~',
'UI:DownloadDocument_' => 'Descargar~~',
'UI:Document:NoPreview' => 'No hay prevista disponible para este tipo de archivo',
'UI:Download-CSV' => 'Descargar %1$s',