More/better translation.

- Try to preserve some translations (somehow).
- Mark "Tagged with" again for translation.
- Do not translate the empty string
This commit is contained in:
Elrond 2012-03-17 13:18:43 +01:00
parent 7e5a5acd5a
commit 416b439fc8
3 changed files with 6 additions and 3 deletions

View File

@ -81,8 +81,11 @@
</div> </div>
{% block mediagoblin_footer %} {% block mediagoblin_footer %}
<footer> <footer>
{% trans -%}
Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU</a> project.
{%- endtrans %}
{% trans source_link=app_config['source_link'] -%} {% trans source_link=app_config['source_link'] -%}
Powered by <a href="http://mediagoblin.org">MediaGoblin</a>, a <a href="http://gnu.org/">GNU</a> project. Released under the <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPL</a>. <a href="{{ source_link }}">Source code</a> available. Released under the <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">AGPL</a>. <a href="{{ source_link }}">Source code</a> available.
{%- endtrans %} {%- endtrans %}
</footer> </footer>
{% endblock mediagoblin_footer %} {% endblock mediagoblin_footer %}

View File

@ -17,7 +17,7 @@
#} #}
{% block tags_content -%} {% block tags_content -%}
<h3 class="sidedata">Tagged with</h3> <h3 class="sidedata">{% trans %}Tagged with{% endtrans %}</h3>
<p> <p>
{% for tag in media.tags %} {% for tag in media.tags %}
{% if loop.last %} {% if loop.last %}

View File

@ -21,7 +21,7 @@ from mediagoblin.tools.translate import fake_ugettext_passthrough as _
class MediaCommentForm(wtforms.Form): class MediaCommentForm(wtforms.Form):
comment_content = wtforms.TextAreaField( comment_content = wtforms.TextAreaField(
_(''), '',
[wtforms.validators.Required()]) [wtforms.validators.Required()])