mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
Support translations on card of xxx's Repository
This commit is contained in:
parent
c6bed48d5d
commit
152900f9cc
Binary file not shown.
@ -21,4 +21,4 @@ da3b4f9b73c5c3bf65be6c42d68b51f9 ./scripts/showStatistics.php
|
||||
34554a56611dfe625889c82afd5138de ./scripts/updatePluginSupport.php
|
||||
ce8e45452d3b63b5943b6f39c817bbf9 ./skins/Narrow/css.php
|
||||
c4d6ce8de3baff1c9de2b7f348b2f340 ./skins/Narrow/skin.html
|
||||
cc864ef9b8da7a6d5617ab92e84911a3 ./skins/Narrow/skin.php
|
||||
5b47ca7ed1c65742bdbb663747e51ec5 ./skins/Narrow/skin.php
|
||||
|
@ -112,7 +112,7 @@ function my_display_apps($file,$pageNumber=1,$selectedApps=false,$startup=false)
|
||||
$niceRepoName = str_replace("'s Repository","",$template['RepoName']);
|
||||
$niceRepoName = str_replace("' Repository","",$niceRepoName);
|
||||
$niceRepoName = str_replace(" Repository","",$niceRepoName);
|
||||
$favMsg = ($favClass == "ca_favouriteRepo") ? tr("Click to remove favourite repository") : tr(sprintf("Click to set %s as favourite repository",$niceRepoName));
|
||||
// $favMsg = ($favClass == "ca_favouriteRepo") ? tr("Click to remove favourite repository") : tr(sprintf("Click to set %s as favourite repository",$niceRepoName));
|
||||
|
||||
$ct .= displayCard($template);
|
||||
$count++;
|
||||
@ -1039,11 +1039,20 @@ function displayCard($template) {
|
||||
else
|
||||
$author = $Author;
|
||||
|
||||
if ( $Plugin )
|
||||
/* if ( $Plugin )
|
||||
$author = $Author;
|
||||
if ( $Language )
|
||||
$author = "Unraid";
|
||||
|
||||
$author = "Unraid"; */
|
||||
|
||||
if ( $author == $RepoName ) {
|
||||
if (strpos($author,"' Repository") )
|
||||
$author = sprintf(tr("%s's Repository"),str_replace("' Repository","",$author));
|
||||
elseif (strpos($author,"'s Repository"))
|
||||
$author = sprintf(tr("%s's Repository"),str_replace("'s Repository","",$author));
|
||||
elseif (strpos($author," Repository") )
|
||||
$author = sprintf(tr("%s Repository"),str_replace(" Repository","",$author));
|
||||
}
|
||||
|
||||
if ( !$RepositoryTemplate ) {
|
||||
$cardClass = "ca_appPopup";
|
||||
$supportContext = array();
|
||||
@ -1079,7 +1088,7 @@ function displayCard($template) {
|
||||
$author = "";
|
||||
}
|
||||
|
||||
$display_repoName = str_replace("' Repository","",str_replace("'s Repository","",$display_repoName));
|
||||
// $display_repoName = str_replace("' Repository","",str_replace("'s Repository","",$display_repoName));
|
||||
|
||||
$bottomClass = "ca_bottomLineSpotLight";
|
||||
if ( $DockerHub ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user