Opened 10 years ago

Closed 10 years ago

#21569 closed Bug (needsinfo)

Making translation string not works in Windows XP?

Reported by: Cezary.Wagner Owned by: nobody
Component: Translations Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Making translation string not works in Windows XP?

Script is called with such parameters:

<target name="py" depends="make-translate-dir">

<exec executable="${python}" dir="src" failonerror="false" >

<arg value="${django-admin}"/>
<arg value="makemessages"/>
<arg value="-e"/>
<arg value="py"/>
<arg value="-l"/>
<arg value="${language}"/>
<arg value="--settings=settings"/>
<arg value="-v"/>
<arg value="${verbose-level}"/>
<arg value="--pythonpath=."/>

</exec>

</target>

Result is (only on Widnows XP/Cygwin - same works on Windows 7/Cygwin):

[exec] CommandError: errors happened while running msgmerge
[exec] C:\Documents and Settings\Cezary Wagner\workspace\wcinamy\src\conf\locale\en_US\LC_MESSAGES\django.pot:21:3: syntax error
[exec] C:\Documents and Settings\Cezary Wagner\workspace\wcinamy\src\conf\locale\en_US\LC_MESSAGES\django.pot:21: nieznane słowo kluczowe "frontend"
[exec] C:\Documents and Settings\Cezary Wagner\workspace\wcinamy\src\conf\locale\en_US\LC_MESSAGES\django.pot:21: nieznane słowo kluczowe "web"
[exec] C:\Documents and Settings\Cezary Wagner\workspace\wcinamy\src\conf\locale\en_US\LC_MESSAGES\django.pot:21: nieznane słowo kluczowe "i18n"
[exec] C:\Documents and Settings\Cezary Wagner\workspace\wcinamy\src\conf\locale\en_US\LC_MESSAGES\django.pot:21: nieznane słowo kluczowe "language"
[exec] C:\Documents and Settings\Cezary Wagner\workspace\wcinamy\src\conf\locale\en_US\LC_MESSAGES\django.pot:21: nieznane słowo kluczowe "html"
[exec] C:\Documents and Settings\Cezary Wagner\workspace\wcinamy\src\conf\locale\en_US\LC_MESSAGES\django.pot:21: nieznane słowo kluczowe "py"
[exec] msgmerge: znaleziono 7 błędów krytycznych

Change History (2)

comment:1 by Cezary.Wagner, 10 years ago

Reason of this bug it the some lines in *.pot file is destroyed by incorrect overwrites I think since I see characters displacement.

comment:2 by Ramiro Morales, 10 years ago

Resolution: needsinfo
Status: newclosed

Can you:

  • Reduce this to the actual commandline used to invoke makemessages?
  • Provide: one .py containing the translatable literals you are trying to extract plus one resulting .po file. If reduced to a minimal test case much better.
  • if possible the broken .pot file you get
  • Test this with django 1.6 if at all possible for you
  • Tell us if you are using native Win32 gettext utils or ones using the cygwin runtime?

Reopen the ticket with that information.

Thanks

Note: See TracTickets for help on using tickets.
Back to Top