Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z GetTextem, nie podmienia tekstów
Solitary
post
Post #1





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 29.08.2002
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


Zrobiłem stronę testową o takim kodzie:

  1. <?
  2. //putenv('LANG=en_US');
  3. //putenv('LANGUAGE=en_US');
  4. $language = 'en_US';
  5. $newLocale=setlocale (LC_ALL, $language);
  6.  
  7.  
  8. $domain = 'msg';
  9. bindtextdomain($domain, &#092;"./locale\");
  10. textdomain($domain);
  11.  
  12. echo gettext(&#092;"a\");
  13. ?>


---
nospor



w pliku ./locale/en_US/LC_MESSAGES/msg.po mam taką treść:
Kod
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2003-03-18 10:52+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "a"
msgstr "La cadena debe ir aqu."


(jest to przykład z php.net)

msg.mo wygenerowałem w następujący sposób:
Kod
# msgfmt msg.po -o msg.mo


no i moim moich usilnych starań skubany nie podmienia mi a na tekst z pliku msg.po ;(

HELLPPP MEE sad.gif już nie mam pomysłów

z góry dzienx za pomoc.

Ten post edytował nospor 1.08.2005, 07:57:29


--------------------
Pozdrawiam,
Solitary
Go to the top of the page
+Quote Post

Posty w temacie
- Solitary   Problem z GetTextem   31.07.2005, 23:27:40


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 16:00