[mezzanine-users] Re: modeltranslations - round 2

2014-10-16 Thread Robin Wangsuyuan
Do we have plan to release new version with the model translation ? I am wondering whether I should wait for the new version or change my project according to the codes we have now. On Wednesday, July 23, 2014 10:33:30 PM UTC-4, Eduardo Rivas wrote: Yeah, I've got the pull request ready,

[mezzanine-users] Re: modeltranslations - round 2

2014-07-23 Thread Eduardo Rivas
Hi Paul. It seems like you sorted out the issue you were linking too. Are there any others? I finally found some time to come back to this, and noticed the front-end language selector is gone. The problem is in the condition for rendering the template

[mezzanine-users] Re: modeltranslations - round 2

2014-07-23 Thread Eduardo Rivas
Yeah, I've got the pull request ready, but the dropdown on which you select the repo you want to compare your changes with won't list Mathias' fork of Mezzanine. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group

[mezzanine-users] Re: modeltranslations - round 2

2014-07-03 Thread Paul Whipp
Hi there, I am giving Mathias's fork a go to see if we can use it to deploy a multilingual site solution. I forked it here https://github.com/cccs-web/mezzanine and set up a branch of our mezzanine site to use it and define the modeltranslation stuff. I am starting to raise issues against our

[mezzanine-users] Re: modeltranslations - round 2

2014-06-10 Thread Mathias Ettinger
Just corrected a few things for the front-end language selector and pushed an updated version of cartridge as well. I tried the TabbedExternalJqueryTranslationAdmin class instead of TranslationAdmin and couldn’t get the meta tag area to show. Does it happen for you too? Or is there something

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-06-09 Thread Mathias Ettinger
Ok, changes are done. I tried something for inlines admin classes (mezzanine.core.admin), but I’m not sure wether it sounds right or not, let me know. Le lundi 9 juin 2014 02:37:44 UTC+2, Stephen McDonald a écrit : On Sun, Jun 8, 2014 at 6:15 PM, Mathias Ettinger mathias@gmail.com

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-06-08 Thread Mathias Ettinger
You’re pretty right, some design choices sound really bad when put like this. I’ll move the admin classes, the code_list and the frontend language selector somewhere else. As for the TRANSLATED setting, I don’t recall exactly why I tied it with USE_I18N. If I’m correct, it is because

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-06-08 Thread Stephen McDonald
On Sun, Jun 8, 2014 at 6:15 PM, Mathias Ettinger mathias.ettin...@gmail.com wrote: You’re pretty right, some design choices sound really bad when put like this. I’ll move the admin classes, the code_list and the frontend language selector somewhere else. Not bad per se, it's common for

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-06-07 Thread Stephen McDonald
Ok I spent a bit of time going over the pull request and testing it, it's really good. I think we can tighten things up a little, for example we have `class SomeAdmin(TRANSLATED and TranslationAdmin or admin.ModelAdmin)` all through each of the admin modules. I think we could have a single

[mezzanine-users] Re: modeltranslations - round 2

