OpenPetra
Free Administration Software for Non-Profits
GenerateI18N.TGenerateCatalogStrings Class Reference

Use all Text properties from the designer file and add Catalog.SetString in the constructor More...

Static Public Member Functions

static bool Execute (string AMainFilename, TDataDefinitionStore ADataDefinitionStore, StreamWriter ADbHelpTranslationWriter)
 read the designer file and add the strings to the main file More...
 
static string GetDesignerFilename (string AFilename)
 get the filename of the designer file that belongs to this file; it does not check if that file actually exists More...
 
static void AddTranslationUINavigation (string UINavigationFilename, StreamWriter ATranslationWriter)
 add Catalog.GetString for each label and description in the UINavigation file to the dummy file to prepare the translation files More...
 

Detailed Description

Use all Text properties from the designer file and add Catalog.SetString in the constructor

Member Function Documentation

◆ AddTranslationUINavigation()

static void GenerateI18N.TGenerateCatalogStrings.AddTranslationUINavigation ( string  UINavigationFilename,
StreamWriter  ATranslationWriter 
)
inlinestatic

add Catalog.GetString for each label and description in the UINavigation file to the dummy file to prepare the translation files

Parameters
UINavigationFilenameyml file
ATranslationWriterdummy cs file that is used to provide the strings to gettext

◆ Execute()

static bool GenerateI18N.TGenerateCatalogStrings.Execute ( string  AMainFilename,
TDataDefinitionStore  ADataDefinitionStore,
StreamWriter  ADbHelpTranslationWriter 
)
inlinestatic

read the designer file and add the strings to the main file

Parameters
AMainFilename
ADataDefinitionStore
ADbHelpTranslationWriterdummy cs file that is used to provide the strings to gettext
Returns
true if the file should be parsed for translatable strings

◆ GetDesignerFilename()

static string GenerateI18N.TGenerateCatalogStrings.GetDesignerFilename ( string  AFilename)
inlinestatic

get the filename of the designer file that belongs to this file; it does not check if that file actually exists

Parameters
AFilename
Returns

The documentation for this class was generated from the following file: