From Fedora Project Wiki
(improve formatting and streamline the test to not repeat 'actions' in 'results') |
(note that plugin is becoming obsolete, link to replacement Change and test case) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|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'. | |description= | ||
{{admon/warning|Plugin replaced by packages|In Fedora 24 and later, the {{package|dnf-langpacks}} plugin is intended to be [[Changes/LangpacksInstallationWithRPMWeakDependencies|replaced by langpacks packages taking advantage of the newly-support RPM weak dependencies features]]. The corresponding test case for this mechanism is [[QA:Testcase dnf langpacks packages]].}} | |||
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'. | |||
{{admon/note|Locale / language names|You can either use locale code or language name for dnf langpacks commands.}} | {{admon/note|Locale / language names|You can either use locale code or language name for dnf langpacks commands.}} | ||
|setup= | |setup= |
Latest revision as of 18:58, 11 April 2016
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