PHP

PHP jest obiektowym, skryptowym jezykiem programowania zaprojektowanym do tworzenia dynamicznych stron www.


Funkcje PHP

Oficjalna strona PHP

Dodatkowe aplikacje PHP

Dodatkowe modu³y PHP

Wortal PHP
Śmieszne filmiki - Logo Firmy - Opisy - rtv - Cięcie blach - ogrzewanie elektryczne


gettext

gettext

(PHP 3 >= 3.0.7, PHP 4, PHP 5)

gettext -- Lookup a message in the current domain

Opis

string gettext ( string message )

Looks up a message in the current domain.

Parametry

message

Zwracane wartości

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

Przykłady

Przykład 1. gettext()-check

<?php
// Set language to German
setlocale(LC_ALL, 'de_DE');

// Specify location of translation tables
bindtextdomain("myPHPApp", "./locale");

// Choose domain
textdomain("myPHPApp");

// Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo now

// Print a test message
echo gettext("Welcome to My PHP Application");

// Or use the alias _() for gettext()
echo _("Have a nice day");
?>

Notatki

Notatka: You may use the underscore character '_' as an alias to this function.

Patrz także

setlocale()

Limo and Car services Airport chicago limousine service 773-649-9630 - Limo and Car services limousine service chicago Airport 773-649-9630 - Faktorowanie Faktury Program - odzyskiwanie danych Gdynia - zdjęcia dziewczyn - zdjęcia zwierząt - Limo and Car services limousines chicago il 773-649-9630 - Bardzo smutne gg - Najlepsze pionowe opisy gg do Twojego komunikatora - Najlepsze opisy gadu gadu do Twojego komunikatora - Wypożyczalnia wynajem samochodów pyrzowice Lotnisko - odzyskiwanie danych Koszalin - Muzyk zwierzaczek - pozycjonowanie bielsko - Nasz cel zapewnienie jakości oprogramowania dla Ciebie

G:11,M:0,Y:29