From Fedora Project Wiki
(langremove command example) |
(note that plugin is becoming obsolete, link to replacement Change and test case) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests whether | |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.}} | |||
|setup= | |setup= | ||
# Check if your system has {{package|dnf-langpacks}} plugin installed by running: | |||
#* {{command|rpm -q dnf-langpacks}} | |||
* If the package is not installed install it using dnf: | * If the package is not installed install it using dnf: | ||
#* {{command|dnf install dnf-langpacks}} | |||
|actions= | |actions= | ||
# To list the already installed language support, run: | |||
#* {{command|dnf langlist}} | |||
# To check if any language support is available for your language, run: | |||
#* {{command|dnf langavailable <locale_code>/<languagename>}} | |||
# To list what packages will get installed for any language, run: | |||
#* {{command|dnf langinfo <locale_code>/<languagename>}} | |||
# To add new language support, run: | |||
#* {{command|dnf langinstall <locale_code>/<languagename>}} | |||
# To remove installed language support, run: | |||
#* {{command|dnf langremove <locale_code>/<languagename>}} | |||
|results= | |results= | ||
# {{command|dnf langlist}} should list many available languages | |||
# {{command|dnf langavailable fr}} should show {{code|fr is available}} | |||
{{ | # {{command|dnf langinfo fr}} should show a list of the packages that may be installed to provide French support for various applications and components | ||
# {{command|dnf 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, {{package|libreoffice-langpack-fr}} should be installed, but not if Libreoffice is not installed | |||
# {{command|dnf langremove fr}} should remove all French language support packages | |||
}} | }} | ||
[[Category:I18n_Desktop]] | [[Category:I18n_Desktop]] | ||
[[Category:I18n Test Cases]] | |||
[[Category:Package_dnf-langpacks_test_cases]] |
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