made first demo almost fully working
This commit is contained in:
parent
2a0d992642
commit
01b3b5cc54
104 changed files with 3259 additions and 2181 deletions
|
|
@ -32,6 +32,7 @@ import java.util.ResourceBundle;
|
|||
import net.forwardfire.vasc.core.VascEntry;
|
||||
import net.forwardfire.vasc.core.VascEntryField;
|
||||
import net.forwardfire.vasc.core.VascEntryFieldSet;
|
||||
import net.forwardfire.vasc.core.VascEntryGroup;
|
||||
import net.forwardfire.vasc.core.VascEntryLink;
|
||||
import net.forwardfire.vasc.core.actions.VascAction;
|
||||
|
||||
|
|
@ -102,6 +103,25 @@ public class VascBundleCheckEntryKeys {
|
|||
return keys;
|
||||
}
|
||||
|
||||
public Map<String,String> collectVascKeys(VascEntryGroup veg) {
|
||||
Map<String,String> keys = new HashMap<String,String>(30);
|
||||
keys.put(veg.getName(), veg.getId());
|
||||
keys.put(veg.getImage(), veg.getId());
|
||||
keys.put(veg.getDescription(), veg.getId());
|
||||
return keys;
|
||||
}
|
||||
|
||||
public Map<String,String> generateMissingKeys(VascEntryGroup veg) {
|
||||
Map<String,String> keys = collectVascKeys(veg);
|
||||
List<String> keysResult = new ArrayList<String>(keys.keySet());
|
||||
keysResult.removeAll(resourceBundle.keySet());
|
||||
Collections.sort(keysResult);
|
||||
Map<String,String> data = new HashMap<String,String>(300);
|
||||
for (String key:keysResult) {
|
||||
data.put(key, keys.get(key));
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public Map<String,String> generateMissingKeys(VascEntry ve) {
|
||||
Map<String,String> keys = collectVascKeys(ve);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue