Page 1 of 1

Titles in 2 languages: Portuguese (Brazil) and English

Posted: 06 Oct 2015, 17:14
by Wehaveall
Hi,

I donwloaded the software and read all posts about this kind of renaming. I`ve set the Brazilian Language in my preferences but it does not work. German, French, Chinese and other languages work. Tried this script the developer post:

{net.filebot.WebServices.TheMovieDB.getMovieDescriptor(movie, Locale.GERMAN).name}

but dont find any word for BRAZILIAN, PORTUGUESE, PT-BR.

Using The MOVIE DB.

Can anyone help? Thanks

Re: Titles in 2 languages: Portuguese (Brazil) and English

Posted: 06 Oct 2015, 18:19
by Wehaveall
Found the solution! Had to choose Portuguese at preferences, not Brazilian.

Re: Titles in 2 languages: Portuguese (Brazil) and English

Posted: 06 Oct 2015, 21:46
by garyleecn
Wehaveall wrote:Found the solution! Had to choose Portuguese at preferences, not Brazilian.
hey just curious, what would the output filename be from your code?

thanks :)

Re: Titles in 2 languages: Portuguese (Brazil) and English

Posted: 06 Oct 2015, 22:59
by kim
try

Code: Select all

{net.filebot.WebServices.TheMovieDB.getMovieDescriptor(movie, new Locale('PT')).name}
or

Code: Select all

{net.filebot.WebServices.TheMovieDB.getMovieDescriptor(movie, new Locale('BR')).name}

Re: Titles in 2 languages: Portuguese (Brazil) and English

Posted: 07 Oct 2015, 09:01
by rednoah
Not all DBs support all languages. Portuguese (pt) and Brazilian Portuguese (pt-BR) is particularly tricky since the latter is not officially a language, and has no official language code.

Re: Titles in 2 languages: Portuguese (Brazil) and English

Posted: 21 Jan 2016, 11:02
by rednoah
The new {localize} binding makes things more elegant:
viewtopic.php?f=5&t=3321&p=18449#p18449