+ 5

Best way to implement a “Bilingual application” (English + another language), C#/PostgreSQL

I am researching the best way to implement a bilingual desktop application. The languages are English and another local language. I read so far that the best approach might be via a dictionary-file that is holding both languages. The requirement on the GUI side is to be able to toggle each screen. I am implementing MVVM with .Net Core and Caliburn.Micro. Here my questions: - is the dictionary approach the best way? - what is the smoothest way you have seen to implement multiple human languages? - what is the best way to wire the dictionary to the “toggle” button: English/other language? Also any other hints & links appreciated, T:m

9th Jan 2020, 8:02 PM
Tim
Tim - avatar
4 Réponses
+ 1
The way i would do it is create a table for languages and another for each text field, and use variables in the frontend which will fill the text dynamically
16th Jan 2020, 1:44 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
+ 1
yes. thanks. I was thinking about that too. I was wondering if it should be a dictionary function or a whole db table or both together?
16th Jan 2020, 2:45 PM
Tim
Tim - avatar
+ 1
Values need to be saved so a DB table is mandatory. You can use a dictionary function that loads in the background to make things faster for the end user, why not
16th Jan 2020, 2:50 PM
Dominique Abou Samah
Dominique Abou Samah - avatar
+ 1
thanks!
16th Jan 2020, 2:52 PM
Tim
Tim - avatar