Problems traslating REPORTING MODULE

0 views
Skip to first unread message

Leonardo

unread,
Oct 22, 2014, 7:41:04 AM10/22/14
to d...@openmrs.org
Hi devs,

I am having a lot of problems in the translation of the module reporting because of the enormous amount of hardcoding in jsp and java source.
I removed most of hardcoding but I can not translate "Start Date", "End Date" and "Location" label in the page run/runReportForm.jsp.
The controller at the base of this page, dynamically creates a page based on serializedObject table.

I think the problem is in the class that builds the XML stream of the report. Everything happens once you click the "Period Indicator Report" button on the page /reports/manageReports and clicking the submit button. In the serialized_object table i found the new record with wrong Parameter labels.

i try to rename the hardcoding in the java class ReportingConstants but without the desired effect

public static final Parameter START_DATE_PARAMETER = new Parameter ("startDate", "Start Date", Date.class);
public static final Parameter END_DATE_PARAMETER = new Parameter ("endDate", "End Date", Date.class);
public static final Parameter LOCATION_PARAMETER = new Parameter ("location", "Location", Location.class);

please help me to understand where is this hardcoding. at the end of the translation, I hope to share with the OpenMRS Community the result of module_messages_IT.properties with java classes modified.

Thanks in advance

Leonardo




Lluis Martinez

unread,
Oct 22, 2014, 8:04:45 AM10/22/14
to d...@openmrs.org
Check the JS too, specifically alerts. In these case one technique is dinamically generate a JS variable in the JSP, then use that variable in the alert.

Ciao

--
OpenMRS Developers: http://om.rs/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at http://om.rs/id
 
Visit OpenMRS Talk for in-depth & casual conversation: https://talk.openmrs.org/

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.

Leonardo

unread,
Oct 22, 2014, 9:44:03 AM10/22/14
to d...@openmrs.org
thanks for answer...i check and the .js files don't contain hardcoding "Start Date", "End Date" and "Location"...

Michael Seaton

unread,
Oct 22, 2014, 10:04:16 AM10/22/14
to d...@openmrs.org
Thanks Leonardo for looking into this and providing feedback.  If you file tickets for particular issues, we can have conversations and discuss solutions on those tickets and get the work prioritized and hopefully fixed.  Can you please create tickets for the places where English text is hard-coded and needs to utilize message codes?

Regards,
Mike

Leonardo

unread,
Oct 22, 2014, 11:40:40 AM10/22/14
to d...@openmrs.org
Thanks Mike,
like you suggested I created an issue in JIRA. I hope I have done everything right. it's my first time in JIRA

this is the issue created: https://issues.openmrs.org/browse/REPORT-703

Best Regards,
Leonardo
Reply all
Reply to author
Forward
0 new messages