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