Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Some important design considerations apply to developing truly multilingual applications. Consider the following simple sequence of screen panels representing a product inquiry:

...

Panel

                                  Specify Product Number                      

          Key in Product Number and press Enter.                      

...

          Product Number . . . . . . . 64786                          

...

Panel

                           Product Details                             

...

  

  

...


          Product Number . . . . . :  64786                          

...

          Description  . . . . . . . . . :  1 kg plastic bag of cane sugar 
          Short Description  . . .  :  SUGAR 1KG                      
          Price  . . . . . . . . . . . . . . . :  2.45                            

...

          Stock on Hand  . .

...

.

...

.

...

.

...

.

...

:

...

  7685                        

  
Initially the RDML program could be coded like this:

     GROUP_BY NAME(#PANEL001) FIELDS(#PRODNO #PRODES #PROSDES #PRICE #STOCK)
BEGIN_LOOP

...

     REQUEST FIELD((

...

#PBINST01 *

...

OUTPUT *NOID)

...

 #PRODNO)

...

     FETCH FIELDS(#PANEL001)

...

 FROM_FILE(PRODMST)

...

 WITH_KEY(#PRODNO)
        IF_

...

STATUS IS_NOT(*OK)

...

             MESSAGE MSGTXT(*MTXT12347)
        ELSE

...

             DISPLAY FIELDS(#PANEL001)
        ENDIF
END_LOOP

By setting up the correct multilingual attributes for this program you can instantly achieve the following variations in this program. Refer to Specifying a Field's Multilingual Attributes for details.

...