文件夹名称本地化如何工作?

Dis*_*ame 6 osx gui directory directory-structure locale

在 Mac OS X 中,有像Desktop,UsersLibrary.

在本地化系统上,这些将被命名为SkrivbordAnvändareBibliotek(瑞典语)

但是当我在终端中时,我无法输入,例如: sudo mv ~/Skrivbord ~/Bibliotek,但我必须像这样输入他们的实际名称:sudo mv ~/Desktop ~/Library

它在 GUI 中的名称如何使用任何语言,但在终端中它是英文的?

Dis*_*ame 0

由于 Finder 是用 Objective-C 构建的,因此它使用 nib 本地化。这是一个例子。

\n\n
/System/Library/CoreServices/Finder.app/Contents/Resources/sv.lproj/ServicesMenu.strings\n
Run Code Online (Sandbox Code Playgroud)\n\n

sv.lproj代表Svenska.localized project

\n\n

这是内容ServicesMenu.strings

\n\n
bplist00\xe2\x80\x9d[Finder/Open]Finder/Reveal_Finder/Show InfolFinder/\xc3\xb7ppna_Finder/Visa i Finder_Finder/Visa info i Finder)<Ul\xc3\xa0\n
Run Code Online (Sandbox Code Playgroud)\n