diff options
| author | 2020-03-05 22:17:08 +0000 | |
|---|---|---|
| committer | 2020-03-05 22:17:08 +0000 | |
| commit | 863d40a1c1f6591ef1ee8594b12ae4b0942fe810 (patch) | |
| tree | 614c0e3bc842e1ab50413dcc18b450c96224db10 /src/main/java/cuchaz/enigma/analysis | |
| parent | Fix drop mappings not checking localVars (diff) | |
| download | enigma-fork-863d40a1c1f6591ef1ee8594b12ae4b0942fe810.tar.gz enigma-fork-863d40a1c1f6591ef1ee8594b12ae4b0942fe810.tar.xz enigma-fork-863d40a1c1f6591ef1ee8594b12ae4b0942fe810.zip | |
Made Enigma gui translatable (#193)
* made enigma gui translatable
* key renamings
* missed strings
* string.format() & another missed string
* cached content (thanks @liach)
* added a dialog when changing language
* better sentence
* more %s
* liach's requests
* empty map
* the last (?) missed strings
* IT WORKS
* French translation
* Update fr_fr.json
Diffstat (limited to 'src/main/java/cuchaz/enigma/analysis')
| -rw-r--r-- | src/main/java/cuchaz/enigma/analysis/index/JarIndex.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java b/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java index 8e92dd8..c96e774 100644 --- a/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java +++ b/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java | |||
| @@ -20,6 +20,8 @@ import cuchaz.enigma.translation.mapping.EntryResolver; | |||
| 20 | import cuchaz.enigma.translation.mapping.IndexEntryResolver; | 20 | import cuchaz.enigma.translation.mapping.IndexEntryResolver; |
| 21 | import cuchaz.enigma.translation.representation.Lambda; | 21 | import cuchaz.enigma.translation.representation.Lambda; |
| 22 | import cuchaz.enigma.translation.representation.entry.*; | 22 | import cuchaz.enigma.translation.representation.entry.*; |
| 23 | import cuchaz.enigma.utils.I18n; | ||
| 24 | |||
| 23 | import org.objectweb.asm.ClassReader; | 25 | import org.objectweb.asm.ClassReader; |
| 24 | import org.objectweb.asm.Opcodes; | 26 | import org.objectweb.asm.Opcodes; |
| 25 | 27 | ||
| @@ -58,18 +60,18 @@ public class JarIndex implements JarIndexer { | |||
| 58 | } | 60 | } |
| 59 | 61 | ||
| 60 | public void indexJar(ClassCache classCache, ProgressListener progress) { | 62 | public void indexJar(ClassCache classCache, ProgressListener progress) { |
| 61 | progress.init(4, "Indexing jar"); | 63 | progress.init(4, I18n.translate("progress.jar.indexing")); |
| 62 | 64 | ||
| 63 | progress.step(1, "Entries..."); | 65 | progress.step(1, I18n.translate("progress.jar.indexing.entries")); |
| 64 | classCache.visit(() -> new IndexClassVisitor(this, Opcodes.ASM5), ClassReader.SKIP_CODE); | 66 | classCache.visit(() -> new IndexClassVisitor(this, Opcodes.ASM5), ClassReader.SKIP_CODE); |
| 65 | 67 | ||
| 66 | progress.step(2, "Entry references..."); | 68 | progress.step(2, I18n.translate("progress.jar.indexing.references")); |
| 67 | classCache.visit(() -> new IndexReferenceVisitor(this, entryIndex, inheritanceIndex, Opcodes.ASM5), 0); | 69 | classCache.visit(() -> new IndexReferenceVisitor(this, entryIndex, inheritanceIndex, Opcodes.ASM5), 0); |
| 68 | 70 | ||
| 69 | progress.step(3, "Bridge methods..."); | 71 | progress.step(3, I18n.translate("progress.jar.indexing.methods")); |
| 70 | bridgeMethodIndex.findBridgeMethods(); | 72 | bridgeMethodIndex.findBridgeMethods(); |
| 71 | 73 | ||
| 72 | progress.step(4, "Processing..."); | 74 | progress.step(4, I18n.translate("progress.jar.indexing.process")); |
| 73 | processIndex(this); | 75 | processIndex(this); |
| 74 | } | 76 | } |
| 75 | 77 | ||