Page 1 of 1

How to use the {localize} dynamic localization binding?

Posted: 12 May 2016, 13:21
by rednoah
Use primary spoken language (as per TheMovieDB) for dynamic localization:

Code: Select all

{localize[languages.first()].n : 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}