The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Lang::wxLocale - A backend for Lang internationalization

SYNOPSIS

  use Lang;
  use Lang::wxLocale;
  
  my $wxloc=new Lang::wxLocale();
  Lang::language("en");

  print _T("This is a test");

  Lang::language("nl");
  
  print _T("This is a test");

ABSTRACT

This module provides a Wx::Locale backend for the Lang internationalization module.

DESCRIPTION

new() --> Lang::wxLocale

Instantiates a new backend object.

translate(language,text) --> string

This function looks up a translation for the tuple (language, text) via Wx::Locale.

set_translation(language,text,translation) --> boolean

This function returns false for this backend, because Wx::Locale does not support dynamic updating.

clear_cache() --> void

This function is a noop for this backend.

SEE ALSO

Lang.

AUTHOR

Hans Oesterholt-Dijkema <oesterhol@cpan.org>

COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify it under LGPL terms.