Language Comparison
FileFlows allows several flow elements to compare the language of a source (e.g., an audio track) against user-defined patterns.
These comparisons follow the String Operations.
The language from the source is compared using one of the following:
- ISO-639-1 Code (e.g., en for English)
- ISO-639-2 Code (e.g., eng for English)
- English Name (e.g., English) If any of these match the pattern entered by the user, the comparison is considered a match.
Examples
| Source | Comparison | Result | Reason | 
|---|---|---|---|
| fr | French | Matches | "French" is the English name for the ISO-639-1 code fr. | 
| German | `fr | de` | Matches | 
| en | orig | Matches | If the variable OriginalLanguageis set toenor a variant, it will match. | 
| eng | *ish | Matches | The English name for engisEnglish, which ends withish. | 
Original Language
There is a speical orig or {OriginalLanguage} that can be used to match the original language.
This requires the OriginalLanguage variable to be set earlier on in the flow to work.