Giorgi625 VIP
Total posts: 655
24 Янв 2018 14:22

Where to translate add and close buttons for select field your variant feature? I was not able to find it's constants in language files and in template files it looks like that it is loaded from some javascript function which I am not able to find.

Последние изменения: 27 Янв 2018


pepperstreet VIP
Total posts: 3,837
26 Янв 2018 22:00

Giorgi625 it looks like that it is loaded from some javascript function which I am not able to find.

It's located in Cobalt library folder: main.js
See line 540 ++

The text constants are "Add" and "Close".
You can create language overrides for them as usual.
Although they have no specific Cobalt naming convention, and they are camel-case.
On save... your overrides turn UPPERCASE automatically. But they will work.

BTW, there is also a constant for the "enter value" alert message: CENTERVAL


Giorgi625 VIP
Total posts: 655
27 Янв 2018 10:04

Thanks pepperstreet

Работает на Cobalt