Click Here
home features news forums classifieds faqs links search
6155 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 95 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!

/  Forum Index
   /  Amiga Development
      /  Gettext PO 2 Amiga Catalog
Register To Post

PosterThread
sananaman 
Gettext PO 2 Amiga Catalog
Posted on 8-Mar-2010 15:23:08
#1 ]
Regular Member
Joined: 28-Sep-2006
Posts: 260
From: Netherlands

I'm wondering if it is possible to convert Gettext PO files to Amiga Catalog files.
My idea is to setup an on-line translation system where the whole world can help out making translations for Amiga applications.

Any ideas, suggestions or practices?

_________________
AmigaScene.nl

 Status: Offline
Profile     Report this post  
AmigaPhil 
Re: Gettext PO 2 Amiga Catalog
Posted on 8-Mar-2010 19:43:01
#2 ]
Cult Member
Joined: 21-Jan-2005
Posts: 563
From: Earth (Belgium)

@sananaman

The problem is not just about converting files.
The source code of an application is written to make use either of PO or catalog; both method are not directly compatible. If the source use gettext, even if you convert the PO into IFF catalog, the compiled application will not read the catalog unless you modify the source to change the method.

If the source is for Amiga only, you could create a CT file and convert it to PO, share the PO file with the world, and when translated, convert it back to CT so you can create a catalog for it.
But is it worth it ?
Both CT and PO are plain text file. Anyone can easily understand how to add translations to them (but again, testing the translated PO file is not possible without an adapted compiled source).

 Status: Offline
Profile     Report this post  
asymetrix 
Re: Gettext PO 2 Amiga Catalog
Posted on 8-Mar-2010 20:34:55
#3 ]
Cult Member
Joined: 9-Mar-2003
Posts: 868
From: United Kingdom

@sananaman

Do you mean using something like cURL to send text to google translate/ Bing translate?

I was looking for a program that translate text from the Clipboard.
Similarly a system wide Spell check, Grammer Check, Translator using online services.

I wish the Clipboard device was easy to get access to via Scripts.

and Clipboard requires IFF-text format

Last edited by asymetrix on 08-Mar-2010 at 08:37 PM.
Last edited by asymetrix on 08-Mar-2010 at 08:35 PM.

_________________

 Status: Offline
Profile     Report this post  
itix 
Re: Gettext PO 2 Amiga Catalog
Posted on 8-Mar-2010 22:23:25
#4 ]
Elite Member
Joined: 22-Dec-2004
Posts: 3398
From: Freedom world

@AmigaPhil

You would of course write gettext wrapper. Another question is if it is really worth of it...

_________________
Amiga Developer
Amiga 500, Efika, Mac Mini and PowerBook

 Status: Offline
Profile     Report this post  
sananaman 
Re: Gettext PO 2 Amiga Catalog
Posted on 9-Mar-2010 14:35:07
#5 ]
Regular Member
Joined: 28-Sep-2006
Posts: 260
From: Netherlands

Thanks all for the reactions so far.

@AmigaPhil

The whole idea is to have an online system, where you can create projects (apps that need localization) and from there manage the translation. Everybody can translate it's own chunk and send it back into the online system. An supervisor (approver) can check the quality of the translations and can put the chunk on "approved". Only that chunk wil go into the locale file.

In an ideal world you can hook the translation system into your build system. In that way you can have nightly builds with the latest translations.

I'm looking into a way how to realize such thing for Amiga apps.

_________________
AmigaScene.nl

 Status: Offline
Profile     Report this post  
broadblues 
Re: Gettext PO 2 Amiga Catalog
Posted on 9-Mar-2010 14:58:53
#6 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4456
From: Portsmouth England

@sananaman

Given your design end is for amiga apps, why get "gettext" involved at all?

gettext and catalogs aren't remotely compatable, using totally different approaches to finding the localised string.

I would say you need a php (or perl or python) script that parses the 'cd' file presents a form online into which the translations acn be entered then rebuilds the ct file from the entered strings. The developer could then download the final result and compile the catalogs. You have to be careful of spammers though, just imagine if a bot found the site and filled all the translations with adverts for little blue pills!

Last edited by broadblues on 09-Mar-2010 at 02:59 PM.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
sananaman 
Re: Gettext PO 2 Amiga Catalog
Posted on 9-Mar-2010 15:35:44
#7 ]
Regular Member
Joined: 28-Sep-2006
Posts: 260
From: Netherlands

@broadblues

The thing is that there are advanced online translation systems they mostly work with PO files. If you're able to make a bridge between the Amiga locale files and the PO files then you are able to use these systems.

But it might also be worth to see if Amiga local files can be converted to something usable in an online system. Let's see.

@all
Thanks for the feedback so far.

_________________
AmigaScene.nl

 Status: Offline
Profile     Report this post  
AmigaPhil 
Re: Gettext PO 2 Amiga Catalog
Posted on 9-Mar-2010 18:12:03
#8 ]
Cult Member
Joined: 21-Jan-2005
Posts: 563
From: Earth (Belgium)

@sananaman

Quote:
The thing is that there are advanced online translation systems they mostly work with PO files. If you're able to make a bridge between the Amiga locale files and the PO files then you are able to use these systems.


You can convert CD files to PO files, BUT :

- On Amiga, the source, CD and CT files share a msgID to identify strings, and this msgID HAS to be in the form of a variable name syntax. Whereas in the gettext system, the msgID is the original string itself.
The msgID as used in CD file is of no use in PO file (but you could include it as a specially formatted comment line, so that when converting PO to CT, the msgID could be restored).

- The catalog files only have translated strings, identified by a NUMBER (strNum, associated to the msgID). Ideally, this strNum has to be unique and permanent to preserve compatibility of catalogs between several version of an application .
Whereas a MO file has both the original and translated strings; the translated ones are identified by the msgID which in this case is the original string. There is no strNum here.
When converting CD to PO, the strNum is LOST (unless you store it in a comment line as well).

So the idea: CD - > PO, and PO - > CT is possible, but not easy.

If you already have something that can take a string as input and return a translation, then you could take the original strings from CD, and create a CT with the translation.
With some knowledge of HTML and PHP or Perl, it should not be too difficult to create a CT file (a catalog is another problem, as it has to be compiled by tools like CatComp. Is the server an Amiga ?)

 Status: Offline
Profile     Report this post  
nbache 
Re: Gettext PO 2 Amiga Catalog
Posted on 9-Mar-2010 21:12:12
#9 ]
Super Member
Joined: 8-Apr-2003
Posts: 1047
From: Copenhagen, Denmark

@sananaman

I'd question the usefulness of such an online translation collaboration system anyway.

In my experience as a translator, the big part of the work involved in making a good translation is not getting the raw texts translated into the other language, but testing the result with the application in question, making sure that you have followed your standards, that you don't have duplicated shortcuts etc., and that everything is correct and understandable in the context in which it actually appears when you use the application.

All this is best done by having one person create the translation and possibly another one proofread and test it. If many people participate in translating subsets of strings for an application, or even worse, reuse translations of words taken from completely different contexts without realizing in which new context they are going to be used, it might very well mean more work for the one who has to make it all fit together, not less.

Best regards,

Niels

 Status: Offline
Profile     Report this post  
AmigaPhil 
Re: Gettext PO 2 Amiga Catalog
Posted on 10-Mar-2010 19:36:14
#10 ]
Cult Member
Joined: 21-Jan-2005
Posts: 563
From: Earth (Belgium)

@nbache

I agree.

What would be more useful is to re-kick life to the ATO (Amiga Translator's Organization) network and refresh/update the website(s).
http://ato.vapor.com/

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle