Globalize plugin


#1

Is there any working example on using the Globalize plugin?
It could help alot
Thanks in advance


#2

Did you check the official site:
http://globalize.diluvia.net/wiki
?

Alain


#3

Thanks for the questions! I just added a new how-to page to the wiki:
http://globalize.diluvia.net/wiki/pages/How+To

Let me know if that answers your first question. As for your second
question, what do you mean exactly by defining available languages?

Also, your idea of including a tiny example app is a good one. I’ll try
to whip something up as soon as I have some time. Or if anyone else
wants to volunteer, let me know.

Josh Harvey
http://shnoo.gr

Alexander A. wrote:

Alain R. wrote:

Did you check the official site:
http://globalize.diluvia.net/wiki
?

Alain

Yes I did and the installation all described on the documentation are
ok. What I need is a working rails example to understand how I’ll store
the translated text on the database for each language, how do I define
available languages etc.
So a small rails application with one table and a couple of data
translated I think would help some new ruby programmers like me :slight_smile:


#4

Try this out:
http://globalize.diluvia.net/wiki/pages/Adding+a+Translation+View

I ripped it out of some stuff I’m working on, so no guarantees, but
feedback is welcome, as always.

Joshua Harvey
http://shnoo.gr

Alexander A. wrote:

Thanks Joshua. This clears some things out for sure.
What I have to figure out now is how to include the translation process
in the application so I don’t have to type the translations from the
console in order to enter them in the db.
Thanks

Joshua Harvey wrote:

Josh Harvey

Alain


Alexander A.
Information Systems Department
Mediterranean Agronomic Institute of Chania
Tel.: +30 28210 35000 718
Email: removed_email_address@domain.invalid


#5

I believe a template is missing.
the error I get is :
No rhtml, rxml, or delegate template found for
translate/_translation_text

and it must come from :
<%= render :partial => ‘translation_text’, :object => tr.text %>

As I said I’m a newby in Ruby ans Rails so maybe I do something wrong

Alex

Joshua Harvey wrote:

Alain


Alexander A.
Information Systems Department
Mediterranean Agronomic Institute of Chania
Tel.: +30 28210 35000 718
Email: removed_email_address@domain.invalid


Alexander A.
Mediterranean Agronomic Institute of Chania
Tel: +30 28210 35000 ext.718
email: removed_email_address@domain.invalid


#6

On Wed, 2005-12-21 at 19:12 +0100, Joshua Harvey wrote:

Try this out:
http://globalize.diluvia.net/wiki/pages/Adding+a+Translation+View

I ripped it out of some stuff I’m working on, so no guarantees, but
feedback is welcome, as always.

I’ll try to get Jeremy to post some more examples of this… he’s
currently on a plane back to Ohio for the holiday weekend. We just got
done working on a site for a client that is using Globalize for 20
languages.

I know he posted on his blog a few times about his experience with it.

http://jvoorhis.com/

We were highly impressed with how well it could be incorporated with our
application and it now works with PostgreSQL. :wink:

http://www.robbyonrails.com/articles/2005/11/30/localization-with-rails-and-postgresql-part-1

Thanks for this great plugin Josh!

-Robby


/**************************************************************

  • Robby R., Founder & Executive Director *
  • PLANET ARGON, LLC | www.planetargon.com *
  • Ruby on Rails Development, Consulting, and Hosting *
  • Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 *
  • blog: www.robbyonrails.com | book: www.programmingrails.com *
    ***************************************************************/

#7

Joshua it is working great. Thanks for all the help. I’ll try to clear
out the test application I was using and send it to you maybe you can
use it as an example
Thanks

Alex

Joshua Harvey wrote:

Thanks for this great plugin Josh!


Alexander A.
Information Systems Department
Mediterranean Agronomic Institute of Chania
Tel.: +30 28210 35000 718
Email: removed_email_address@domain.invalid


#8

Alex wrote:

I believe a template is missing.

Alex, thanks for pointing that out – I had forgotten to paste it in,
it’s there now:
http://globalize.diluvia.net/wiki/pages/Adding+a+Translation+View

And Robby, thanks for the kind words :slight_smile:

Josh Harvey
http://shnoo.gr

Robby R. wrote:

We were highly impressed with how well it could be incorporated with our
application and it now works with PostgreSQL. :wink:

http://www.robbyonrails.com/articles/2005/11/30/localization-with-rails-and-postgresql-part-1

Thanks for this great plugin Josh!


#9

Alain R. wrote:

Did you check the official site:
http://globalize.diluvia.net/wiki
?

Alain

Yes I did and the installation all described on the documentation are
ok. What I need is a working rails example to understand how I’ll store
the translated text on the database for each language, how do I define
available languages etc.
So a small rails application with one table and a couple of data
translated I think would help some new ruby programmers like me :slight_smile:


#10

Thanks Joshua. This clears some things out for sure.
What I have to figure out now is how to include the translation process
in the application so I don’t have to type the translations from the
console in order to enter them in the db.
Thanks

Joshua Harvey wrote:

Josh Harvey

Alain


Alexander A.
Information Systems Department
Mediterranean Agronomic Institute of Chania
Tel.: +30 28210 35000 718
Email: removed_email_address@domain.invalid


#11

Cool Joshua. I’ll try this little later and let you know.
Thanks again

Joshua Harvey wrote:

Alain


Alexander A.
Information Systems Department
Mediterranean Agronomic Institute of Chania
Tel.: +30 28210 35000 718
Email: removed_email_address@domain.invalid


Alexander A.
Information Systems Department
Mediterranean Agronomic Institute of Chania
Tel.: +30 28210 35000 718
Email: removed_email_address@domain.invalid