[Bug 1585033] [NEW] Validation rule Translation left side and right side

Public bug reported:

DHIS2 version: 2.22 Revision: 21900

We put Lao language into description (in Edit Left side and Edit Right
side). It works normally in English interface language and English
database language. But when we change into Lao interface and database
language. It's show blank when check validation rule in Data entry. We
need to use Lao interface and database language for Lao user. So I hope
dev can fix this bug soon.

** Affects: dhis2
     Importance: Undecided
         Status: New

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  New

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

** Changed in: dhis2
    Milestone: None => 2.24

** Changed in: dhis2
     Assignee: (unassigned) => Viet Nguyen (phamquocviet)

** Changed in: dhis2
   Importance: Undecided => Medium

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  New

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

Hi Nghia,

Do you have any error message that we can have a look ? Can be
javascript or server error ?

Also can you provide the string ( in Lao ) that you put into description
? Or a screenshot of what have been entered into the form.

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  New

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

Hi Viet,

It not show any error. But I will show the picture for description.

First photo is the String (in Lao) that I input into description.
ກວດທ້ອງຄັ້ງທີ່ 1 (ໃນສະຖານທີ່ບໍລິການ)

Second picture, When running "run Validation" (Data Entry module) In
English language and English database language. The validation alert
(description) is showing.

Third picture, When running "run Validation" (Data Entry module) in Lao
language and Lao database language. The validation alert empty (same
period, org unit and value with the second screen)

···

On Thu, May 26, 2016 at 4:17 PM, Viet Nguyen <viet@dhis2.org> wrote:

Hi Nghia,

Do you have any error message that we can have a look ? Can be
javascript or server error ?

Also can you provide the string ( in Lao ) that you put into description
? Or a screenshot of what have been entered into the form.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  New

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

--
----------------------------------------
Name: Nguyễn Trần Nghĩa.
Tel: 0903721500

** Attachment added: "first.png"
   https://bugs.launchpad.net/bugs/1585033/+attachment/4670690/+files/first.png

** Attachment added: "third.png"
   https://bugs.launchpad.net/bugs/1585033/+attachment/4670691/+files/third.png

** Attachment added: "second.png"
   https://bugs.launchpad.net/bugs/1585033/+attachment/4670692/+files/second.png

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  New

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

** Changed in: dhis2
       Status: New => Fix Committed

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  Fix Committed

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions

The issue is because they try to enter the name of the validation rule
in Lao language ( left side and right side expression as in the
screenshots that Nghia provided )

Then in validationAction.java we use the whole OrganisationUnit object
as the key of the validationResults Map. I think the object has some
different attributes when the language is changed, so in result we can't
get the element from the map.

I have changed the map to use UID instead of the whole object and it's
working fine.

···

--
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1585033

Title:
  Validation rule Translation left side and right side

Status in DHIS:
  Fix Committed

Bug description:
  DHIS2 version: 2.22 Revision: 21900

  We put Lao language into description (in Edit Left side and Edit Right
  side). It works normally in English interface language and English
  database language. But when we change into Lao interface and database
  language. It's show blank when check validation rule in Data entry. We
  need to use Lao interface and database language for Lao user. So I
  hope dev can fix this bug soon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1585033/+subscriptions