Page 1 of 1

Help needed renaming lang.upperInitial()

Posted: 31 Aug 2012, 22:33
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

Re: Help needed renaming lang.upperInitial()

Posted: 01 Sep 2012, 00:43
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()}

Re: Help needed renaming lang.upperInitial()

Posted: 01 Sep 2012, 12:39
by wassy
Thanks for the help. I'll test it later today