473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

i18n/localization-- easily??

I want to add internationalization to the software i'm writing now, but have
run into a bit of a snag.

It seems so darn complicated! Importing gettext, forcing it to grab the .mo
from the correct location(nessecarily a bit non-standard in this situation),
and using _() around my strings, those are all easy.

But generating the .pot's seems impossibly complicated. Am I wrong or do I
need to run pygettext on every single file in my system, manually? Then
msgfmt? I was hoping that I could run it once, have it scan all of the
python files referenced, and have it generate some global 'messages.pot',
that I could then append to with subsequent executations (on different
files).

This doesn't appear to be the case. Did I miss something terribly? :)

Thanks

--Stephen
Jul 18 '05 #1
1 1538
P
Ixokai wrote:
I want to add internationalization to the software i'm writing now, but have
run into a bit of a snag.

It seems so darn complicated! Importing gettext, forcing it to grab the .mo
from the correct location(nessecarily a bit non-standard in this situation),
and using _() around my strings, those are all easy.

But generating the .pot's seems impossibly complicated. Am I wrong or do I
need to run pygettext on every single file in my system, manually? Then
msgfmt? I was hoping that I could run it once, have it scan all of the
python files referenced, and have it generate some global 'messages.pot',
that I could then append to with subsequent executations (on different
files).

This doesn't appear to be the case. Did I miss something terribly? :)


Yes there are a lot of things to worry about.
I summarised a few things here:
http://www.pixelbeat.org/docs/i18n.html

In summary pygettext is redundant now as the standard
xgettext supports python code. The handiest way
to do all this is in a Makefile. I would suggest
downloading my python program and referencing
the Makefile in the po directory:
http://www.pixelbeat.org/fslint/FSlint-2.06.tar.gz

Pádraig.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ProgDario | last post by:
HI, I downloaded and installed the I18N pear package, but the link on the doc referring to the DB is broken. Where can I find the I18N DB? Without it I can't make it work! Thanks in...
10
by: Albretch | last post by:
.. Can you define the Character Set for particular tables instead of databases? . Which DBMSs would let you do that? . How do you store in a DBMS i18n'ed users' from input, coming over the web...
7
by: iceriver | last post by:
Hi All, I already have a web site running with SQL Server as a backend (in english)For future growth, I would like to make it localized. Regarding the database, I have come up with several...
13
by: Guido Wesdorp | last post by:
Hi! I've just released a JavaScript library to allow internationalizing JavaScript code and/or to do HTML translation from JavaScript. It's a first release, and it doesn't have all the features...
0
by: Laszlo Zsolt Nagy | last post by:
Hello, I wonder if there is a standard for making i18n in Python projects. I have several Python projects that are internationalized. I also have Python packages with i18n. But it is still not...
2
by: bruno | last post by:
I need to localize my ASP.NET app and I just used "Tools" --"generate local resources" command and everything works fine in my WebForms. Resource file name is: MyWebForm.aspx.resx under a subDir...
2
by: netasp | last post by:
Hello, I was wondering, how is done for languages that read Top-Bottom or Right-to-Left? is there away around that or does it have to be a complete redesign? because as you know, all controls...
2
by: kasthurirangan.balaji | last post by:
Hi, I am looking for advice on i18n/l10n using c++. I understand about wchar & wstreams. I have gone thru the net for some knowledge. All speak of encodings like utf8/utf16/iso8859 and so. I...
1
by: Pieter | last post by:
Hi, I'm using VB.NET with VS.NET 2005. I'm using the standard localization to localize my Forms and UserControls, which works perfect. BUT: I also want to localize the (error)messages I'm...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.