Buna ziua, Poate nu e locul potrivit dar am o intrebare referitoare la gettext in Windows.
Pe scurt: Stiti daca functioneaza pentru limba romana pe Win 2000? In MSDN lib. nu e listata si limba romana in tabelul de la adresa http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/ _crt_language_strings.asp PS: Mai pe larg: am facut un test in PHP si nu traduce orice as face. Stiu ca topicul listei nu e PHP-ul dar ma gandeam ca poate cineva ma poate ajuta. PHP are suport gettext. si e versiune noua. Script PHP: =========== <?php // Setare limba $loc=setlocale(LC_ALL, 'rom_ROM'); echo "am obtinut: ".$loc; echo "<br>"; // Locatie traducere echo "Rezultat bindtextdomain: ".bindtextdomain("texte", "./locale"); echo "<br>"; // Choose domain echo "Rezultat textdomain: ".textdomain("texte"); echo "<br>"; // Traducerea e in ./locale/rom_ROM/LC_MESSAGES/texte.mo si texte.po // Un text care ar trebui sa fie tradus echo gettext("Message from me"); echo "<br>"; // Sau cu alias _() pt. gettext echo _("Romanian language"); echo "<br>"; ?> Continul fisier traducere pus in LC_MESSAGES (generat de poedit) ================================================================ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: 2005-03-24 16:32+0200\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" msgid "Message from me" msgstr "Mesaj de la mine" msgid "Romanian language" msgstr "Limba romana" Raspuns primit de IE in care NU apar mesajele traduse ===================================================== am obtinut: Romanian_Romania.1250 Rezultat bindtextdomain: c:\program files\easyphp1-8\www\locale Rezultat textdomain: texte Message from me Romanian language --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