2014-06-06 Thread Eduardo Rivas
Hey everybody. I've been trying out Mathias master branch and everything is working smoothly. As I said, I'm also exploring ways to enable toggling translation fields in the Admin. Turns out Model Translation (MT) provides two admin classes (docs

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-06-06 Thread Stephen McDonald
I tried Mathias branch so I could give feedback but couldn't create a project: http://hastebin.com/acasezifok.vhdl At a glance I tried re-ordering INSTALLED_APPS but that didn't resolve it. On Sat, Jun 7, 2014 at 10:26 AM, Eduardo Rivas jerivasmel...@gmail.com wrote: Hey everybody. I've

[mezzanine-users] Re: modeltranslations - round 2

2014-06-06 Thread Eduardo Rivas
Odd, I just created a project without issue. This is my venv: Django==1.6.5 Mezzanine==3.1.3 #From Mathias' branch Pillow==2.4.0 South==0.8.4 argparse==1.2.1 bleach==1.4 django-debug-toolbar==1.2.1 django-modeltranslation==0.7.3 filebrowser-safe==0.3.3 future==0.9.0 grappelli-safe==0.3.10

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-06-06 Thread Stephen McDonald
Real odd, works fine for me now and no matter what I try I can't reproduce the error I had. On Sat, Jun 7, 2014 at 2:09 PM, Eduardo Rivas jerivasmel...@gmail.com wrote: Odd, I just created a project without issue. This is my venv: Django==1.6.5 Mezzanine==3.1.3 #From Mathias' branch

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-26 Thread Stephen McDonald
Fair enough - just wanted to make sure something simpler hadn't been overlooked. On Tue, May 27, 2014 at 12:30 AM, Mathias Ettinger mathias.ettin...@gmail.com wrote: Well, I started from something similar in the first place. I think it is good enough for an external app, but not so good if

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-26 Thread Stephen McDonald
BTW to answer your earlier question - any slug creation logic definitely belongs on the model (Slugged I believe) rather than an admin class. On Tue, May 27, 2014 at 12:30 AM, Mathias Ettinger mathias.ettin...@gmail.com wrote: Well, I started from something similar in the first place. I think

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-23 Thread Mathias Ettinger
I had some thoughts about what tests to add and how to write them. But everything lead to the same question: how is it possible to configure several languages for the tests without hardcoding them into settings.py? -- You received this message because you are subscribed to the Google Groups

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-23 Thread Eduardo Rivas
I should have read the whole Stack Overflow thread! It looks like Django has built in ways of doing it. https://docs.djangoproject.com/en/1.6/topics/testing/tools/#overriding-settings -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-23 Thread Eduardo Rivas
I think you can access the settings module like every other place in the code base. This example recommends the setup and teardown methods for modifying settings in unit tests: http://stackoverflow.com/a/913596. Hope that helps :-) -- You received this message because you are subscribed to

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-21 Thread Eduardo Rivas
Great! Hopefully your commits will be merged soon and I'll work over that. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-20 Thread Mathias Ettinger
I’m not sure what you’re implying about toggling the translation fields. If it is about shrinking every translation field into a single one with tabs for each language, go ahead. I know that django-modeltranslation is supposed to allow that but I never had it working. If it is about adding

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-15 Thread Mathias Ettinger
Well, since it is now possible to mark settings for translation I thought it would be a good idea to use it on SHOP_CURRENCY_LOCALE too. Obviously non-editable settings don’t have a ``Setting`` instance and are thus non-translatable. So I made SHOP_CURRENCY_LOCALE editable too. Since

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-15 Thread Mathias Ettinger
Before I push a fix for #1 in my master, I have a question. But first, the patch: https://github.com/Kniyl/mezzanine/commit/4fdd125046a402054e6c9e12418f7997df5b146a As you can see, the fix is simply to use ugettext instead of ugettext_lazy for the default value. And (fortunately?) the

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-14 Thread Mathias Ettinger
I learned something from #5. I’ll try to play with conf.models and see what happens. For #1, I was simply suggesting to change the text of the button. At least for my setup, when the text is “Submit” for the english language or “Wyślij” for polish, it display the french (default) button_text

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-14 Thread Mathias Ettinger
commits for #2 and #4 have been pushed Le mercredi 14 mai 2014 13:28:06 UTC+2, Mathias Ettinger a écrit : I learned something from #5. I’ll try to play with conf.models and see what happens. For #1, I was simply suggesting to change the text of the button. At least for my setup, when the

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-14 Thread Eduardo Rivas
Aaaahh, I get what you mean for #1, and yes, changing the value in non-default languages to something other than the direct translation of Submit fixes it. #2 and #4 look like they've been fixed, thanks a lot. #5 is looking pretty great. However, I don't thinks SHOP_CURRENCY_LOCALE should be

[mezzanine-users] Re: modeltranslations - round 2

2014-05-13 Thread Mathias Ettinger
1. Well… In fact they are. But for some reason if the text is the active translation for submit, then the default language field is displayed (i.e: if my default language is french and I have Envoyer [fr]/Submit [en]/Wyślij [pl] then Envoyer will be displayed for each

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-05-13 Thread Eduardo Rivas
Sorry, I didn't understand your explanation on point 1. Could you elaborate a little bit more? The issue I was describing is that the Submit button is not showing the active language text in the form, but rather the default language value. About number 2, I actually had this working a while

[mezzanine-users] Re: modeltranslations - round 2

2014-05-12 Thread Eduardo Rivas
Ok, I finally got some time to try this out. I've never used Model Transaltion, so maybe I'm making some noob mistake. This is what I've done: mkvirtualenv modeltranslation git clone https://github.com/Kniyl/mezzanine.git mt-mezzanine cd mt-mezzanine pip install -e . pip install south

[mezzanine-users] Re: modeltranslations - round 2

2014-05-12 Thread Eduardo Rivas
Just before running createdb, one has to cd mt_test, of course. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com.

[mezzanine-users] Re: modeltranslations - round 2

2014-05-12 Thread Mathias Ettinger
I couldn't reproduce until I installed django-debug-toolbar. I’ll try to dig into it latter but can you confirm that uninstalling (or removing it from the settings) django-debug-toolbar solves the problem ? Le lundi 12 mai 2014 18:54:14 UTC+2, Eduardo Rivas a écrit : Ok, I finally got some

[mezzanine-users] Re: modeltranslations - round 2

2014-05-12 Thread Eduardo Rivas
Yep, that's it. Removing debug toolbar fixes it. I'll continue testing and reporting back anything I find. Thanks a lot for this! -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from

[mezzanine-users] Re: modeltranslations - round 2

2014-04-29 Thread Eduardo Rivas
I've really been looking forward to this one. Hopefully I will have time to try it out with the development version of some sites that currently use alternative translation approaches. Are we going to translate urls at all? Django gives two possible choices: mark the url patterns for

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-04-29 Thread Stephen McDonald
Probably a good question for Mathias on the github thread. On Wed, Apr 30, 2014 at 2:34 AM, Eduardo Rivas jerivasmel...@gmail.comwrote: I've really been looking forward to this one. Hopefully I will have time to try it out with the development version of some sites that currently use

Re: [mezzanine-users] Re: modeltranslations - round 2

2014-04-29 Thread Stephen McDonald
+1 on postponing, only for the sake of keeping the iterations as small as possible. On Wed, Apr 30, 2014 at 8:18 AM, Mathias Ettinger mathias.ettin...@gmail.com wrote: Le mardi 29 avril 2014 18:34:58 UTC+2, Eduardo Rivas a écrit : Django gives two possible choices: mark the url patterns for