Help needed renaming lang.upperInitial()

Any questions? Need some help?
Post Reply
wassy
Posts: 4
Joined: 31 Aug 2012, 22:26

Help needed renaming lang.upperInitial()

Post by wassy »

Hi folks,

as the title suggests, I am having problems getting filebot to recognise the renaming format {lang.upperInitial()}

{lang} on its own returns the correct language for a subtitle file, but as soon as I add .upper() or .upperInitial() no language descriptor appears on the file name at all. I am a noob with FileBot and groovy so please forgive my ignorance. I've searched for existing answers on the forum here but not found anything

many thanks

Wassy
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help needed renaming lang.upperInitial()

Post by rednoah »

That's because lang is of type Locale, not String.

e.g.

Code: Select all

{lang.toString().upper()}

Code: Select all

{lang.ISO3Language.upper()}

Code: Select all

{lang.displayName.upper()}
:idea: Please read the FAQ and How to Request Help.
wassy
Posts: 4
Joined: 31 Aug 2012, 22:26

Re: Help needed renaming lang.upperInitial()

Post by wassy »

Thanks for the help. I'll test it later today
Post Reply