mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 22:05:46 +01:00
Move some more message strings to the properties file.
This commit is contained in:
@@ -205,7 +205,7 @@ var Config = Module("config", ConfigBase, {
|
||||
let title = document.getElementById("sidebar-title");
|
||||
|
||||
dactyl.assert(args.length || title.value || args.bang && config.lastSidebar,
|
||||
"Argument required");
|
||||
_("error.argumentRequired"));
|
||||
|
||||
if (!args.length)
|
||||
return window.toggleSidebar(title.value ? null : config.lastSidebar);
|
||||
@@ -227,7 +227,7 @@ var Config = Module("config", ConfigBase, {
|
||||
return;
|
||||
}
|
||||
|
||||
return dactyl.echoerr("No sidebar " + args[0] + " found");
|
||||
return dactyl.echoerr(_("error.invalidArgument", args[0]));
|
||||
},
|
||||
{
|
||||
argCount: "?",
|
||||
|
||||
2
pentadactyl/locale/en-US/messages.properties
Normal file
2
pentadactyl/locale/en-US/messages.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
# vim:se ft=jproperties tw=0:
|
||||
Reference in New Issue
Block a user