Home > PHP > Function > Gettext > gettext()

gettext()

gettext - Lookup a message in the current domain

Syntax

string gettext (string $message)

Arguments

  • message - The message being translated.

Description

Looks up a message in the current domain.

Version

PHP 4, 5

Return value

Returns a translated string if one is found in the translation table, or the submitted message if not found.