From Fedora Project Wiki

No edit summary
(langinstall command usage)
Line 17: Line 17:
:3) To list what packages will get installed for any language, run the following command
:3) To list what packages will get installed for any language, run the following command
::<pre>dnf langinfo <locale_code>/<languagename></pre>
::<pre>dnf langinfo <locale_code>/<languagename></pre>
:4) To add new language support, run the following command
::<pre>dnf langinstall <locale_code>/<languagename></pre>





Revision as of 11:44, 11 October 2014

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

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