Translation of a text fragment in October CMS is not created, rainlab translate plugin

Andy Wits Blog

Translation of a text fragment in October CMS is not created, rainlab translate plugin

Found an unusual problem in October CMS, or more precisely in the rainlab translate module. Is it a bug or a feature? It's not clear...

When the text length is about 200 characters, translation into another language is not performed, but at the same time on the "translate messages" page in the backend (backend/rainlab/translate/messages) new lines are generated each time the page is refreshed. It's good that I saw this in time...

At first I suspected that the problem was in the tags or non-Unicode characters, because the text was transmitted via messenger.

I typed it manually. But it didn't help. I started looking, maybe there is a limit on the length of the text somewhere.

It turned out that the whole problem is that such a limitation is in the database. In the rainlab_translate_messages table, the code column contains a small varchar() value. You can simply write a larger one, for example 667 ))

ALTER TABLE `rainlab_translate_messages` CHANGE `code` `code` VARCHAR(667) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
Published on Aug 03 2023 at 12:00 am
Time to read 1 minute(s)
Categories
  • Web Development

Contact me on