After working on a project for a while, we decided to add internationalization.
We chose 2 cultures (english and french) and we chose english as a default culture.
When we came back to work on the project pages, we were surprised to see that all the modifications made to the pages since the beginning of the project had disappeared. For example, all the user management pages are back to their original state. On the other hand, the layouts have remained intact.
As we have already put a lot of time into the project, I would like to know how to implement the internationalization without destroying the work already done.
Adding cultures to the application will not reset anything, only if you choose to recreate your pages on data source infer, and the overwrite pages checkbox is checked will do. What changes you’ve made and where exactly you’ve made the changes? Are you changing .razor files directly?
Thank you for your quick response. Thanks to your hints the problem is solved. The problem was caused by the checkbox "Overwrite existing pages" in the security tab. It seems that checking this option overwrites all authentication windows when saving the application settings, even if the settings are not related to authentication. In this case it was the internationalization settings in the "settings" tab.
I have another question about internationalization: Once the cultures have been implemented, we get the files xxx.yyy.resx where we have to translate the strings. Among other things, we can translate the column names of the DataGrids. However, no string in the corresponding xxx.yyy.resx file seems to be provided for translating the texts of the filter window.
I know that the text in the filter window can be modified using the fields in the DataGrids properties window, but it seems essential to me that these fields can be translated automatically depending on the culture selected.
So my question is this: Is there any way, either in Radzen or in Visual Studio to translate the texts of these filter windows? I have looked through the file tree of our project's solution and I can't find any .razor file where the standard translation mechanism of Blazor could be implemented.
Check the expressions (chain button next to a property) applied to other translated properties - you can apply the same expression to these properties that will retrieve desired translated string from the resx file for the page.
for example here the Label called pageTitle has as expression the same string as the Text property of this widget. Not a translation related expression. And this is the same for all widgets in the application, even though the xxx.yyy.resx pages have been set up.