I have a linux server with PHP, I do not see gettext in the PHPINFO output, so I assume gettext is not enabled/included in the PHP. I have installed the gettext lib on the machine.
What other steps do I need to do to enable gettext in my PHP?
I read the php.net documentation, the only entry there writes about building PHP with gettext...
Using gettext how should a sentence with multiple numeric variables be made translatable? ngettext only takes one number as the plural parameter.
The permutations that should be allowed in the below sentence are "adult and child", "adults and child", "adult and children" and "adults and children".
"from #AVAILABILITYFROM to #AVAILABILI...
Hi.
I'm looking for service like http://translations.launchpad.net for localization my app into different languages (based on the gettext) with a team work support.
Thanks in advance.
...
I would like to provide my Python GAE website in the user's own language, using only the tools available directly in App Engine. For that, I would like to use GNU gettext files (.po and .mo files).
Has someone successfully combined Python Google App Engine and gettext files? If so, could you please provide the steps you used?
I had st...
I made a couple related threads but this is the one direct question that I'm seeking the answer for. My framework will use Zend_Translate if the php version is 5, otherwise I have to mimic the functionality for 4.
It seems that pretty much every implementation of gettext relies on setlocale or locales, I know there's a LOT of inconsiste...
Why does this Django code use _ in front of 'has favicon'
has_favicon = models.BooleanField(_('has favicon'))
...
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 translation 2) extensions translations 3) theme translations to divide those in different files. My question is, if I load the system translation,...
Currently using Gettext on a project and the .po files are nicely kept
under version control.
PO files of course contain translations, but in addition to that they
also contain some metadata - information about the exact files and
line numbers where the translatable strings are located.
The problem is that each time you update the PO f...
I have couple of application written in PyQt4 where I've used standard Python gettext library for internationalization and localization of GUI. It works good for me. But I've selected gettext just because I've already had knowledge and experience of gettext usage, and zero of experience with Qt4 tr() approach.
Now I'd like to better com...
Here is example initial_data.json. I want let django store value from column 'name' into translation file. So later, when value is printed somewhere, it could use its translated value. Is there any way to do it? Thanks.
[
{"pk": 1, "model": "category.category", "fields": {"name": "Report"}},
{"pk": 2, "model": "category.category", "fiel...
After upgrading to OS X 10.6, I've had all kinds of peculiar issues relating to MacPorts, but most of those have been resolved by simply rebuilding the libraries as required. There is one issue that I can't seem to solve through that method, and even re-building all ports, removing the old /opt directory entirely, has had no effect:
$ r...
I found most of the structure of .po files here: http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files
But it doesn't say anything about how to set a header.
Thanks
...
I have following code in my django application.
class Status(object):
def __init__(self, id, desc):
self.id = id
self.desc = desc
def __unicode__(self):
return self.desc
STATUS = Status(0, _(u"Some text"))
When I try to display some status (or even coerce it to unicode), I get:
TypeError: coercing t...
Not long ago I was playing around with GETEXT in PHP for language files and doing a lot of research on the best way to offer multilingual support in a PHP app, it seems the general consensus was to use GETEXT instead of arrays or constants or any of the other options.
I often look over big name projects code like wordpress, vbulletin...
Hi the folks!
I'm building a Open Source product and I thinking about Localization, I've read about gettext but there seems to be a lot of problem to get it to work in different systems (servers,os etc).
How would you handle this? Is there a secure way to help gettext work on several systems? Perhaps it already is?
Regards from Sweden...
Hi,
I found this cool js gettext library -> http://code.google.com/p/gettext-js/ but I don't understand how to implement it. I am using poedit to edit the translations and I can see that it works when I checkout the project and run the demo file but when I make changes to the text, the .po files don't get updated and I can't see the new...
I was just wondering if i can find php backend which can be used as alternative to poedit to enter translations.
Sometimes we need update view files directly to live server and its painful to download all source to local machine and generate .po files and translate them using poedit and upload again. Can anyone help?
...
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 server Apache.
/etc/init.d/httpd graceful
Easy...
Suppose that my site is hosted on shared host.
Suppose now I need to modify the translation ...
Are there any general localization/translation alternatives to gettext?
Open source or proprietary doesn't matter.
When I say alternative to gettext, I mean a library for internationalization, with a localization backend of sorts.
The reason I'm asking is because (among other things) I find the way gettext does things slightly cumbers...
How to use gettext in bash script?
I only found this page, but I don't understand it.
Localization
My script is written like this:
#!/bin/bash
. lang_file.sh
echo $LANG_HELLO_WORLD
And lang_file.sh look like that:
#!/bin/bash
LANG_HELLO_WORLD="Hello World"
I want to change lang_file.sh to something using gettext, like this:...