From b194454a3cad6460fcc4762fbc5fa28f3eaaeade Mon Sep 17 00:00:00 2001 From: Leandro Regueiro Date: Wed, 5 Jul 2017 10:28:51 +0200 Subject: [PATCH] i18n: Use string instead of unit Translators are used to string, and is also the most used translation for this thing throughout Pootle. --- pootle/apps/pootle_language/views.py | 2 +- pootle/apps/pootle_store/forms.py | 2 +- pootle/apps/pootle_store/unit/timeline.py | 2 +- pootle/templates/editor/units/edit.html | 2 +- pootle/templates/languages/admin/language_team.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pootle/apps/pootle_language/views.py b/pootle/apps/pootle_language/views.py index 3fb929269c6..949734da183 100644 --- a/pootle/apps/pootle_language/views.py +++ b/pootle/apps/pootle_language/views.py @@ -209,7 +209,7 @@ class LanguageSuggestionAdminView(PootleLanguageAdminFormView): form_class = LanguageSuggestionAdminForm success_url_pattern = "pootle-language-admin-suggestions" formtable_columns = ( - _("Unit"), + _("String"), _("State"), _("Source"), _("Suggestion"), diff --git a/pootle/apps/pootle_store/forms.py b/pootle/apps/pootle_store/forms.py index f1c29587a88..070c84c3edf 100644 --- a/pootle/apps/pootle_store/forms.py +++ b/pootle/apps/pootle_store/forms.py @@ -574,7 +574,7 @@ def clean_target_f(self): self.add_error( "target_f", forms.ValidationError( - _("Suggestion '%s' equals to current unit target value.", + _("Suggestion '%s' equals to current string translation.", target))) else: return self.cleaned_data["target_f"] diff --git a/pootle/apps/pootle_store/unit/timeline.py b/pootle/apps/pootle_store/unit/timeline.py index afcf11b2ae3..fdb3998302a 100644 --- a/pootle/apps/pootle_store/unit/timeline.py +++ b/pootle/apps/pootle_store/unit/timeline.py @@ -154,7 +154,7 @@ def __init__(self, unit_source, **kwargs): @property def context(self): - ctx = dict(description=_(u"Unit created")) + ctx = dict(description=_(u"String created")) if self.target_event is not None: if self.target_event.value.old_value != '': ctx['value'] = self.target_event.value.old_value diff --git a/pootle/templates/editor/units/edit.html b/pootle/templates/editor/units/edit.html index 7793231a3fc..e62100fefc8 100644 --- a/pootle/templates/editor/units/edit.html +++ b/pootle/templates/editor/units/edit.html @@ -9,7 +9,7 @@
  • {{ language.name }}
  • {{ project }}
  • {{ unit.store.path }}
  • -
  • {% blocktrans with url=unit.get_translate_url id=unit.id %}Unit #{{ id }}{% endblocktrans %}
  • +
  • {% blocktrans with url=unit.get_translate_url id=unit.id %}String #{{ id }}{% endblocktrans %}
  • diff --git a/pootle/templates/languages/admin/language_team.html b/pootle/templates/languages/admin/language_team.html index c78c0c0b7c0..f5636a87c9b 100644 --- a/pootle/templates/languages/admin/language_team.html +++ b/pootle/templates/languages/admin/language_team.html @@ -115,7 +115,7 @@

    {% trans "Projects" %}

    -

    {% trans "Unit and suggestions admin" %}

    +

    {% trans "String and suggestions admin" %}

    {% url 'pootle-language-translate' language_code=language.code as translate_url %}