0

Is there a quick way to see how many (count) target languages are in a project from views?

Will Yao 5 years ago in Home Portal updated 5 years ago 4

Hi,

Is there a quick way to see how many (count) target languages are in a project from views?

I'm really unable to get any useful information from the current "Language" combination column in views without spending some time copying the list out and manipulating it:

Image 1398

Thanks,

Will

The best thing you could do is to create a Virtual Column.

+3

This is my trick for getting a count of all language pairs in a Virtual Column:


#foreach ($lang in ${utils.unwrap($this).getLanguageCombinationsShortDisplay().split(",")})
#set ($langcount = $foreach.count)
#end
$langcount

But there may be a better way.

+1

If this works, you could also change it to this.
I haven't tried it, but should work:

#set($langcount = ${utils.unwrap($this).getLanguageCombinationsShortDisplay().split(",").size()})
$langcount