Namespace: Consultingwerk.Windows.Framework.Localization
Class 
ResourceTranslator Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:ResourceTranslator
Purpose:Supports reading and writing of resx files for translation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon May 06 23:03:10 CEST 2013



Top Method Summary
Options Name Purpose
+ Consultingwerk.Framework.Collections.CharacterList GetResourceNames () Returns a CharacterList of the Names of the System.String resources
+ Consultingwerk.Framework.Collections.CharacterDictionary GetResourceStrings () Returns a CharacterDictionary of the System.String resources
+ GetResourceStrings (table) Returns a CharacterDictionary of the System.String resources
+ Translate (character, CharacterDictionary) Translates the Resource File using the given Translation Dictionary
+ Translate (character, table) Translates the Resource File using the given Translation Dictionary

Top Constructor Summary
Options Name Purpose
+ ResourceTranslator (character) Constructor for the ResourceTranslator class

Top Property Summary
Options Name Purpose
+ LOGICAL IsLocalizable
+ CHARACTER ResourceFileName


Method Detail
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterList GetResourceNames ()

Purpose: Returns a CharacterList of the Names of the System.String resources
Notes:

Returns Consultingwerk.Framework.Collections.CharacterList
The CharacterList of String resource names
Top

PUBLIC Consultingwerk.Framework.Collections.CharacterDictionary GetResourceStrings ()

Purpose: Returns a CharacterDictionary of the System.String resources
Notes:

Returns Consultingwerk.Framework.Collections.CharacterDictionary
The CharacterDictionary of String resources
Top

PUBLIC GetResourceStrings (table)

Purpose: Returns a CharacterDictionary of the System.String resources
Notes:

Parameters:
eStringResources TEMP-TABLE eStringResources
OUTPUT TABLE The eStringResources temp-table with the translations by key
Top

PUBLIC Translate (character, CharacterDictionary)

Purpose: Translates the Resource File using the given Translation Dictionary
Notes:

Parameters:
pcTargetFile CHARACTER
The file name of the output file
poTranslations Consultingwerk.Framework.Collections.CharacterDictionary
The CharacterDictionary with the translations by key
Top

PUBLIC Translate (character, table)

Purpose: Translates the Resource File using the given Translation Dictionary
Notes:

Parameters:
pcTargetFile CHARACTER
The file name of the output file
eStringResources TEMP-TABLE eStringResources
The eStringResources temp-table with the translations by key


Constructor Detail
Top

PUBLIC ResourceTranslator (character)

Purpose: Constructor for the ResourceTranslator class
Notes:

Parameters:
pcResourceFile CHARACTER
The name of the source resource file to work with


Property Detail
Top

PUBLIC LOGICAL IsLocalizable


Returns LOGICAL
Top

PUBLIC CHARACTER ResourceFileName


Returns CHARACTER


Temp-Table Detail

Temp-Table eStringResources

Defined in:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:19:29