Difference between revisions of "HowTo localize qatesttool environment"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Provide initial support for a localization)
Line 33: Line 33:
 
|-
 
|-
 
| qatesttool/global/input/filters/current/OpenOffice.org/filter??.txt
 
| qatesttool/global/input/filters/current/OpenOffice.org/filter??.txt
| This file defines filter names for OOo default file formats. The ?? in the filename is the code of your localization (e.g. filter84.txt for vi_VI)
+
| This file defines filter names for current OOo default file formats. The ?? in the filename is the code of your localization (e.g. filter84.txt for vi_VI)
 
| copy any existing file (e.g. filter1.txt) and change the strings for your localization
 
| copy any existing file (e.g. filter1.txt) and change the strings for your localization
|}
 
  
  notice by aschnabel:
+
|-
  I still get a warning in topten.bat about a missing string for MASTERDOC version 5 .. that means I missed a file. I'll search for it and add information later
+
| qatesttool/global/input/filters/<version>/OpenOffice.org/filter??.txt
 +
| Filter names for default file types of older OOo / SO versions.
 +
<version> needs to be replaced by the build-ID of the corresponding codeline (e.g. 569 for StarOffice 5, 645 for OOo 1.1, 680 for OOo 2 )
 +
| create filter??.txt files in all of the subdirectories and enter the correctly localized strings. Minimum is to create the files in 569 subdir. (These are used to test "alien format" warnings)
  
 +
|}
  
 
== Support for further tests ==
 
== Support for further tests ==
  
 
TBD
 
TBD

Revision as of 14:40, 15 January 2007


For testing of OOo functionality we are using the QATesttool. Although functionality is localization independend in most cases, the testtool environment (the scripts that actually execute the tests) need some basic information about the current localization. These are for instance:

  • information about existance of a localization (that vi_VI is a correct localization for OOo)
  • some strings to pick a string from a localized stringlist (e.g. the name of the file filter for Word 97 files)
  • default settings for localizations (e.g. CTL support is enabled per default for asian(?) languages but nor for western languages)

So - if you like to run the automated tests for your localized builds (and you really should do so) you need to ad crtin information to the testtool environment.

This page is supposed to collect information about the files you need to change or add.

Provide initial support for a localization

To provide initial support for a localization, you need to tell the testtool environment, that this localization exists and the string for the OOo file filter names. This will enable you to run the first and topten tests without false errors / warnings. ( See issue 73401 as example.)

file purpose todo
global/system/inc/iniinfo.inc this file has some basic functions to identify your localization and assigns an internal ID (a integer value that is used within the scripts) look at http://l10n.openoffice.org/languages.html see, what code to use for your localization

edit iniinfo.inc - you will see some case statements in sub GetLanguageInformation, function ConvertLanguage2, function ConvertLanguage and function GetLanguageText. Add new lines of code for your localization.

qatesttool/framework/first/input/filter.txt This file defines the localized string for "All Formats" in the file open dialog Add a new line with the correct string for your localization
qatesttool/global/input/filters/current/OpenOffice.org/filter??.txt This file defines filter names for current OOo default file formats. The ?? in the filename is the code of your localization (e.g. filter84.txt for vi_VI) copy any existing file (e.g. filter1.txt) and change the strings for your localization
qatesttool/global/input/filters/<version>/OpenOffice.org/filter??.txt Filter names for default file types of older OOo / SO versions.

<version> needs to be replaced by the build-ID of the corresponding codeline (e.g. 569 for StarOffice 5, 645 for OOo 1.1, 680 for OOo 2 )

create filter??.txt files in all of the subdirectories and enter the correctly localized strings. Minimum is to create the files in 569 subdir. (These are used to test "alien format" warnings)

Support for further tests

TBD

Personal tools