We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68096ac commit 253be13Copy full SHA for 253be13
src/main/java/me/coley/recaf/plugin/PluginFolderSource.java
@@ -3,6 +3,7 @@
3
import me.coley.recaf.Recaf;
4
import me.coley.recaf.plugin.api.BasePlugin;
5
import me.coley.recaf.util.IOUtil;
6
+import me.coley.recaf.util.LangUtil;
7
import me.coley.recaf.util.VMUtil;
8
import org.objectweb.asm.ClassReader;
9
import org.plugface.core.PluginSource;
@@ -75,6 +76,10 @@ else if(entry.getName().endsWith("icon.png")) {
75
76
BufferedImage image = ImageIO.read(jar.getInputStream(entry));
77
pluginIcons.put(pluginPath, image);
78
}
79
+ // Check for translation files
80
+ else if(entry.getName().endsWith(LangUtil.DEFAULT_LANGUAGE + ".json")){
81
+ LangUtil.load(jar.getInputStream(entry));
82
+ }
83
84
} catch(IOException ex) {
85
throw new PluginLoadException(path, ex, "Failed to load jar file");
0 commit comments