{"id":5878,"date":"2021-03-05T12:30:59","date_gmt":"2021-03-05T12:30:59","guid":{"rendered":"https:\/\/miloserdov.org\/?p=5878"},"modified":"2021-11-20T05:20:59","modified_gmt":"2021-11-20T05:20:59","slug":"how-to-change-kali-linux-language-without-reinstalling-the-system","status":"publish","type":"post","link":"https:\/\/miloserdov.org\/?p=5878","title":{"rendered":"How to change Kali Linux language without reinstalling the system"},"content":{"rendered":"<div class=\"0b20205ac99e89c6cabdb919fd9d1a8a\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-client=\"ca-pub-7219829351026140\"\r\n     data-ad-slot=\"9942251718\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n\r\n\n<\/div>\n<h2 style=\"text-align: justify;\">\n\tLocale<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\tWhen installing Linux, you can select the system language (locale) &#8211; and in the future this language will be used in Linux programs and windows (except for those applications for which no translation has been made).\n<\/p>\n<p style=\"text-align: justify;\">\n\tIf you decide to change the Linux language, then you do not need to reinstall it &#8211; just follow the simple steps.\n<\/p>\n<p style=\"text-align: justify;\">\n\tTo find out the current language settings, type the command:\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\nlocale<\/pre>\n<p style=\"text-align: justify;\">\n\tOutput example:\n<\/p>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-630\" height=\"428\" src=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale.png\" width=\"537\" \/><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\tTo view the available language settings (locales), use the command\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\nlocale -a<\/pre>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale-a.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-629\" height=\"261\" src=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale-a.png\" width=\"537\" \/><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\tTo change the system language, it is necessary that the locale to which you want to change the language is already present in the system. If it is not there, then you need to add it.\n<\/p>\n<p style=\"text-align: justify;\">\n\tTo add a new locale, open the <strong>\/etc\/locale.gen<\/strong> file:\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\nsudo gedit \/etc\/locale.gen<\/pre>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale.gen_.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-628\" height=\"348\" src=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale.gen_.png\" width=\"697\" \/><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\tAnd uncomment the lines with the desired new locales there. Then run the command:\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\nsudo locale-gen<\/pre>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale-gen.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-627\" height=\"267\" src=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale-gen.png\" width=\"523\" \/><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\tNow you can see the new language settings (new locale) in the list of available locales.\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\nlocale -a<\/pre>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale-a-2.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-626\" height=\"272\" src=\"https:\/\/suay.site\/wp-content\/uploads\/2021\/03\/locale-a-2.png\" width=\"533\" \/><\/a>\n<\/p>\n<h2 style=\"text-align: justify;\">\n\tChanging the locale for the current session<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\tTo change the language for the current session, you need to set the <strong>LANG<\/strong> environment variable, this can be done with the <strong>export<\/strong> command:\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\n# Set English locale\r\nexport LANG=en_US.UTF-8\r\n\r\n# Set the Russian locale\r\nexport LANG=ru_RU.UTF-8\r\n\r\n# Set the French locale\r\nexport LANG=fr_FR.UTF-8<\/pre>\n<h2 style=\"text-align: justify;\">\n\tChange language settings permanently for one user<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\tAdd a line with the export of the desired locale (for example, &ldquo;<strong>export LANG=en_US.utf-8<\/strong>&rdquo;) to the <strong>~\/.bashrc file<\/strong>\n<\/p>\n<p style=\"text-align: justify;\">\n\tThe changes will take effect after logging out\/logging in and will take effect after every reboot.\n<\/p>\n<h2 style=\"text-align: justify;\">\n\tChanging the default system locale<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\tRun the following command (specify the locale you need):\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\nsudo localectl set-locale LANG=en_US.UTF-8<\/pre>\n<p style=\"text-align: justify;\">\n\tOr:\n<\/p>\n<pre class=\"brush:bash;\" style=\"text-align: justify;\">\r\nsudo localectl set-locale LANG=ru_RU.UTF-8<\/pre>\n<p style=\"text-align: justify;\">\n\tFinally, you can see a message like this:\n<\/p>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/miloserdov.org\/wp-content\/uploads\/2021\/03\/locale-update-names.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-5879\" height=\"509\" src=\"https:\/\/miloserdov.org\/wp-content\/uploads\/2021\/03\/locale-update-names.png\" width=\"624\" \/><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\tIt offers to change the name of the automatically created folders in the user&#39;s directory. That is, to change to translate their name into a new system language.\n<\/p>\n<p style=\"text-align: justify;\">\n\tTo prevent this window from appearing every time the system boots, check the &ldquo;<strong>Don&rsquo;t ask this again<\/strong>&rdquo; box.\n<\/p>\n<p style=\"text-align: justify;\">\n\tTo reopen this window, run at a command prompt:\n<\/p>\n<pre class=\"brush:bash;\">\r\necho &#39;en_US&#39; &gt; ~\/.config\/user-dirs.locale\r\nxdg-user-dirs-gtk-update\r\n<\/pre>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Locale When installing Linux, you can select the system language (locale) &#8211; and in the future this language will be used in Linux programs and windows (except for those applications for which no translation has been made). If you decide to change the Linux language, then you do not need<a href=\"https:\/\/miloserdov.org\/?p=5878\" class=\"read-more\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":5879,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[677,678,679,680,681],"class_list":["post-5878","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-work-environment","tag-export","tag-lang","tag-locale","tag-locale-gen","tag-localectl"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/miloserdov.org\/index.php?rest_route=\/wp\/v2\/posts\/5878"}],"collection":[{"href":"https:\/\/miloserdov.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miloserdov.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miloserdov.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miloserdov.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5878"}],"version-history":[{"count":2,"href":"https:\/\/miloserdov.org\/index.php?rest_route=\/wp\/v2\/posts\/5878\/revisions"}],"predecessor-version":[{"id":7299,"href":"https:\/\/miloserdov.org\/index.php?rest_route=\/wp\/v2\/posts\/5878\/revisions\/7299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/miloserdov.org\/index.php?rest_route=\/wp\/v2\/media\/5879"}],"wp:attachment":[{"href":"https:\/\/miloserdov.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miloserdov.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miloserdov.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}