× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,

You only want the following textes to be translated into French or German?
If so, the German translation is:
Opt Message ID Severity Message Text
UTLCF03 0 F3=Exit --> F3=Verlassen
UT12001 0 Center text in field --> Text im Feld zentrieren
UT12002 0 Type text to be centered: --> Text zum
Zentrieren erfassen
UT12003 0 & friends --> &Freunde
UT12004 0 German --> Deutsch
UT12005 0 English --> Englisch
UT12007 0 French --> Französisch
UT12050 0 -= Center Text in field =- --> -= Text im Feld
zentrieren =-

We normally handle Multilanguage as follows:
1. Within the job we override the (language) message file depending on the
user and associated language within the starting program.
2. DDS (Display-Files) will automatically display the language text.
3. For Retrieving the level 1 message text we use a simple CL Program based
on the RTVMSG CL command using the overridden message file.
4. The CL is wrapped with an RPG Function returning the Level1 Msg Text:
--> MyMsgTxt = RtvMsgTxt('MSG4711');
5. we always have a message Id that consists only of a single place holder
&1. Using this message Id we can send a message in any language wherever we
want:
--> MyMsgTxt = RtvMsg('MSG4711');
--> SndMsg(DummyMsgId: MyMsgTxt: '': '*ESCAPE'); (=Sending an Escape
Message)
--> SndMsg('MSG4711': '': '*EXT'); (=Sending a Message to the external
message queue)

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von Booth Martin
Gesendet: Saturday, 18.1 2014 23:45
An: RPG programming on the IBM i (AS/400 and iSeries)
Betreff: Re: RPG retrieval of MSGID text

Replying to my own post...

OK. two problems I haven't solved:

First, writing an initial screen with the MSGIDs as hidden fields yields the
messages I want in my RPG program program. The bad part is that I can't
figure out how to write & read the screen without it ever appearing to the
user, and without needing a user to click the screen to advance. Is there a
way to write & read with no stop & no flash?

Second, since I am trying to use this to show different languages, is there
someone willing to translate these messages into French & German (or any
other language for that matter). If so, please send the translations to my
e-mail. Thank you.

Opt Message ID Severity Message Text
UTLCF03 0 F3=Exit
UT12001 0 Center text in field
UT12002 0 Type text to be centered:
UT12003 0 & friends
UT12004 0 German
UT12005 0 English
UT12007 0 French
UT12050 0 -= Center Text in field =-

(I am looking forward to adding this page to my web site.)

On 1/18/2014 2:40 PM, Booth Martin wrote:
Yes, you are correct, Chuck. I mis-typed the example.

Yes, %msgid() would be just exactly what I am looking for.

Looking at the other suggestions, it occurs to me that perhaps I need
to first write & read a format with the MSGIDs I want to retrieve, as
hidden fields. Or something. Heh heh... more play time. Man I love
this platform.


--
Booth Martin
www.martinvt.com
(802)461-5349
Skype: booth.martin

Hofstadter's Law: It always takes longer than you expect, even when you take
Hofstadter's Law into account.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.