tweak: include number in fallback edition title (#529)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user