Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kdecapplet@joejoetv: Update translation files and cleanup unnecessary file #6478

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
26 changes: 26 additions & 0 deletions kdecapplet@joejoetv/files/kdecapplet@joejoetv/js/dummy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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 {
// This dummy file is used to make sure that some strings get picked up for
// translation and doesn't have any other usecase in the project currently.
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