How to use the {localize} dynamic localization binding?

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

How to use the {localize} dynamic localization binding?

Post by rednoah » 12 May 2016, 13:21

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}
:idea: Please read the FAQ and How to Request Help.

Post Reply