Oma*_*han 3 kde terminal plasma locale language
我最近在我的系统上安装了阿拉伯语,从那时起 apt 有时用阿拉伯语做事,有时用英语做事
\nuser@pop-os:~$ sudo apt update && sudo apt upgrade\nHit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease \nHit:2 http://packages.microsoft.com/repos/code stable InRelease \nHit:3 http://apt.pop-os.org/proprietary jammy InRelease \nHit:4 http://apt.pop-os.org/release jammy InRelease\nHit:5 http://apt.pop-os.org/ubuntu jammy InRelease\nHit:6 http://apt.pop-os.org/ubuntu jammy-security InRelease\nHit:7 http://apt.pop-os.org/ubuntu jammy-updates InRelease\nHit:8 http://apt.pop-os.org/ubuntu jammy-backports InRelease\n\xd9\x82\xd8\xb1\xd8\xa7\xd8\xa1\xd8\xa9 \xd9\x82\xd9\x88\xd8\xa7\xd8\xa6\xd9\x85 \xd8\xa7\xd9\x84\xd8\xad\xd8\xb2\xd9\x85... \xd8\xaa\xd9\x85\xd9\x91% \nBuilding dependency tree... \xd8\xaa\xd9\x85\xd9\x91%\nReading state information... \xd8\xaa\xd9\x85\xd9\x91 \nAll packages are up to date.\n\xd9\x82\xd8\xb1\xd8\xa7\xd8\xa1\xd8\xa9 \xd9\x82\xd9\x88\xd8\xa7\xd8\xa6\xd9\x85 \xd8\xa7\xd9\x84\xd8\xad\xd8\xb2\xd9\x85... \xd8\xaa\xd9\x85\xd9\x910%\nBuilding dependency tree... \xd8\xaa\xd9\x85\xd9\x91% \nReading state information... \xd8\xaa\xd9\x85\xd9\x91 \n\xd8\xad\xd8\xb3\xd8\xa7\xd8\xa8 \xd8\xa7\xd9\x84\xd8\xaa\xd8\xb1\xd9\x82\xd9\x8a\xd8\xa9... \xd8\xaa\xd9\x85\xd9\x91%\nGet more security updates through Ubuntu Pro with 'esm-apps' enabled:\n vlc-plugin-qt libvlc5 libimage-magick-perl vlc-data libvlccore9 vlc\n imagemagick libavcodec-extra vlc-bin vlc-l10n libavdevice58 libopenexr25\n libmagick++-6.q16-8 libpostproc55 libmagickcore-6.q16-6-extra\n vlc-plugin-samba libimage-magick-q16-perl libmagickwand-6.q16-6\n libavcodec-extra58 vlc-plugin-notify libavutil56 imagemagick-6.q16\n libswscale5 libeditorconfig0 libmagickcore-6.q16-6 vlc-plugin-access-extra\n vlc-plugin-skins2 libgsl27 vlc-plugin-video-splitter libswresample3\n imagemagick-6-common vlc-plugin-video-output libavformat58 libgslcblas0\n libvlc-bin vlc-plugin-base vlc-plugin-visualization libavfilter7\nLearn more about Ubuntu Pro at https://ubuntu.com/pro\n0 \xd8\xb3\xd9\x8a\xd8\xaa\xd9\x85 \xd8\xaa\xd8\xb1\xd9\x82\xd9\x8a\xd8\xaa\xd9\x87\xd8\xa7\xd8\x8c 0 \xd9\x85\xd8\xab\xd8\xa8\xd8\xaa\xd8\xa9 \xd8\xad\xd8\xaf\xd9\x8a\xd8\xab\xd8\xa7\xd9\x8b\xd8\x8c 0 \xd9\x84\xd8\xa5\xd8\xb2\xd8\xa7\xd9\x84\xd8\xaa\xd9\x87\xd8\xa7 \xd9\x88 0 \xd9\x84\xd9\x85 \xd9\x8a\xd8\xaa\xd9\x85 \xd8\xaa\xd8\xb1\xd9\x82\xd9\x8a\xd8\xaa\xd9\x87\xd8\xa7.\n
Run Code Online (Sandbox Code Playgroud)\n有时它甚至会将“Hit”的阿拉伯语随机放在英语之间(但我无法在这篇文章中复制它)。
\n我看到一些解决方案说我需要更改区域设置。这是我从 Locale 得到的:
\nuser@pop-os:~$ locale\nLANG=en_US.UTF-8\nLANGUAGE=en_US:en_US:en_US:ar\nLC_CTYPE="en_US.UTF-8"\nLC_NUMERIC="en_US.UTF-8"\nLC_TIME="en_US.UTF-8"\nLC_COLLATE="en_US.UTF-8"\nLC_MONETARY="en_US.UTF-8"\nLC_MESSAGES="en_US.UTF-8"\nLC_PAPER="en_US.UTF-8"\nLC_NAME="en_US.UTF-8"\nLC_ADDRESS="en_US.UTF-8"\nLC_TELEPHONE="en_US.UTF-8"\nLC_MEASUREMENT="en_US.UTF-8"\nLC_IDENTIFICATION="en_US.UTF-8"\nLC_ALL=\n
Run Code Online (Sandbox Code Playgroud)\n最后,这是我来自 neofetch 的系统信息:
\nuser@pop-os:~$ neofetch\n ///////////// user@pop-os \n ///////////////////// --------------- \n ///////*767//////////////// OS: Pop!_OS 22.04 LTS x86_64 \n //////7676767676*////////////// Host: Latitude 5520 \n /////76767//7676767////////////// Kernel: 6.6.6-76060606-generic \n /////767676///*76767/////////////// Uptime: 13 hours, 22 mins \n ///////767676///76767.///7676*/////// Packages: 2983 (dpkg), 52 (flatpak), 8 (snap) \n/////////767676//76767///767676//////// Shell: bash 5.1.16 \n//////////76767676767////76767///////// Resolution: 1920x1080 \n///////////76767676//////7676////////// DE: Plasma 5.24.7 \n////////////,7676,///////767/////////// WM: kwin \n/////////////*7676///////76//////////// Theme: [Plasma], Breeze [GTK2/3] \n///////////////7676//////////////////// Icons: [Plasma], breeze-dark [GTK2/3] \n ///////////////7676///767//////////// Terminal: konsole \n //////////////////////'//////////// CPU: 11th Gen Intel i5-1135G7 (8) @ 4.200GHz \n //////.7676767676767676767,////// GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics] \n /////767676767676767676767///// Memory: 6696MiB / 23779MiB \n ///////////////////////////\n ///////////////////// \n ///////////// \n
Run Code Online (Sandbox Code Playgroud)\n我怎样才能把它改回只有英文?
\nLANGUAGE环境变量特定于GNU gettext (因此会影响使用 gettext的程序来简化其国际化)
你定义LANGUAGE=en_US:en_US:en_US:ar
其中,当原始语言为 en_US 时(当源代码被编程为以英语输出某些文本时),en_US 本身不会作为可能的翻译。
只有最终的ar才会保持原样,这会在可用时系统地启用阿拉伯语翻译,而在不可用时默认为原始语言 (en_US)。(顺便说一句,这给你留下了随机切换的印象)
如果您希望所有内容仅以英语显示,则必须删除尾随的ar
请注意,您也可以避免设置此变量,因为它会自动回退到 en_US 默认值。
小心!如果使用的 DE 可能会在启动时覆盖您的登录 shell 设置,您应该更喜欢通过专用的 DE 工具来选择它。
特别是对于您的 KDE-Plasma,通过系统设置 > 区域设置 > 语言。
归档时间: |
|
查看次数: |
79 次 |
最近记录: |