Titles in 2 languages: Portuguese (Brazil) and English

Any questions? Need some help?
Post Reply
Wehaveall
Posts: 2
Joined: 06 Oct 2015, 17:10

Titles in 2 languages: Portuguese (Brazil) and English

Post 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
Wehaveall
Posts: 2
Joined: 06 Oct 2015, 17:10

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

Post by Wehaveall »

Found the solution! Had to choose Portuguese at preferences, not Brazilian.
garyleecn
Donor
Posts: 113
Joined: 19 Nov 2014, 03:48

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

Post 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 :)
kim
Power User
Posts: 1046
Joined: 15 May 2014, 16:17

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

Post 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}
User avatar
rednoah
The Source
Posts: 19133
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 19133
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

The new {localize} binding makes things more elegant:
viewtopic.php?f=5&t=3321&p=18449#p18449
:idea: Please read the FAQ and How to Request Help.
Post Reply