Localized Message lost

Hi,
Our platform is:
CUBA Platform version: 7.2.4
CUBA Studio plugin version: 13.2-191
IntelliJ version: CUBA Studio 2019.2

We’ve just detected that, if you are creating a new entity attribute and you enter a localized message, on following screens, the new text entered is lost, even though having press ok button.
Captura Captura2

Afterwards, you have to edit the attribute and enter again the text of localized message. Then, the text is correctly saved.

Best regards,
Xavier

I have the same problem, not only for the entities but also for the enums.

image

image

image

As you can see in the images, if I enter to change the text of one of those properties it shows me as if it didn’t exist, but actually the text with its respective location exists.

Regards,

Nelson F.

2 Likes

I have the same problem.
I noticed that studio is incorrectly using another path for the messages:

modules\global\build\generated\sources\annotationProcessor\java\main\...\messages.properties
image

A manual workaround is to edit the correct translation files directly using intellij editor (instead of Cuba Studio dedicated screens).

Regards,
Peterson.

Hi, Xavier

Unfortunately I can’t reproduce the issue.

There is one case, when you can get a similar behavior. If you change the attribute name after the localization message(s) was created. The localization message will be created with the key corresponding to the attribute name on the moment of message editing, not the updated name. So in this case the new attribute will have only default message for the default locale. The case can be checked easily in the messages.properties file. If there are some unused messages with the text you entered when creating attribute.

If it is not the case, could you please attach some simple test project where the issue can be reproduced?

Hi, Nelson
Hi, Peterson

Thanks for reporting the issue.

I would also ask you to attach some simple test project where the issue can be reproduced. As I can’t reproduce the problems you have reported.

Hi, Alexander

There are some strange behaviors when editing the location messages of an attribute, and especially if the application has more than one language.

It could be necessary doing a revision of those behaviours in Cuba Studio…

We attach a very simple project, created as scratch, and a video showing the strange behaviour.

Regards,
Xaviertest.zip (77.5 KB) video_Label_error.zip (770.8 KB)

I have also seen strange issues when editing/etc various captions via the Designer interface. (And we have only one language [English]). I cannot at-will reproduce it though, so I haven’t reported it. But I thought it a good idea to mention that I also have these types of issues occasionally - and it’s not related to having more than one language.

Hi, Xavier

Thanks, that helped a lot!
There are actually some issues with localization messages editor.
The YouTrack issue created. Will be fixed in one of the next CUBA Studio releases.

Hi @gaslov, attached is another example where translations are lost. In this case if you check the listings you will find that they are being stored in a different location.

test.zip (79.1 KB)