LedgerSMB::Locale(3pm)

LedgerSMB::Locale3pm

Locale handling class for ledgersmb

Usage

Locale support module for LedgerSMB. Uses Locale::Maketext::Lexicon as a base.

Methods

get_handle ($language_code)

Returns a locale handle for accessing the other methods. Inherited from Locale::Maketext.

text ($string, @params)

Returns the translation for the given string. This is a legacy wrapper that merely calls $self->maketext.

date ($myconfig, $date, $longformat)

Returns the given date after formatting it. $longformat is a ternary flag that determines how the date is formatted. If $longformat is true, the date will be given in the form of "_('September') 23 2007". If $longformat is false but defined, the date will be in the form of "_('Sep') 23 2007" unless the date is given in the form 'yyyy.mm.dd', in which case it is returned as-is. If $longformat is not defined, the date will be output in the format specified by $myconfig->{dateformat}.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From ledgersmb 1.3.40-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.