mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
add !sflang! property for card image urls (#3670)
update translations add translation for the sflang property to supported languages
This commit is contained in:
parent
d018070891
commit
9073cb53a8
13 changed files with 193 additions and 87 deletions
|
|
@ -291,6 +291,10 @@ QString PictureToLoad::transformUrl(const QString &urlTemplate) const
|
|||
}
|
||||
}
|
||||
|
||||
// language setting
|
||||
transformMap["!sflang!"] = QString(QCoreApplication::translate(
|
||||
"PictureLoader", "en", "code for scryfall's language property, not available for all languages"));
|
||||
|
||||
for (const QString &prop : transformMap.keys()) {
|
||||
if (transformedUrl.contains(prop)) {
|
||||
if (!transformMap[prop].isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue