From Fedora Project Wiki
(Redirected from QA:Langpack Dnf Application)
Description
This test case tests whether the DNF langpacks plugin can show available language translations for a given locale. For testing the functionality of the plugin, using a common locale like 'fr' is recommended. The 'results' section assumes the use of 'fr'.
Setup
- Check if your system has
dnf-langpacks
plugin installed by running:rpm -q dnf-langpacks
- If the package is not installed install it using dnf:
dnf install dnf-langpacks
How to test
- To list the already installed language support, run:
dnf langlist
- To check if any language support is available for your language, run:
dnf langavailable <locale_code>/<languagename>
- To list what packages will get installed for any language, run:
dnf langinfo <locale_code>/<languagename>
- To add new language support, run:
dnf langinstall <locale_code>/<languagename>
- To remove installed language support, run:
dnf langremove <locale_code>/<languagename>
Expected Results
dnf langlist
should list many available languagesdnf langavailable fr
should show fr is availablednf langinfo fr
should show a list of the packages that may be installed to provide French support for various applications and componentsdnf langinstall fr
should install all packages that provide French support for installed applications and components (but not packages relating to non-installed applications and components). For e.g. if Libreoffice is installed,libreoffice-langpack-fr
should be installed, but not if Libreoffice is not installeddnf langremove fr
should remove all French language support packages