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 Returns if the resource file is Localizable
+ CHARACTER ResourceFileName Returns the current resource file name


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 TABLE
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 TABLE
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

Purpose: Returns if the resource file is Localizable
Notes: Based on the value and availbility of the $this.Localizable
meta entry

Returns LOGICAL
Top

PUBLIC CHARACTER ResourceFileName

Purpose: Returns the current resource file name
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:49:24