From Fedora Project Wiki
m (Added reference bug) |
No edit summary |
||
(16 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests whether langpack can | |description=This test case tests whether langpack can install available language translations for your current locale. | ||
|setup= | |||
* Check if your system has {{package|yum-langpacks}} plugin installed by executing: | |||
:<pre>rpm -q yum-langpacks</pre> | |||
* If the package is not installed install it using yum: <pre>yum install yum-langpacks</pre> | |||
|actions= | |actions= | ||
# | |||
#:<pre> | * There are two different ways of testing. | ||
# | |||
A] Following steps are to test langpacks yum plugin by installing individual packages | |||
#:<pre>yum install eclipse</pre> | |||
#:<pre>yum install | # Prior to run yum command, check if current locale is same to what you want to install for langpack. | ||
#:<pre>yum install | #:<pre>locale</pre> | ||
#:<pre>yum | # you can choose any of following packages to be installed <b>freshly</b> (if not already installed) and check if the current language translations of that package is searched and installed automatically. For example: | ||
# | #:<pre>yum install eclipse-platform</pre> | ||
# | #:<pre>yum install calligra-core</pre> | ||
{{admon/note|Changing language does not affect up-to-date applications|If you change your current language, yum will download relevant language packs only for newly installed | #:<pre>yum install libreoffice-core</pre> | ||
#:<pre>yum install gnome-getting-started-docs</pre> | |||
#:<pre>yum install gimp-help</pre> | |||
#:<pre>yum install man-pages</pre> | |||
#:<pre>yum install gcompris</pre> | |||
B] Following steps are to test langpacks yum plugin by using yum commands | |||
:1) To list the already installed language support, run the following command | |||
::<pre>yum langlist</pre> | |||
:2) To check if any language support is available for your language, run the following command | |||
::<pre>yum langavailable <locale_code>/<languagename></pre> | |||
:3) To list what packages will get installed for any language, run the following command | |||
::<pre>yum langinfo <locale_code>/<languagename></pre> | |||
:4) To add new language support, run the following command | |||
::<pre>yum langinstall <locale_code>/<languagename></pre> | |||
:5) To remove installed language support, run the following command | |||
::<pre>yum langremove <locale_code>/<languagename></pre> | |||
{{admon/note|Changing language does not affect up-to-date applications|If you change your current language, yum will download relevant language packs only for newly installed packages. If the application is already up-to-date, changing your language won't download new language packs - that's [https://bugzilla.redhat.com/show_bug.cgi?id{{=}}568361 expected].}} | |||
|results= | |results= | ||
A] For testing langpacks yum plugin by installing individual packages | |||
:1) When executing yum command, Langpack plugin should be loaded. e.g. yum will show message like | |||
::<pre>Loaded plugins: langpacks</pre> | |||
:2) Current locale package for the newly installed application should be installed automatically. e.g. for French language running desktop | |||
::<pre>yum install calligra</pre> | |||
::will pick calligra-l10n-fr automatically but not any other language translation packages. | |||
B] For testing langpacks yum plugin by adding/removing language support | |||
{{admon/note|You can either use locale code or language name for yum langpacks commands.}} | |||
:1) To add French language support, first check if its support is available | |||
::<pre>yum langavailable fr</pre> | |||
:: If you see output as | |||
::<pre>fr is available</pre> | |||
:: then you can install French language support using command | |||
::<pre>yum langinstall fr</pre> | |||
::you will also see yum will show following message when transaction finishes | |||
::<pre>Language packs installed for: fr</pre> | |||
:2) To list what packages will get installed for French language, run following command | |||
::<pre>yum langinfo fr</pre> | |||
::you will see output like | |||
<pre>Loaded plugins: langpacks, refresh-packagekit | |||
Language-Id=fr | |||
hunspell-fr | |||
libreoffice-langpack-fr | |||
autocorr-fr | |||
hyphen-fr | |||
man-pages-fr | |||
kde-l10n-French | |||
mythes-fr | |||
</pre> | |||
:3) To remove installed French language support run following command | |||
::<pre>yum langremove fr</pre> | |||
::you will also see yum will show following message when transaction finishes | |||
::<pre>Language packs removed for: fr</pre> | |||
}} | }} | ||
[[Category:Yum_Langpack_Test_Cases]] | [[Category:Yum_Langpack_Test_Cases]] |
Latest revision as of 07:16, 12 October 2014
Description
This test case tests whether langpack can install available language translations for your current locale.
Setup
- Check if your system has
yum-langpacks
plugin installed by executing:
rpm -q yum-langpacks
- If the package is not installed install it using yum:
yum install yum-langpacks
How to test
- There are two different ways of testing.
A] Following steps are to test langpacks yum plugin by installing individual packages
- Prior to run yum command, check if current locale is same to what you want to install for langpack.
locale
- you can choose any of following packages to be installed freshly (if not already installed) and check if the current language translations of that package is searched and installed automatically. For example:
yum install eclipse-platform
yum install calligra-core
yum install libreoffice-core
yum install gnome-getting-started-docs
yum install gimp-help
yum install man-pages
yum install gcompris
B] Following steps are to test langpacks yum plugin by using yum commands
- 1) To list the already installed language support, run the following command
yum langlist
- 2) To check if any language support is available for your language, run the following command
yum langavailable <locale_code>/<languagename>
- 3) To list what packages will get installed for any language, run the following command
yum langinfo <locale_code>/<languagename>
- 4) To add new language support, run the following command
yum langinstall <locale_code>/<languagename>
- 5) To remove installed language support, run the following command
yum langremove <locale_code>/<languagename>
Expected Results
A] For testing langpacks yum plugin by installing individual packages
- 1) When executing yum command, Langpack plugin should be loaded. e.g. yum will show message like
Loaded plugins: langpacks
- 2) Current locale package for the newly installed application should be installed automatically. e.g. for French language running desktop
yum install calligra
- will pick calligra-l10n-fr automatically but not any other language translation packages.
B] For testing langpacks yum plugin by adding/removing language support
- 1) To add French language support, first check if its support is available
yum langavailable fr
- If you see output as
fr is available
- then you can install French language support using command
yum langinstall fr
- you will also see yum will show following message when transaction finishes
Language packs installed for: fr
- 2) To list what packages will get installed for French language, run following command
yum langinfo fr
- you will see output like
Loaded plugins: langpacks, refresh-packagekit Language-Id=fr hunspell-fr libreoffice-langpack-fr autocorr-fr hyphen-fr man-pages-fr kde-l10n-French mythes-fr
- 3) To remove installed French language support run following command
yum langremove fr
- you will also see yum will show following message when transaction finishes
Language packs removed for: fr