|
Can you please tell me how to use rosetta to create translations for messages files in OSQA please, thanks |
|
First of all you need to install rosetta, either through easy_install:
or just download the sources, uncompress and run
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 :-) 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')), ) |
|
I found that the correct way to easy install the django-rosetta module is to issue the command:
Then I made the changes in the .py files as described in the answers above and the clicked the following url
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. 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. 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 ♦♦
|
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?
I would be glad to help with transaltion to Hungarian if you would install the service on your site.