From da59fae5c2569809fe5de086806c13067ef68d44 Mon Sep 17 00:00:00 2001 From: Shalin Date: Fri, 16 Sep 2016 14:08:00 +0530 Subject: [PATCH 1/3] updated gitignore file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 223212f2..84baabfa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /maven /build/ /repository/ +/.settings From 4cfab163879c681b0f9f08024d948ab0c32ee991 Mon Sep 17 00:00:00 2001 From: Shalin Date: Fri, 16 Sep 2016 14:08:00 +0530 Subject: [PATCH 2/3] updated gitignore file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 223212f2..84baabfa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /maven /build/ /repository/ +/.settings From 9b8fc4e43547866e0d9aa3bcce2c18ad51243a08 Mon Sep 17 00:00:00 2001 From: Shalin Date: Mon, 19 Sep 2016 13:38:34 +0530 Subject: [PATCH 3/3] adding locale change in property change listener --- .../qaf/automation/core/ConfigurationManager.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/com/qmetry/qaf/automation/core/ConfigurationManager.java b/src/com/qmetry/qaf/automation/core/ConfigurationManager.java index f2b96ac0..63d1ee41 100644 --- a/src/com/qmetry/qaf/automation/core/ConfigurationManager.java +++ b/src/com/qmetry/qaf/automation/core/ConfigurationManager.java @@ -340,7 +340,6 @@ public void configurationChanged(ConfigurationEvent event) { TestBaseProvider.instance().get().tearDown(); } String[] bundles = null; - // Resource loading // Resource loading if (key.equalsIgnoreCase("env.resources")) { @@ -360,7 +359,14 @@ public void configurationChanged(ConfigurationEvent event) { } } } - + // Locale loading + if (key.equalsIgnoreCase(ApplicationProperties.DEFAULT_LOCALE.key)) { + String[] resources = getBundle().getStringArray("env.resources", "resources"); + for (String resource : resources) { + String fileOrDir = getBundle().getSubstitutor().replace(resource); + addLocal(getBundle(), (String) event.getPropertyValue(), fileOrDir); + } + } // step provider package re-load if (key.equalsIgnoreCase(ApplicationProperties.STEP_PROVIDER_PKG.key)) {