How to switch language on ubuntu
How to switch language on ubuntu
How do I switch between languages in Ubuntu?
How can I change language in Ubuntu?
How do I switch between languages in Linux?
For Linux Mate 17.1 Go to Menu/All applications/Keyboard/Layouts tab/Click Add/Pick out your layout by country or by language/Click Add and a language icon (US, PT and so on) will show at Panel/Close Keyboard Preferences and just click over it at Panel to switch the input language.
How do you switch between input languages?
on the Language bar, which should appear on your task bar near where the clock is, and then click the language that you want to use. Keyboard shortcut: To switch between keyboard layouts, press Alt+Shift.
What is Super Button Ubuntu?
When you press the Super key, the Activities overview is displayed. This key can usually be found on the bottom-left of your keyboard, next to the Alt key, and usually has a Windows logo on it. It is sometimes called the Windows key or system key.
How do I change the keyboard layout in Linux?
Make sure that “Keyboard” is the selected tab on the left, and turn your attention to the main body of the window. Locate and select the “Layouts” tab toward the top of the window, then check the “Configure layouts” box and unlock your keyboard layout options. Press the “Add” button to configure a new keyboard layout.
How can I add language in Linux?
How do I know what keyboard layout I have?
How do I change keyboard layout in Ubuntu?
Changing keyboard layout
What is the shortcut to change keyboard language?
Hold down the Windows key and then press the spacebar. You can choose between the different keyboard languages displayed by repeatedly pressing the spacebar. ALT + SHIFT: This is the classic keyboard shortcut for changing keyboards.
How do you change keyboard settings?
How to change your keyboard
Ubuntu Documentation
Candidate for Deletion
This article may not be appropriate for this wiki, and may be deleted. More info.
If you need to change the language and keyboard configuration, follow these instructions:
Language configuration
Cleaning up unused locales
Install localepurge to remove any unwanted languages, while choosing the ones you want to keep. Note that this method will not change the locales settings on your system. It will just purge the locales you have not selected. Use at your own risk.
After that, you should reboot your computer.
To reconfigure this, simply enter the following in terminal.
Type the following command to print-out your current locale configuration.
Legacy Versions of Ubuntu
First install the following packages: locales localeconf (see InstallingSoftware). (Package localeconf does not exist in neither gutsy nor intrepid)
When configuring the packages, you’ll be asked a series of questions, but the most important are:
Select supported locales:
Select your language and its encoding. The encoding is how characters will be treated by the operating system. A good rule is to choose utf-8 locales.
For example, for my machine I chose: en_US.utf-8 and pt_PT.utf-8
Manage configuration with debconf:
Unless you’re familiar with editing configuration files by hand, choose yes.
Default system locale:
If you prefer to have an English user interface, choose (like I did) en_US.utf-8, otherwise choose the language you selected during the supported locales configuration.
Settings to override:
This is where things get a little tricky. For example, I want my text to be «treated» with the Portuguese layout and also to use our national numeric and date formats, but the rest to be plain english, so I chose to override the LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC and LC_DATE settings.
The following steps involve choosing the locale to apply to the settings you chose to override. In my system, I chose pt_PT.utf-8.
After the install system has finished setting up your locales, you’re done. The next time you reboot your system, your new preferences will be applied. If you ever need to change this, execute the command:
Note: since ubuntu 6.06, some users experienced problems with that configuration and they were unable to change their installed languages/encodings. For a workaround see the section «For Anti-UTF-8 people» below.
For Anti-UTF-8 people
This is an expert’s section, so if you don’t know what UTF-8 is and why you should care, please skip this section. This is oriented to those users that have problems configuring their locales/encodings on ubuntu 6.06.
To make ubuntu forget UTF-8, you will need to follow these steps (please, first try the instructions in the section above):
Generate ONLY the locales you want:
See the first column of the file /usr/share/i18n/SUPPORTED and identify your language codes, example: en_US es_VE pt_BR es_ES. Note that the second column shows the encoding to be used with that language code and remember that we don’t want UTF-8 as encoding.
After you know which language codes you will use, go to the terminal and type the following:
After that, you should reboot your computer.
Make GDM forget about UTF-8
In the file /etc/X11/gdm/locale.conf GDM stores its definitions for the language that you can choose at login time. The first column has the display name and the second the language code to use with it. Just find the language you want to use and delete the line that defines the UTF-8 variant if it exists.
Now you should restart your X server with control+alt+bkspace and login again to make GDM read the locales again. When you login again you should not find «UTF-8» in the output of the command (type in terminal)
If you see the word «UTF-8» as output here, maybe you skipped some steps. Enjoy your computer UTF-8 free!
To configure your console keyboard layout, install the following package: console-data (See InstallingSoftware).
If the package console-data is already installed, use the following command instead
When the configuration dialog is displayed, choose to select a keymap from the «arch list».
The most tipical keyboard layout is «qwerty» (look at the first row of letters in your keyboard) so choose this unless you have something different.
Next, select a keyboard layout. My keyboard has a Portuguese layout so I chose that.
In case you’re also choosing a Portuguese layout, when asked about a specific keymap, select the «Standard» option. I haven’t looked into other options so this may vary a little bit for your configuration.
Press OK and you’re done. Reboot your computer to use your new keyboard layout.
The easiest way to switch to a new layout in your Desktop Environment is to click Computer/Desktop Preferences/Keyboard Preferences.
On the Layouts pane, remove the currently selected layout and choose your prefered layout from the list on the right side on the pane.
Press the Close button and logout. When you login again, you should be using your selected keyboard layout.
Note: if you have a Microsoft keyboard (one with a Windows key in between the left Ctrl and Alt keys), and you want to use that extra key, on the Layouts pane select the «Generic 105-key PC» layout and in the Layout Options pane select the «Super is mapped to the Win-keys» option from the Available Options-Alt/Win key behaviour list.
/.bash* probably won’t help, as they affect only CLIs.
LocaleConf (последним исправлял пользователь thomas-sisson-1 2013-12-25 01:51:06)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details
How can I quickly switch between two out of multiple languages?
I have 3 input sources (languages) configured in Text Input Settings. Let us call them E (as in English) and A and B for two other languages. Mainly I switching between English and A or English and B and almost never between A and B. However switching keyboard shortcuts always cycle them in E->A->B or E Follow
3 Answers 3
1. Toggle between two (fixed) languages
What you describe is basically a keyboard shortcut to toggle between two input languages. The script below will offer the option.
How to use
In a terminal window, run the command:
This will output like:
Now test-run the script to toggle between two indexes. To toggle between (‘xkb’, ‘us+intl’) and (‘xkb’, ‘nl’) (index 0 and 2 ):
where bot languages are represented by the arguments
If all works fine, add it to a shortut key: choose: System Settings > «Keyboard» > «Shortcuts» > «Custom Shortcuts». Click the «+» and add the command:
to a shortcut of your choice.
You can then use the existing shortcut to browse all languages, or (of course) the menu.
Short explanation
The available languages can be retrieved by the command:
The currently set language can be retrieved by the command:
which will output (a.o.) the index of the currently set language.
We can set the language by (e.g.) the command:
to set the language to the first in the list (index 0)
In short: if we run the script we two languages (indices) as arguments, the script will look what is the current index, will switch to the other one.
2. Toggle between the two last used languages
The version of the script below will switch between the two last used languages, which turned out to be similar to the behaviour of MacOs.
I added this version as an additional option. The two last used languages will persist (be remembered) after reboot.
How to use
Test- run the script by the command:
After first run, switch language from the menu, now run
again. From then on, the script will always toggle between the last two used languages.
Go: >System Settings > Text Entry
make sure to check «Show current input source in menu bar» just select input sources from the drop down menu.
In recent Ubuntu versions with the default GNOME desktop, it works exactly like that (at least in my case with Ctrl + Space shortcut). But in Unity desktop, it’s still a problem.
You can configure it with ibus-setup gui (run from terminal):
One more last thing: ibus has its own indicator, but it’s ugly and it does not show up in Unity’s menu bar anyway, so if you want to see the current language indicator – try gxkb. It will show a nice country flag of your current language. (You can add gxkb to Startup Applications to start automatically on login.)
Как в Ubuntu переключить язык
Выбрать языке операционной системы Ubuntu можно в процессе установки Ubuntu, на первой странице установщика. Но бывает ситуация, когда необходимо переключить язык уже после установки операционной системы. В статье мы подробно рассмотрим такую ситуацию и покажем, как в Ubuntu переключить язык.
Обратите внимание, что в этой инструкции мы сосредоточимся на том, как изменить язык в стандартной среде только рабочего стола Ubuntu: Gnome Shell. Статья не поможет если вы хотите переключить язык в других дистрибутивах Ubuntu, таких как Xubuntu, Kubuntu, Ubuntu Budgie и т. д.
Как в Ubuntu переключить язык
Чтобы получить доступ к языковым настройкам вашего Ubuntu, нажмите Win на клавиатуре. Нажав клавишу, откроется поиск Gnome Shell.
Введите «язык» в поле поиска. После того как вы ввели «язык» в поле поиска, вы увидите приложение с названием «Языковая поддержка». Вы также увидите «Регион и язык» в разделе «Настройки». Нажмите «Регион и язык», чтобы получить доступ к языковым настройкам Ubuntu.
В окне настроек «Регион и язык», можно изменить языковые настройки Ubuntu. Следуйте следующим шагам:
Шаг 1: Найдите область «Язык» в «Регион и язык». В поле «Язык» будет указан язык, который вы выбрали для установки Ubuntu в процессе установки.
Нажмите на нем мышью, чтобы открыть список других языковых пакетов в вашей системе. Если вы видите альтернативные языки, нажмите на них, чтобы перейти на них. Если вы не видите доступных языков, кроме языка по умолчанию, у вас не установлено ни одного языкового пакета. Продолжите с остальными шагами, чтобы начать.
Шаг 2: Чтобы установить альтернативные языковые пакеты, вы должны загрузить их с серверов Ubuntu. Найдите «Управление установленными языками» и щелкните по нему мышью.
После нажатия кнопки «Управление установленными языками» появится всплывающее окно. Это всплывающее окно скажет: «Языковая поддержка не установлена полностью. Некоторые переводы или письменные пособия для выбранных вами языков еще не установлены. Вы хотите установить их сейчас?
Нажмите кнопку «Установить», чтобы продолжить.
Шаг 3: Выбрав кнопку «Установить», Ubuntu запросит ваш пароль пользователя. Введите его и нажмите кнопку «Аутентификация», чтобы ввести пароль. Вскоре после ввода пароля вашего пользователя Ubuntu загрузит и установит необходимые пакеты языковой поддержки.
Установка языковых пакетов может занять некоторое время, особенно если у вас медленное интернет-соединение. Сядьте и позвольте Ubuntu установить все. Когда процесс завершится, перейдите к шагу 4!
Шаг 4: После установки необходимых пакетов откройте окно «Поддержка языков». Затем найдите кнопку «Установить / удалить языки» и щелкните по ней мышью. Выбор этой кнопки откроет инструмент загрузки языка Ubuntu.
Шаг 5: В инструменте загрузки языков Ubuntu вы увидите длинный список возможных языков, доступных для установки в вашей системе. Возьмите мышь, нажмите на полосу прокрутки и перетащите ее, чтобы пройти по списку.
Когда вы найдете нужный вам язык, нажмите на пустой флажок рядом с ним. Если вам нужно установить несколько языков на ваш ПК с Ubuntu Linux, не беспокойтесь! Вы можете установить более одного одновременно! Просто пройдите и отметьте столько ящиков, сколько вам нужно!
Шаг 6: После установки флажков рядом с языками, которые вы хотите установить, языковая установка готова к началу. Нажмите кнопку «Применить» в нижней части окна, чтобы сообщить Ubuntu о загрузке выбранных языков.
Как и при установке языковых пакетов, Ubuntu требует ввода пароля пользователя для установки новых языков. Во всплывающем окне введите свое имя пользователя. Затем нажмите кнопку «Аутентификация», чтобы продолжить процесс установки.
Когда Ubuntu завершит установку выбранных языков на ваш компьютер, закройте окно «Поддержка языков», так как оно больше не нужно.
Шаг 7: После установки языковых пакетов закройте окно «Регион и язык». Затем снова откройте его. Окно «Регион и язык» необходимо закрыть и открыть заново, поскольку оно не распознает вновь загруженные языки без перезапуска.
Шаг 8: Найдите раздел «Язык» и щелкните по нему мышью. После выбора области «Язык» вы увидите новые загруженные языки в меню. Нажмите на язык, чтобы установить Ubuntu к нему. Затем перезагрузите компьютер.
После входа в свой Ubuntu PC он будет использовать новый язык! Наслаждайтесь!
Switch command output language from native language to english
How can I switch the command output language from my native language to English, so I can post my Ask Ubuntu question with English command output (error messages)?
9 Answers 9
export LC_ALL=C is enough. All subsequent command output will be in English.
If you want to revert to the native language, unset the LC_ALL variable:
bash function for terminal
Here is my bash function to switch between DE and EN locales.
You may extend this code with your preferred languages. To use this, put it in your
Call it with _configure_locale EN to switch to English.
Adapting to your language
Extending the code to your native language is quite simple. You can find the needed values by invoking the following command
Open a terminal Ctrl + Alt + T and type:
Source:
This is configured via locale settings, which can be set via environment variable. There are four layers of variables; the first one that is set takes precedence:
Thus, to run a program with messages in English, run
To run a program with all localization turned off, run
but beware that this switches the character encoding to ASCII (so no Unicode, latin-1, etc.).