Date_HumanDiff
[ class tree: Date_HumanDiff ] [ index: Date_HumanDiff ] [ all elements ]

Class: Date_HumanDiff_LocaleArray

Source Location: /Date_HumanDiff-0.5.0/src/Date/HumanDiff/LocaleArray.php

Class Overview


Abstract implementation of the locale/translation interface that works on a translation array to provide translations.


Author(s):

Version:

  • Release: @package_version@

Methods


Child classes:

Date_HumanDiff_Locale_fa
Persian translation of the english messages.
Date_HumanDiff_Locale_el
Greek translation of the english messages.
Date_HumanDiff_Locale_de
German translation of the english messages.

Inherited Variables

Inherited Methods


Class Details

[line 29]
Abstract implementation of the locale/translation interface that works on a translation array to provide translations.

It makes adding new translations very easy. Just define a $trans array.



[ Top ]


Method Detail

get   [line 40]

string get( string $string, integer $number)

Get the translation for the given string.
  • Return: Translated string. Original string when no translation exists.
  • Access: public

Parameters:

string   $string   —  String to translate
integer   $number   —  Number to render into the string

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:56:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.