i18n - Where to start?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

i18n - Where to start?

bahman
Hi all,

Would anyone share a pionter to how to do i18n in Pharo for translating the messages used in a Pharo application (web or desktop)?

TIA,
-- 
Bahman Movaqar  (http://BahmanM.com)

ERP Evaluation, Implementation & Deployment Consultant
PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)

signature.asc (565 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: i18n - Where to start?

Clément Béra
Hello,

So there is 2 frameworks to do multi language UI in Pharo (but I don't know if one of them is i18n). 

One framework is in the image, does not work very well and no one use it seemingly. So I don't recommend it.

The other one is the one everyone use, so I recommend it, I'm not sure but I think it is named getText and you can find here: http://smalltalkhub.com/#!/~PharoExtras/Gettext
Seemingly it has been ported to Pharo 2.0 recently. Therefore it should work *nearly* out of the box.

Regards,


2013/11/14 Bahman Movaqar <[hidden email]>
Hi all,

Would anyone share a pionter to how to do i18n in Pharo for translating the messages used in a Pharo application (web or desktop)?

TIA,
-- 
Bahman Movaqar  (http://BahmanM.com)

ERP Evaluation, Implementation & Deployment Consultant
PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)

Reply | Threaded
Open this post in threaded view
|

Re: i18n - Where to start?

Stephan Eggermont-3
In reply to this post by bahman
With the QCMagritte image (from the pharo contributions ci).
That has build-in support for translations. Just start it and open
the web demo

Stephan

Reply | Threaded
Open this post in threaded view
|

Re: i18n - Where to start?

Stephan Eggermont-3
In reply to this post by bahman
Here is a demo of the i18n support in QCMagritte.
It supports live editing of the languages and strings used in your application.

youtu.be/cTut44Xs3_U

Stephan
Reply | Threaded
Open this post in threaded view
|

Re: i18n - Where to start?

Stephan Eggermont-3
In reply to this post by bahman
In the multi language demo of QCMagritte, a magritte visitor is used that changes all label:, checkboxLabel:, comment: and group: sends in descriptions to automatically use a multilanguagestring. The parameter is used as the key. All unique keys are collected. The default translation is the key. That is used for missing translations.

Languages can be added on the fly.
The demo has a simple UI to directly add and change translations.
The whole translation table can be written to csv, and read back. This is not shown in the video

Stephan

Verstuurd vanaf mijn iPhone
Reply | Threaded
Open this post in threaded view
|

Re: i18n - Where to start?

Ben Coman
In reply to this post by Stephan Eggermont-3
Stephan Eggermont wrote:
> Here is a demo of the i18n support in QCMagritte.
> It supports live editing of the languages and strings used in your application.
>
> youtu.be/cTut44Xs3_U
>
> Stephan
>
>  
Very impressive.