Only show the "Test plural forms"-button on the qu edit page when the current language requires more than 2 plural forms (references #261)

This commit is contained in:
Bernd Bestel
2019-09-20 10:33:44 +02:00
parent d4c76aaa76
commit 9f8216378e
2 changed files with 4 additions and 1 deletions

View File

@@ -59,7 +59,7 @@
- Improved the handling which entry page to use with disabled feature flags (thanks @nielstholenaar)
- Boolean settings provided via environment variables (so the strings `true` and `false`) are now parsed correctly (thanks @mduret)
- All uploaded pictures (currently for products and recipes) are now automatically downscaled to the appropriate size when serving them to improve page load times
- It's now possible to test plural forms of quantity units (button on the quantity unit edit page)
- It's now possible to test plural forms of quantity units (button on the quantity unit edit page, only visible if the current language requires more than 2 plural forms)
### API improvements & non-breaking changes
- New endpoint `/stock/shoppinglist/add-product` to add a product to a shopping list (thanks @Forceu)

View File

@@ -57,7 +57,10 @@
))
<button id="save-quantityunit-button" class="btn btn-success">{{ $__t('Save') }}</button>
@if(intval($pluralCount) > 2)
<button id="test-quantityunit-plural-forms-button" class="btn btn-secondary">{{ $__t('Test plural forms') }}</button>
@endif
</form>
</div>