tweak: include number in fallback edition title (#529)

This commit is contained in:
Eva
2023-04-25 21:28:20 +02:00
committed by GitHub
parent f403f92c1d
commit 23abd31025
3 changed files with 5 additions and 2 deletions

View File

@@ -992,9 +992,10 @@ bind_command('editions', create_self_updating_menu_opener({
serializer = function(editions, current_id)
local items = {}
for _, edition in ipairs(editions or {}) do
local edition_id_1 = tostring(edition.id + 1)
items[#items + 1] = {
title = edition.title or t('Edition'),
hint = tostring(edition.id + 1),
title = edition.title or t('Edition %s', edition_id_1),
hint = edition_id_1,
value = edition.id,
active = edition.id == current_id,
}