I'd also suggest renaming this function--for something so app specific (doing mucking around with directory names, if I understood), it's named with something very generic.  I assumed this converted from language code to language text, for example.