Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions diskspace@schorschii/files/diskspace@schorschii/desklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,23 @@ MyDesklet.prototype = {

let textSub1 = "";
let textSub2 = "";
let name = "";
if(type == "ram") {
name = this.shortText(_("RAM"));
} else if(type == "swap") {
name = this.shortText(_("Swap"));
} else if(fs == "/") {
name = this.shortText(_("Filesystem"));
} else {
let pathparts = fs.split("/");
name = this.shortText(pathparts[pathparts.length-1]);
}
if(this.text_view == "name-size") {
if(type == "ram") {
textSub1 = this.shortText(_("RAM"));
} else if(type == "swap") {
textSub1 = this.shortText(_("Swap"));
} else if(fs == "/") {
textSub1 = this.shortText(_("Filesystem"));
} else {
let pathparts = fs.split("/");
textSub1 = this.shortText(pathparts[pathparts.length-1]);
}
textSub1 = name;
textSub2 = this.niceSize(size);
} else if(this.text_view == "name-free") {
textSub1 = name;
textSub2 = this.niceSize(avail);
} else if(this.text_view == "used-size") {
textSub1 = this.niceSize(use);
textSub2 = this.niceSize(size);
Expand Down
7 changes: 4 additions & 3 deletions diskspace@schorschii/files/diskspace@schorschii/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"max-instances": "10",
"description": "Displays the usage of a filesystem or RAM.",
"name": "Disk Space",
"version": "1.17",
"uuid": "diskspace@schorschii"
}
"version": "1.18",
"uuid": "diskspace@schorschii",
"author": "schorschii"
}
21 changes: 13 additions & 8 deletions diskspace@schorschii/files/diskspace@schorschii/po/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/"
"issues\n"
"POT-Creation-Date: 2024-05-15 11:44+0200\n"
"POT-Creation-Date: 2025-07-31 12:29-0400\n"
"PO-Revision-Date: 2024-05-15 12:14+0200\n"
"Last-Translator: Daniel <d3vf4n (at) tutanota (dot) com>\n"
"Language-Team: \n"
Expand All @@ -22,26 +22,26 @@ msgstr ""
"X-Poedit-SearchPath-1: settings-schema.json\n"

#. settings-schema.json->type->options
#: desklet.js:275 desklet.js:356
#. desklet.js:275 desklet.js:361
msgid "RAM"
msgstr "RAM"

#. settings-schema.json->type->options
#: desklet.js:277 desklet.js:358
#. desklet.js:277 desklet.js:363
msgid "Swap"
msgstr "Memòria d'intercanvi"

#. settings-schema.json->type->options
#: desklet.js:279
#. desklet.js:279
msgid "Filesystem"
msgstr "Sistema de fitxers"

#: desklet.js:301
#. desklet.js:306
msgid "Not Found"
msgstr "No s'ha trobat"

#. metadata.json->name
#: desklet.js:360
#. desklet.js:365
msgid "Disk Space"
msgstr "Espai de disc"

Expand Down Expand Up @@ -120,8 +120,8 @@ msgid ""
"Reserved blocks are useable for the root user only and that's why displayed "
"as used space by default."
msgstr ""
"Els blocs reservats son exclusius del superusuari (root), per això es "
"mostra com espai utilitzat per omissió."
"Els blocs reservats son exclusius del superusuari (root), per això es mostra "
"com espai utilitzat per omissió."

#. settings-schema.json->head2->description
msgid "Visual"
Expand Down Expand Up @@ -151,6 +151,11 @@ msgstr "Text"
msgid "Name and total space"
msgstr "Nom i mida total"

#. settings-schema.json->text-view->options
#, fuzzy
msgid "Name and free space"
msgstr "Espai lliure i total"

#. settings-schema.json->text-view->options
msgid "Used and total space"
msgstr "Espai utilitzat i total"
Expand Down
20 changes: 13 additions & 7 deletions diskspace@schorschii/files/diskspace@schorschii/po/da.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-06 01:23+0300\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-desklets/"
"issues\n"
"POT-Creation-Date: 2025-07-31 12:29-0400\n"
"PO-Revision-Date: 2023-12-08 07:38+0100\n"
"Last-Translator: Alan Mortensen <alanmortensen.am@gmail.com>\n"
"Language-Team: Dansk-gruppen <dansk@dansk-gruppen.dk>\n"
Expand All @@ -17,26 +18,26 @@ msgstr ""
"X-Poedit-SearchPath-1: settings-schema.json\n"

#. settings-schema.json->type->options
#: desklet.js:275 desklet.js:356
#. desklet.js:275 desklet.js:361
msgid "RAM"
msgstr "RAM"

#. settings-schema.json->type->options
#: desklet.js:277 desklet.js:358
#. desklet.js:277 desklet.js:363
msgid "Swap"
msgstr "Swap"

#. settings-schema.json->type->options
#: desklet.js:279
#. desklet.js:279
msgid "Filesystem"
msgstr "Filsystem"

#: desklet.js:301
#. desklet.js:306
msgid "Not Found"
msgstr "Ikke fundet"

#. metadata.json->name
#: desklet.js:360
#. desklet.js:365
msgid "Disk Space"
msgstr "Diskplads"

Expand Down Expand Up @@ -144,6 +145,11 @@ msgstr "Tekst"
msgid "Name and total space"
msgstr "Navn og total plads"

#. settings-schema.json->text-view->options
#, fuzzy
msgid "Name and free space"
msgstr "Total og ledig plads"

#. settings-schema.json->text-view->options
msgid "Used and total space"
msgstr "Brugt og total plads"
Expand Down
Loading