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 a8c684e
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 only defined here so that they will be translated
let mod01 = _("Battery Module");
let mod02 = _("Connectivity Module");
let mod03 = _("Device-Info Module");
let mod04 = _("FindMyPhone Module");
let mod05 = _("Module");
let mod06 = _("Ping Module");
let mod07 = _("Request Photo Module");
let mod08 = _("SFTP Module");
let mod09 = _("SMS Module");
let mod10 = _("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 a8c684e

Please sign in to comment.