Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files -+- Reporter: ciupicri |Owner: nobody Type: Bug | Status: closed Component: Core (Management | Version: 1.2 commands) | Severity: Normal | Resolution: needsinfo Keywords: | Triage Stage: Accepted Has patch: 1| Needs documentation: 0 Needs tests: 0| Patch needs improvement: 1 Easy pickings: 0|UI/UX: 0 -+- Changes (by tobias): * status: new => closed * resolution: => needsinfo Comment: The original case has been fixed outside Django and this hasn't been touched in 3 years. If this is still an issue for you, please re-open with current steps to reproduce. Another consideration is that many tools have probably, like Poedit, adapted to Django's existing source code path convention (along with other projects that use the same convention). Changing it now would be a backwards-incompatible change that may cause more confusion than its worth. -- Ticket URL: <https://code.djangoproject.com/ticket/13936#comment:21> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.878107a46a20cb1015f4bcd445cd156f%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files -+- Reporter: ciupicri |Owner: nobody Type: Bug | Status: new Component: Core (Management | Version: 1.2 commands) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 1| Patch needs improvement: 1 Needs tests: 0|UI/UX: 0 Easy pickings: 0| -+- Comment (by vslavik@…): FIY, [http://www.poedit.net Poedit] will handle this case correctly starting with 1.5.6 release. Sorry it took so long to fix on my side. -- Ticket URL: <https://code.djangoproject.com/ticket/13936#comment:20> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.41b46d65b4c33a11f58261db4183b0f6%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files -+- Reporter: ciupicri |Owner: nobody Type: Bug | Status: new Component: Core (Management | Version: 1.2 commands) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 1| Patch needs improvement: 1 Needs tests: 0|UI/UX: 0 Easy pickings: 0| -+- Changes (by claudep): * needs_better_patch: 0 => 1 * stage: Design decision needed => Accepted Comment: If we can make source paths relative to the po directory, I think we should do it. -- Ticket URL: <https://code.djangoproject.com/ticket/13936#comment:19> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files -+- Reporter: ciupicri |Owner: nobody Type: Bug| Status: reopened Milestone: |Component: Core (Management Version: 1.2| commands) Resolution: | Severity: Normal Triage Stage: Design | Keywords: decision needed|Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | -+- Changes (by graham_king): * type: => Bug * severity: => Normal -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:15> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files -+-- Reporter: ciupicri| Owner: nobody Status: reopened| Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Design decision needed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -+-- Comment (by ciupicri): The change might be major, but the issue is pretty straightforward: the PO files generated by Django don't work 100% with 3 translation tools: Emacs, Poedit and GTranslator. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:14> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files -+-- Reporter: ciupicri| Owner: nobody Status: reopened| Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Design decision needed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -+-- Changes (by russellm): * stage: Unreviewed => Design decision needed Comment: I'm with Ramiro on this; Django is doing the same thing with it's PO files as many other tools. This is the first time that I recall someone reporting problems because of the annotations in Django's PO files. My inclination is to mark this wontfix, but I'm not sufficiently familiar with translation issues to be certain, so I'm move it to DDN for the moment. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:13> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: reopened | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 1 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Comment (by ciupicri): I tried to translate [http://git.savannah.gnu.org/cgit/gettext.git/snapshot/gettext-0.18.1.1.tar.gz gettext] and [http://launchpadlibrarian.net/15840032/mailman-2.1.11.tgz Mailman] using Emacs and GTranslator, but it didn't work just like in the case of Django. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:12> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: reopened | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 1 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Changes (by ciupicri): * needs_better_patch: 1 => 0 * has_patch: 0 => 1 -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:11> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: reopened | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 1| --+- Comment (by ciupicri): I've attached a new patch that works on older versions of Python, too. It's not pretty, but it works and it fixes a bug of the old patch. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:10> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: reopened | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 1| --+- Changes (by ramiro): * needs_better_patch: 0 => 1 Comment: Replying to [comment:8 vsla...@fastmail.fm]: > Replying to [comment:3 ramiro]: > > Contrarily to what I understand from the reply Poedit author gave you, the `xgettext` utility doesn't use paths relative to the location of the `.po` file being created/updated in the `#: admin.py:12` comments. It uses paths relative to the path where it was invoked from. > > (Poedit author here.) That's how I meant it, sorry for being unclear. It is a de-facto standard (see Automake and/or libintl makefiles) to invoke `xgettext` from the PO files directory. As indicated in a comment above, Poedit isn't the only tool that assumes this. When you think about it, it's the only way to express source code references that would be self- contained and would work without some additional externally provided information. > > > `makemessages` isn't working in a way different from xgettext here > > Is it possible to invoke it from the PO files directory? No, `makemssages` is a tool that is run in a project or application scope to collect translatable literal from several source file (and btw what I meant is that when it is runs if searchs recursively for the files candidate to extract translatable literals and the runs xgettext on them). I won't oppose to a change being introduced for this ticket but I'm still rather unconvinced it is the correct thing to do. A few more examples of other projects: * The `.po` files of the GNU gettext toolset itself: http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-tools/po/es.po * Mailman: http://bazaar.launchpad.net/~mailman- coders/mailman/2.1/annotate/head:/messages/es/LC_MESSAGES/mailman.po * Zope: http://svn.zope.org/z3c.locales/trunk/src/z3c/locales/de/LC_MESSAGES/z3c.po?rev=107250=auto all contain source code file reference comments relative to the root of the project tree (the latter two are traditional Python-based, and, like Django, use their own custom Python i18n toolchains. I'm also marking it ''needs better patch'' because the `os.path.relpath()` available obly on Python >= 2.6 issue I pointed to the OP on #django-dev. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:9> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: reopened | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Changes (by vsla...@fastmail.fm): * cc: vsla...@fastmail.fm (added) Comment: Replying to [comment:3 ramiro]: > Contrarily to what I understand from the reply Poedit author gave you, the `xgettext` utility doesn't use paths relative to the location of the `.po` file being created/updated in the `#: admin.py:12` comments. It uses paths relative to the path where it was invoked from. (Poedit author here.) That's how I meant it, sorry for being unclear. It is a de-facto standard (see Automake and/or libintl makefiles) to invoke `xgettext` from the PO files directory. As indicated in a comment above, Poedit isn't the only tool that assumes this. When you think about it, it's the only way to express source code references that would be self- contained and would work without some additional externally provided information. > `makemessages` isn't working in a way different from xgettext here Is it possible to invoke it from the PO files directory? Even if it is, it would IMHO make a lot of sense to use the attached patch, because PO files location is well-known in Django and unlike with direct use of `xgettext`, it's not (I think) common to change into a specific directory when using `django-admin`. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:8> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: reopened | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Comment (by ciupicri): It seems that [http://docs.python.org/library/os.path.html#os.path.relpath os.path.rel is new in Python 2.6], so the last patch will need a backport of this function. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:7> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: reopened | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Changes (by ciupicri): * status: closed => reopened * resolution: invalid => Comment: Replying to [comment:5 ramiro]: > Replying to [comment:4 ciupicri]: > > Break compatibility with what? As far as I know these are just comments. > > Not free form comments, as indicated bi the leading `': '`. See http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files > > I can't find any formal specification of the for of `.po[t]` files but the document I linked above (official GNU getext manual) shows an example containing a `'#: lib/error.c:116'` program source code reference comment. I was only trying to say that these paths are not mandatory and even if they're "broken", the catalogs can still be compiled and work fine. They're just hints. > > In this case what other translation tools would you recommend? > > See http://www.gnu.org/software/gettext/manual/gettext.html#Editing I tried ''Emacs'' and it failed to show the program sources. When I used the paths suggested here, it worked fine. I also tried ''GTranslator'' with the same result. I would have tried the new KBabel - ''Lokalize'' - too, but [http://bugs.kde.org/show_bug.cgi?id=244686 it can not show the program source right now]. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:6> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: closed | Milestone: Component: django-admin.py | Version: 1.2 Resolution: invalid | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Comment (by ramiro): Replying to [comment:4 ciupicri]: > Break compatibility with what? As far as I know these are just comments. Not free form comments, as indicated bi the leading `': '`. See http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files I can't find any formal specification of the for of `.po[t]` files but the document I linked above (official GNU getext manual) shows an example containing a `'#: lib/error.c:116'` program source code reference comment. > In this case what other translation tools would you recommend? See http://www.gnu.org/software/gettext/manual/gettext.html#Editing -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:5> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: closed | Milestone: Component: django-admin.py | Version: 1.2 Resolution: invalid | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Comment (by ciupicri): Replying to [comment:3 ramiro]: > Replying to [comment:2 ciupicri]: > > Replying to [comment:1 ramiro]: > > The root of the application. [http://bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_ext/brand/ Here] for example (as instructed in the [http://www.satchmoproject.com/docs/dev/translation.html documentation for Satchmo]). > > Contrarily to what I understand from the reply Poedit author gave you, the `xgettext` utility doesn't use paths relative to the location of the `.po` file being created/updated in the `#: admin.py:12` comments. It uses paths relative to the path where it was invoked from. I think that xgettext could be invoked from the directory of the PO file, but I'm not the Poedit author nor a (x)gettext expert. I've just started with this translation thing. > `makemessages` isn't working in a way different from xgettext here (in fact under the hood it executes `xgettext` recursively starting from the path you executed by following the the Satchmo docs you linked and the [http://docs.djangoproject.com/en/1.2/topics/i18n/localization/#message- files Django documentation], the resulting comments in the `.po` file are the same you'd get if you ran `xgettext` by hand and then merged all the resulting catalogs) and, although what you want to achieve as a translator usability detail is an acceptable wish, IMHO it isn't worth breaking that compatibility to accommodate one translator tool or workflow particularity. Break compatibility with what? As far as I know these are just comments. > So I'd be inclined to say this isn't a Django bug and I'm closing it. Please reopen it if you find any error in my reasoning. In this case what other translation tools would you recommend? Also, what about transforming it into a request for enhancement for 1.3 if the compatibility thing is such a deal breaker? > Workaround: If you want to be able to open `admin.py` (or, e.g. `templatetags/satchmo_brands.py`) from `poedit` you should execute it from the same directory you ran `makemessages`: > > > {{{ > $ pwd > /home/user/src/satchmo/apps/satchmo_ext/brand > > $ poedit locale/ro/LC_MESSAGES/django.po > }}} > > > (disclaimer: I haven't tried this myself, I'm assuming Poedit open these files using paths relative to its current working dir and not relative to the `.po` file path). I've already tested this workaround before reporting the bug and it doesn't work. The paths are relative to the `.po` file (as expected at least by me). -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:4> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: closed | Milestone: Component: django-admin.py | Version: 1.2 Resolution: invalid | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Changes (by ramiro): * status: new => closed * resolution: => invalid Comment: Replying to [comment:2 ciupicri]: > Replying to [comment:1 ramiro]: > The root of the application. [http://bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_ext/brand/ Here] for example (as instructed in the [http://www.satchmoproject.com/docs/dev/translation.html documentation for Satchmo]). Contrarily to what I understand from the reply Poedit author gave you, the `xgettext` utility doesn't use paths relative to the location of the `.po` file being created/updated in the `#: admin.py:12` comments. It uses paths relative to the path where it was invoked from. `makemessages` isn't working in a way different from xgettext here (in fact under the hood it executes `xgettext` recursively starting from the path you executed by following the the Satchmo docs you linked and the [http://docs.djangoproject.com/en/1.2/topics/i18n/localization/#message- files Django documentation], the resulting comments in the `.po` file are the same you'd get if you ran `xgettext` by hand and then merged all the resulting catalogs) and, although what you want to achieve as a translator usability detail is an acceptable wish, IMHO it isn't worth breaking that compatibility to accommodate one translator tool or workflow particularity. So I'd be inclined to say this isn't a Django bug and I'm closing it. Please reopen it if you find any error in my reasoning. Workaround: If you want to be able to open `admin.py` (or, e.g. `templatetags/satchmo_brands.py`) from `poedit` you should execute it from the same directory you ran `makemessages`: {{{ $ pwd /home/user/src/satchmo/apps/satchmo_ext/brand $ poedit locale/ro/LC_MESSAGES/django.po }}} (disclaimer: I haven't tried this myself, I'm assuming Poedit open these files using paths relative to its current working dir and not relative to the `.po` file path). -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: new | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Comment (by ciupicri): Replying to [comment:1 ramiro]: > Replying to [ticket:13936 ciupicri]: > > '''Steps to reproduce:''' > > > > 1. Run `django-admin makemessages -l ro -e html,txt,rml` above the `locale` directory to generate the PO files. > > What do you mean with ''above the `locale` directory''?. Please provide more detail about that specific part of your report. The root of the application. [http://bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_ext/brand/ Here] for example (as instructed in the [http://www.satchmoproject.com/docs/dev/translation.html documentation for Satchmo]). -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:2> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
Re: [Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files --+- Reporter: ciupicri | Owner: nobody Status: new | Milestone: Component: django-admin.py | Version: 1.2 Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0| Needs_tests: 0 Needs_better_patch: 0| --+- Changes (by ramiro): * needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: Replying to [ticket:13936 ciupicri]: > '''Steps to reproduce:''' > > 1. Run `django-admin makemessages -l ro -e html,txt,rml` above the `locale` directory to generate the PO files. What do you mean with ''above the `locale` directory''?. Please provide more detail about that specific part of your report. -- Ticket URL: <http://code.djangoproject.com/ticket/13936#comment:1> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
[Django] #13936: django-admin makemessages generates PO files with an incorrect path to source code files
#13936: django-admin makemessages generates PO files with an incorrect path to source code files -+-- Reporter: ciupicri | Owner: nobody Status: new | Milestone: Component: django-admin.py | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 0| -+-- '''Steps to reproduce:''' 1. Run `django-admin makemessages -l ro -e html,txt,rml` above the `locale` directory to generate the PO files. 2. Open a PO file with Poedit, e.g. `locale/ro/LC_MESSAGES/django.po`. 3. Try to see where the message is being referenced/used. '''Actual result:''' Poedit will not be able to find the source code. '''Expected result:''' Poedit should be able to find the source code. '''Additional info:''' The paths from the catalog look like this: {{{ #: admin.py:12 admin.py:23 }}} so Poedit tries to open `locale/ro/LC_MESSAGES/admin.py` which of course does not exist. I propose using a relative path, e.g {{{../../../admin.py}}}. I'm using Django-1.2.1-5.fc13.noarch and I asked about this on both [http://stackoverflow.com/questions/3238822/how-to-translate-a-django- application-using-poedit/ StackOverflow] and the [http://permalink.gmane.org/gmane.editors.poedit.user/975 Poedit users mailing list]. -- Ticket URL: <http://code.djangoproject.com/ticket/13936> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.