Project

General

Profile

about wt.xml,auth_strings.xml,and resources some questions?

Added by yu feng over 6 years ago

hi :

I install wt 4.0.0.2 with prefix=/opt/wt,resources is in /opt/wt/share/Wt/resources/,in my application use WBootstrapTheme

std::unique_ptrWt::WBootstrapTheme bootstrapTheme = Wt::cpp14::make_uniqueWt::WBootstrapTheme();

bootstrapTheme->setVersion(Wt::BootstrapVersion::v3);

bootstrapTheme->setResponsive(true);

setTheme(std::move(bootstrapTheme));

when I cp resources to my application root , my application could run normally.

public resources must be in my application root?

wt.xml,auth_strings.xml these files can not find in /opt/wt ,where are these file?

I cp wt.xml,auth_strings.xml these files to my application root,and add these code

messageResourceBundle().use("wt");

messageResourceBundle().use("auth_strings");

to my application .

my application can show chinese . Is there a better way to do it?


Replies (1)

RE: about wt.xml,auth_strings.xml,and resources some questions? - Added by Mark Petryk over 6 years ago

There is not a better way other than to copy the files to your application root, unless you want to symlink to your /opt installation folder. But, usually (I understand) is that you want these files in your local folder so that you can customize them.

    (1-1/1)