php-gettext Questions
3
Solved
I've been looking at options for internationalizing an open source project:
Gettext, which everyone seems to recommend, apparently needs locales to be "installed on your system" to be used. See t...
Dissatisfied asked 21/3, 2013 at 7:29
6
Solved
This is a little code snippet from php manual:
putenv('LC_ALL=zh_CN');
setlocale(LC_ALL, 'zh_CN');
bindtextdomain('domain', './locale');
textdomain('domain');
echo gettext('Hello');
Which will...
Insignificance asked 29/11, 2012 at 12:17
2
Solved
The following example works on Mac OS X with Apache, i.e. I get the translated string echoed back. But on Ubuntu with lighttpd I get the original text 'Inactive account'. I've tried all sorts of co...
Accidental asked 10/3, 2011 at 9:12
4
Solved
I asked this question on serverfault but I didn't get any response. I try here...
I developped a site on my web server at home.
When I modify the translation files, I have to restart the web serv...
Incubator asked 1/2, 2010 at 15:46
3
Consider writing a PHP library, that will get published through Packagist or Pear. It is addressed to peer developers using it in arbitrary settings.
This library will contain some status messages...
Viewpoint asked 10/12, 2013 at 19:32
2
Solved
I am currently developping a PHP web app that needs to be available in French and English. I looked around and found that the Gettext() functionality offers the best performance.
I generated my .p...
Orchardist asked 15/8, 2012 at 17:30
3
I have a .po and a .mo file in a folder whose address is /locale/nld_nld/LC_MESSAGES/. Both the files' names are messages. I've been trying to use the following code:
try.php:
<?php
require_on...
Gearwheel asked 13/1, 2011 at 16:57
4
Solved
Online editing gettext files, is it possible?
I use gettext for all my PHP projects, but sides with a minor problem, want to mine user may translate my language from as Danish to Norwegian, ...
Indreetloire asked 3/5, 2010 at 4:41
1
Solved
I use PHP Gettext extension for localizing a Web app. When you do:
bindtextdomain("example", "/locales");
If you're setting the locale to fr_FR, it will look for the MO in:
/locales/fr_FR/LC_ME...
Ichnology asked 1/3, 2012 at 12:3
1
Solved
I've been learning a bit of gettext but I can't grasp those two functions. I've been wondering if I could use multiple translations in a APP written in PHP. For an instance, I've 1) the system tran...
Swafford asked 1/1, 2010 at 17:19
1
© 2022 - 2024 — McMap. All rights reserved.