← Back to team overview

dhis2-devs team mailing list archive

How to add Translations for Chart names and Report Table names


Hi Team,

We are using DHIS version 2.24. We are looking at translation of metadata
objects and saw that only properties like 'displayName',
'displayDescription', 'displayShortName' etc can be translated into
different locales if values exist for them. It works for most of the
entities like Data Elements, Data Sets, programs, indicators etc. But, we
were not able to add any translations for charts, report tables, event
charts and event reports as there was no interface for these objects to add
translations. However, we looked at their APIs and saw that charts, tables
etc have got the 'displayName' property and therefore can be translated. We
tried adding translation for chart's displayName using APIs - PUT method,
but it gave an error

  "httpStatus": "Internal Server Error",
  "httpStatusCode": 500,
  "status": "ERROR",
  "message": "object references an unsaved transient instance - save the
transient instance before flushing:

Could you please let us know how we can add translations to Chart names,
table names etc.

Also, another issue is that Report Tables and Event Reports do not have a
table title (not the table name) -- like it exists for charts and event
charts (in Options --> Chart Title). Is there a plan in the future to add
'Title' for Report table and Event Reports app ?
As of now, since we can add title to Charts and Event Charts, could you
please tell us how we could translate them?

Thanks in advance.


Archana Chillala
Application Developer
Email archanac@xxxxxxxxxxxxxxxx
Telephone +91 9100960533 <+91+9100960533>
[image: ThoughtWorks]

Follow ups