tag:blogger.com,1999:blog-4345066302652424538.post3381668048303124027..comments2023-09-27T09:21:42.903+02:00Comments on @datapythonista: Easier field translation with django-transmetaMarchttp://www.blogger.com/profile/01286849404527531329noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-4345066302652424538.post-29971973514156414352010-09-01T07:09:37.776+02:002010-09-01T07:09:37.776+02:00well, just copy management folder from transmeta t...well, just copy management folder from transmeta to any application registered in your project...works greatRuddyhttps://www.blogger.com/profile/09083235687113727694noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-43566763540222855642010-09-01T07:06:49.451+02:002010-09-01T07:06:49.451+02:00i have the same problem, Unkown command.... what s...i have the same problem, Unkown command.... what should I do? :(Ruddyhttps://www.blogger.com/profile/09083235687113727694noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-52473906612963929702010-08-13T17:53:09.987+02:002010-08-13T17:53:09.987+02:00Hi,
I'm a Windows user. I've placed tran...Hi, <br /><br />I'm a Windows user. I've placed transmeta at c:\python\Lib\site_packages\transmeta using "setuptools".<br /><br />When I go to my project to run the "sync_transmeta_db" command I get this error:<br /><br />Uknown command: 'sync_transmeta_db'<br />Type 'manage.py help' for usage.<br /><br />I know I've done somthing incomplete, but can't find anything on this site to help me out.<br /><br />What should I do?Unknownhttps://www.blogger.com/profile/02334515444224106306noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-38831879797415304422009-11-24T19:16:46.729+01:002009-11-24T19:16:46.729+01:00http://code.google.com/p/django-transmeta/http://code.google.com/p/django-transmeta/Marchttps://www.blogger.com/profile/01286849404527531329noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-87913101583491260212009-11-19T13:30:53.693+01:002009-11-19T13:30:53.693+01:00Now iam working on some language translation in dj...Now iam working on some language translation in django.<br />I like to use the Django-transmeta module..<br />Where can i download the Django-transmeta module?Anonymoushttps://www.blogger.com/profile/03976373354095141708noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-60660016181184508692009-11-12T11:02:26.066+01:002009-11-12T11:02:26.066+01:00Makes sense. I quite liked the transmeta approach,...Makes sense. I quite liked the transmeta approach, but not the column per langauge. A pile of the existing solutions don't support south database migrations either so I adapted transmeta to my own: http://www.io41.com/django/metalingualtesthttps://www.blogger.com/profile/05010636934686879250noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-82915870345484443912009-11-09T11:26:28.155+01:002009-11-09T11:26:28.155+01:00I know I'm commenting on old stuff and topic w...I know I'm commenting on old stuff and topic was deeply discussed elsewhere,<br />but anyway I'd like to share my own eperience with wider audience.<br /><br />Your approach (django transmeta) works very well for simple applications.<br />It place very nice with django forms forms (ModelForm works out of the box).<br /><br />But once you'll try to develop more complex publication system, where you<br />need to bind Author and Translation to get 'Translation author' relationship,<br />then tranmeta stops to scale. There must be always one reference between<br />tables.<br /><br />The django-multilingual and django-multilingual-model are handling translated<br />in fields in seperate table, therefore you can introduce a relation ship<br />between Author/User and translated fields table. This scales well. On the<br />other hand these model will have a problem with ModelForm. If you for whatever<br />reason don't want to use Admin interface, then you have to create your<br />forms manualy for translated models. ModelForm will not display translated<br />fields.<br /><br />So my approach is to use django-transmeta for simple models like picture + its<br />comment.<br /><br />For Article class, which instances are being published through process<br />(Draft->Submitted->Accepted->Published) I'm going to use<br />django-multilingual-model. I was considering django-multilingual, but the<br />ModelForm problem there seems like a big obstacle for me. I was trying to come<br />up with solution, but I was able to develop kind of POC. Once I'll gain some<br />more experience with django-multilingual, I'll try to fix ModelForm there<br />ultimately.<br /><br />After one week of playing with all that translation stuff I can see there is<br />no ultimate one size fits all solution.<br /><br />just my 2c's.Anonymoushttps://www.blogger.com/profile/07758272828449593111noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-35979771672338958312009-04-02T20:54:00.000+02:002009-04-02T20:54:00.000+02:00Not as simple as I thought.Is it possible to post ...Not as simple as I thought.<BR/>Is it possible to post a more complete example at the Google Code page?<BR/>For example:<BR/><BR/>def view(request, language, slug):<BR/> activate(language)<BR/> page = Page.objects.get(slug=slug)<BR/> return render_to_response("view.html", {'page' : page})<BR/><BR/>Will not work. If I send 'es' as the language, it will still give me the default English version.<BR/>I've tried sending the language variable to the template and it's working, but it's not replacing 'slug' with 'slug_es' as it should.<BR/>Maybe you could make it clearer for us beginner/intermediate folks :PAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-13771171104335224742009-04-02T15:28:00.000+02:002009-04-02T15:28:00.000+02:00Groovy :-)I'm spending the afternoon trying it out...Groovy :-)<BR/>I'm spending the afternoon trying it out ;-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-73716326272252354062009-04-02T14:05:00.000+02:002009-04-02T14:05:00.000+02:00yeah, it will. That's the goal. :)yeah, it will. That's the goal. :)Marchttps://www.blogger.com/profile/01286849404527531329noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-81473084528328734302009-04-02T12:43:00.000+02:002009-04-02T12:43:00.000+02:00This is a very cool idea, but how do you get the f...This is a very cool idea, but how do you get the fields into the templates? Considering the templates will have translation strings as well, how would you then feed them with the correct language fields?<BR/>Will it automatically put the right language by simply putting {{ mymodel.name }}?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-63337714679113964792009-03-09T00:44:00.000+01:002009-03-09T00:44:00.000+01:00Hi. I'm the author of the django-modeltranslation ...Hi. I'm the author of the django-modeltranslation app. In fact one of the requirements for django-modeltranslation was not to change the original model class (mostly from a third-party app) - that's why i choose an registration approach.<BR/><BR/>It has no management command for updating the schema like django-transmeta - that has to be done by the user.<BR/><BR/>As far as I can see the only difference between my approach and this one here is where the translation options are placed - i.e. model/metaclass vs. registration. <BR/><BR/>Interesting coincdence. I got my inspiration from Marty Alchin's "Pro Django" which is a great book, before reading this book I would not even have dared to implement something like this.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-89097068905082226552009-03-06T00:52:00.000+01:002009-03-06T00:52:00.000+01:00Looks nice. I think I'll opt for django-modeltran...Looks nice. I think I'll opt for django-modeltranslation though; the "complex" admin-style registration has a huge advantage that I can translate models in 3rd-party apps without modifying the model at all.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-43170255559055344042009-03-05T10:18:00.000+01:002009-03-05T10:18:00.000+01:00David, django-multilingual-model is "simpler" in t...David, django-multilingual-model is "simpler" in the code because it's just 30 lines of code. That it's great, but the problem is after few minutes looking at the example I can't understand what I have to do to translate my fields... Split my model in two, create a foreign key from one to the other, and in the other specify the first one in the meta. Then specify the fields for translating in the model where they are not defined...<BR/><BR/>Sorry but that's not why I understand by simple, adding a metaclass and specifying fields to translate looks much more clear to me.<BR/><BR/>Thanks for you comment, and for pointing out this project anyway.Marchttps://www.blogger.com/profile/01286849404527531329noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-43267397054797696162009-03-05T00:57:00.000+01:002009-03-05T00:57:00.000+01:00It looks interesting! Did you try http://code.goog...It looks interesting! Did you try http://code.google.com/p/django-multilingual-model/ ? It's really really simple too :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-52234431909643509852009-03-04T19:22:00.000+01:002009-03-04T19:22:00.000+01:00Great, multilingual's classes system don't allow y...Great, multilingual's classes system don't allow you to do anything with translated fields in model's save method/post_save signal, so your application is a step forward :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-18715048324558807292009-03-04T18:00:00.000+01:002009-03-04T18:00:00.000+01:00Great project, I think the simplest solution is pr...Great project, I think the simplest solution is probably the best (some kind of programmer's Occam's razor).<BR/><BR/>To anonymous:<BR/>Adding a new language or translatable field does indeed need change in the database schema, but django-transmeta includes a custom command to do that automatically. Take a look at the fine Google Code page.Fidelhttps://www.blogger.com/profile/04446782431744434521noreply@blogger.comtag:blogger.com,1999:blog-4345066302652424538.post-22356418526425330652009-03-04T17:26:00.000+01:002009-03-04T17:26:00.000+01:00So adding a new language means modifying the struc...So adding a new language means modifying the structure of your database, adding a new column to the table you've called app_model? This doesn't scale very well (or I've completely misunderstood your description).Anonymousnoreply@blogger.com