You could even translate it to "gentleman English".

"you have &1 &2" --> "Good sir, there is &2 for you, actually &1 &2."

Result would be example:

"Good sir, there is messages for you, actually 99 messages."


Jussi




On Wed, Oct 10, 2012 at 9:08 PM, Jussi Lahtinen <[email protected]>wrote:

>
> Still wouldn't work for Yoda-speak"
>>
>> "29 messages have you" :-)
>>
>
> Wrong, this would work.
>
> Code was:
>
> Print Subst(("you have &1 &2"), x, IIf(x > 1, ("messages"), ("message")))
>
> And so, you would translate "you have &1 &2" to "&1 &2 have you".
>
>
> Jussi
>
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to