Page 1 of 1

Detect language at runtime question

Posted: Tue Oct 20, 2015 4:54 pm
by PvdL
Hi, I use the technique showed in the "Creating Multi-language Applications Translated by Users" white paper. I have a SIB file with > 1 languages, and create the menu items at runtime as suggested. Users translate this languages. When they add a new language the application must update the menu items to reflect the new added language. How can I detect the relationship between the language in the SIB file and the SysLocale language information ?

Posted: Wed Oct 21, 2015 7:48 am
by isiticov
You may iterate through SysUtils.Languages to check if name matches with the one in SIB file and then detect LCID. Although user may name the language as he wants.