mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[Oracle] Support importing tokens and spoilers from local file (#6387)
This commit is contained in:
parent
658ae83157
commit
b4e3f2cba9
4 changed files with 105 additions and 25 deletions
|
|
@ -672,13 +672,21 @@ QString LoadTokensPage::getFileType()
|
|||
return tr("XML; token database (*.xml)");
|
||||
}
|
||||
|
||||
QString LoadTokensPage::getFilePromptName()
|
||||
{
|
||||
return tr("tokens");
|
||||
}
|
||||
|
||||
void LoadTokensPage::retranslateUi()
|
||||
{
|
||||
setTitle(tr("Tokens import"));
|
||||
setSubTitle(tr("Please specify a compatible source for token data."));
|
||||
|
||||
urlLabel->setText(tr("Download URL:"));
|
||||
urlRadioButton->setText(tr("Download URL:"));
|
||||
fileRadioButton->setText(tr("Local file:"));
|
||||
urlButton->setText(tr("Restore default URL"));
|
||||
fileButton->setText(tr("Choose file..."));
|
||||
|
||||
pathLabel->setText(tr("The token database will be saved at the following location:") + "<br>" +
|
||||
SettingsCache::instance().getTokenDatabasePath());
|
||||
defaultPathCheckBox->setText(tr("Save to a custom path (not recommended)"));
|
||||
|
|
@ -709,13 +717,21 @@ QString LoadSpoilersPage::getFileType()
|
|||
return tr("XML; spoiler database (*.xml)");
|
||||
}
|
||||
|
||||
QString LoadSpoilersPage::getFilePromptName()
|
||||
{
|
||||
return tr("spoiler");
|
||||
}
|
||||
|
||||
void LoadSpoilersPage::retranslateUi()
|
||||
{
|
||||
setTitle(tr("Spoilers import"));
|
||||
setSubTitle(tr("Please specify a compatible source for spoiler data."));
|
||||
|
||||
urlLabel->setText(tr("Download URL:"));
|
||||
urlRadioButton->setText(tr("Download URL:"));
|
||||
fileRadioButton->setText(tr("Local file:"));
|
||||
urlButton->setText(tr("Restore default URL"));
|
||||
fileButton->setText(tr("Choose file..."));
|
||||
|
||||
pathLabel->setText(tr("The spoiler database will be saved at the following location:") + "<br>" +
|
||||
SettingsCache::instance().getSpoilerCardDatabasePath());
|
||||
defaultPathCheckBox->setText(tr("Save to a custom path (not recommended)"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue