Show last authors
1 {{velocity}}
2 $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js")
3 $xwiki.ssfx.use("js/xwiki/table/table.css")
4 $xwiki.ssx.use($doc.fullName)
5 #if ($request.language)
6 #set($tlang = "_${request.language}")
7 #set($tl=${request.language})
8 #else
9 #set($tlang = "")
10 #set($tl="en")
11 #end
12
13 #if ($tlang == "")
14 This page lists the translations status for default XWiki language **en**. You can also go see the [[Translation Rules for this language>>L10N.TranslationRules]].
15 #else
16 This page lists the translations status for language **${request.language}**. You can also go see the [[Translation Rules for this language>>L10N.TranslationRules${tlang}]].
17 #end
18
19
20 #if ($context.user=="XWiki.XWikiGuest")
21 You need to be logged-in to see this data.
22 #else
23 #set($trans = $xwiki.parseGroovyFromPage("L10NCode.L10NGroovy"))
24 #set($ok = $trans.setContext($context, $xwiki))
25 #set($lang = "en")
26 #if($request.language)
27 #set($lang = $request.language)
28 #end
29 #set($tnbtrans = 0)
30 #set($tnbempty = 0)
31 #set($tnboutdated = 0)
32 #set($tnbdead = 0)
33 #set($tnbtoreview = 0)
34 (% class="grid sortable filterable numeric" id="l10status" %)
35 (% class="sortHeader" %)|= App |=Translation file|= Translations |= Empty |= Outdated |= Dead |= To review
36 #foreach($app in ["Contrib", "Commons", "XE", "XEM", "Wysiwyg", "Platform"])
37 #set($list = $trans.getTranslationsFiles($app))
38 #foreach($file in $list)
39 #set($nbtrans = $trans.countTranslations($app, $file.page, $lang))
40 #set($nbempty = $trans.countEmptyTranslations($app, $file.page, $lang))
41 #set($nboutdated = $trans.countOutdatedTranslations($app, $file.page,$lang))
42 #set($nbdead = $trans.countNonexistentTranslations($app, $file.page,$lang))
43 #set($nbtoreview = $trans.countToReviewTranslations($app, $file.page,$lang))
44 #set($tnbtrans = $tnbtrans + $nbtrans)
45 #set($tnbempty = $tnbempty + $nbempty)
46 #set($tnboutdated = $tnboutdated + $nboutdated)
47 #set($tnbdead = $tnbdead + $nbdead)
48 #set($tnbtoreview = $tnbtoreview + $nbtoreview)
49 |= [[$app>>${app}.WebHome]] | [[$file.name>>$file.page]] | [[$nbtrans>>${file.page}||queryString="action=viewall&language=${tl}"]] | ((( #if($nbempty>0)[[$nbempty>>${file.page}||queryString="action=viewempty&language=${tl}"]]#end))) | (((#if($nboutdated>0)[[$nboutdated>>${file.page}||queryString="action=viewoutdated&language=${tl}"]]#end))) | (((#if($nbdead>0)[[$nbdead>>${file.page}||queryString="action=viewdead&language=${tl}"]]#end))) | (((#if($nbtoreview>0)[[$nbtoreview>>${file.page}||queryString="action=review&language=${tl}"]] #end)))
50 #end
51 #end
52 |= Total | |= $tnbtrans |= $tnbempty |= $tnboutdated |= $tnbdead |= $tnbtoreview
53 #end
54 {{/velocity}}

Search translation

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.1 - Documentation