diff --git a/core/ormdocument.class.inc.php b/core/ormdocument.class.inc.php index 337b686e0..24b0c2d15 100644 --- a/core/ormdocument.class.inc.php +++ b/core/ormdocument.class.inc.php @@ -167,7 +167,9 @@ class ormDocument $data = $this->GetData(); $sSize = utils::BytesToFriendlyFormat(strlen($data)); $iDownloadsCount = $this->GetDownloadsCount(); - $sResult = utils::EscapeHtml($this->GetFileName()).' ('.$sSize.' / '.$iDownloadsCount.' )
'; + $sDownloadsCountForHtml = utils::HtmlEntities(Dict::Format('Core:ormValue:ormDocument:DownloadsCount', $iDownloadsCount)); + $sDownloadsCountTooltipForHtml = utils::HtmlEntities(Dict::Format('Core:ormValue:ormDocument:DownloadsCount+', $iDownloadsCount)); + $sResult = utils::EscapeHtml($this->GetFileName()).' ('.$sSize.' / '.$sDownloadsCountForHtml.' )
'; } return $sResult; } diff --git a/dictionaries/core/orm-value/orm-document/en.dictionary.itop.orm-document.php b/dictionaries/core/orm-value/orm-document/en.dictionary.itop.orm-document.php new file mode 100644 index 000000000..b4de0f8c1 --- /dev/null +++ b/dictionaries/core/orm-value/orm-document/en.dictionary.itop.orm-document.php @@ -0,0 +1,27 @@ + + */ + +Dict::Add('EN US', 'English', 'English', [ + 'Core:ormValue:ormDocument:DownloadsCount' => '%1s', + 'Core:ormValue:ormDocument:DownloadsCount+' => 'Downloaded %1$s time(s)', +]); diff --git a/dictionaries/core/orm-value/orm-document/fr.dictionary.itop.orm-document.php b/dictionaries/core/orm-value/orm-document/fr.dictionary.itop.orm-document.php new file mode 100644 index 000000000..7a805192b --- /dev/null +++ b/dictionaries/core/orm-value/orm-document/fr.dictionary.itop.orm-document.php @@ -0,0 +1,27 @@ + + */ + +Dict::Add('FR FR', 'French', 'Français', [ + 'Core:ormValue:ormDocument:DownloadsCount' => '%1s', + 'Core:ormValue:ormDocument:DownloadsCount+' => 'Téléchargé %1$s fois', +]);