Detect language at runtime question

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
PvdL
Posts: 11
Joined: Thu Jan 02, 2014 11:58 am

Detect language at runtime question

Post 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 ?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Best regards,
Igor Siticov.
Post Reply