Re: [Wt-interest] Adding custom translators

2008-09-11 Thread Koen Deforche
Hey all, 2008/8/29 Koen Deforche [EMAIL PROTECTED]: 1. Add an abstract base class WTranslator (below). I named it WLocalizedStrings. 2. Make WMessageResourceBundle inherit WTranslator; 3. Change WApplication::messageResourceBundle_ from WMessageResourceBundle to

Re: [Wt-interest] Adding custom translators

2008-09-03 Thread Jakob
I prefer to use a table in en SQL table to hold all translations. This makes for easy insertion and update, and is application independent. Almost the same situation for me, only another level of abstraction. On top of SQL we have a server software communicating with GUI via ICE.

Re: [Wt-interest] Adding custom translators

2008-09-02 Thread Lars Hamren
Hi, Just curious, what is lacking or not appropriate in Wt's xml-based language translator mechanism? Or you simply prefer another (commonly used) tool/library ? I prefer to use a table in en SQL table to hold all translations. This makes for easy insertion and update, and is application

Re: [Wt-interest] Adding custom translators

2008-09-02 Thread Wim Dumon
2008/9/2 bvh [EMAIL PROTECTED]: On Tue, Sep 02, 2008 at 11:04:42PM +0200, Lars Hamren wrote: I prefer to use a table in en SQL table to hold all translations. This makes for easy insertion and update, and is application independent. How do your translators access this database to update/add

Re: [Wt-interest] Adding custom translators

2008-08-29 Thread Goetz Babin-Ebell
Helllo Lars, Am Donnerstag, den 28.08.2008, 20:43 +0200 schrieb Lars Hamren: - class WT_API WTranslator { public: virtual void refresh() = 0; protected: virtual ~WTranslator() { } private:

Re: [Wt-interest] Adding custom translators

2008-08-29 Thread Koen Deforche
Hey Goetz, 2008/8/29 Goetz Babin-Ebell [EMAIL PROTECTED]: Just a question: Why did you make hibernate() and resolveKey() private and declare WApplication, WebSession and WString as friends ? That would be my influence... These methods were private API up till now. It does not make sense to

Re: [Wt-interest] Adding custom translators

2008-08-29 Thread Jakob Eriksson
Koen Deforche wrote: 2008/8/28 Lars Hamren [EMAIL PROTECTED]: 3. Change WApplication::messageResourceBundle_ from WMessageResourceBundle to WTranslator * and use WMessageResourceBundle as the default. 4. Add void setMessageResourceBundle(WTranslator *).

[Wt-interest] Adding custom translators

2008-08-28 Thread Lars Hamren
There is no way to add your own transaltor to Wq, as Wt::WMessageResourceBundle is hardcoded into WApplication. I have tried successfully tried the following approach: 1. Add an abstract base class WTranslator (below). 2. Make WMessageResourceBundle inherit WTranslator; 3.