imp & greek charset

Dimitris van Leusden dvl at dvl.gr
Mon Feb 26 15:31:27 EET 2007


kalispera,

Prospa8w na egkatastiso to Horde/IMP kai ola fainetai na paizoyn kala
ektos apo ta ellinika. Diavasa to docs/TRANSLATIONS kai den katafera na
kano kati, diladi o,ti glossa kai na po sto GUI fainontai panta agglika.
Apo o,ti fainetai exei na kanei me environment variables?

To paradeigma poy exei "Does the local Horde file work?

   Assuming that you have put the translated Horde file in
   ``/data/www/horde/locale/nl_NL/LC_MESSAGES/horde.mo``::

      $ export TEXTDOMAINDIR=/data/www/horde/locale
      $ (LANG=nl_NL; LANGUAGE=nl_NL; LC_MESSAGES=nl_NL; gettext horde
"Message" )
      Bericht

   Create a file in the horde directory, langtest.php::

      <?php

      setlocale(LC_MESSAGES, 'nl_NL');
      putenv('LANG=nl_NL');
      putenv('LANGUAGE=nl_NL');
      // use the tar test.
      echo dgettext('tar', 'Memory exhausted');
      echo '<br />';

      // Specify location of translation tables
      bindtextdomain('horde', './locale');

      // Choose domain
      textdomain('horde');

      // Print the already tested message
      echo _("Message");
      echo '<br />';

      // this should print the same.
      echo dgettext('horde', 'Message');

      ?>

   Output web browser::

      Geheugen uitgeput
      Bericht
      Bericht"


den fainetai na kanei kati me ta ellinika.

To locale moy einai os eksis:

> locale
LANG=en_US.UTF-8
LANGUAGE=en_DE:en_US:en_GB:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

oi opoies allages kano sto /etc/profile exoun noima mono sto shell. isws
na ftaine ta parapano alla pos allazoyn monima? (ektos shell?)


Apo o,ti ksero sto hellug to exoyn kanei me ellinka pantos.

Exo ena 2.6.8-12-amd64-k8-smp Debian

eyxaristw,

Dimitris van Leusden
dvl at linux.gr
dvl at dvl.gr




More information about the Linux-greek-users mailing list