Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

ScenEdit_MsgBox(...) returns values in non-English languages?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> ScenEdit_MsgBox(...) returns values in non-English languages? Page: [1]
Login
Message << Older Topic   Newer Topic >>
ScenEdit_MsgBox(...) returns values in non-English lang... - 9/13/2021 11:15:19 PM   
musurca

 

Posts: 99
Joined: 7/16/2020
Status: online
Does anyone know the return value of ScenEdit_MsgBox(...) in non-English languages?

For example: in English, ScenEdit_MsgBox(msg, 4) will return either 'Yes,' 'No,' or 'Cancel.' ScenEdit_MsgBox(msg, 2) will return 'Abort,' 'Retry,' and 'Ignore.'

Are those values localized, or are they always the same strings?

Thanks!
Post #: 1
RE: ScenEdit_MsgBox(...) returns values in non-English ... - 9/14/2021 3:37:49 AM   
KnightHawk75

 

Posts: 1346
Joined: 11/15/2018
Status: offline
idk for sure, but I don't think they are localized (by the game anyway).

(in reply to musurca)
Post #: 2
RE: ScenEdit_MsgBox(...) returns values in non-English ... - 9/14/2021 6:09:15 PM   
musurca

 

Posts: 99
Joined: 7/16/2020
Status: online
Thanks, that would be very convenient if true! But the actual UI buttons are localized, right? They will, for example, appear to say “Oui” and “Non” in French for the user instead of “Yes” and “No”?

(And as an aside, is there an easier way to test this than mucking about with one’s Windows locale?)

(in reply to KnightHawk75)
Post #: 3
RE: ScenEdit_MsgBox(...) returns values in non-English ... - 9/15/2021 3:40:16 AM   
KnightHawk75

 

Posts: 1346
Joined: 11/15/2018
Status: offline
Yeah the button labels themselves will typically be localized (or if .net language packs for the language in use are installed they will be). As for the response though per the code you should always get the result of enum.tostring() being called on a system.windows.forms.DialogResult enum value. The idk for sure part comes into play because I don't know if a .net language pack is installed for the local language if it also includes translations for dialogresult enum names (the packs are more aimed at error messages and standard\default dialog text), if not installed I'm pretty sure you'll get the default English in the response code, but if one is installed and it is part of what's translated then you could in theory get a translated version. I'm not in a position atm where I can easily test that for you. It could be my internet-search-fu is lacking, but trying to find detailed information on just what is translated in the packs and what isn't didn't turn up an definitive answer.


I don't know an easier way to test what's specifically at play here. Perhaps a one of the devs or users here who have non-english windows systems could shed light on what the results are when they run print(ScenEdit_MsgBox('Hello World.',3)) in the lua console and indicate along with the result if they have a .net language pack installed for their non-English windows language.



< Message edited by KnightHawk75 -- 9/15/2021 3:41:30 AM >

(in reply to musurca)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> ScenEdit_MsgBox(...) returns values in non-English languages? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.258