On 16/10/2016 17:14, Bob Spelten wrote:
Op Sun, 16 Oct 2016 12:11:10 +0200 schreef pjwitte <pjwi...@online.no>:

On 14/10/2016 17:34, Bob Spelten wrote:
Op Fri, 14 Oct 2016 12:18:31 +0200 schreef pjwitte <pjwi...@online.no>:

Could poeple please tell me what differences there are between the
various language versions of the QPCA2 button utilities or any
other QPAC2 component?

Starting with BUTTON_SLEEP = BUTTON_SCHLAF in German, does the
button frame or any other Thing or component have a language
dependent name that has an affect on how the utility is accessed?
(Mere display information, such as configuration item labelling
etc, is not important in this context.)

Thanks in advance,

As far I can see from Viewing the 3 languages, these are the
differences:

 E              G               F
 Things                         Choses
 Button                         Bouton
 Exec                           Exéc
 Wake                           Réveil
 Pick                           Choix
 Rjob
 Sysdef
 Files          Dateien         Fichiers
 Jobs
 Channels       Kanäle          Canaux
 Hotkeys
 Hotjobs
 Button_Pick
 Button_Sleep   Button_Schlaf

The 4 keywords are the same for all 3.

Bob

Thanks for replies. Perhaps my question was unnecessary general. It
seems unlikely that calling Files for Dateien or Fichiers is going to
cause many problems. However Button_Sleep and Button Frame are Things
that may quite likely be used in a common programs and toolkits, and
therefore it matters what they are called.

Tobias suggests that in the German version both Button_Sleep and
Button_Schlaf will work. This might mean that Button_Sleep is the
default in all languages in addition to local. Or it might mean he has
two versions of Qpac2 loaded..

Please EXEP 'Things' ('Choses'?)and take a look to see what these
Things are called on your machine, especially if you have a
non-English version of QPAC2.

Tobias's suggestion does not work when I replace my ENG Qpac2 by the FRA version.
EXEP Things gives "not found", while EXEP Choses works.
The same is true for any of the other translated Thing names.

If you want to use BUTTON_SLEEP in a program you need to check for the Qpac2 version, or use something like Q_ERR_ON/_OFF to catch the error and try again with _SCHLAF.

Bob

There doesnt seem to be an easy way to check the Qpac2 version; at least nothing standard to determin the language. In SBASIC a heuristic approach may be the simplest:

100 IF HOT_TYPE("button_sleep") = 4 THEN
110  EXEP 'button_sleep'
120 ELSE : IF HOT_TYPE("button_schlaf") = 4 THEN
130  EXEP 'button_schlaf'
140 ELSE : IF HOT_TYPE("button_xxxx") = 4 THEN
150  EXEP 'button_xxxx'
160 ELSE: PRINT 'Not found'
170 END IF : END IF : END IF
180 :

The keyword HOT_TYPE is built into SMSQ/E and hot_rext, and returns err_nf if the named Thing is not present. What Id still like to know is what other button_xxxx'es there are out there. Anyone?

The Button Frame Thing appears to be called "Button Frame" in all languages. The sources are in among the SMSQ/E sources, although the binary is not part of the OS but comes with Qpac2. The Button Frame is also mentioned in the latest version of the SMSQ/E Guide. No mention there of language differences.

Per

_______________________________________________
QL-Users Mailing List

Reply via email to