From: <al...@us...> - 2009-06-27 11:58:53
|
Revision: 11766 http://translate.svn.sourceforge.net/translate/?rev=11766&view=rev Author: alaaosh Date: 2009-06-27 11:58:51 +0000 (Sat, 27 Jun 2009) Log Message: ----------- fix untranslated text Modified Paths: -------------- src/trunk/Pootle/local_apps/pootle_app/models/profile.py src/trunk/Pootle/local_apps/pootle_app/views/language/search_forms.py src/trunk/Pootle/local_apps/pootle_app/views/util.py src/trunk/Pootle/templates/profiles/edit_personal.html src/trunk/Pootle/templates/profiles/edit_profile.html src/trunk/Pootle/templates/profiles/profile_detail.html Modified: src/trunk/Pootle/local_apps/pootle_app/models/profile.py =================================================================== --- src/trunk/Pootle/local_apps/pootle_app/models/profile.py 2009-06-27 11:57:04 UTC (rev 11765) +++ src/trunk/Pootle/local_apps/pootle_app/models/profile.py 2009-06-27 11:58:51 UTC (rev 11766) @@ -82,10 +82,10 @@ """ get user statistics for user statistics links""" from pootle_app.models.suggestion import _get_suggestions userstatistics = {} - userstatistics['Suggestions Accepted'] = _get_suggestions(self, "accepted").count() - userstatistics['Suggestions Pending'] = _get_suggestions(self, "pending").count() - userstatistics['Suggestions Reviewed'] = _get_suggestions(self, "reviewed").count() - userstatistics['Submissions Made'] = self.submission_set.count() + userstatistics[_('Suggestions Accepted')] = _get_suggestions(self, "accepted").count() + userstatistics[_('Suggestions Pending')] = _get_suggestions(self, "pending").count() + userstatistics[_('Suggestions Reviewed')] = _get_suggestions(self, "reviewed").count() + userstatistics[_('Submissions Made')] = self.submission_set.count() return userstatistics def getquicklinks(self): Modified: src/trunk/Pootle/local_apps/pootle_app/views/language/search_forms.py =================================================================== --- src/trunk/Pootle/local_apps/pootle_app/views/language/search_forms.py 2009-06-27 11:57:04 UTC (rev 11765) +++ src/trunk/Pootle/local_apps/pootle_app/views/language/search_forms.py 2009-06-27 11:58:51 UTC (rev 11766) @@ -43,8 +43,8 @@ class AdvancedSearchForm(forms.Form): source = forms.BooleanField(label=_('Source Text'), required=False, initial=True) target = forms.BooleanField(label=_('Target Text'), required=False, initial=True) - notes = forms.BooleanField(label=('Comments'), required=False, initial= False) - locations = forms.BooleanField(label=('Locations'), required=False, initial=False) + notes = forms.BooleanField(label=_('Comments'), required=False, initial= False) + locations = forms.BooleanField(label=_('Locations'), required=False, initial=False) def as_hidden(self): """Brain dead Django mungles rendering of checkboxes if initial values are routed via as_hidden Modified: src/trunk/Pootle/local_apps/pootle_app/views/util.py =================================================================== --- src/trunk/Pootle/local_apps/pootle_app/views/util.py 2009-06-27 11:57:04 UTC (rev 11765) +++ src/trunk/Pootle/local_apps/pootle_app/views/util.py 2009-06-27 11:58:51 UTC (rev 11766) @@ -19,8 +19,8 @@ # along with this program; if not, see <http://www.gnu.org/licenses/>. from django.forms.util import ErrorList +from django.utils.translation import ugettext as _ - def form_set_as_table(formset, link=None, linkfield='code'): """Create an HTML table from the formset. The first form in the formset is used to obtain a list of the fields that need to be @@ -37,7 +37,7 @@ result.append('<tr>\n') for field in fields: result.append('<th>') - result.append(unicode(form.fields[field].label)) + result.append(_(form.fields[field].label)) result.append('</th>\n') result.append('</tr>\n') Modified: src/trunk/Pootle/templates/profiles/edit_personal.html =================================================================== --- src/trunk/Pootle/templates/profiles/edit_personal.html 2009-06-27 11:57:04 UTC (rev 11765) +++ src/trunk/Pootle/templates/profiles/edit_personal.html 2009-06-27 11:58:51 UTC (rev 11766) @@ -1,10 +1,10 @@ {% extends "base.html" %} {% load i18n baseurl %} +{% block precontent %} +<p>{% trans "Change your personal details here." %}</p> +{% endblock %} {% block content %} - -Configure your settings here - <form method="post" action=""> {{ form.as_p }} <input type="submit" value="Save"/> Modified: src/trunk/Pootle/templates/profiles/edit_profile.html =================================================================== --- src/trunk/Pootle/templates/profiles/edit_profile.html 2009-06-27 11:57:04 UTC (rev 11765) +++ src/trunk/Pootle/templates/profiles/edit_profile.html 2009-06-27 11:58:51 UTC (rev 11766) @@ -1,10 +1,11 @@ {% extends "base.html" %} {% load i18n baseurl %} +{% block precontent %} +<p>{% trans "Configure your settings here." %}</p> +{% endblock %} + {% block content %} - -Configure your settings here - <form method="post" action=""> {{ form.as_p }} <input type="submit" value="Save"/> Modified: src/trunk/Pootle/templates/profiles/profile_detail.html =================================================================== --- src/trunk/Pootle/templates/profiles/profile_detail.html 2009-06-27 11:57:04 UTC (rev 11765) +++ src/trunk/Pootle/templates/profiles/profile_detail.html 2009-06-27 11:58:51 UTC (rev 11766) @@ -57,10 +57,7 @@ <table> {% for key, value in profile.getuserstatistics.items %} <tr> - {% blocktrans %} - <th scope="row"> - {{ key }}</th><td> {{ value }}</td> - {% endblocktrans %} + <th scope="row">{% trans key %}</th><td> {{ value }}</td> </tr> {% endfor %} </table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |