Author Topic: Where / how to read localized equivalents of y/n as used in the system?  (Read 3271 times)

Alfredo Fernández Díaz

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Hello,

I seem to recall there is a message file where you can read the localized equivalents of "y" and "n" (for example that would be "j" and "n" --ja/nein-- for German) used in NLV OS/2 systems for stuff like simple confirmations, and such.

Any hints/help/reminders?

Thank you in advance,

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4713
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Hi Alfredo.

Sorry to don't have and answer and ask more.
Do you need to remember the full file name of the ".MSG" file that can help you with that ?

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Perhaps \os2\system\somd.msg?

Alfredo Fernández Díaz

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Hi guys, and thank you.
After digging around a bit more, the file is OSO001.msg, and the keys seem to be in the very first message, aka #0. These can be retrieved f.e. with some very simple REXX:
Code: [Select]
/* Get localized equivalents of single confirmation keys and such */
if RxFuncQuery('SysLoadFuncs') then do
  call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
  call SysLoadFuncs
 end
keys = SysGetMessage(0,'OSO001.MSG')
say keys
exit
and naturally you get "Y N A R I" for English, or "S N C R I" for Spanish, and so on.

I got a little worried when I found out the script above yields "Y N A R I" again for Japanese, or "1 2 1 2 3" for Russian, but apparently that is indeed how those work. Trying to format floppies from the command line, which involves this kind of simple confirmation, matches the values contained in the message on a Russian or Japanese system, see screenshots below:
« Last Edit: March 31, 2023, 01:38:56 am by Alfredo Fernández Díaz »