Changes for page Tags

Last modified by Thomas Mortagne on 2020/01/28 17:18

From version < 8.1 >
edited by Marius Dumitru Florea
on 2013/03/22 14:56
To version < 9.1 >
edited by Marius Dumitru Florea
on 2013/07/15 10:04
< >
Change comment: Import

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -$msg.get("xe.tag.tags")
1 +$services.localization.render("xe.tag.tags")
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.0
1 +XWiki 2.1
Hidden
... ... @@ -1,1 +1,1 @@
1 -false
1 +true
Content
... ... @@ -22,7 +22,7 @@
22 22   (% class="xapp" %)
23 23   = (% class="highlight tag" %)${tag}##
24 24   #if ($xwiki.hasAdminRights() && $displayButtons) ##
25 - [[$msg.get('xe.tag.rename.link')>>||queryString="do=prepareRename&tag=${urlEscapedTag}" class="button rename" rel="nofollow"]] [[$msg.get('xe.tag.delete.link')>>||queryString="do=prepareDelete&tag=${urlEscapedTag}" class="button delete" rel="nofollow"]]##
25 + [[$services.localization.render('xe.tag.rename.link')>>||queryString="do=prepareRename&tag=${urlEscapedTag}" class="button rename" rel="nofollow"]] [[$services.localization.render('xe.tag.delete.link')>>||queryString="do=prepareDelete&tag=${urlEscapedTag}" class="button delete" rel="nofollow"]]##
26 26   #end
27 27   (%%) =
28 28  #end
... ... @@ -36,7 +36,7 @@
36 36   ##
37 37   #displayTagAppTitle($urlEscapedTag $htmlEscapedTag true)
38 38   #if ("$!{request.get('renamedTag')}" != '')
39 - {{info}}$msg.get('xe.tag.rename.success', ["//${request.get('renamedTag')}//"]){{/info}}
39 + {{info}}$services.localization.render('xe.tag.rename.success', ["//${request.get('renamedTag')}//"]){{/info}}
40 40  
41 41   #end
42 42   #set ($list = $xwiki.tag.getDocumentsWithTag($tag))
... ... @@ -43,13 +43,13 @@
43 43   {{container layoutStyle="columns"}}
44 44   (((
45 45   (% class="xapp" %)
46 - === $msg.get('xe.tag.alldocs', ["//${tag}//"]) ===
46 + === $services.localization.render('xe.tag.alldocs', ["//${tag}//"]) ===
47 47  
48 48   {{html}}#displayDocumentList($list true $blacklistedSpaces){{/html}}
49 49   )))
50 50   (((
51 51   (% class="xapp" %)
52 - === $msg.get('xe.tag.activity', ["//${tag}//"]) ===
52 + === $services.localization.render('xe.tag.activity', ["//${tag}//"]) ===
53 53  
54 54   {{activity tags="$tag" /}}
55 55   )))
... ... @@ -65,7 +65,7 @@
65 65   <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
66 66   <input name="do" type="hidden" value="renameTag" />
67 67   <input name="tag" type="hidden" value="$htmlEscapedTag" />
68 - $msg.get('xe.tag.rename.renameto', [$htmlEscapedTag]) <input type="text" name="renameTo" /> <span class="buttonwrapper"><input type="submit" value="$msg.get('xe.tag.rename')" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">Cancel</a></span>
68 + $services.localization.render('xe.tag.rename.renameto', [$htmlEscapedTag]) <input type="text" name="renameTo" /> <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.rename')" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">Cancel</a></span>
69 69   </div>
70 70   </form>
71 71  {{/html}}
... ... @@ -82,7 +82,7 @@
82 82   #set ($urlEscapedRenameTo = $escapetool.url($renameTo))
83 83   $response.sendRedirect($doc.getURL('view', "do=viewTag&tag=${urlEscapedRenameTo}&renamedTag=${urlEscapedTag}"))
84 84   #else
85 - {{error}}$msg.get('xe.tag.rename.failure', ["//${tag}//", "//${renameTo}//"]){{/error}}
85 + {{error}}$services.localization.render('xe.tag.rename.failure', ["//${tag}//", "//${renameTo}//"]){{/error}}
86 86   #end
87 87  #elseif ($do == 'prepareDelete')
88 88   ##
... ... @@ -95,7 +95,7 @@
95 95   <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
96 96   <input name="do" type="hidden" value="deleteTag" />
97 97   <input name="tag" type="hidden" value="$htmlEscapedTag" />
98 - <span class="buttonwrapper"><input type="submit" value="$msg.get('xe.tag.delete', [$htmlEscapedTag])" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">Cancel</a></span>
98 + <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.delete', [$htmlEscapedTag])" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">Cancel</a></span>
99 99   </div>
100 100   </form>
101 101  {{/html}}
... ... @@ -107,7 +107,7 @@
107 107   #if ($success == true || $success == 'OK')
108 108   $response.sendRedirect($doc.getURL('view', "deletedTag=${urlEscapedTag}"))
109 109   #else
110 - {{error}}$msg.get('xe.tag.delete.failure', ["//${tag}//"]){{/error}}
110 + {{error}}$services.localization.render('xe.tag.delete.failure', ["//${tag}//"]){{/error}}
111 111   #end
112 112  #else
113 113   ##
... ... @@ -115,7 +115,7 @@
115 115   ##
116 116   #set ($title = 'All Tags')
117 117   #if ("$!{request.get('deletedTag')}" != '')
118 - {{info}}$msg.get('xe.tag.delete.success', ["//${request.get('deletedTag')}//"]){{/info}}
118 + {{info}}$services.localization.render('xe.tag.delete.success', ["//${request.get('deletedTag')}//"]){{/info}}
119 119  
120 120   #end
121 121   {{tagcloud/}}

Get Connected