Add example-name hint to the preset-name keyboard

The preset-name keypad (used both when adding a preset via manual
coordinates and after an address search) only showed "Name
(optional):" with no indication of what kind of name was expected.
Adds a localized hint line with example names (e.g. "Home, Work,
Holiday home") under the title in both runPresetNameKeypad()
(location_presets_screen.cpp) and runNameKeypad()
(address_search_screen.cpp), measuring the header height dynamically
via getCursorY() the same way runAddressKeyboard() already does, so
the input field and keyboard shift down to make room regardless of
translation length.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Eiswolf-BG
2026-08-11 01:18:14 +02:00
parent 795c008af6
commit a757d693e7
9 changed files with 58 additions and 11 deletions

View File

@@ -227,6 +227,8 @@ static const char* const I18N_TR[] = {
"Kurulum Tamamlandı",
"Kurulum işlemi artık tamamlandı. Tüm veriler SD karttaki şu klasöre kaydedildi: ",
". Bir sonraki başlatmadan itibaren WiFi otomatik olarak bağlanacak.",
"örn. Ev, İş, Tatil evi",
};
static_assert(sizeof(I18N_TR) / sizeof(I18N_TR[0]) == (size_t)StringId::COUNT,