Fix exception with AmountFormatter if Si prefix were enabled and no unit symbol were set.

Also this case is now prevented by Validator (as it is not very useful). Fixes issue #171.
This commit is contained in:
Jan Böhmer 2022-09-17 17:58:01 +02:00
parent 430c9fed67
commit 8338c0f2d6
4 changed files with 94 additions and 86 deletions

View file

@ -227,5 +227,11 @@
<target>You must select an supplier!</target>
</segment>
</unit>
<unit id="k5DDdB4" name="validator.measurement_unit.use_si_prefix_needs_unit">
<segment>
<source>validator.measurement_unit.use_si_prefix_needs_unit</source>
<target>To enable SI prefixes, you have to set a unit symbol!</target>
</segment>
</unit>
</file>
</xliff>