Skip to content

Commit 0223966

Browse files
committed
kdecapplet@joejoetv: Update translation files and cleanup unnecessary file
1 parent 97104d9 commit 0223966

File tree

15 files changed

+1447
-1519
lines changed

15 files changed

+1447
-1519
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const GLib = imports.gi.GLib;
2+
const Gettext = imports.gettext;
3+
4+
const CommonUtils = require("./js/commonUtils.js");
5+
6+
// l10n support
7+
Gettext.bindtextdomain(CommonUtils.UUID, GLib.get_home_dir() + "/.local/share/locale");
8+
9+
function _(str) {
10+
return Gettext.dgettext(CommonUtils.UUID, str);
11+
}
12+
13+
class Dummy {
14+
// These are defined here so that they will be translated
15+
static DISPLAY_NAME = _("Battery Module");
16+
static DISPLAY_NAME = _("Connectivity Module");
17+
static DISPLAY_NAME = _("Device-Info Module");
18+
static DISPLAY_NAME = _("FindMyPhone Module");
19+
static DISPLAY_NAME = _("Module");
20+
static DISPLAY_NAME = _("Ping Module");
21+
static DISPLAY_NAME = _("Request Photo Module");
22+
static DISPLAY_NAME = _("SFTP Module");
23+
static DISPLAY_NAME = _("SMS Module");
24+
static DISPLAY_NAME = _("Share Module");
25+
}

kdecapplet@joejoetv/files/kdecapplet@joejoetv/js/modules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,4 +1534,4 @@ function modulesByType(moduleType) {
15341534
});
15351535

15361536
return filteredModules;
1537-
}
1537+
}

0 commit comments

Comments
 (0)