mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
[Card] Add a setting for the language used in card search
Localized card names and texts can now be searched too, controlled by a 'Language used in card search' toggle (English, selected card language, or both) on the general settings page. Untranslated cards always keep matching in English. Removed the redundant local copy of the URL templates list in the localized picture loader while here.
This commit is contained in:
parent
1c93309952
commit
e029173e29
20 changed files with 360 additions and 52 deletions
|
|
@ -15,6 +15,16 @@
|
|||
* imports the selected language's card data) and the client settings UI (which
|
||||
* offers the language choice).
|
||||
*/
|
||||
/**
|
||||
* @brief The card languages card search should run against.
|
||||
*/
|
||||
enum class CardSearchLanguage
|
||||
{
|
||||
English, ///< Only search the English card names and texts.
|
||||
Selected, ///< Search the selected card language (untranslated cards still match in English).
|
||||
Both ///< Search both the English and the selected card language names and texts.
|
||||
};
|
||||
|
||||
namespace CardLocalization
|
||||
{
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue