Groups - Version 1.2.1

Version Description

  • Reduced files loaded on non-admin pages.
  • Added Lithuanian translation.
  • Changed help to use tabs.
Download this release

Release Info

Developer itthinx
Plugin Icon 128x128 Groups
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

groups.php CHANGED
@@ -21,13 +21,13 @@
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
- * Version: 1.2.0
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
- define( 'GROUPS_CORE_VERSION', '1.2.0' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
+ * Version: 1.2.1
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
+ define( 'GROUPS_CORE_VERSION', '1.2.1' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
languages/groups-lt_LT.mo ADDED
Binary file
languages/groups-lt_LT.po ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2012 Groups
2
+ # This file is distributed under the same license as the Groups package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Groups 1.0.0-beta-3c\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/groups\n"
7
+ "POT-Creation-Date: 2012-04-03 11:53:37+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2012-05-01 19:00+0200\n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+ "X-Poedit-Language: Lithuanian\n"
15
+ "X-Poedit-Country: Lithuania\n"
16
+
17
+ #: lib/access/class-groups-access-meta-boxes.php:51
18
+ #: lib/access/class-groups-access-meta-boxes.php:61
19
+ msgid "Access restrictions"
20
+ msgstr "Prieigos apribojimai"
21
+
22
+ #: lib/access/class-groups-access-meta-boxes.php:84
23
+ msgid "Post"
24
+ msgstr "Įrašas"
25
+
26
+ #: lib/access/class-groups-access-meta-boxes.php:109
27
+ msgid "Enforce read access"
28
+ msgstr "Iššaukti skaitymo prieigą"
29
+
30
+ #: lib/access/class-groups-access-meta-boxes.php:112
31
+ msgid "Only groups or users that have the <b>%s</b> capability are allowed to read this %s."
32
+ msgstr "Tik grupės arba vartotojai, turintys <b>%s</b> gebą gali skaityti šį %s."
33
+
34
+ #: lib/access/class-groups-post-access.php:42
35
+ msgid "Read Post"
36
+ msgstr "Skaityti Įrašą"
37
+
38
+ #: lib/admin/class-groups-admin-users.php:70
39
+ #: lib/admin/groups-admin-capabilities-add.php:66
40
+ #: lib/admin/groups-admin-capabilities.php:172
41
+ #: lib/admin/groups-admin-groups-add.php:79
42
+ #: lib/admin/groups-admin-groups.php:172
43
+ #: lib/admin/groups-admin-groups.php:332
44
+ msgid "Add"
45
+ msgstr "Pridėti"
46
+
47
+ #: lib/admin/class-groups-admin-users.php:72
48
+ #: lib/admin/groups-admin-capabilities-remove.php:60
49
+ #: lib/admin/groups-admin-capabilities.php:262
50
+ #: lib/admin/groups-admin-capabilities.php:392
51
+ #: lib/admin/groups-admin-groups-remove.php:60
52
+ #: lib/admin/groups-admin-groups.php:263
53
+ #: lib/admin/groups-admin-groups.php:333
54
+ #: lib/admin/groups-admin-groups.php:409
55
+ msgid "Remove"
56
+ msgstr "Pašalinti"
57
+
58
+ #: lib/admin/class-groups-admin-users.php:74
59
+ msgid "selected to / from group:"
60
+ msgstr "pažymėta į / iš grupės:"
61
+
62
+ #: lib/admin/class-groups-admin-users.php:76
63
+ #: lib/admin/groups-admin-groups.php:259
64
+ msgid "Group"
65
+ msgstr "Grupė"
66
+
67
+ #. #-#-#-#-# plugin.pot (Groups 1.0.0-beta-3c) #-#-#-#-#
68
+ #. Plugin Name of the plugin/theme
69
+ #: lib/admin/class-groups-admin-users.php:146
70
+ #: lib/admin/class-groups-admin.php:81
71
+ #: lib/admin/class-groups-admin.php:82
72
+ #: lib/admin/groups-admin-groups.php:166
73
+ msgid "Groups"
74
+ msgstr "Grupės"
75
+
76
+ #: lib/admin/class-groups-admin-users.php:176
77
+ msgid "--"
78
+ msgstr "--"
79
+
80
+ #: lib/admin/class-groups-admin.php:97
81
+ #: lib/admin/class-groups-admin.php:98
82
+ msgid "Tree"
83
+ msgstr "Medis"
84
+
85
+ #: lib/admin/class-groups-admin.php:111
86
+ msgid "Groups Capabilities"
87
+ msgstr "Grupių Gebos"
88
+
89
+ #: lib/admin/class-groups-admin.php:112
90
+ #: lib/admin/groups-admin-capabilities.php:166
91
+ #: lib/admin/groups-admin-groups.php:261
92
+ msgid "Capabilities"
93
+ msgstr "Gebos"
94
+
95
+ #: lib/admin/class-groups-admin.php:124
96
+ #: lib/admin/groups-admin-options.php:38
97
+ msgid "Groups options"
98
+ msgstr "Grupių parinktys"
99
+
100
+ #: lib/admin/class-groups-admin.php:125
101
+ msgid "Options"
102
+ msgstr "Parinktys"
103
+
104
+ #: lib/admin/groups-admin-capabilities-add.php:30
105
+ #: lib/admin/groups-admin-capabilities-add.php:88
106
+ #: lib/admin/groups-admin-capabilities-add.php:92
107
+ #: lib/admin/groups-admin-capabilities-edit.php:31
108
+ #: lib/admin/groups-admin-capabilities-edit.php:92
109
+ #: lib/admin/groups-admin-capabilities-edit.php:96
110
+ #: lib/admin/groups-admin-capabilities-remove.php:31
111
+ #: lib/admin/groups-admin-capabilities-remove.php:83
112
+ #: lib/admin/groups-admin-capabilities-remove.php:87
113
+ #: lib/admin/groups-admin-capabilities.php:43
114
+ #: lib/admin/groups-admin-capabilities.php:114
115
+ #: lib/admin/groups-admin-capabilities.php:145
116
+ #: lib/admin/groups-admin-capabilities.php:151
117
+ #: lib/admin/groups-admin-groups-add.php:30
118
+ #: lib/admin/groups-admin-groups-add.php:101
119
+ #: lib/admin/groups-admin-groups-add.php:105
120
+ #: lib/admin/groups-admin-groups-edit.php:31
121
+ #: lib/admin/groups-admin-groups-edit.php:108
122
+ #: lib/admin/groups-admin-groups-edit.php:112
123
+ #: lib/admin/groups-admin-groups-remove.php:31
124
+ #: lib/admin/groups-admin-groups-remove.php:83
125
+ #: lib/admin/groups-admin-groups-remove.php:87
126
+ #: lib/admin/groups-admin-groups.php:43
127
+ #: lib/admin/groups-admin-groups.php:114
128
+ #: lib/admin/groups-admin-groups.php:145
129
+ #: lib/admin/groups-admin-groups.php:151
130
+ #: lib/admin/groups-admin-options.php:32
131
+ #: lib/admin/groups-admin-tree-view.php:33
132
+ #: lib/core/groups-tests.php:382
133
+ msgid "Access denied."
134
+ msgstr "Prieiga nesuteikta."
135
+
136
+ #: lib/admin/groups-admin-capabilities-add.php:47
137
+ msgid "Add a new capability"
138
+ msgstr "Pridėti naują gebą"
139
+
140
+ #: lib/admin/groups-admin-capabilities-add.php:55
141
+ #: lib/admin/groups-admin-capabilities-edit.php:62
142
+ #: lib/admin/groups-admin-capabilities.php:259
143
+ #: lib/admin/groups-admin-capabilities.php:274
144
+ msgid "Capability"
145
+ msgstr "Geba"
146
+
147
+ #: lib/admin/groups-admin-capabilities-add.php:60
148
+ #: lib/admin/groups-admin-capabilities-edit.php:67
149
+ #: lib/admin/groups-admin-capabilities.php:260
150
+ #: lib/admin/groups-admin-groups-add.php:73
151
+ #: lib/admin/groups-admin-groups-edit.php:83
152
+ #: lib/admin/groups-admin-groups.php:260
153
+ msgid "Description"
154
+ msgstr "Aprašymas"
155
+
156
+ #: lib/admin/groups-admin-capabilities-add.php:68
157
+ #: lib/admin/groups-admin-capabilities-edit.php:75
158
+ #: lib/admin/groups-admin-capabilities-remove.php:62
159
+ #: lib/admin/groups-admin-groups-add.php:81
160
+ #: lib/admin/groups-admin-groups-edit.php:91
161
+ #: lib/admin/groups-admin-groups-remove.php:62
162
+ msgid "Cancel"
163
+ msgstr "Atšaukti"
164
+
165
+ #: lib/admin/groups-admin-capabilities-edit.php:37
166
+ #: lib/admin/groups-admin-capabilities-remove.php:37
167
+ msgid "No such capability."
168
+ msgstr "Nėra tokios gebos."
169
+
170
+ #: lib/admin/groups-admin-capabilities-edit.php:53
171
+ msgid "Edit a capability"
172
+ msgstr "Redaguoti gebą"
173
+
174
+ #: lib/admin/groups-admin-capabilities-edit.php:73
175
+ #: lib/admin/groups-admin-groups-edit.php:89
176
+ #: lib/admin/groups-admin-options.php:180
177
+ msgid "Save"
178
+ msgstr "Įrašyti"
179
+
180
+ #: lib/admin/groups-admin-capabilities-remove.php:50
181
+ msgid "Remove a capability"
182
+ msgstr "Pašalinti gebą"
183
+
184
+ #: lib/admin/groups-admin-capabilities-remove.php:57
185
+ msgid "Capability : %s"
186
+ msgstr "Geba : %s"
187
+
188
+ #: lib/admin/groups-admin-capabilities.php:172
189
+ msgid "Click to add a new capability"
190
+ msgstr "Paspauskite čia, norėdamas pridėti naują gebą"
191
+
192
+ #: lib/admin/groups-admin-capabilities.php:172
193
+ msgid "New Capability"
194
+ msgstr "Nauja Geba"
195
+
196
+ #: lib/admin/groups-admin-capabilities.php:258
197
+ #: lib/admin/groups-admin-groups.php:258
198
+ msgid "Id"
199
+ msgstr "Identifikatorius"
200
+
201
+ #: lib/admin/groups-admin-capabilities.php:261
202
+ #: lib/admin/groups-admin-capabilities.php:387
203
+ #: lib/admin/groups-admin-groups.php:262
204
+ #: lib/admin/groups-admin-groups.php:404
205
+ msgid "Edit"
206
+ msgstr "Redaguoti"
207
+
208
+ #: lib/admin/groups-admin-capabilities.php:269
209
+ #: lib/admin/groups-admin-groups.php:270
210
+ msgid "Filters"
211
+ msgstr "Filtrai"
212
+
213
+ #: lib/admin/groups-admin-capabilities.php:272
214
+ msgid "Capability Id"
215
+ msgstr "Gebos identifikatorius"
216
+
217
+ #: lib/admin/groups-admin-capabilities.php:279
218
+ #: lib/admin/groups-admin-capabilities.php:293
219
+ #: lib/admin/groups-admin-groups.php:280
220
+ #: lib/admin/groups-admin-groups.php:294
221
+ msgid "Apply"
222
+ msgstr "Pritaikyti"
223
+
224
+ #: lib/admin/groups-admin-capabilities.php:280
225
+ #: lib/admin/groups-admin-groups.php:281
226
+ msgid "Clear"
227
+ msgstr "Išvalyti"
228
+
229
+ #: lib/admin/groups-admin-capabilities.php:290
230
+ #: lib/admin/groups-admin-groups.php:291
231
+ msgid "Results per page"
232
+ msgstr "Rezultatai puslapyje"
233
+
234
+ #: lib/admin/groups-admin-capabilities.php:399
235
+ #: lib/admin/groups-admin-groups.php:416
236
+ msgid "There are no results."
237
+ msgstr "Nėra jokių rezultatų."
238
+
239
+ #: lib/admin/groups-admin-groups-add.php:55
240
+ msgid "Add a new group"
241
+ msgstr "Pridėti naują grupę"
242
+
243
+ #: lib/admin/groups-admin-groups-add.php:63
244
+ #: lib/admin/groups-admin-groups-edit.php:73
245
+ msgid "Name"
246
+ msgstr "Pavadinimas"
247
+
248
+ #: lib/admin/groups-admin-groups-add.php:68
249
+ #: lib/admin/groups-admin-groups-edit.php:78
250
+ msgid "Parent"
251
+ msgstr "Virš"
252
+
253
+ #: lib/admin/groups-admin-groups-edit.php:37
254
+ #: lib/admin/groups-admin-groups-remove.php:37
255
+ msgid "No such group."
256
+ msgstr "Nėra tokios grupės."
257
+
258
+ #: lib/admin/groups-admin-groups-edit.php:64
259
+ msgid "Edit a group"
260
+ msgstr "Redaguti grupę"
261
+
262
+ #: lib/admin/groups-admin-groups-remove.php:50
263
+ msgid "Remove a group"
264
+ msgstr "Pašalinti grupę"
265
+
266
+ #: lib/admin/groups-admin-groups-remove.php:57
267
+ msgid "Group Name : %s"
268
+ msgstr "Grupės Pavadinimas : %s"
269
+
270
+ #: lib/admin/groups-admin-groups.php:172
271
+ msgid "Click to add a new group"
272
+ msgstr "Paspauskite, norėdamas pridėti naują grupę"
273
+
274
+ #: lib/admin/groups-admin-groups.php:172
275
+ msgid "New Group"
276
+ msgstr "Nauja Grupė"
277
+
278
+ #: lib/admin/groups-admin-groups.php:273
279
+ msgid "Group Id"
280
+ msgstr "Grupės Identifikatorius"
281
+
282
+ #: lib/admin/groups-admin-groups.php:275
283
+ msgid "Group Name"
284
+ msgstr "Grupės pavadinimas"
285
+
286
+ #: lib/admin/groups-admin-groups.php:330
287
+ msgid "Apply capability to selected groups:"
288
+ msgstr "Pritaikyti gebą pažymėtoms grupėms:"
289
+
290
+ #: lib/admin/groups-admin-groups.php:399
291
+ msgid "This group has no capabilities."
292
+ msgstr "Ši grupė neturi priskirtų gebų."
293
+
294
+ #: lib/admin/groups-admin-options.php:43
295
+ msgid "Access Groups"
296
+ msgstr "Pasiekti Grupes"
297
+
298
+ # neisversta
299
+ #: lib/admin/groups-admin-options.php:44
300
+ msgid "Administer Groups"
301
+ msgstr "Administer Groups"
302
+
303
+ #: lib/admin/groups-admin-options.php:45
304
+ msgid "Administer Groups plugin options"
305
+ msgstr "Administer Groups papildinio parinktys"
306
+
307
+ #: lib/admin/groups-admin-options.php:104
308
+ msgid "Role"
309
+ msgstr "Rolė"
310
+
311
+ #: lib/admin/groups-admin-options.php:147
312
+ msgid "Administrator Access Override"
313
+ msgstr "Administratoriaus Prieigos Nepaisymas"
314
+
315
+ #: lib/admin/groups-admin-options.php:150
316
+ msgid "Administrators override all access permissions derived from Groups capabilities."
317
+ msgstr "Administratoriai gauna visus leidmus, gautus iš Grupės gebų."
318
+
319
+ #: lib/admin/groups-admin-options.php:154
320
+ msgid "Tree view"
321
+ msgstr "Medžio peržiūra"
322
+
323
+ #: lib/admin/groups-admin-options.php:157
324
+ msgid "Show the Groups tree view."
325
+ msgstr "Rodyti Grupės medžio peržiūrą."
326
+
327
+ #: lib/admin/groups-admin-options.php:160
328
+ msgid "Permissions"
329
+ msgstr "Leidimai"
330
+
331
+ #: lib/admin/groups-admin-options.php:161
332
+ msgid "These permissions apply to Groups management. They do not apply to access permissions derived from Groups capabilities."
333
+ msgstr "Šie leidimai galioja Grupės valdymui. Jie nepritaikyti leidimų, gautų iš Grupių gebų, pasiekimui."
334
+
335
+ #: lib/admin/groups-admin-options.php:164
336
+ msgid "A minimum set of permissions will be preserved."
337
+ msgstr "Minimalus leidimų, kurie bus išsaugomi, rinkinys."
338
+
339
+ #: lib/admin/groups-admin-options.php:166
340
+ msgid "If you lock yourself out, please ask an administrator to help."
341
+ msgstr "Jeigu užsirakinsite save, prašome pagalbos kreiptis į administratorių."
342
+
343
+ #: lib/admin/groups-admin-options.php:169
344
+ msgid "Deactivation and data persistence"
345
+ msgstr "Deaktyvavimas ir duomenų išsaugojimas"
346
+
347
+ #: lib/admin/groups-admin-options.php:172
348
+ msgid "Delete all plugin data on deactivation"
349
+ msgstr "Deaktyvacijos metu ištrinti visus papildinio duomenis"
350
+
351
+ #: lib/admin/groups-admin-options.php:175
352
+ msgid "CAUTION: If this option is active while the plugin is deactivated, ALL plugin settings and data will be DELETED. If you are going to use this option, now would be a good time to make a backup. By enabling this option you agree to be solely responsible for any loss of data or any other consequences thereof."
353
+ msgstr "DĖMESIO: Jeigu ši parinktis aktyvi, kuomet papildinys yra deaktyvuojamas, VISOS papildinio nuostatos ir VISI papildinio domenys bus IŠTRINTI. Jeigu Jūs planuojate naudoti šią parinktį, dabar būtų pats laikas pasidaryti atsarginę kopiją. Suaktyvindamas šią parinktį Jūs pripažystate, jog esate pilnai atsakingas dėl bet kokio duomenų praradimo ar kitokių nenumatytų pasėkmių."
354
+
355
+ #: lib/admin/groups-admin-tree-view.php:40
356
+ msgid "Tree of Groups"
357
+ msgstr "Grupių Medis"
358
+
359
+ #: lib/auto/class-groups-registered.php:55
360
+ msgid "Registered"
361
+ msgstr "Priregistruota"
362
+
363
+ #: lib/core/class-groups-help.php:32
364
+ msgid "The complete documentation is available on the <a href=\"http://www.itthinx.com/plugins/groups\" target=\"_blank\">Groups plugin page</a>"
365
+ msgstr "Pilna dokumentacija yra pasiekiama <a href=\"http://www.itthinx.com/plugins/groups\" target=\"_blank\">Groups papildinio puslapyje </a>"
366
+
367
+ #: lib/core/class-groups-help.php:39
368
+ msgid "Here you can <strong>add</strong>, <strong>edit</strong> and <strong>remove</strong> groups."
369
+ msgstr "Čia Jūs galite <strong>pridėti</strong>, <strong>redaguoti</strong> ir <strong>pašalinti</strong> grupes."
370
+
371
+ #: lib/core/class-groups-help.php:48
372
+ #: lib/core/class-groups-help.php:72
373
+ msgid "If you require <em>consulting services</em>, <em>support</em> or <em>customization</em>, you may <a href=\"http://www.itthinx.com/\" target=\"_blank\">contact me here</a>."
374
+ msgstr "Jeigu Jums reikia <em>konsultacinių paslaugų</em>, <em>pagalbos</em> arba <em>papildinio individualizacijos</em>, Jūs galite <a href=\"http://www.itthinx.com/\" target=\"_blank\">surasti mane čia</a>."
375
+
376
+ #: lib/core/class-groups-help.php:51
377
+ #: lib/core/class-groups-help.php:75
378
+ msgid "If you find this plugin useful, please consider making a donation:"
379
+ msgstr "Jeigu manote, kad šis papildinys Jums yra naudingas, prašau pagalvoti apie paaukojimą:"
380
+
381
+ #: lib/core/class-groups-help.php:69
382
+ msgid "Thank you for using the <a href=\"http://www.itthinx.com/plugins/groups\" target=\"_blank\">Groups</a> plugin by <a href=\"http://www.itthinx.com\" target=\"_blank\">itthinx</a>."
383
+ msgstr "Ačiū, kad naudojate <a href=\"http://www.itthinx.com/plugins/groups\" target=\"_blank\">Groups</a> papildinį, kurį sukūrė <a href=\"http://www.itthinx.com\" target=\"_blank\">itthinx</a>."
384
+
385
+ #: lib/core/class-groups-pagination.php:92
386
+ msgid "1 item"
387
+ msgid_plural "%s items"
388
+ msgstr[0] "1 elementas"
389
+ msgstr[1] "%s elementai(-ų)"
390
+
391
+ #: lib/core/class-groups-pagination.php:113
392
+ msgid "Go to the first page"
393
+ msgstr "Eiti į pirmą puslapį"
394
+
395
+ #: lib/core/class-groups-pagination.php:120
396
+ msgid "Go to the previous page"
397
+ msgstr "Eiti į paskiausią puslapį"
398
+
399
+ #: lib/core/class-groups-pagination.php:129
400
+ msgid "Current page"
401
+ msgstr "Dabartinis puslapis"
402
+
403
+ #: lib/core/class-groups-pagination.php:136
404
+ msgctxt "paging"
405
+ msgid "%1$s of %2$s"
406
+ msgstr "%1$s iš %2$s"
407
+
408
+ #: lib/core/class-groups-pagination.php:140
409
+ msgid "Go to the next page"
410
+ msgstr "Eiti į sekantį puslapį"
411
+
412
+ #: lib/core/class-groups-pagination.php:147
413
+ msgid "Go to the last page"
414
+ msgstr "Eiti į paskutinį puslapį"
415
+
416
+ #. Plugin URI of the plugin/theme
417
+ msgid "http://www.itthinx.com/plugins/groups"
418
+ msgstr "http://www.itthinx.com/plugins/groups"
419
+
420
+ #. Description of the plugin/theme
421
+ msgid "Groups provides group-based user membership management, group-based capabilities and content access control."
422
+ msgstr "Groups suteikia grupėmis paremtą vartotojų narystės valdymą, grupėmis paremtą gebų ir turinio pasiekiamumo kontrolę."
423
+
424
+ #. Author of the plugin/theme
425
+ msgid "itthinx (Karim Rahimpur)"
426
+ msgstr "itthinx (Karim Rahimpur)"
427
+
428
+ #. Author URI of the plugin/theme
429
+ msgid "http://www.itthinx.com"
430
+ msgstr "http://www.itthinx.com"
431
+
lib/core/class-groups-controller.php CHANGED
@@ -99,7 +99,7 @@ class Groups_Controller {
99
  * Loads the plugin's translations.
100
  */
101
  public static function init() {
102
- load_plugin_textdomain( GROUPS_PLUGIN_DOMAIN, null, GROUPS_PLUGIN_DIR );
103
  self::version_check();
104
  }
105
 
99
  * Loads the plugin's translations.
100
  */
101
  public static function init() {
102
+ load_plugin_textdomain( GROUPS_PLUGIN_DOMAIN, null, 'groups/languages' );
103
  self::version_check();
104
  }
105
 
lib/core/class-groups-help.php CHANGED
@@ -24,42 +24,87 @@
24
  */
25
  class Groups_Help {
26
 
 
 
 
27
  public static function init() {
28
- add_action( 'contextual_help', array( __CLASS__, 'contextual_help' ), 10, 3 );
 
 
 
 
 
 
29
  }
30
 
31
- public static function contextual_help( $contextual_help, $screen_id, $screen ) {
32
-
33
- $show_groups_help = false;
34
- $help = '<h3><a href="http://www.itthinx.com/plugins/groups" target="_blank">Groups</a></h3>';
35
- $help .= '<p>';
36
- $help .= __( 'The complete documentation is available on the <a href="http://www.itthinx.com/plugins/groups" target="_blank">Groups plugin page</a>', GROUPS_PLUGIN_DOMAIN );
37
- $help .= '</p>';
38
-
39
- switch ( $screen_id ) {
40
- case 'toplevel_page_groups-admin' :
41
- case 'groups_page_groups-admin-groups':
42
- $show_groups_help = true;
43
- $help .= '<p>' . __( 'Here you can <strong>add</strong>, <strong>edit</strong> and <strong>remove</strong> groups.', GROUPS_PLUGIN_DOMAIN ) . '</p>';
44
- break;
45
- case 'groups_page_groups-admin-options' :
46
- $show_groups_help = true;
47
- break;
48
- default:
49
  }
 
50
 
51
- $help .= '<p>';
52
- $help .= __( 'If you require <em>consulting services</em>, <em>support</em> or <em>customization</em>, you may <a href="http://www.itthinx.com/" target="_blank">contact me here</a>.', GROUPS_PLUGIN_DOMAIN );
53
- $help .= '</p>';
54
- $help .= '<p>';
55
- $help .= __( 'If you find this plugin useful, please consider making a donation:', GROUPS_PLUGIN_DOMAIN );
56
- $help .= self::donate( false, true );
57
- $help .= '</p>';
58
-
59
- if ( $show_groups_help ) {
60
- return $help;
61
- } else {
62
- return $contextual_help;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  }
64
  }
65
 
24
  */
25
  class Groups_Help {
26
 
27
+ /**
28
+ * Help setup.
29
+ */
30
  public static function init() {
31
+ add_action( 'groups_admin_menu', array( __CLASS__, 'groups_admin_menu' ) );
32
+ // @todo temporary fix for GFA <= 1.0.11 on localized installations - can be removed when all are updated
33
+ if ( defined( 'GFA_VIEWS_LIB' ) ) {
34
+ if ( file_exists( GFA_VIEWS_LIB . '/class-gfa-help.php' ) ) {
35
+ include_once( GFA_VIEWS_LIB . '/class-gfa-help.php' );
36
+ }
37
+ }
38
  }
39
 
40
+ /**
41
+ * Adds contextual help to Groups admin screens.
42
+ *
43
+ * @param array $pages admin pages
44
+ */
45
+ public static function groups_admin_menu( $pages ) {
46
+ foreach ( $pages as $page ) {
47
+ add_action( 'load-' . $page, array( __CLASS__, 'contextual_help' ) );
 
 
 
 
 
 
 
 
 
 
48
  }
49
+ }
50
 
51
+ /**
52
+ * Adds help to an admin screen.
53
+ */
54
+ public static function contextual_help() {
55
+ if ( $screen = get_current_screen() ) {
56
+ $show_groups_help = false;
57
+ $help_title = __( 'Groups', GROUPS_PLUGIN_DOMAIN );
58
+ $screen_id = $screen->base;
59
+ // The prefix of the $screen_id is translated, use only the suffix
60
+ // to identify a screen:
61
+ $ids = array(
62
+ 'groups-admin' => __( 'Groups', GROUPS_PLUGIN_DOMAIN ),
63
+ 'groups-admin-groups' => __( 'Groups', GROUPS_PLUGIN_DOMAIN ),
64
+ 'groups-admin-options' => __( 'Options', GROUPS_PLUGIN_DOMAIN ),
65
+ 'groups-admin-capabilities' => __( 'Capabilities', GROUPS_PLUGIN_DOMAIN ),
66
+ );
67
+ foreach ( $ids as $id => $title ) {
68
+ $i = strpos( $screen_id, $id );
69
+ if ( $i !== false ) {
70
+ if ( $i + strlen( $id ) == strlen( $screen_id ) ) {
71
+ $screen_id = $id;
72
+ $show_groups_help = true;
73
+ $help_title = $title;
74
+ break;
75
+ }
76
+ }
77
+ }
78
+ if ( $show_groups_help ) {
79
+ $help = '<h3><a href="http://www.itthinx.com/plugins/groups" target="_blank">'. $help_title .'</a></h3>';
80
+ $help .= '<p>';
81
+ $help .= __( 'The complete documentation is available on the <a href="http://www.itthinx.com/plugins/groups" target="_blank">Groups plugin page</a>', GROUPS_PLUGIN_DOMAIN );
82
+ $help .= '</p>';
83
+ switch ( $screen_id ) {
84
+ case 'groups-admin' :
85
+ case 'groups-admin-groups':
86
+ $help .= '<p>' . __( 'Here you can <strong>add</strong>, <strong>edit</strong> and <strong>remove</strong> groups.', GROUPS_PLUGIN_DOMAIN ) . '</p>';
87
+ break;
88
+ case 'groups-admin-options' :
89
+ case 'groups-admin-capabilities' :
90
+ break;
91
+ }
92
+ $help .= '<p>';
93
+ $help .= __( 'If you require <em>consulting services</em>, <em>support</em> or <em>customization</em>, you may <a href="http://www.itthinx.com/" target="_blank">contact me here</a>.', GROUPS_PLUGIN_DOMAIN );
94
+ $help .= '</p>';
95
+ $help .= '<p>';
96
+ $help .= __( 'If you find this plugin useful, please consider making a donation:', GROUPS_PLUGIN_DOMAIN );
97
+ $help .= self::donate( false, true );
98
+ $help .= '</p>';
99
+
100
+ $screen->add_help_tab(
101
+ array(
102
+ 'id' => $screen_id,
103
+ 'title' => $help_title,
104
+ 'content' => $help
105
+ )
106
+ );
107
+ }
108
  }
109
  }
110
 
lib/core/wp-init.php CHANGED
@@ -50,11 +50,15 @@ require_once( GROUPS_CORE_LIB . '/class-groups-options.php' );
50
  require_once( GROUPS_CORE_LIB . '/class-groups-controller.php' );
51
 
52
  // admin
53
- require_once( GROUPS_ADMIN_LIB . '/class-groups-admin.php' );
54
- require_once( GROUPS_ADMIN_LIB . '/class-groups-admin-users.php' );
 
 
55
 
56
  // help
57
- require_once( GROUPS_CORE_LIB . '/class-groups-help.php' );
 
 
58
 
59
  require_once( GROUPS_CORE_LIB . '/class-groups-capability.php' );
60
  require_once( GROUPS_CORE_LIB . '/class-groups-group.php' );
50
  require_once( GROUPS_CORE_LIB . '/class-groups-controller.php' );
51
 
52
  // admin
53
+ if ( is_admin() ) {
54
+ require_once( GROUPS_ADMIN_LIB . '/class-groups-admin.php' );
55
+ require_once( GROUPS_ADMIN_LIB . '/class-groups-admin-users.php' );
56
+ }
57
 
58
  // help
59
+ if ( is_admin() ) {
60
+ require_once( GROUPS_CORE_LIB . '/class-groups-help.php' );
61
+ }
62
 
63
  require_once( GROUPS_CORE_LIB . '/class-groups-capability.php' );
64
  require_once( GROUPS_CORE_LIB . '/class-groups-group.php' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, permission, permissions
5
  Requires at least: 3.0
6
  Tested up to: 3.3.2
7
- Stable tag: 1.2.0
8
  License: GPLv3
9
 
10
  Groups provides group-based user membership management, group-based capabilities and content access control.
@@ -95,6 +95,11 @@ Please try to solve problems there before you rate this plugin or say it doesn't
95
 
96
  [Follow @itthinx on Twitter](http://twitter.com/itthinx) for updates on this and other plugins.
97
 
 
 
 
 
 
98
  ### Introduction ###
99
 
100
  #### Content Access Control ####
@@ -281,6 +286,11 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
281
 
282
  == Changelog ==
283
 
 
 
 
 
 
284
  = 1.2.0 =
285
  * Access control is no longer restricted to the groups_read_post capability: now any capability can be used to limit access to posts so that different groups can be granted access to different sets of posts.
286
 
@@ -334,6 +344,11 @@ Some installations wouldn't work correctly, showing no capabilities and making i
334
 
335
  == Upgrade Notice ==
336
 
 
 
 
 
 
337
  = 1.2.0 =
338
  * New: Different groups can be granted access to different sets of pages or posts: Any capability - including custom capabilities - can be used to limit access.
339
 
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, permission, permissions
5
  Requires at least: 3.0
6
  Tested up to: 3.3.2
7
+ Stable tag: 1.2.1
8
  License: GPLv3
9
 
10
  Groups provides group-based user membership management, group-based capabilities and content access control.
95
 
96
  [Follow @itthinx on Twitter](http://twitter.com/itthinx) for updates on this and other plugins.
97
 
98
+ ### Translations ###
99
+
100
+ * Lithuanian translation provided by Vincent G from [Host1Free](http://www.Host1Free.com) - Many thanks for your help!
101
+
102
+
103
  ### Introduction ###
104
 
105
  #### Content Access Control ####
286
 
287
  == Changelog ==
288
 
289
+ = 1.2.1 =
290
+ * Reduced files loaded on non-admin pages.
291
+ * Added Lithuanian translation.
292
+ * Changed help to use tabs.
293
+
294
  = 1.2.0 =
295
  * Access control is no longer restricted to the groups_read_post capability: now any capability can be used to limit access to posts so that different groups can be granted access to different sets of posts.
296
 
344
 
345
  == Upgrade Notice ==
346
 
347
+ = 1.2.1 =
348
+ * Added Lithuanian translation.
349
+ * Slight performance improvement.
350
+ * Improved the way help sectiosn are handled.
351
+
352
  = 1.2.0 =
353
  * New: Different groups can be granted access to different sets of pages or posts: Any capability - including custom capabilities - can be used to limit access.
354