# Whoops missed off list. Hi Johan,
Thanks for taking the trouble to do this. It worked as advertised, but only for buttons.
What about this one (tt-1.pl).
Cancelar still works but what about the other attributes of the box.
Run as before and click on the font button. I've added:
sub on_click_font{
my ($i_frame, $event) = @_;
my $dlg_format = Wx::RichTextFormattingDialog -> newFull
(wxRICHTEXT_FORMAT_FONT,$i_frame,"Format Paragraph",wxID_ANY,
wxDefaultPosition, wxDefaultSize,wxNO_BORDER); # , -1, (("Paragraph
details"))
$dlg_format->ShowModal();
return;
}
Regards
Steve.
On 17-10-2014 22:47, Johan Vromans wrote:
Steve Cookson - gmail <[email protected]> writes:Hi Johan, Thanks for this. On 17/10/14 12:22, Johan Vromans wrote:use Wx qw(wxLANGUAGE_DEFAULT wxLOCALE_LOAD_DEFAULT); my $local = Wx::Locale->new(wxLOCALE_LOAD_DEFAULT, wxLOCALE_LOAD_DEFAULT ); $local->AddCatalog("app"); # replace with the appropriate catalog nameI'm not sure about this last line, where do I get these catalogues from? Or is it just "pr_BR", or something?This is for your own, application specific catalogue with translations of application texts. If you are only targetting the standard dialogue boxes, you don't need it. Appended is a small, wxGlade generated program that shows a Cancel button. When run with the correct locale, the button should read different. For example perl tt.pl will show [Cancel] . env LANG=pt_PTL perl tt.pl will show [Cancelar] . HTH, -- Johan
tt-1.pl
Description: Perl program
