Oh I see, didn't realize. I've never used this translation thing yet.
Thanks!
Rolf
Am 12.10.2012 12:51, schrieb Bruce:
> On Fri, 2012-10-12 at 12:31 +0200, Rolf-Werner Eilert wrote:
>> Just a question:
>>
>> Am 10.10.2012 16:20, schrieb Jussi Lahtinen:
Print ("you have ")& X& iif(x>1,
2012/10/12 Rolf-Werner Eilert :
> Just a question:
>
> Am 10.10.2012 16:20, schrieb Jussi Lahtinen:
>>> Print ("you have ")& X& iif(x>1, ("message"), ("messages "))
>>>
>>
>> This is still not good. Better would be:
>>
>> Print Subst(("you have&1&2"), x, IIf(x> 1, ("messages"), ("message")))
>
>
Just a question:
Am 10.10.2012 16:20, schrieb Jussi Lahtinen:
>> Print ("you have ")& X& iif(x>1, ("message"), ("messages "))
>>
>
> This is still not good. Better would be:
>
> Print Subst(("you have&1&2"), x, IIf(x> 1, ("messages"), ("message")))
Why do you put the () around the ""?
Accordi
rom: Caveat
> To: gambas-user@lists.sourceforge.net
> Sent: Wed, 10 Oct 2012 11:57:15 +0200
> Subject: Re: [Gambas-user] Example to IIF: what is meant here
>
> > As I read it, it means it would be difficult to make a multi-language
> > version of that message. It's too
Is this translatable ?
X = 7
PRINT "You have " & X & If(X <> 1, "messages", "message") & " waiting."
-- Original Message ---
From: Caveat
To: gambas-user@lists.sourceforge.net
Sent: Wed, 10 Oct 2012 11:57:15 +0200
Sub
Not many of us are...:-(
--
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 .
Yeah, I guess I'm not good enough to be true English gentleman!
Jussi
On Wed, Oct 10, 2012 at 9:16 PM, Caveat wrote:
> LOL... you got me on the Yoda-speak one, but a true English gentleman
> would know that there *is* one message and there *are* several messages :-D
>
> On 10/10/12 20:11, Juss
LOL... you got me on the Yoda-speak one, but a true English gentleman
would know that there *is* one message and there *are* several messages :-D
On 10/10/12 20:11, Jussi Lahtinen wrote:
> You could even translate it to "gentleman English".
>
> "you have &1 &2" --> "Good sir, there is &2 for you,
Oh, little error! "there is" should be "there are", so it is not possible
that easily!
Jussi
On Wed, Oct 10, 2012 at 9:11 PM, Jussi Lahtinen wrote:
> You could even translate it to "gentleman English".
>
> "you have &1 &2" --> "Good sir, there is &2 for you, actually &1 &2."
>
> Result would b
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 wrote:
>
> Still wouldn't w
> 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
---
Still wouldn't work for Yoda-speak"
"29 messages have you" :-)
On 10/10/12 16:26, Fabien Bodard wrote:
> True
> :-)
> Le 10 oct. 2012 16:21, "Jussi Lahtinen" a écrit :
>
>>> Print ("you have ") & X & iif(x>1, ("message"), ("messages "))
>>>
>> This is still not good. Better would be:
>>
>> Prin
True
:-)
Le 10 oct. 2012 16:21, "Jussi Lahtinen" a écrit :
> > Print ("you have ") & X & iif(x>1, ("message"), ("messages "))
> >
>
> This is still not good. Better would be:
>
> Print Subst(("you have &1 &2"), x, IIf(x > 1, ("messages"), ("message")))
>
> Now translation is not depended on order
> Print ("you have ") & X & iif(x>1, ("message"), ("messages "))
>
This is still not good. Better would be:
Print Subst(("you have &1 &2"), x, IIf(x > 1, ("messages"), ("message")))
Now translation is not depended on order of words.
Jussi
Yes caveat its true this way is available for just a few of language for
example I think it not work for Germany or asian
Le 10 oct. 2012 11:58, "Fabien Bodard" a écrit :
> You need to do:
>
> Print ("you have ") & X & iif(x>1, ("message"), ("messages "))
>
> Le 10 oct. 2012 11:48, "Rolf-Werner E
Ok, that makes sense.
Thank you too!
Rolf
Am 10.10.2012 11:58, schrieb Fabien Bodard:
> You need to do:
>
> Print ("you have ")& X& iif(x>1, ("message"), ("messages "))
>
> Le 10 oct. 2012 11:48, "Rolf-Werner Eilert" a
> écrit :
>>
>> Hi all,
>>
>> Who has made the examples for IIF? Maybe yo
Ahh - ok :-) I thought it was something more difficult...
Thanks
Rolf
Am 10.10.2012 11:57, schrieb Caveat:
> As I read it, it means it would be difficult to make a multi-language
> version of that message. It's too broken up and makes a specific
> English grammatical choice (whether to add 's'
You need to do:
Print ("you have ") & X & iif(x>1, ("message"), ("messages "))
Le 10 oct. 2012 11:48, "Rolf-Werner Eilert" a
écrit :
>
> Hi all,
>
> Who has made the examples for IIF? Maybe you can explain what you meant
> by "not translatable":
>
> ' Never do the following in real code, because
As I read it, it means it would be difficult to make a multi-language
version of that message. It's too broken up and makes a specific
English grammatical choice (whether to add 's' for plural).
Someone who wanted to translate this program to work in another
country's language would struggle w
Hi all,
Who has made the examples for IIF? Maybe you can explain what you meant
by "not translatable":
' Never do the following in real code, because it is not translatable!
X = 7
PRINT "You have " & X & " message" & If(X <> 1, "s", "") & " waiting."
Thanks
Rolf
-
20 matches
Mail list logo