From Fedora Project Wiki

(typo)
(note that plugin is becoming obsolete, link to replacement Change and test case)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests whether langpack can show available language translations for your current locale.
|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 executing:  
# Check if your system has {{package|dnf-langpacks}} plugin installed by running:
:<pre>rpm -q dnf-langpacks</pre>
#* {{command|rpm -q dnf-langpacks}}
* If the package is not installed install it using dnf: <pre>dnf install dnf-langpacks</pre>
* 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:
* Following steps are to test langpacks dnf plugin by using dnf commands
#* {{command|dnf langlist}}
 
# To check if any language support is available for your language, run:
:1) To list the already installed language support, run the following command
#* {{command|dnf langavailable <locale_code>/<languagename>}}
::<pre>dnf langlist</pre>
# To list what packages will get installed for any language, run:
 
#* {{command|dnf langinfo <locale_code>/<languagename>}}
:2) To check if any language support is available for your language, run the following command
# To add new language support, run:
::<pre>dnf langavailable <locale_code>/<languagename></pre>
#* {{command|dnf langinstall <locale_code>/<languagename>}}
 
# To remove installed language support, run:
:3) To list what packages will get installed for any language, run the following command
#* {{command|dnf langremove <locale_code>/<languagename>}}
::<pre>dnf langinfo <locale_code>/<languagename></pre>
 
:4) To add new language support, run the following command
::<pre>dnf langinstall <locale_code>/<languagename></pre>
 
 
|results=
|results=
For testing langpacks dnf plugin by adding/removing language support
# {{command|dnf langlist}} should list many available languages
 
# {{command|dnf langavailable fr}} should show {{code|fr is available}}
{{admon/note|You can either use locale code or language name for dnf langpacks commands.}}
# {{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
:1) To check if French language support is available use command
# {{command|dnf langremove fr}} should remove all French language support packages
::<pre>dnf langavailable fr</pre>
:: If you see output as
::<pre>fr is available</pre>
:: then you have French language support
 
 
:2) To list what packages will get installed for French language, run following command
::<pre>dnf langinfo fr</pre>
::you will see output like
<pre>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
</pre>
 
:3) To add French language support, first check if its support is available
::<pre>dnf langavailable fr</pre>
:: If you see output as
::<pre>fr is available</pre>
:: then you can install French language support using command
::<pre>dnf langinstall fr</pre>
::you will also see dnf will show following message when transaction finishes
::<pre>Language packs installed for: fr</pre>
 
 
}}
}}


[[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

Plugin replaced by packages
In Fedora 24 and later, the dnf-langpacks plugin is intended to be 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'.

Locale / language names
You can either use locale code or language name for dnf langpacks commands.

Setup

  1. 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

  1. To list the already installed language support, run:
    • dnf langlist
  2. To check if any language support is available for your language, run:
    • dnf langavailable <locale_code>/<languagename>
  3. To list what packages will get installed for any language, run:
    • dnf langinfo <locale_code>/<languagename>
  4. To add new language support, run:
    • dnf langinstall <locale_code>/<languagename>
  5. To remove installed language support, run:
    • dnf langremove <locale_code>/<languagename>

Expected Results

  1. dnf langlist should list many available languages
  2. dnf langavailable fr should show fr is available
  3. dnf langinfo fr should show a list of the packages that may be installed to provide French support for various applications and components
  4. 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, libreoffice-langpack-fr should be installed, but not if Libreoffice is not installed
  5. dnf langremove fr should remove all French language support packages