Hello, If I modify the “Release Country” tag and spell out the full name of the country, for example Japan instead of JP is that considered a bad practice? I would like to have the full names of countries in my metadata. Whene I first time fetch with Picard it fetches the two letter country code, but that two letter value can be overriden. Am I right? Thank you so much. I appreciate your time.
I don’t see any reason that you shouldn’t be able to do that. In fact, the next version of Picard (v2.7) includes a new $countryname()
scripting function to take a two-character country code and return the full name. If you can wait until it’s released, it might save you some work because you should be able to automate it in a tagging script.
Hi, I tried the following script: $countryname(country_code[,translate]) but it doesn’t work. CA stay CA…no Canada showing in Release Country field.
What is the exact code from your script? If you’re passing a tag or a variable, what is its value?
If you enter $countryname(CA)
what do you get?
No change when using direct entry $countryname(CA). I copied the script from the web page.
$countryname(country_code[,translate])
I am not a programmer so its probably wrong.
The square brackets indicate that the second Parameter is optional. The first parameter is the country code, parameters get separated by commas.
So to get the country name from the country code you use:
$countryname(%releasecountry%)
The %releasecountry%
is a variable that holds the release country code.
The above could be used for example inside the naming script.
If you want to actually update the releasecountry tag, you have to set it with the new value:
$set(releasecountry,$countryname(%releasecountry%))
If you want to have the name translated into Picard’s current display language, use:
$countryname(%releasecountry%,1)
$set(releasecountry,$countryname(%releasecountry%))
did the job. Thanks So Much for your help.