discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

StepTalk: Language manager implemented


From: Stefan Urbanek
Subject: StepTalk: Language manager implemented
Date: Wed, 31 Aug 2005 01:41:11 +0200

Hi,

StepTalk has new class: STLanguageManager which should make it more
clear how StepTalk handles language bundles. It should also simplify
whole language handling. The class offers following (self descriptive)
methods:

+ (STLanguageManager *)defaultManager;
- (NSArray *)availableLanguages;
- (NSString *)defaultLanguage;
- (void)registerLanguagesFromBundle:(NSBundle *)bundle;
- (void)registerLanguage:(NSString *)language 
             engineClass:(Class)class
                    info:(NSDictionary *)info;

- (void)removeLanguage:(NSString *)language;

- (Class)engineClassForLanguage:(NSString *)language;
- (STEngine *)createEngineForLanguage:(NSString *)language;

- (NSDictionary *)infoForLanguage:(NSString *)language;
- (NSArray *)languageForFileType:(NSString *)fileType;
- (NSArray *)knownFileTypes;
- (NSBundle *)bundleForLanguage:(NSString *)language;

Any other ways of getting engines are going to be deprecated except
[STEngine engineForLanguage:] which would return an engine from default
language manager and specified language.

Related Changes

* STLanguageManager: new class
* STLanguage: removed
* STEngine: engineForLanguageWithName: and engineForFileType: removed,
use STLanguageManager instead, added engineForLanguage:

* Tools/stexec - updated to use STLanguageManager
* Tools/stupdate_languages - removed as it was replaced by
STLanguageManager

* Examples/Server - removed as it was replaced by stenvironment and
distant scripting
    
    Notes:
    - you can delete */Library/StepTalk/Configuration directories

Courious can look at it here:

http://stefan.agentfarms.net/Download/GNUstep/Prototypes/StepTalk-20050831.tar.gz

What do you think about it?

Regards,

Stefan Urbanek
-- 
http://stefan.agentfarms.net

First they ignore you, then they laugh at you, then they fight you, then
you win.
- Mahatma Gandhi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]