I'm not sure I understand what exactly you are trying to achieve, but the steps below should set you up with a consistent Ukrainian locale and keyboard.
N.B. Ukraine locale and keyboard codes can be confused with British codes. keymap=uk is a British keyboard and keymap=ua is a Ukrainian keyboard, whereas in xorg.conf I believe XkbLayout "uk" is Ukrainian (XkbLayout "gb" is definitely British).
All steps need to be executed as root user. If you are unable to use your installation directly, you will need to boot a LiveCD/DVD and chroot into the installation (see
HOWTO: chroot from a LiveCD for how to do that).
1. Make sure /etc/conf.d/keymaps has keymap="ua" (this is for the console).
2. Add the following to /etc/X11/xorg.conf and reboot:
- Code: Select all
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbLayout" "uk" # Note that British layout is "gb".
EndSection
If the above two steps alone do not fix it, carry on with the following steps:
3. Edit the file /etc/env.d/02locale and make it:
- Code: Select all
LANG="uk_UA.UTF-8"
LC_MESSAGES="uk_UA.UTF-8"
LANGUAGE="uk_UA.UTF-8"
GDM_LANG="uk_UA.UTF-8"
LC_CTYPE="uk_UA.UTF-8"
LC_NUMERIC="uk_UA.UTF-8"
LC_TIME="uk_UA.UTF-8"
LC_COLLATE="uk_UA.UTF-8"
LC_MONETARY="uk_UA.UTF-8"
LC_PAPER="uk_UA.UTF-8"
LC_NAME="uk_UA.UTF-8"
LC_ADDRESS="uk_UA.UTF-8"
LC_TELEPHONE="uk_UA.UTF-8"
LC_MEASUREMENT="uk_UA.UTF-8"
LC_IDENTIFICATION="uk_UA.UTF-8"
SYSFONT="latarcyrheb-sun16"
then update the environment:
- Code: Select all
env-update && source /etc/profile
4. Edit the file /etc/locale.gen and make it the following (you can just comment out the other locales rather than deleting them if you want):
- Code: Select all
uk_UA ISO-8859-5
uk_UA.UTF-8 UTF-8
(I think
ISO-8859-5 should cover your language's font.)
5. Enter the command:
- Code: Select all
locale-gen
6. If you're using KDE, make sure you have selected Ukrainian language and Ukrainian keyboard layout via, respectively, Kickoff > System Settings > Locale | Languages | Preferred Languages and Kickoff > System Settings > Input Devices > Keyboard | Layouts | Add Layout. I hardly use GNOME these days, but you'll find the preferences for language and keyboard can be configured in GNOME from one of the menus.