New feature suggestion : Allow Temporary Items in labels ofActionkeys and ACTIONBARs

Ken Langendock Ken at Langendock.com
Mon Jul 30 16:29:12 CDT 2007


I am not sure you can help with most of the issues, but anything helps.
Ken
 
 
- error messages
I have an ErrorMessages file that I maintain and generate the QKMSGDES file.
 
- screen titles
I use a Table to store/retrieve the values (Programs)
 
- field and other labels
I use the dictionary with CC=
 
Element Address1 CHARACTER Size 30 &
@if FRENCH
  Help        "Première ligne d'adresse de rue" &
  Heading     "^Adresse" &
  Label       "Adresse"
@elseif SPANISH
  Help        "Primera línea de la dirección de la calle" &
  Heading     "^Dirección" &
  Label       "Dirección"
@else
  Help        "First line of street address" &
  Heading     "^Address" &
  Label       "Address"
@endif

- function key labels
I use copy modules for "most" of the function keys (6-8 are static copy
modules) and CC's
@if SPANISH
KEY 4 LEVEL 1 LABEL "Completo        " LOCAL DATA SKIP ALL
KEY 4 LEVEL 2 LABEL "                " LOCAL DATA NULL
@elseif FRENCH
KEY 4 LEVEL 1 LABEL "Complet         " LOCAL DATA SKIP ALL
KEY 4 LEVEL 2 LABEL "                " LOCAL DATA NULL
@else
KEY 4 LEVEL 1 LABEL "Complete        " LOCAL DATA SKIP ALL
KEY 4 LEVEL 2 LABEL "                " LOCAL DATA NULL
@endif

- menu labels and menuitem labels
cc's
 
- month names (from the dictionary)
PDL with CC's
 
- decimal character (from the dictionary)
Not dealt with yet
 
- numeric item formatting
Not dealt with yet
 
- date formatting
Copy modules (inptdates.qks - reads a flag passed thru every screen
T-DateFormat)
 
- collating sequences (if the data is non-English)
Not dealt with yet
 
- upshift/downshift sequences (if the data is non-English)
Values/Usages/Captions and CC's
Output procedures with CC's
 
Usage FlagN CHARACTER Size 1 &
@if ELOQUENCE
  Default Item Datatype CHARACTER SIZE 2 &
@else
  Default Item Datatype CHARACTER SIZE 1 &
@endif
  Initial "N" &
  Picture "^^^" &
  Upshift &
@if FRENCH
  Values  "Y" Caption "Oui", &
          "N" Caption "Non" &
  Description "Oui ou non drapeau a initialisé à 'N'on"
@elseif SPANISH
  Values  "Y" Caption "Si", &
          "N" Caption "Nin" &
  Description "Sí o ninguna bandera se inicializó a 'N'inguna"
@else
  Values  "Y" Caption "Yes", &
          "N" Caption "No" &
  Description "Yes or No flag initialized to 'N'o"
@endif

PROCEDURE INTERNAL OUTPUT-YES-NO
; Display Yes or No in the correct language
BEGIN
@if FRENCH
  IF FIELDTEXT EQ "Y"
     THEN LET FIELDTEXT = "Oui"
  IF FIELDTEXT EQ "N"
     THEN LET FIELDTEXT = "Non"
@elseif SPANISH
  IF FIELDTEXT EQ "Y"
     THEN LET FIELDTEXT = "Si"
  IF FIELDTEXT EQ "N"
     THEN LET FIELDTEXT = "Non"
@else
  IF FIELDTEXT EQ "Y"
     THEN LET FIELDTEXT = "Yes"
  IF FIELDTEXT EQ "N"
     THEN LET FIELDTEXT = "No"
@endif
END

 
 

  _____  

From: Deskin, Bob [mailto:Bob.Deskin at Cognos.COM] 
Sent: July 30, 2007 5:12 PM
To: Ken Langendock; Daniel Rodríguez; powerh-l at lists.sowder.com
Subject: RE: New feature suggestion : Allow Temporary Items in labels
ofActionkeys and ACTIONBARs


I'd like to follow up on this. The idea is to have an application that can
be used in multiple languages. A probably not complete list of things that
need to be considered in screens are:
 
- error messages
- screen titles
- field and other labels
- function key labels
- menu labels and menuitem labels
- month names (from the dictionary)
- decimal character (from the dictionary)
- numeric item formatting
- date formatting
- collating sequences (if the data is non-English)
- upshift/downshift sequences (if the data is non-English)
 
I'm sure there are more. 
 
While it would be very nice to prompt the user for a language and proceed
accordingly, things like month names and messages make this difficult. We
usually suggest that there is a compiled dictionary and application for each
language and that the language code be specified before the application is
actually started.
 
If there was just one or two things preventing an easy multi-language
screen, then we could see how difficult it was to add that feature, but if
there are many things or after this one, there'll be another... Well, I
don't want to do something piecemeal.
 
So how do you solve the above?
 
Bob
 

-----Original Message-----
From: powerh-l-bounces+bob.deskin=cognos.com at lists.sowder.com
[mailto:powerh-l-bounces+bob.deskin=cognos.com at lists.sowder.com] On Behalf
Of Ken Langendock
Sent: July 24, 2007 8:23 AM
To: 'Daniel Rodríguez'; powerh-l at lists.sowder.com
Subject: RE: New feature suggestion : Allow Temporary Items in labels
ofActionkeys and ACTIONBARs


I agree with this one.
Or even let it "steal" the label from a dictionary Item?
 
As it is now we have 95% of our function keys in copy modules and I have to
wrap CC's around them. The problem is magnified for the ones in the
individual screens.
 
@if Spanish
KEY 1 LEVEL 1 LOCAL LABEL "Ayuda" ACTION DESIGNER HELP
@elsif French

KEY 1 LEVEL 1 LOCAL LABEL "Aide" ACTION DESIGNER HELP
@else

KEY 1 LEVEL 1 LOCAL LABEL "Help" ACTION DESIGNER HELP
@endif
 
it would be nice to be able to use a variable or a label from the
dictionary.

KEY 1 LEVEL 1 LOCAL LABEL OF MyElementForHelp ACTION DESIGNER HELP
 
Ken
  _____  

From: powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com
[mailto:powerh-l-bounces+ken.langendock=rogers.com at lists.sowder.com] On
Behalf Of Daniel Rodríguez
Sent: July 24, 2007 6:57 AM
To: powerh-l at lists.sowder.com
Subject: New feature suggestion : Allow Temporary Items in labels of
Actionkeys and ACTIONBARs


Our aplicaction has been developed to work in multiple languages (Spanish,
English, French, Polish,...).

All the titles and field's labels has been replaced with temporary items but
it is not possible to do the same with the keys and actionbars. 

Something like this would be nice:

KEY 1 LEVEL 1 LOCAL LABEL TLBL_DELETE ACTION DELETE

ACTIONMENU  LABEL TLBL_ACTIONS 
   MENUITEM LABEL TLBL_ENTRY ACTION ENTRY


Kind regards,

Daniel Rodriguez 


 
     This message may contain privileged and/or confidential information.
If you have received this e-mail in error or are not the intended recipient,
you may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20070730/8d584fee/attachment.html


More information about the powerh-l mailing list