File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ protected void openProcessSelection() {
281
281
VirtualMachine vm = null ;
282
282
try {
283
283
if (list .isEmpty ()) {
284
- String pid = JOptionPane .showInputDialog ("Couldn't find any VM's! Enter your process id." );
284
+ String pid = JOptionPane .showInputDialog (JByteMod . res . getResource ( "no_vm_found" ) );
285
285
if (pid != null && !pid .isEmpty ()) {
286
286
vm = AttachUtils .getVirtualMachine (Integer .parseInt (pid ));
287
287
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ protected Void doInBackground() throws Exception {
45
45
46
46
File self = new File (JByteMod .class .getProtectionDomain ().getCodeSource ().getLocation ().toURI ().getPath ());
47
47
if (self .getAbsolutePath ().endsWith (".jar" )) {
48
- JOptionPane .showMessageDialog (null , "Injecting... this could take a while." );
48
+ JOptionPane .showMessageDialog (null , JByteMod . res . getResource ( "injecting_msg" ) );
49
49
JarFile jbytemod = new JarFile (self );
50
50
double size = countFiles (jbytemod );
51
51
ZipOutputStream output = new ZipOutputStream (new FileOutputStream (temp ));
@@ -75,7 +75,7 @@ protected Void doInBackground() throws Exception {
75
75
vm .loadAgent (temp .getAbsolutePath (), self .getParent ());
76
76
temp .deleteOnExit ();
77
77
} else {
78
- JOptionPane .showMessageDialog (null , "Couldn't find itself as jar!" );
78
+ JOptionPane .showMessageDialog (null , JByteMod . res . getResource ( "no_jar_found" ) );
79
79
}
80
80
publish (100 );
81
81
return null ;
Original file line number Diff line number Diff line change 92
92
<string name =" max_redundant_input" >Max inputs for redundant blocks</string >
93
93
<string name =" set_py_path" >Please try setting the python path</string >
94
94
<string name =" python_path" >Python path</string >
95
+ <string name =" injecting_msg" >Injecting... this could take a while.</string >
96
+ <string name =" no_jar_found" >Couldn't find itself as jar!</string >
97
+ <string name =" no_vm_found" >Couldn't find any VM's! Enter your process id.</string >
95
98
</resources >
96
99
You can’t perform that action at this time.
0 commit comments