If there are four files in the same folder:
I18n_aa.properties
I18n_aa_zh.properties
I18n_bb.properties
I18n_bb_zh.properties
When user open I18n_aa.properties, all files are open.
But only I18n_aa.properties and I18n_aa_zh.properties should be opened.
After some investigation and testing, the method implementation in source file:
com\essiembre\eclipse\rbe\ui\editor\resources\ResourceFactory.java
should be change to:
protected static String getBundleName(IFile file) {
String name = file.getProjectRelativePath().removeFileExtension().lastSegment();
String[] ss = name.split("_");
if (ss.length > 0) {
StringBuffer sb = new StringBuffer();
sb.append(ss[0]);
String[] langs = Locale.getISOLanguages();
int pos = -1;
for (int i = ss.length - 1; i > 0; i--) {
String name_lang = ss[i];
//try to search matched language...
for (int j = 0; j < langs.length; j++) {
if (langs[j].equals(name_lang)) {
pos = i;
j = langs.length;
i = 0;
}
}
}
if (pos > 0) {
for (int i = 1; i < pos; i++) {
sb.append('_').append(ss[i]);
}
return sb.toString();
}
}
return name;
}