mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-24 18:54:12 -05:00
47 lines
2.8 KiB
C++
47 lines
2.8 KiB
C++
#pragma once
|
|
#include <string_view>
|
|
|
|
namespace strings
|
|
{
|
|
// Attempts to load strings from file in RomFS.
|
|
bool initialize();
|
|
|
|
// Returns string with name and index. Returns nullptr if string doesn't exist.
|
|
const char *get_by_name(std::string_view name, int index);
|
|
|
|
// Names of strings to prevent typos.
|
|
namespace names
|
|
{
|
|
static constexpr std::string_view TRANSLATION_INFO = "TranslationInfo";
|
|
static constexpr std::string_view CONTROL_GUIDES = "ControlGuides";
|
|
static constexpr std::string_view SAVE_DATA_TYPES = "SaveDataTypes";
|
|
static constexpr std::string_view SETTINGS_MENU = "SettingsMenu";
|
|
static constexpr std::string_view EXTRAS_MENU = "ExtrasMenu";
|
|
static constexpr std::string_view EXTRAS_POP_MESSAGES = "ExtrasPopMessages";
|
|
static constexpr std::string_view YES_NO = "YesNo";
|
|
static constexpr std::string_view HOLDING_STRINGS = "HoldingStrings";
|
|
static constexpr std::string_view ON_OFF = "OnOff";
|
|
static constexpr std::string_view BACKUP_MENU = "BackupMenu";
|
|
static constexpr std::string_view COPYING_FILES = "CopyingFiles";
|
|
static constexpr std::string_view BACKUPMENU_CONFIRMATIONS = "BackupMenuConfirmations";
|
|
static constexpr std::string_view BACKUPMENU_STATUS = "BackupMenuStatus";
|
|
static constexpr std::string_view BACKUPMENU_POPS = "BackupMenuPops";
|
|
static constexpr std::string_view DELETING_FILES = "DeletingFiles";
|
|
static constexpr std::string_view KEYBOARD_STRINGS = "KeyboardStrings";
|
|
static constexpr std::string_view USER_OPTIONS = "UserOptions";
|
|
static constexpr std::string_view USER_OPTION_CONFIRMATIONS = "UserOptionConfirmations";
|
|
static constexpr std::string_view USER_OPTION_STATUS = "UserOptionStatus";
|
|
static constexpr std::string_view TITLE_OPTIONS = "TitleOptions";
|
|
static constexpr std::string_view TITLE_OPTION_STATUS = "TitleOptionStatus";
|
|
static constexpr std::string_view TITLE_OPTION_POPS = "TitleOptionPops";
|
|
static constexpr std::string_view TITLE_OPTION_CONFIRMATIONS = "TitleOptionConfirmations";
|
|
static constexpr std::string_view TITLE_INFO_STRINGS = "TitleInfo";
|
|
static constexpr std::string_view POP_MESSAGES_GENERAL = "PopMessagesGeneral";
|
|
static constexpr std::string_view POP_MESSAGES_BACKUP_MENU = "PopMessagesBackupMenu";
|
|
static constexpr std::string_view POP_MESSAGES_SAVE_CREATE = "PopMessagesSaveCreate";
|
|
static constexpr std::string_view POP_MESSAGES_TITLE_OPTIONS = "PopMessagesTitleOptions";
|
|
static constexpr std::string_view GOOGLE_DRIVE_STRINGS = "GoogleDriveStrings";
|
|
static constexpr std::string_view WEBDAV_STRINGS = "WebDavStrings";
|
|
} // namespace names
|
|
} // namespace strings
|