Merge pull request #2651 from matmair/translation-fixes

Translation fixes
This commit is contained in:
Oliver 2022-02-21 09:00:25 +11:00 committed by GitHub
commit 775574df0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -620,7 +620,7 @@ class DataFileExtractSerializer(serializers.Serializer):
# Check for missing required columns
if required:
if name not in self.columns:
raise serializers.ValidationError(_("Missing required column") + f": '{name}'")
raise serializers.ValidationError(_(f"Missing required column: '{name}'"))
for col in self.columns:
@ -629,7 +629,7 @@ class DataFileExtractSerializer(serializers.Serializer):
# Check for duplicated columns
if col in cols_seen:
raise serializers.ValidationError(_("Duplicate column") + f": '{col}'")
raise serializers.ValidationError(_(f"Duplicate column: '{col}'"))
cols_seen.add(col)

View File

@ -28,6 +28,6 @@
</button>
</form>
<br>
<a href="{% url 'settings' %}" class="btn btn-secondary w-100 btn-sm">{% trans "back to settings" %}</a>
<a href="{% url 'settings' %}" class="btn btn-secondary w-100 btn-sm">{% trans "Back to settings" %}</a>
{% endblock %}

View File

@ -37,6 +37,6 @@
</form>
<div>
<a href="{% url 'settings' %}" class="btn btn-secondary w-100 btn-sm mt-3">{% trans "back to settings" %}</a>
<a href="{% url 'settings' %}" class="btn btn-secondary w-100 btn-sm mt-3">{% trans "Back to settings" %}</a>
</div>
{% endblock %}