Merge branch 'refactor-i18n_offset-table' of https://github.com/jpirnay/crosspoint-reader into mybuild
This commit is contained in:
+2
-2
@@ -24,8 +24,8 @@ const char* I18n::get(StrId id) const {
|
||||
}
|
||||
|
||||
// Use generated helper function - no hardcoded switch needed!
|
||||
const char* const* strings = getStringArray(_language);
|
||||
return strings[index];
|
||||
const LangStrings lang = getLanguageStrings(_language);
|
||||
return lang.data + lang.offsets[index];
|
||||
}
|
||||
|
||||
void I18n::setLanguage(Language lang) {
|
||||
|
||||
@@ -118,7 +118,6 @@ STR_CHECK_UPDATES: "Nach Updates suchen"
|
||||
STR_LANGUAGE: "Sprache"
|
||||
STR_SELECT_WALLPAPER: "Bildauswahl Standby"
|
||||
STR_CLEAR_READING_CACHE: "Lese-Cache leeren"
|
||||
STR_CALIBRE: "Calibre"
|
||||
STR_USERNAME: "Benutzername"
|
||||
STR_PASSWORD: "Passwort"
|
||||
STR_SYNC_SERVER_URL: "Sync-Server-URL"
|
||||
|
||||
Reference in New Issue
Block a user