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
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.
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
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
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:
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
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 *).
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.