4
5

Can you please tell me how to use rosetta to create translations for messages files in OSQA please, thanks

asked 07 May '10, 22:00

tuan's gravatar image

tuan
26681212
accept rate: 100%

edited 08 May '10, 00:01

ripper234's gravatar image

ripper234 ♦
3.2k60116123

3

We're considering whether we should install Rosetta on an OSQA.net server so ALL translators could simply use one, unified source for producing translations. An added benefit would be that updated translations could more easily be checked into the OSQA version control system. What do you think?

(27 Dec '10, 11:46) rickross ♦♦
1

I would be glad to help with transaltion to Hungarian if you would install the service on your site.

(01 Mar '11, 02:45) gyurisc

First of all you need to install rosetta, either through easy_install:

easy_install rosetta

or just download the sources, uncompress and run

python setup.py install

Then, to run it with OSQA, you'll need to turn off debug if you have it turned on. Edit the settings_local.py file and set DEBUG to False. There is an incompatibility between Rosetta and Django Debug Toolbar. If you don't have it installed, you can skip this step.

Finally, just point your browser to http://yourosqainstall/rosetta/ and happy translations :-)

link

answered 07 May '10, 22:11

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

3

on mine, it is easy_install django-rosetta to be able to install it, thanks

(08 May '10, 08:24) tuan

Another question is that, when I create a new language pack and compile it, do I need to do some thing else to get it display on http://yourosqainstall/rosetta/ , thanks

(08 May '10, 08:40) tuan

No, it should just pick up whatever properly formatted translation directories exist - at least it did in our testing. Don't forget to contribute the translation back if you feel its good. We want to support as many languages as possible!

(08 May '10, 10:09) matt ♦♦
1

I used the django-admin.py makemessages -l vi to create the language pack, then run compilemessages to compile everything, then try the rosetta link, but it still didnt get it to be displayed yet, sure I will contribute back to the community when the translation done, but at the moment, just couldnt get it to display yet, any suggest?

(08 May '10, 10:38) tuan

I tried it with italian, japanese and they all works, only with vietnamese that it doesnt show up, any idea?

(08 May '10, 11:58) tuan

What is the incompatibility with debug tool bar and how to overcome it?

(03 Jul '10, 07:20) sorin

If you have debug toolbar and rosetta installed at the same time, and you're in debug mode, the site will just stop working with a bunch of unicode errors, because debug toolbar is not unicode safe. Anyway you don't need nothing to overcome it, our settings file makes sure it doesn't activate rosetta while in debug, neither ddt while in standard mode.

(03 Jul '10, 13:14) Hernani Cerq... ♦♦

Thanks hernani, I knew about this dual mode debug=ddt non-debug=rosetta but the problem is that I'm running with debug=False and I'm not able to access rosetta. As you can imagine is installed.

(04 Jul '10, 04:11) sorin

I successfully installed rosetta. My only problem is that I cannot turn off the debug mode. I changed DEBUG = True to False but it doesn't seem to turn it off. Any help?

Edit: If I manually work on the django.po in /locale/de/ and change LANGUAGE_CODE from 'en' to 'de' in settings_local.py the english translation is still active.

(10 Sep '10, 14:55) Michael Lanz...

Problem solved. Patience is a necessary virtue...

(10 Sep '10, 16:18) Michael Lanz...

@michael-lanzinger Can you please explain how you solved it? I've been working on this for more than a week and still can't get rosetta to work at all. I've installed the django-rosetta package. I've checked that it makes all the right changes in settings.py, urls.py, etc (It did), but still no rosetta at http://mysite.com/rosetta/ I've also tried to work directly with the .po files, but they are so badly mangled, that it's a huge headache. Thanks to everyone who worked on OSQA, but the internationalization seems really lacking.

(30 Nov '10, 09:26) stocko

I did as described but haven't got rosetta working. Does anyone know what the problem and solution are?

(12 Dec '10, 23:31) pico

BTW, I've been trying to set up rosetta since more than a month and still don't see any way to make it show up. In the meantime, I've translated the .po files in an external PO file editor, which was pretty straightforward, but I still need to install rosetta. Any help about where to start debugging the rosetta setup would be appreciated.

(27 Dec '10, 09:28) stocko
showing 5 of 13 show 8 more comments

I'm not a python guru, so it might be a hack, but Got it working by changing the order of url resolvers:

from django.conf.urls.defaults import * from django.utils.translation import ugettext as _ from django.conf import settings

urlpatterns = []

print 'Is rosetta installed: '+('rosetta' in settings.INSTALLED_APPS)

if 'rosetta' in settings.INSTALLED_APPS: urlpatterns += patterns('', url(r'^rosetta/', include('rosetta.urls')), )

urlpatterns += patterns('', (r'^%s' % settings.FORUM_SCRIPT_ALIAS, include('forum.urls')), )

link

answered 27 Dec '10, 06:11

Ikutsin's gravatar image

Ikutsin
1612
accept rate: 0%

I found that the correct way to easy install the django-rosetta module is to issue the command:

easy_install django-rosetta

Then I made the changes in the .py files as described in the answers above and the clicked the following url

http://127.0.0.1:8000/rosetta/

The last / was missing for me, after putting it in it started to work.

I have no rights to modify the answers and that is why I posted this as a separate answer.

link

answered 01 Mar '11, 09:54

gyurisc's gravatar image

gyurisc
106238
accept rate: 50%

edited 01 Mar '11, 10:20

Please, what changes have you made? There are many suggestions in this thread.

(13 Dec '11, 09:46) rqalmeida

I am lost here, I am also trying to translate it into Brazilian Portuguese, but there is no way I can get the http://127.0.0.1/rosetta/ URL to work. The system is working fine, but it would surely be a plus if I could translate it. If somebody could make a recipe, out of all the previous answers, it would be great.

link

answered 13 Dec '11, 09:44

rqalmeida's gravatar image

rqalmeida
112
accept rate: 0%

edited 13 Dec '11, 09:45

You need to make sure that the django-rosetta package is installed and that your OSQA is running in DEBUG=False mode.

(15 Dec '11, 06:04) Jordan ♦♦

I did that, but still, I got an error. I'll start working on the translation using an offline tool, but I'll keep trying to make rosetta work. Thanks a lot for your reply.

link

answered 15 Dec '11, 10:58

rqalmeida's gravatar image

rqalmeida
112
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×30
×22
×12

Asked: 07 May '10, 22:00

Seen: 1,658 times

Last updated: 15 Dec '11, 10:58

powered by OSQA