mirror of
https://github.com/Squidly271/community.applications.git
synced 2025-06-03 14:52:13 +08:00
fixed: language pinning reverts button text to english
This commit is contained in:
parent
2376ef9454
commit
9f915f89e1
BIN
archive/community.applications-2023.12.30-x86_64-1.txz
Normal file
BIN
archive/community.applications-2023.12.30-x86_64-1.txz
Normal file
Binary file not shown.
@ -1621,9 +1621,12 @@ function checkPLGupdate() {
|
||||
function pinApp(button,repository,name) {
|
||||
$(button).toggleClass("pinned unpinned");
|
||||
var pinned = ( $(button).hasClass("unpinned") ) ? "<?tr("Click to pin this application")?>" : "<?tr("Click to unpin this application")?>";
|
||||
var pinnedText = ( $(button).hasClass("unpinned") ) ? "<?tr("Pin app")?>" : "<?tr("Unpin App")?>";
|
||||
$(button).attr('title',pinned);
|
||||
$(button).text(pinnedText);
|
||||
|
||||
var pin1 = $(button).text();
|
||||
var pin2 = $(button).data('pinnedalt');
|
||||
|
||||
$(button).text(pin2);
|
||||
$(button).data('pinnedalt',pin1);
|
||||
|
||||
var app = $.find(".pinnedCard[data-pindata='"+repository+name+"']");
|
||||
$(app).toggle("slow");
|
||||
|
@ -1,4 +1,4 @@
|
||||
e23a1f42a98de86535c5c42c243a8893 ./Apps.page
|
||||
a8a9b02b1af75c58962b46f8d59b98be ./Apps.page
|
||||
0987a65d249dbec3267b0f4a02aa975a ./CA_notices.page
|
||||
2c2a1b7d148fe51ee38813d1a0e71589 ./ca_settings.page
|
||||
01ed7990078dee7cecfeda9a4e49377e ./default.cfg
|
||||
@ -22,5 +22,5 @@ a1cb6e1930f2ad689ce9e7fc2e39c846 ./scripts/notices.php
|
||||
52355989c2bec01cfd55fe619588a033 ./scripts/updatePluginSupport.php
|
||||
b4e3802d0ddeaf20cdd1b001dab3eeb8 ./skins/Narrow/css.php
|
||||
89953dddd75450915c0294a276d331bb ./skins/Narrow/skin.html
|
||||
709c9c3fbce2310b3e1e435c80881485 ./skins/Narrow/skin.php
|
||||
16c7d98870049d187d55fb953d2fe2b5 ./skins/Narrow/skin.php
|
||||
c26b187a50c966adff7bfb9cab6fca16 ./event/disks_mounted
|
||||
|
@ -876,10 +876,12 @@ function getPopupDescriptionSkin($appNumber) {
|
||||
|
||||
if ( $pinnedApps["{$template['Repository']}&{$template['SortName']}"] ?? false ) {
|
||||
$template['pinned'] = tr("Unpin App");
|
||||
$template['pinnedAlt'] = tr("Pin App");
|
||||
$template['pinnedTitle'] = tr("Click to unpin this application");
|
||||
$template['pinnedClass'] = "pinned";
|
||||
} else {
|
||||
$template['pinned'] = tr("Pin App");
|
||||
$template['pinnedAlt'] = tr("Unpin App");
|
||||
$template['pinnedTitle'] = tr("Click to pin this application");
|
||||
$template['pinnedClass'] = "unpinned";
|
||||
}
|
||||
@ -1481,7 +1483,7 @@ function displayPopup($template) {
|
||||
$card.= "<div class='supportPopup' id='supportPopup'><span class='ca_fa-support'> ".tr("Support")."</div>";
|
||||
|
||||
$NoPin = $NoPin ?? false;
|
||||
$card .= ($LanguagePack != "en_US" && ! $Blacklist && ! $NoPin) ? "<div class='pinPopup $pinnedClass' title='$pinnedTitle' data-repository='$Repository' data-name='$SortName'><span>$pinned</span></div>" : "";
|
||||
$card .= ($LanguagePack != "en_US" && ! $Blacklist && ! $NoPin) ? "<div class='pinPopup $pinnedClass' title='$pinnedTitle' data-pinnedalt='$pinnedAlt' data-repository='$Repository' data-name='$SortName'><span>$pinned</span></div>" : "";
|
||||
if ( ! $caSettings['dockerRunning'] && (! $Plugin && ! $Language) ) {
|
||||
$card .= "<div class='ca_red'>".tr("Docker Service Not Enabled - Only Plugins Available To Be Installed Or Managed")."</div>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user