Evan Martin (evan) wrote in evan_tech,
Evan Martin

translating file names

On a GNOME list they're discussing directory names. On a translated system, everything appears in your native language, until you open a file browser and discover your home directory is filled with directories named "Pictures", "Desktop", etc. What to do?
  1. Always create the directories with canonical, English names, and translate the names only when you display them in the GUI.

    Cons: GNOME apps will show one set of names for things, and Firefox, KDE apps, etc. will show another. Even GNOME apps that forget to canonicalize directory names will confuse users. Confuses terminal navigation because the names are wrong. What would typing in paths in a file chooser do--use the English path names or the translated ones?
  2. Or, when you create these directories the first time, translate the directory names depending on the user's language.

    Cons: screws up if the user switches languages. Screws up access via SSH if your terminal client doesn't support Unicode and your directory names are in Chinese. Screws up terminal navigation if the directory names are difficult to type. Screws up any program that doesn't understand Unicode filenames. Screws up any program's compile-time paths to files (though this could be addressed by an API that maps /home/luser/Desktop to /home/luser/Esktop-day).

Both sound pretty bad. For what it's worth OS X chose the former. Does anybody know what Windows did?

I remember discussing this with Brad for LJ's URL formats: we (I originally wrote he, but I didn't want to get it wrong and blame something on him; but I'm pretty sure it should be "he") wanted to not use English paths in user URLs, so (for example) the "archives" of the journal are just stored in date-numbered directories. Of course, you can't use Unicode in paths and there's still stuff like "friends", "?mode=reply", so you can't really win...

  • memcache job offers

    I get occasional recruiter spam that specifically calls out "my work on memcached". This is pretty funny because all I did was make some trivial…

  • closest computer

    I have a computer in the closet that serves music. I haven't thought much about the computer as I've used it -- I just know it's always available on…

  • application stack

    "Put yourself in 1995. I'm going to tell the you of 1995 that in 2010, there will be a software platform with the following properties:" Luis Villa…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.