"Richard Burmeister" <[EMAIL PROTECTED]> wrote in message
news:10889@palm-dev-forum...
>
> From: "Ken Krugler" <[EMAIL PROTECTED]>
>
> > b. The localizers are unable to re-order parameters in the
> > message, which is frequently necessary to get a
> > grammatically correct (or at least reasonable) translation.
> >
>
> The code fragment posted above uses the hard coded string to make the
> FrmCustomAlert example clear.  In actual practice, I always used a
resource
> for the format string.  E.g.,
>
> SysCopyStringResource( temp, localFormatString );
> StrPrintF( msg, temp, name, code );
> FrmCustomAlert( GeneralAlert, msg, NULL, NULL );
>
> To localize the message, the localFormatString resource (in this example,
> "Thank's for registering, %s!\n\nYour code is %s") gets translated.
> Therefore, reasons a and b above no longer apply.  I'm sorry if
simplifying
> the explanation caused any confusion.

Actually, reason b does still apply, since you are locked into having the
name appear before the code, since there is no way to use the fourth
parameter in the StrPrintF parameter list before using the third.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to