我无法修复我的语言环境设置。之前有人在这里发过类似的问题:
但事实证明这毫无帮助。我的问题不是我的系统上没有安装语言环境,大多数答案似乎都暗示了这一点。详细信息:
$ locale-gen "nb_NO.UTF-8"
Generating locales...
nb_NO.UTF-8... up-to-date
Generation complete.
$ update-locale LC_ALL="nb_NO.UTF-8"
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_PAPER = "en_NO.UTF-8",
LC_ADDRESS = "en_NO.UTF-8",
LC_MONETARY = "en_NO.UTF-8",
LC_NUMERIC = "en_NO.UTF-8",
LC_TELEPHONE = "en_NO.UTF-8",
LC_IDENTIFICATION = "en_NO.UTF-8",
LC_MEASUREMENT = "en_NO.UTF-8",
LC_TIME = "en_NO.UTF-8",
LC_NAME = "en_NO.UTF-8",
LANG = "en_NO.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
我猜我的问题与 KDE 有关,或者与我的本地语言不同的操作系统语言有关(我希望所有内容都使用英文,但有挪威键盘设置、货币等)。
我认为这个问题是在一段时间前更改系统设置对话框中的某些设置后出现的,是错误吗?
答案1
我设法通过将系统语言从美式英语更改为英式英语来暂时解决了该问题。
我通过 KDE 系统设置 > 区域设置 > 语言对话框执行了此操作。有趣的是,它显示了一条错误消息,说不允许替换当前语言,但实际上这是因为当我点击“应用”按钮并重新启动机器时,新设置已应用。
问题悬而未决,直到错误修复。当前本地输出:
$ locale
LANG=en_GB.UTF-8
LANGUAGE=en
LC_CTYPE="nb_NO.UTF-8"
LC_NUMERIC="nb_NO.UTF-8"
LC_TIME="nb_NO.UTF-8"
LC_COLLATE="nb_NO.UTF-8"
LC_MONETARY="nb_NO.UTF-8"
LC_MESSAGES="nb_NO.UTF-8"
LC_PAPER="nb_NO.UTF-8"
LC_NAME="nb_NO.UTF-8"
LC_ADDRESS="nb_NO.UTF-8"
LC_TELEPHONE="nb_NO.UTF-8"
LC_MEASUREMENT="nb_NO.UTF-8"
LC_IDENTIFICATION="nb_NO.UTF-8"
LC_ALL=nb_NO.UTF-8