#Change the language

104 messages · Page 1 of 1 (latest)

burnt spindle
#

Hi, i'm trying to change the source URL for the card images in order to have them displayed in french and i managed to get most of the card in french with some modification in the URL but i have multiple issues :

First issue :

When i only setup one URL from scryfall with the cards in french, double sided cards don't load (when i use the exact same URL without the translation, it works)
here's the URL i use :
https://api.scryfall.com/cards/!setcode_lower!/!set:num!/fr?format=image&face=!prop:side!

Second issue :

When i put two URL, the first one is translated and the second one is in default language (English), most of the cards that were translated when i used only the French link are now in English

What i am looking for :

I want to have double sided cards working in translated version, or at least most of cards in French and the other that don't load in English (like the double sided ones)

coarse bridge
#

did you follow the guide on custom download urls on our github wiki?

burnt spindle
#

yes i did

#

(and i don't know if it's possible to get French version on gatherer.wizards.com, i managed to get it with scryfall but with some partial issues, listed above)

coarse bridge
#

when you use multiple urls they will be used in top to bottom order, did you put the french on at the top with the default ones below that?

#

did you use the delete downloaded images option?

burnt spindle
#

i did put the french one on top of the english one

#

and some are in french, some are in english

#

but some that are displayed in english have a french version available on the french link

#

bcs if i put the french link alone, some of the english cards are displayed in french

burnt spindle
#

the first pic is an example of what's happening when i put the two URLs, and the second one is when i only put the french one alone

#

(but it's only for some cards, and always the sames)

coarse bridge
#

that's really strange, that would be a bug but I have no idea how that could happen, it doesn't try again or anything like that it just tries each url in order

#

I will have to try and reproduce this and get back to you

burnt spindle
#

There might be two bugs, the first is that double sided cards and some special cards like that work only in English, and the fact that when there's a multiples source url, the first is not a priority

coarse bridge
#

can you give me the precise setup you use with two urls?

rare terrace
burnt spindle
#

Double sided cards exist on scryfall

rare terrace
#

By default Cockatrice requests the SIR version of the card, which exists in English only. It doesn't find it, so it goes to the English version

burnt spindle
#

And i want the missing cards in french displayed in english but sometimes, they exist in both but shows in English with the two url

rare terrace
#

Disable the SIR set

#

Disable the PSOI set too for good measure

#

And you should see the French picture for that card

burnt spindle
#

Mhh okay i'll try that later

rare terrace
#

The issue is that the fallback system in Cockatrice does not account for the card potentially having the correct language in another set. It just sees that the card does not exist in French in the specific set it looks for it, and then goes on to the next URL in the list and fetches it in English

burnt spindle
#

I didn't think about that but it might be a way to solve one of the issues

#

Thx

rare terrace
#

Hoped to solve it by searching by name instead of set/number, but Scryfall doesn't seem to support name and language search at the same time

coarse bridge
#

yeah if you give it a name you are expected to give the translated name

burnt spindle
coarse bridge
#

not that I know

#

gatherer's image quality is lower too

burnt spindle
#

yeah ok

#

i just realized that there's not a lot of translated cards on scryfall even if they do exist in printed version IRL in french

#

but thx bcs it helped, i have to search for the expansion to remove (like double feature and stuff like that)

#

double sided cards are just not translated on scryfall too

coarse bridge
#

which double sided card isn't translated for example?

burnt spindle
#

urabrask // the great work
Kindly Ancestor // Ancestor's Embrace

#

i assume no double sided are translated

#

but why Plaza of heroes is displayed in english on cockatrice with my french url :(((((((((

#

so random

#

it exist

coarse bridge
#

can you check in the log at help>show debug log from which url it downloaded then

burnt spindle
#
CardDatabase::loadCardDatabases success
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Trying to load picture
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Picture not found on disk, trying to download
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Trying to download picture from url: "https://api.scryfall.com/cards/pdmu/252p/fr?format=image&face=front"
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]:  Download failed: "Error transferring https://api.scryfall.com/cards/pdmu/252p/fr?format=image&face=front - server replied: Not Found"
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Possible picture at  "https://api.scryfall.com/cards/pdmu/252p/fr?format=image&face=front"  could not be loaded
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Trying to load picture
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Picture not found on disk, trying to download
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Trying to download picture from url: "https://api.scryfall.com/cards/pdmu/252p?format=image&face=front"
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: following redirect: "https://cards.scryfall.io/large/front/a/e/ae90d5e6-d0a1-4174-9f30-87bab0067796.jpg?1675619373"
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Image successfully downloaded from  "https://cards.scryfall.io/large/front/a/e/ae90d5e6-d0a1-4174-9f30-87bab0067796.jpg?1675619373"
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Trying to load picture
PictureLoader: [card:  "Plaza of Heroes"  set:  "PDMU" ]: Picture found on disk.

this ?

coarse bridge
#

disable pdmu

burnt spindle
#

should i disable all promo expansion ?

coarse bridge
#

or better, search for promo in the set editor, then hit ctrl a on the list and disable all of them

burnt spindle
#

thx it was the issue

coarse bridge
#

yes, disable all promos

burnt spindle
#

how to disable them all with a ctrl A ?

#

can't manage to

coarse bridge
#

click on the list

#

then ctrl a

#

then click disable selected sets

burnt spindle
#

aaaaa yeah didn't see

#

thx

#

so cool it works

coarse bridge
#

you can also disable treasure chest, memorabilia, masterpiece, and spellbook

burnt spindle
#

and the list ?

coarse bridge
#

yeah, those are all reprints

burnt spindle
#

okayyy

#

all that ?

coarse bridge
#

yes

burnt spindle
#

okay

coarse bridge
#

most of these aren't actually playable cards

burnt spindle
#

yh i see

#

mh

#

commander master is only reprint ?

#

some aren't in french but in other langages

coarse bridge
#

commander masters includes new cards

burnt spindle
#

okay

#

rip then

coarse bridge
#

you can prioritise sets

burnt spindle
#

ravnica clue edition is reprint only ?

burnt spindle
coarse bridge
#

move the set to the bottom of the list with the double down arrow on the left

burnt spindle
#

i see

coarse bridge
burnt spindle
#

i mean this

coarse bridge
#

no, clu also has new cards

burnt spindle
#

okay, when i have a doubt, i'll just down it

coarse bridge
#

yeah, that's the safe option

#

you can also search for all normal expansions and core sets and move them to the top, that'd move them above other sets

burnt spindle
#

okay

#

how to filter these ?

coarse bridge
#

search for expansions and move them and then do the same with core

burnt spindle
#

ok ok

#

should i disable all Historic Anthology sets too ? it's mtga sets i think

burnt spindle
coarse bridge
#

ah, that could be, maybe move core down again then

#

maybe move up masters and commander sets instead

burnt spindle
#

masters 25 is an example of only english expansion i found

burnt spindle
#

is it possible to export the file that contain the list of all the expansion in the way i sorted it ?

#

in order to share it

coarse bridge
#

yes

#

in the settings folder is a file "cardDatabase.ini"

#

note that new sets come out regularly

burnt spindle
#

yh

burnt spindle
#

if i update the database, it will overlap all my changes ?

coarse bridge
#

yes, when it finds sets that are not in the ini file it will show you a pop up with the option to either activate the new sets or to open the sets manager