Translate (.$)
If you would like to translate a mentioned taxonomy option of an information when it is being printed on a document, simply refer to it using .$ instead of ..

Example: Simple

To print "CITY, COUNTRY" of an entity in the request language on a document a calculated information with the following RuLa expression is created:
1
e.city + ", " + e.$country
Copied!
The first part, e.city, prints the city of the entity as usual. The second part, e.$country, though references the country in a way that the name of the country is translated into the requested language when the document is created. So when a user requests the document in german, this would print e.g. Berlin, Deutschland, when requested in english Berlin, Germany.

Example: Creating an Address

The following expression would put a printable address into a calculated information:
1
JOIN(
2
[
3
self.street_and_number,
4
self.postal_code + ' ' + self.city,
5
self.$domicile
6
],
7
'\n'
8
)
Copied!
Last modified 3mo ago