i18n: compare unescaped property values

e.g. \n in code and in the property should be the same

GitOrigin-RevId: f9a1fc20b3174b9c5274fda9796bcc5cdafb4213
This commit is contained in:
Anna Kozlova
2020-08-06 06:03:06 +00:00
committed by intellij-monorepo-bot
parent 39d3bdb224
commit b0b1c5538b
@@ -251,7 +251,7 @@ public class I18nizeQuickFixDialog extends DialogWrapper implements I18nizeQuick
PropertiesFile propertiesFile = getPropertyFileByPath(path);
if (propertiesFile != null) {
for (IProperty property : propertiesFile.getProperties()) {
if (Comparing.strEqual(property.getValue(), value) && property.getUnescapedKey() != null) {
if (Comparing.strEqual(property.getUnescapedValue(), value) && property.getUnescapedKey() != null) {
result.add(property);
}
}
@@ -397,6 +397,7 @@ public class I18nizeQuickFixDialog extends DialogWrapper implements I18nizeQuick
myPropertiesFile.setHistory(paths);
if (lastPath != null) {
myPropertiesFile.setSelectedItem(lastPath);
myPropertiesFile.setText(lastPath);
}
if (myPropertiesFile.getSelectedIndex() == -1 && !paths.isEmpty()) {
myPropertiesFile.setText(paths.get(0));