Where can I find the translation table for $countryname?

I found the documentation for $countryname

But could someone please tell me where I can find the picard translation table source code from the two letter country code to the full english country name?

Especially for the not official country “collections” like XE or XW?

Some two letter code examples to show what I’m looking for (found here):

$if($eq(%releasecountry%,XE),$set(releasecountry,Europe))
$if($eq(%releasecountry%,XU),$set(releasecountry,[Unknown]))
$if($eq(%releasecountry%,XW),$set(releasecountry,[Worldwide]))
$if($eq(%releasecountry%,XG),$set(releasecountry,DDR))

The current country data as used by Picard is at picard/picard/const/countries.py at master · metabrainz/picard · GitHub .

That list and the translation files get automatically generated from MetaBrainz Weblate , which manages the translations of the countries gettext files of MusicBrainz server in musicbrainz-server/po at master · metabrainz/musicbrainz-server · GitHub

Those gettext files in turn get generated from the country list in the MusicBrainz database.

3 Likes

Exactly what I’m looking for. :+1:
Thank you for your quick and perfect reply!

2 Likes