dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25275
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12494: Minor
------------------------------------------------------------
revno: 12494
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-10-08 10:09:10 +0200
message:
Minor
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/locale/ValidateLocaleAction.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/locale/ValidateLocaleAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/locale/ValidateLocaleAction.java 2013-10-08 08:07:02 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/locale/ValidateLocaleAction.java 2013-10-08 08:09:10 +0000
@@ -30,6 +30,7 @@
import java.util.Locale;
import org.hisp.dhis.i18n.I18nLocaleService;
+import org.hisp.dhis.i18n.locale.I18nLocale;
import org.springframework.beans.factory.annotation.Autowired;
import com.opensymphony.xwork2.Action;
@@ -82,7 +83,12 @@
public String execute()
{
- localeService.getI18nLocale( new Locale( language, country ) );
+ I18nLocale locale = localeService.getI18nLocale( new Locale( language, country ) );
+
+ if ( locale != null )
+ {
+ return INPUT;
+ }
return SUCCESS;
}