- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
this is another (not directly related to Inventor) beginner-coder question:
I wonder which is the best approach to provide software product with several UI localizations?
I used to support two languages (my native and English).
I'm doing it in I believe not very smart way. In iLogic it looks somewhat like:
Sub Main
Dim sMsgTitle, sMsgBody, sLC As String
sLC = ThisApplication.LanguageCode
If sLC = "it-IT"
sMsgTitle = "Il mio saluto"
sMsgBody = "Ciao mondo"
Else
sMsgTitle = "My Greeting"
sMsgBody = "Hello World"
End If
MessageBox.Show(sMsgBody, sMsgTitle)
End sub
The worst thing about the way mentioned - I don't see easy way to split sentences with values of variables when necessary. I then use several separate strings (one for Sentence begin, ... , ..., and one for sentence ending.
I believe I need to use at least some variable value placeholders, right?
Or should I hard-code every sentence in English and connect some external resource file(s) from which those string values would be substituted (if applicable)?
How you, professionals , do all this stuff?
Please vote for Inventor-Idea Text Search within Option Names
Solved! Go to Solution.