From Fedora Project Wiki

m (Adamwill moved page QA:Langpack Dnf Application to QA:Testcase dnf langpacks plugin: more conventional and accurate name)
(add to i18n test case category and dnf-langpacks package test case category)
Line 79: Line 79:


[[Category:I18n_Desktop]]
[[Category:I18n_Desktop]]
[[Category:I18n Test Cases]]
[[Category:Package_dnf-langpacks_test_cases]]

Revision as of 18:44, 11 April 2016

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>
5) To remove installed language support, run the following command
dnf langremove <locale_code>/<languagename>

Expected Results

For testing langpacks dnf plugin by adding/removing language support

You can either use locale code or language name for dnf langpacks commands.
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 dnf will show following message when transaction finishes
Language packs installed for: fr
4) To remove installed French language support run following command
dnf langremove fr
you will also see dnf will show following message when transaction finishes
Language packs removed for: fr