mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Merge pull request #2651 from matmair/translation-fixes
Translation fixes
This commit is contained in:
commit
775574df0c
@ -620,7 +620,7 @@ class DataFileExtractSerializer(serializers.Serializer):
|
|||||||
# Check for missing required columns
|
# Check for missing required columns
|
||||||
if required:
|
if required:
|
||||||
if name not in self.columns:
|
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:
|
for col in self.columns:
|
||||||
|
|
||||||
@ -629,7 +629,7 @@ class DataFileExtractSerializer(serializers.Serializer):
|
|||||||
|
|
||||||
# Check for duplicated columns
|
# Check for duplicated columns
|
||||||
if col in cols_seen:
|
if col in cols_seen:
|
||||||
raise serializers.ValidationError(_("Duplicate column") + f": '{col}'")
|
raise serializers.ValidationError(_(f"Duplicate column: '{col}'"))
|
||||||
|
|
||||||
cols_seen.add(col)
|
cols_seen.add(col)
|
||||||
|
|
||||||
|
@ -28,6 +28,6 @@
|
|||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
<br>
|
<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 %}
|
{% endblock %}
|
||||||
|
@ -37,6 +37,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div>
|
<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>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user