E
E
Express7772015-07-28 07:56:05
CMS
Express777, 2015-07-28 07:56:05

How to display different translations of a word in different contexts in ModX?

Hello.
You need to tweak the site from previous developers.
There is a table in one of the pages in three languages.
In a chunk, this code
tr-numbertr-locationtr-statustr-date
These are the table headers. I just need to add some new headers. One chunk is used for three different contexts: web, en, kz.
Depending on cultureKey(ru, en, kz) displays words in different languages.
For example, tr-date can be: date, date, uakyt
I need to add some new columns. in three languages.
The Babel package is installed.
I tried to search in the root of the site for a semblance of a dictionary, but found nothing.
But I found something like assigning a value in the cache
joxi.ru/Drl7Yo9TBxyDAP
So Modx takes the translation\value of the variable(tr) from some dictionary?
Maybe in the db?
Tell me please. I haven't been able to find this dictionary for three hours now. Or maybe it's done differently?
Version Modx Revo 2.2.16 Traditional

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Realistic, 2015-07-28
@Express777

MODX has a separate section for configuring dictionaries in the settings section (upper right corner of the admin menu, gear icon) "Dictionary management" (manager/?a=workspaces/lexicon):
The en parameter is a system setting determined by context . Thus, by adding new keys to dictionaries, you can create translation tables for different languages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question