Re: [Cppcms-users] cppcms::form and translate()
Brought to you by:
artyom-beilis
|
From: Christian G. <chr...@gm...> - 2012-09-14 10:37:28
|
2012/9/14 Artyom Beilis <art...@ya...>:
>
>>Hi all
>>
>>I am looking for a way to translate select box values:
>>
>> struct touch_form : public cppcms::form {
>> cppcms::widgets::select hide_mouse;
>>
>> touch_form()
>> {
>> hide_mouse.add(translate("YES"), "true"); <<-----
>
> Yes this is the correct way to translate... just small note you
> need either
>
> hide_mouse.add(booster::locale::translate("YES"), "true");
>
works - did I say that I like cppcms quite a lot :)
thanks
--
Christian Gmeiner, MSc
|