Fixed: docker hub searches "no description present" couldn't be translated

This commit is contained in:
Squidly271 2022-02-26 16:30:46 -05:00
parent c167dd21c5
commit 14a1fe27c5
2 changed files with 2 additions and 2 deletions

View File

@ -20,4 +20,4 @@ e19c8f05c687dcf03ea0ba2ed7099a6e ./scripts/showStatistics.php
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
2da35d3042b93459f171595811d534b3 ./skins/Narrow/css.php
e9244df3418ca3e7fa206d9b6e94c6b1 ./skins/Narrow/skin.html
3bcb5017802a2db26aa347ae4f0d84c9 ./skins/Narrow/skin.php
0d179377fb4a5e8ddc940a0fd1342cb4 ./skins/Narrow/skin.php

View File

@ -874,7 +874,7 @@ function displaySearchResults($pageNumber) {
$result['Icon'] = "/plugins/dynamix.docker.manager/images/question.png";
$result['display_dockerName'] = "<a class='ca_tooltip ca_applicationName' style='cursor:pointer;' onclick='mySearch(this.innerText);' title='".tr("Search for similar containers")."'>{$result['Name']}</a>";
$result['Category'] = "Docker&nbsp;Hub&nbsp;Search";
$result['Description'] = $result['Description'] ?: "No description present";
$result['Description'] = $result['Description'] ?: tr("No description present");
$result['Compatible'] = true;
$result['actionsContext'] = [["icon"=>"ca_fa-install","text"=>tr("Install"),"action"=>"dockerConvert({$result['ID']});"]];