From Fedora Project Wiki

mNo edit summary
(for f19)
Line 4: Line 4:
Follow up to the steps in [[QA:Testcase change language]] to switch the language if it's not what you expected to test.
Follow up to the steps in [[QA:Testcase change language]] to switch the language if it's not what you expected to test.
|actions=
|actions=
# Check if your system has {{package|yum-langpacks}} plugin installed by executing:  
* Check if your system has {{package|yum-langpacks}} plugin installed by executing:  
#:<pre>rpm -q yum-langpacks</pre>
:<pre>rpm -q yum-langpacks</pre>
#* If the package is not installed install it using yum: <pre>yum install yum-langpacks</pre>
* If the package is not installed install it using yum: <pre>yum install yum-langpacks</pre>
 
* 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.
# Prior to run yum command, check if current locale is same to what you want to install for langpack.
#:<pre>locale</pre>
#:<pre>locale</pre>
Line 16: Line 21:
# Logout. In GDM, before entering password, change desktop language to another and login again.   
# Logout. In GDM, before entering password, change desktop language to another and login again.   
# Execute <code>su</code> to root user and exercise yum again by installing or updating several packages. Check if langpack plugged in yum is affected by the changing of current locale.  
# Execute <code>su</code> to root user and exercise yum again by installing or updating several packages. Check if langpack plugged in yum is affected by the changing of current locale.  
B] Following steps are to test langpacks yum plugin by adding/removing language support
:1) To list installed language support run following command
::<pre>yum langlist</pre>
:2) To add new language support run following command
::<pre>yum langinstall <locale_code></pre>
:3) To list what packages will get installed for any language, run following command
::<pre>yum langinfo <locale_code></pre>
:4) To remove installed language support run following command
::<pre>yum langremove <locale_code></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 or updated 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].}}
{{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 or updated 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=
# When execute yum:
A] For testing langpacks yum plugin by installing individual packages
#* Langpack should be loaded, current locale should be added to language list.
 
#* After dependency resolution finished, ''Installing langpack and Adding relative language package to transaction'' is displayed. 
:1) When executing yum command, Langpack plugin should be loaded. e.g. yum will show message like
# Current locale package for the newly installed application should be installed automatically.  
::<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
 
:1) To add French language support run following 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>
 
}}
}}



Revision as of 09:43, 25 April 2013

Description

This test case tests whether langpack can add different languages to language list when changing current locale.

Setup

Follow up to the steps in QA:Testcase change language to switch the language if it's not what you expected to test.

How to test

  • Check if your system has Package-x-generic-16.pngyum-langpacks plugin installed by executing:
rpm -q yum-langpacks
  • If the package is not installed install it using yum:
    yum install yum-langpacks
  • There are two different ways of testing.

A] Following steps are to test langpacks yum plugin by installing individual packages

  1. Prior to run yum command, check if current locale is same to what you want to install for langpack.
    locale
  2. Install several packages such as Package-x-generic-16.pngkde-desktop, Package-x-generic-16.pngkoffice or Package-x-generic-16.pngeclipse etc and check if current language package of installed application is searched and installed automatically. For example:
    yum install eclipse
    yum install calligra
    yum install 'libreoffice'
    yum groupinstall 'kde-desktop'
  3. Logout. In GDM, before entering password, change desktop language to another and login again.
  4. Execute su to root user and exercise yum again by installing or updating several packages. Check if langpack plugged in yum is affected by the changing of current locale.

B] Following steps are to test langpacks yum plugin by adding/removing language support

1) To list installed language support run following command
yum langlist
2) To add new language support run following command
yum langinstall <locale_code>
3) To list what packages will get installed for any language, run following command
yum langinfo <locale_code>
4) To remove installed language support run following command
yum langremove <locale_code>


Note.png
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 or updated packages. If the application is already up-to-date, changing your language won't download new language packs - that's expected.

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 run following 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



Reference Bugs

Bug 681747 langpacks not pulled in by groupinstall kde-desktop or office