Donate Share

OpenEMR

Tracker: Bugs

5 Internationalize CAMOS - ID: 2878661
Last Update: Comment added ( bradymiller )

CAMOS currently does not support any internationalization. Plan to
hopefully get this working at some point.


bradymiller ( bradymiller ) - 2009-10-14 06:00

5

Closed

None

bradymiller

Translations

None

Public


Comments ( 7 )

Date: 2009-12-14 10:14
Sender: bradymillerProject Admin

hey,
This is done (was extensive and required mods to 9 files and now have
css/html printing options along with pdf). Committed to cvs; after it gets
testing for bugs will migrate to the 3.1.0 patch.
-brady


Date: 2009-12-02 01:13
Sender: bradymillerProject Admin

oops, was error in previous fix. Here are fixed instructions:

Modify line 879 of openemr/interface/forms/CAMOS/new.php :

Change:
str += key + "=" + escape(form_array[key]) + "&";

To:
str += key + "=" + encodeURIComponent(form_array[key]) + "&";

-brady


Date: 2009-12-02 01:07
Sender: bradymillerProject Admin

Fixed primary bug (step 2 below). Comitted to cvs and will put in patch#5
for 3.1.0.
The fix was simple:
diting the following on line
879 of openemr/interface/forms/CAMOS/new.php :

Change:
str += key + "=" + escape(form_array[key]) + "&";

To:
str += key + "=" + encodeURIComponent((form_array[key]) + "&";

Not the fix discussed below is unsafe. Characters such as ? and ; will
kill it.

-brady



Date: 2009-11-30 23:38
Sender: bradymillerProject Admin

Plan of action:

1) Primary author of module to commit most updated CAMOS code

2) Change the escape() function call to encodeURIComponent() in javascript
ajax call
--For php to answer this ajax call it needs to decode the data, so
will bring in the following functions into the code at library directory
(these will be useful in other parts of OpenEMR as AJAX calls begin to be
used more):
http://www.captain.at/howto-php-urlencode-javascript-decodeURIComponent.php

3) While here will convert all magic quotes checks to
openemr/library/formdata.inc.php function

4) Also translate button labels and messages


Date: 2009-11-11 23:52
Sender: bradymillerProject Admin

hey,

A quick fix for the utf-8 character bug is editing the following on line
879 of openemr/interface/forms/CAMOS/new.php :

Change:
str += key + "=" + escape(form_array[key]) + "&";

To:
str += key + "=" + form_array[key] + "&";

Note this hasn't been fully tested. Still awating the modules author to
update newest version of CAMOS to cvs before anything further can be done
(more testing and translation of buttons)

-brady


Date: 2009-11-03 08:54
Sender: bradymillerProject Admin

hey,

Currently trying to pinpoint the utf-8 character bug, likely related to
the ajax call from new.php . Also, will need to internationalize the button
labels. Currently discussing this stuff with the module author, Mark
Leeds.

-brady


Date: 2009-10-30 00:09
Sender: tsoukase

The point of inserting data through a Form to an Encounter is very
critical. This must be simple and fast or the user will be dissatisfied.
The Forms already included are almost useless for a large part of doctors
(eg. specialists in a specific field) as they need highly specialized ones,
which can be done either with the CAMOS-module or with the 'formmaker'.
Unfortunately both do not support internationalization which, for the whole
pakcage, is a major drawback for foreign users.

I suggest this becomes a priority if it is not too expensive.



Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
close_date - 2009-12-14 10:14 bradymiller
allow_comments 1 2009-12-14 10:14 bradymiller
status_id Open 2009-12-14 10:14 bradymiller
assigned_to nobody 2009-11-30 23:38 bradymiller