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::Document::Perl::Starter(3pm)			User Contributed Perl Documentation		       Padre::Document::Perl::Starter(3pm)

NAME
Padre::Document::Perl::Starter - Starter module for Perl 5 documents DESCRIPTION
Padre::Document::Perl::Starter provides support for generating Perl 5 documents and projects of various types. METHODS
new my $starter = Padre::Document::Perl::Starter->new($main); The "new" constructor creates a new code generator, taking the main window object as a parameter. main The "main" accessor returns the main window object. current The "current" accessor returns a "Padre::Current" object for the current context. create_script $starter->create_script; Create a new blank Perl 5 script, applying the user's style preferences if possible. create_module $starter->create_module( module => $package ); Create a new empty Perl 5 module, applying the user's style preferences if possible. If passed a package name, that module will be created. If no package name is provided, the user will be asked for the name to use. create_test $starter->create_test; Create a new empty Perl 5 test, applying the user's style preferences if possible. 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::Document::Perl::Starter(3pm)
Man Page