Skip to content

Commit

Permalink
kdecapplet@joejoetv: Update translation files and cleanup unnecessary…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
rcalixte committed Oct 10, 2024
1 parent 97104d9 commit 0223966
Show file tree
Hide file tree
Showing 15 changed files with 1,447 additions and 1,519 deletions.
25 changes: 25 additions & 0 deletions kdecapplet@joejoetv/files/kdecapplet@joejoetv/js/dummy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const GLib = imports.gi.GLib;
const Gettext = imports.gettext;

const CommonUtils = require("./js/commonUtils.js");

// l10n support
Gettext.bindtextdomain(CommonUtils.UUID, GLib.get_home_dir() + "/.local/share/locale");

function _(str) {
return Gettext.dgettext(CommonUtils.UUID, str);
}

class Dummy {
// These are defined here so that they will be translated
static DISPLAY_NAME = _("Battery Module");
static DISPLAY_NAME = _("Connectivity Module");
static DISPLAY_NAME = _("Device-Info Module");
static DISPLAY_NAME = _("FindMyPhone Module");
static DISPLAY_NAME = _("Module");
static DISPLAY_NAME = _("Ping Module");
static DISPLAY_NAME = _("Request Photo Module");
static DISPLAY_NAME = _("SFTP Module");
static DISPLAY_NAME = _("SMS Module");
static DISPLAY_NAME = _("Share Module");
}
Original file line number Diff line number Diff line change
Expand Up @@ -1534,4 +1534,4 @@ function modulesByType(moduleType) {
});

return filteredModules;
}
}
Loading

0 comments on commit 0223966

Please sign in to comment.