- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
première!!
Admin
Can you please to be posting Hindi version of this?
Admin
I particularly like how they handle the special cases such as "quatre-vingt-un"...
Admin
Did anyone notice the non-translation of "six?"
Admin
I'm awfully glad they handle the common english phrase "dix-six" correctly.
Admin
It's the same in both languages.
Admin
TRWTF is the French.
The Eskimo language has 17 different words for "snow" because it is such a central part of their daily life and pervades their reality. Similarly, the French have 14 words for "surrender".
But what is the French word for victory?
... Nobody knows.
Admin
Great! So why have a "replace" for it? Yeeesh...that alone is a WTF
Admin
Admin
Admin
Same with dollars and cents toward the top.
Admin
Nor "permière"??
Admin
So what about trillion and quadrillion? Trillion is a least within the realm of possibility compared to duodecillion.
Admin
Admin
FTFY.
CAPTCHA: dignissim - I have forfeited all my dignity for a bit of potty humor ...
Admin
Are you calling the massive chain of replace calls well written code? I found TRWTF.
Admin
it looks like they're replacing "six" with "six" and "ten" with "dix" and then "dix-six" with "seize".... So.... since the English word for 16 is "six-ten", it works fine.
Admin
Oops! My mistake. The English word for 16 is obviously "ten-six" - how silly of me!
Admin
Then, two weeks ago, the impossible happened, and we found a Frenchman at work. When he saw us, he raised a handkerchief in his hand and ran away.
Admin
Everyone has been ignoring the elephant in the room. This is in an Oracle DATABASE, fer cryin' out loud! How about putting the translations into a TABLE (you know, those things that databases are full of) and then SELECTing the translated string?
And y'all are quibbling over a missing this that or the other thing. Sheesh.
Admin
Admin
Am I reading this right? Do they translate -un to -une followed by une to un ?
Admin
Amateur. The only people properly able to insult the Frogs are Englishmen. We've had millennia of practice.
All you can do is throw that lame and inaccurate accusation of cowardice at them, based on the fact that they weren't prepared to play your silly war games in the Middle East.
If you want to get with the true European tradition, the ones accused of cowardice are the Italians. (Why does an Italian tank have 4 gears? One forward, three reverse, etc. etc.)
But however much we may insult each other and disrespect each other, we save our true hatred for the people on the other side of the pond. That's right, everybody hates the Americans.
Ah wev ma pravvat pahts at your Auntie.
Admin
Except it ought to be "permier" unless user "première" is actually female.
Admin
Urban legend: http://en.wikipedia.org/wiki/Eskimo_words_for_snow
Admin
Myth. See Geoff Pullum for details.
Admin
I'm sorry, but as a technique for translating the names of numbers (in the context of currency) from English to French, this is actually a pretty neat idea, and was probably cut and pasted with minimal amendments from a 40-year-old COBOL or FORTRAN routine from the time when there was a need to implement such compact routines. I take my hat off to its original designer.
Admin
Although this looks really bad, I think the code is a valid solution for translating numbers.
All of the cases one might expect up into the billions are covered thoroughly; a good amount of thought is required to make sure of that.
There may be advantages to putting it in a table or a flat file, but calling this function is still pretty quick and can allow for shorter statements.
Admin
GTFO 4chan !
Admin
Addendum (2011-08-08 12:56): Here's the kind of man I'm talking about:
That which has been seen...
Admin
J'appelle [$shenanigans]!
Admin
:(
Admin
Do you ever wonder if the reason why you feel such a need to differentiate yourself from your American cousins is that you know how similar you really are? Is there any criticism you could make of the states that couldn't also be made of your country?
From what of seen, your answer will be "at least were not as bad", but that's all you have to be proud of anymore: Not as bad as the other guy. Will you print it on your money?
Admin
I think of it as a fraternal relationship, really - brothers who call one another all kinds of horrible names and things, but who ultimately will share toys.
Admin
Admin
It's because according to the French, 70 is 60 penises, while 90 is really 80 penises. Hence the need to get rid of the dicks.
Admin
Admin
Fun fact, the United States accounts for roughly 40% of the money spent on military expenditures world wide. Roughly 700 billion per year. #2 is China at 115 billion per year. The rest of the world (aside from those two) combine for about 830 billion.
But hey, it only takes us 10 years and counting to conquer a landlocked country with a GDP of less than 30 billion a year.
Admin
I think you know that the word "conquer" is a blatant mischaracterization.
Admin
Occupation, unlike conquest, is by definition eternal.
Also, this is rather ridiculous. We could have killed every living thing in Afghanistan in 15 minutes, so I hope you mix your analysis with some consideration for quality.
Admin
Wow... straw man arguments on the Internet. Who would have thought?
Admin
print translate_to_french('big ten');
--> big dix
Admin
And I'm pretty damn sure quintillion (English) translates to trillion (French)... WTF is a cintillion???
Admin
Maybe you shouldn't forget that the Americans arrived at the very end of the war when Germany was already finished, anyway. However, the Marshall Plan was a good thing, indeed.
Admin
Ten-six... Maybe we should look at the requirements... Maybe we are counting ten six packs of beer so... It will be correct no?
Admin
A am using to be Google for translation needs. More flexible to be and with no selection to be language needed. They has downloadable web api heres.
Not spam to be Askimet!
Admin
...and, of course, we all know that comments are unacceptable, right?
Aksimet: Your spam sensor is too sensitive. I had to submit a dummy responce and then edit this in because the original response kept getting rejected...even though I am signed on!!!
Admin
Oh, thanks for letting me know, I'll just go over and turn down the knob.
Just be a minute...
There, try it now.
Admin
I find the comments by trtrwtf and publiclurker to be sensible and convincing. Their positions follow cause and effect and require the least suspension of disbelief.
Admin
There's a massive string replace function to do translations in a database, and all we can talk about is US Congress ?
And with we, I actually mean you ;)