﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18183	django-admin makemessages generates new locales (LC_MESSAGES/django.po) with PO template markers	Guttorm Flatabø	nobody	"Newly generated locales files made by `django-admin makemessages` have ""#, fuzzy"" before the fist empty translation entry before the header, thus composing:
{{{
#, fuzzy
msgid """"
msgstr """"
}}}

(If you remove the fuzzy marker manually it will not be re-added on later updates of the translation)

See example [https://raw.github.com/lonvia/waymarked-trails-site/4d535d525405b23c9e7ffb112e7a795194d90eb3/django/locale/xx/LC_MESSAGES/django.po here]. According to [http://translatewiki.net/wiki/User:Nike Translatewiki founder and administrator Nike] this seems to be the only way of marking a po template file (apart from the ""pot"" file name ending). It can thus confuse applications and services such as translatewiki when a translation message file (django.po) looks like a template.

I have been unable to find an ""official"" mention of what defines a PO Template file, probably because [http://www.gnu.org/software/gettext/manual/gettext.html#Template there is none]. However, [http://www.heiner-eichmann.de/autotools/using_gettext.html this gettext guide] seems to indicate the same kind of using ""#, fuzzy"" as a template marker.

The locale files made by django-admin makemessages are not supposed to be po template files, and I thus suggest that you try to produce them without the fuzzy marker on the line before the first empty entry (before the header).

I suppose the marker is added by the gettext tools used by django-admin makemessages and that the easiest solution is to have the string be removed as part of the script."	Bug	closed	Core (Management commands)	1.4	Normal	invalid	gettext,translation,.po		Unreviewed	0	0	0	0	0	0
