Picard will write the language tag of a recording as a three letter code.
So e.g. a song in English will get the code ‘eng’
But I would like to have my tags showing the full word ‘English’.
And ‘Portugese’ instead of ‘por’, ‘French’ instead of ‘fre’ etc. etc.
Creating a script that will do that for just ‘eng’ is rather easy:
But I quickly get stuck when I want to more languages.
I attempted some nesting with ‘$replace’, but that gave me odd results, probably because every ‘replace’ will also look at other nested ‘replaces’.
What would be the best and most elegant approach to set up a script for this?
The $if function is probably also necessary? But I am making a complete mess of it all when trying to concoct something that works.
I am not aiming to include all hundreds of existing language codes, but it would be nice if it would be not to difficult to add a new language code to the script when I run into a new language that wasn’t present in my libary before.