Check for multiple languages
Check for multiple languages
I want an expression that checks the languages of the audio, and if there exists audio of two or more different languages, outputs the string "Multilang". Any ideas on how that could be done?
Re: Check for multiple languages
Here's an example:
You can search the forums for "audioLanguages" to find more complex examples and real-world use cases.
Code: Select all
{
def n = audioLanguages.size()
n > 2 ? "Multi" : n > 1 ? "Dual" : null
}

Re: Check for multiple languages
Thank you! I solved it now like this:
Code: Select all
{if (audioLanguages.size() > 1) ', Multilang'}