mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
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:
parent
d4c76aaa76
commit
9f8216378e
@ -59,7 +59,7 @@
|
|||||||
- Improved the handling which entry page to use with disabled feature flags (thanks @nielstholenaar)
|
- 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)
|
- 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
|
- 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
|
### API improvements & non-breaking changes
|
||||||
- New endpoint `/stock/shoppinglist/add-product` to add a product to a shopping list (thanks @Forceu)
|
- New endpoint `/stock/shoppinglist/add-product` to add a product to a shopping list (thanks @Forceu)
|
||||||
|
@ -57,7 +57,10 @@
|
|||||||
))
|
))
|
||||||
|
|
||||||
<button id="save-quantityunit-button" class="btn btn-success">{{ $__t('Save') }}</button>
|
<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>
|
<button id="test-quantityunit-plural-forms-button" class="btn btn-secondary">{{ $__t('Test plural forms') }}</button>
|
||||||
|
@endif
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user