Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

padre::locale::t(3pm) [debian man page]

Padre::Locale::T(3pm)					User Contributed Perl Documentation				     Padre::Locale::T(3pm)

NAME
Padre::Locale::T - Provides _T for declaring translatable strings SYNOPSIS
use Padre::Locale::T; my $string = _T('This is a test'); DESCRIPTION
Padre uses a function called _T to declare strings which should be translated by the translation team, but which should not be immediately localised in memory. This is done primarily because the active language may change between when a string is initially stored in memory and when it is show to a user. The reason we use _T is that most translation tools in the wild that scan the code for a program detect the use of a C macro calls _T that does immediate translation. By creating a null pass through function called _T and the linguistic similarity of Perl to C, we can take advantage of the way translation tools detect translatable strings while keeping the proper Wx::gettext function for strings which do need to be translated immediately. The _T function used to live in Padre::Util, but as that module gradually bloated it was increasing the code of getting the _T function dramatically. Padre::Locale::T declares only this one function, and will only ever do so. Because of this, it also exports by default (although you are still welcome to declare the import if you wish. FUNCTIONS
"_T" The "_T" function is used for strings that you do not want to translate immediately, but you will be translating later (multiple times). The only reason this function needs to exist at all is so that the translation tools can identify the string it refers to as something that needs to be translated. Functionally, this function is just a direct pass-through with no effect. COPYRIGHT
Copyright 2008-2012 The Padre development team as listed in Padre.pm. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-06-27 Padre::Locale::T(3pm)

Check Out this Related Man Page

Padre::Transform(3pm)					User Contributed Perl Documentation				     Padre::Transform(3pm)

NAME
Padre::Transform - Padre Document Transform API DESCRIPTION
This is the base class for the Padre transform API. I'll document this more later... -- Adam K METHODS
new A default constructor for transform objects. Takes arbitrary key/value pair parameters and returns a new object. scalar_delta my $delta = $transform->scalar_delta($input_ref); The "scalar_delta" method takes a reference to a "SCALAR" as the only parameter and changes the document. If the transform class does not implement a "scalar_delta" itself the default implementation will pass the call through to "scalar_scalar" and then convert the result to a Padre::Delta object itself. Returns a new Padre::Delta as output, or throws an exception on error. scalar_scalar my $output_ref = $transform->scalar_scalar($input_ref); The "scalar_scalar" method takes a reference to a "SCALAR" as the only parameter and changes the document. Returns a new reference to a "SCALAR" as output, false if there is no change to the document, or throws an exception on error. COPYRIGHT &; LICENSE Copyright 2008-2012 The Padre development team as listed in Padre.pm. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.14.2 2012-06-27 Padre::Transform(3pm)
Man Page