Live data from Hacker News

Why internationalization of commands is a very bad idea

gist.github.com

1–10 of 52 posts

Re: Why internationalization of commands is a very bad idea

#5
No, it's not a bad idea, and these 4 lines of bash script contain no solid reasoning, argument, or business logic as to why helping the other 80% of the world's population is a very bad idea.

Doing internationalization without support libraries is a very bad idea, as this sample code helps illustrate.

Re: Why internationalization of commands is a very bad idea

#6

No, it's not a bad idea, and these 4 lines of bash script contain no solid reasoning, argument, or business logic as to why helping the other 80% of the world's population is a very bad idea. Doing internationalization without support libraries is a very bad idea, as this sample code helps illustrate.

It's a terrible idea unless you can force the command to accept arguments in a specific language. Do you expect someone to iterate all the possible variants of "yes"?

Re: Why internationalization of commands is a very bad idea

#7

No, it's not a bad idea, and these 4 lines of bash script contain no solid reasoning, argument, or business logic as to why helping the other 80% of the world's population is a very bad idea. Doing internationalization without support libraries is a very bad idea, as this sample code helps illustrate.

It's a terrible idea unless you can force the command to accept arguments in a specific language. Do you expect someone to iterate all the possible variants of "yes"?

With the proper support libraries, Da/Yes/Ha/Ja/etc/etc/etc it's trivial.

Re: Why internationalization of commands is a very bad idea

#9

No, it's not a bad idea, and these 4 lines of bash script contain no solid reasoning, argument, or business logic as to why helping the other 80% of the world's population is a very bad idea. Doing internationalization without support libraries is a very bad idea, as this sample code helps illustrate.

I'm pretty sure that's not bash.

In any case, the script makes a cogent and concise argument. That argument is that command line options are not just a human interface, but also a machine interface, and localization of machine interfaces leads to pain and catastrophe.

You certainly don't have to agree with that argument, but it's there.

Re: Why internationalization of commands is a very bad idea

#10
post #9

No, it's not a bad idea, and these 4 lines of bash script contain no solid reasoning, argument, or business logic as to why helping the other 80% of the world's population is a very bad idea. Doing internationalization without support libraries is a very bad idea, as this sample code helps illustrate.

I'm pretty sure that's not bash. In any case, the script makes a cogent and concise argument. That argument is that command line options are not just a human interface, but also a machine interface, and localization of machine interfaces leads to pain and catastrophe. You certainly don't have to agree with that argument, but it's there.

Sure, any naive implementation will lead to pain and catastrophe. But I don't buy that this is a cogent and concise argument to NOT do it.
Post reply on HN