From Fedora Project Wiki
Description
This test case tests whether langpack can show available language translations for your current locale.
Setup
- Check if your system has
dnf-langpacks
plugin installed by executing:
rpm -q dnf-langpacks
- If the package is not installed install it using dnf:
dnf install dnf-langpacks
How to test
- Following steps are to test langpacks dnf plugin by using dnf commands
- 1) To list the already installed language support, run the following command
dnf langlist
- 2) To check if any language support is available for your language, run the following command
dnf langavailable <locale_code>/<languagename>
- 3) To list what packages will get installed for any language, run the following command
dnf langinfo <locale_code>/<languagename>
- 4) To add new language support, run the following command
dnf langinstall <locale_code>/<languagename>
Expected Results
For testing langpacks dnf plugin by adding/removing language support
- 1) To check if French language support is available use command
dnf langavailable fr
- If you see output as
fr is available
- then you have French language support
- 2) To list what packages will get installed for French language, run following command
dnf langinfo fr
- you will see output like
Loaded plugins: langpacks, refresh-packagekit Language-Id=fr LabPlot-doc-fr aspell-fr autocorr-fr calligra-l10n-fr drascula-fr eclipse-nls-fr gcompris-sound-fr gimp-help-fr hunspell-fr hyphen-fr kde-i18n-French kde-l10n-French kicad-doc-fr libreoffice-langpack-fr man-pages-fr mythes-fr sagemath-doc-fr tagainijisho-dic-fr tkgate-fr
- 3) To add French language support, first check if its support is available
dnf langavailable fr
- If you see output as
fr is available
- then you can install French language support using command
dnf langinstall fr
- you will also see yum will show following message when transaction finishes
Language packs installed for: fr