...
Info |
---|
Note that since this is done on the legacy admin UI, these changes will disappear when the instance is rebuilt. |
To persist these changes in the instance, create an .xml
file in the distro/configuration/globalproperties
folder. The above example in the file would look like:
Code Block | ||
---|---|---|
| ||
<config>
<globalProperties>
<globalProperty>
<property>layout.address.format</property>
<value>
<org.openmrs.layout.address.AddressTemplate>
<nameMappings class="properties">
<property name="address1" value="Location.address1"/>
<property name="address2" value="Location.address2"/>
<property name="address3" value="Location.address3"/>
<property name="address4" value="Location.address4"/>
</nameMappings>
<sizeMappings class="properties">
<property name="address1" value="10"/>
<property name="address2" value="40"/>
<property name="address3" value="40"/>
<property name="address4" value="40"/>
</sizeMappings>
<lineByLineFormat>
<string>address1</string>
<string>address2</string>
<string>address3 address4</string>
</lineByLineFormat>
<requiredElements>\\n" + " </requiredElements>\\n" + " </org.openmrs.layout.address.AddressTemplate>
</value>
</globalProperty>
</globalProperties>
</config> |
Note |
---|
The |
Language Translation of Address Labels
To change the strings that would display as the labels instead of address1
, address2
, etc. Add a folder called messageproperties
to the reference application repository distro/configuration
folder. Add separate files for each language that you wish to support. Eg:-
...