How to use the {localize} dynamic localization binding?

All about user-defined episode / movie format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 21746
Joined: 16 Nov 2011, 08:59

How to use the {localize} dynamic localization binding?

Post by rednoah »

Use the primary spoken language (as per TheMovieDB) for dynamic localization:

Code: Select all

{ localize[languages[0]].n }


Use the first audio language (as per MediaInfo) for dynamic localization:

Code: Select all

{ localize[audio[0].language].n }


If the media file contains a Japanese audio stream (as per MediaInfo) then localize series name to Japanese, otherwise use default name:

Code: Select all

{ audio.language =~ /ja/ ? localize.ja.n : n }


If Jackie Chan is an actor in the given movie, then use the Chinese movie name, otherwise use default name:

Code: Select all

{ actors =~ /Jackie Chan/ ? localize.zho.n : n }
:idea: Please read the FAQ and How to Request Help.
Post Reply