damned-lies r1269 - in trunk: . templates/vertimus vertimus
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1269 - in trunk: . templates/vertimus vertimus
- Date: Tue, 30 Dec 2008 11:48:43 +0000 (UTC)
Author: stephaner
Date: Tue Dec 30 11:48:43 2008
New Revision: 1269
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1269&view=rev
Log:
2008-12-30 StÃphane Raimbault <stephane raimbault gmail com>
* templates/vertimus/vertimus_detail.html: <em> on No comment.
* vertimus/forms.py: Added new valid extensions.
Modified:
trunk/ChangeLog
trunk/templates/vertimus/vertimus_detail.html
trunk/vertimus/forms.py
Modified: trunk/templates/vertimus/vertimus_detail.html
==============================================================================
--- trunk/templates/vertimus/vertimus_detail.html (original)
+++ trunk/templates/vertimus/vertimus_detail.html Tue Dec 30 11:48:43 2008
@@ -83,7 +83,12 @@
<div class="uploaded_file">
<a href="{{ action.file.url }}"><img src="{{ MEDIA_URL }}img/download.png"/> {{ action.get_filename }}</a></div>
{% endif %}
- <p>{{ action.comment|linebreaksbr|default:_("No comment") }}</p><br/>
+ <p>{% if action.comment %}
+ {{ action.comment|linebreaksbr }}
+ {% else %}
+ <em>{% trans "No comment" %}</em>
+ {% endif %}
+ </p><br/>
</div>
</div>
{% endfor %}
Modified: trunk/vertimus/forms.py
==============================================================================
--- trunk/vertimus/forms.py (original)
+++ trunk/vertimus/forms.py Tue Dec 30 11:48:43 2008
@@ -46,7 +46,7 @@
if data:
ext = os.path.splitext(data.name)[1]
# If this is a .po file, check validity (msgfmt)
- if ext == ".po":
+ if ext in ('.po', '.gz', '.bz2', '.png'):
res = po_file_stats(data)
if res['errors']:
raise forms.ValidationError(".po file does not pass 'msgfmt -vc'. Please correct the file and try again.")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]