02-19-2012, 05:58 AM | #1 |
Groupie
Posts: 199
Karma: 76476
Join Date: Feb 2012
Location: Poland
Device: none
|
Column coloring based on the languae
I've started playing around with column coloring but I can't make the color change dependng on the language.
The rule I use is: If the languages column has values English What am I doing wrong? The same basic set-up seems to be working with other categories such as tags or publishers. // Sorry, this should probably be in Library Management. // Last edited by Joanna; 02-19-2012 at 06:22 AM. |
02-19-2012, 06:51 AM | #2 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Moderator Notice The language column does not contain the English word for the language, but instead contains the ISO 639.2 code for the language. This code is translated to the localized equivalent of the language name when it is displayed.Moved to library forum as requested The easiest (and fastest) way to solve your problem is to use the ISO code in the color expression, in this case "eng". You could also do it using a more complicated template that uses the language_codes function, but I don't see any advantage to this method. |
Advert | |
|
02-19-2012, 07:26 AM | #3 |
Groupie
Posts: 199
Karma: 76476
Join Date: Feb 2012
Location: Poland
Device: none
|
Thanks, now it works just fine. I felt like it had something to do with the name of language (tried both the English names and the ones in my language version of Calibre, lowcase and uppercase etc.) but didn't think of ISO. Great!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do YOU use column coloring? | gweminence | Calibre | 28 | 05-04-2012 01:16 AM |
Trying to colourize column based on size ... and failing | Gary_M_Mugford | Library Management | 4 | 03-18-2012 05:46 PM |
column colors based on what reading list a book is on? | BeccaPrice | Calibre | 3 | 01-22-2012 04:29 PM |
Column coloring not updated | DrChiper | Library Management | 2 | 01-19-2012 06:11 AM |
Trouble with column coloring | redawgts | Calibre | 2 | 10-09-2011 03:13 AM |