mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-18 11:19:31 +00:00
Fix localizations
This commit is contained in:
1 parent
fddcd36f29
commit
ed514c78cc
11 files changed
+72
No files matched your search
@@ -0,0 +1,51 @@
|
||||
package com.enderio.core.common.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.SneakyThrows;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
public class PermanentCache<I> extends WorldCache<I> {
|
||||
|
||||
private static final List<PermanentCache<?>> allCaches = Lists.newArrayList();
|
||||
|
||||
@SneakyThrows
|
||||
public PermanentCache(String ident) {
|
||||
super(ident);
|
||||
loadData(getSaveFile());
|
||||
}
|
||||
|
||||
@Override
|
||||
@SneakyThrows
|
||||
protected File getSaveFile() {
|
||||
return new File("saves", ident + ".dat");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void blockOldIDs() {
|
||||
if (!objToName.isEmpty()) {
|
||||
super.blockOldIDs();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mergeNewIDs() {
|
||||
if (!objToName.isEmpty()) {
|
||||
super.mergeNewIDs();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addObject(I object, String name) {
|
||||
super.addObject(object, name);
|
||||
setID(name);
|
||||
}
|
||||
|
||||
public static void saveCaches() {
|
||||
for (PermanentCache<?> c : allCaches) {
|
||||
c.saveData(c.getSaveFile());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
enderio.item.tooltip.showDetails=<Podrž Shift>
|
||||
enderio.item.darkSteel.tooltip.durability=Výdrž:
|
||||
@@ -1,4 +1,7 @@
|
||||
endercore.tooltip.oreDictNames=OreDictionary-Namen:
|
||||
endercore.tooltip.showDetails=<Halte Shift>
|
||||
endercore.tooltip.durability=Haltbarkeit:
|
||||
|
||||
endercore.command.config.result.success=Config-Reload für %s war erfolgreich
|
||||
endercore.command.config.result.fail=Config-Reload für %s fehlgeschlagen
|
||||
endercore.command.config.result.invalid=ModID %s ist ungültig
|
||||
@@ -1,4 +1,6 @@
|
||||
endercore.tooltip.oreDictNames=Ore Dictionary Names:
|
||||
endercore.tooltip.showDetails=<Hold Shift>
|
||||
endercore.tooltip.durability=Durability:
|
||||
|
||||
endercore.command.config.result.success=Reloading configs for %s was successful
|
||||
endercore.command.config.result.fail=Reloading configs for %s failed
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
enderio.item.tooltip.showDetails=<Maintenez Shift>
|
||||
enderio.item.darkSteel.tooltip.durability=Durabilité :
|
||||
@@ -1,4 +1,6 @@
|
||||
endercore.tooltip.oreDictNames=광물사전 이름:
|
||||
endercore.tooltip.showDetails=<Shift를 누르십시오>
|
||||
endercore.tooltip.durability=내구도:
|
||||
|
||||
endercore.command.config.result.success=%s설정을 재로딩 완료하였습니다
|
||||
endercore.command.config.result.fail=%s설정 재로딩이 실패하였습니다
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
enderio.item.tooltip.showDetails=<Segure Shift>
|
||||
enderio.item.darkSteel.tooltip.durability=Durabilidade:
|
||||
@@ -0,0 +1,2 @@
|
||||
enderio.item.tooltip.showDetails=<Segure Shift>
|
||||
enderio.item.darkSteel.tooltip.durability=Durabilidade:
|
||||
@@ -1,4 +1,6 @@
|
||||
endercore.tooltip.oreDictNames=Имена словаря руд:
|
||||
endercore.tooltip.showDetails=<Зажмите Shift>
|
||||
endercore.tooltip.durability=Прочность:
|
||||
|
||||
endercore.command.config.result.success=Перезапуск конфигурации для %s успешен
|
||||
endercore.command.config.result.fail=Перезапуск конфигурации для %s не удался
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
enderio.item.tooltip.showDetails=<按住Shift>
|
||||
enderio.item.darkSteel.tooltip.durability=耐久:
|
||||
@@ -0,0 +1,2 @@
|
||||
enderio.item.tooltip.showDetails=<按住Shift>
|
||||
enderio.item.darkSteel.tooltip.durability=耐久度:
|
||||
Reference in new issue
Block a user