Document Gallery - Version 2.0.10

Version Description

  • Enhancement: Ghostscript detection should now work correctly on GoDaddy and some other hosts that don't properly setup their executables.
  • Translation: Thanks again to demur who has translated Document Gallery into Russian and Ukrainian! If you would like to help translate Document Gallery into another language, get started here!
Download this release

Release Info

Developer dan.rossiter
Plugin Icon 128x128 Document Gallery
Version 2.0.10
Comparing to
See all releases

Code changes from version 2.0.9 to 2.0.10

README.txt CHANGED
@@ -4,7 +4,7 @@ Tags: attachments, thumbnail, documents, gallery, MS office, pdf
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Requires at least: 3.6
6
  Tested up to: 3.9
7
- Stable tag: 2.0.9
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -165,18 +165,19 @@ match (OR).
165
 
166
  = Customize Appearance =
167
 
168
- By default, the document gallery will use the styles within your active theme
169
- to handle most of the appearance, but, with a little CSS knowledge, you can
170
- customize pretty much anything about how it looks. See
171
- [`style.css`](http://plugins.svn.wordpress.org/document-gallery/trunk/assets/css/style.css)
172
- for an idea of what will select different elements within the gallery display.
 
 
173
 
174
  **Example**
175
 
176
  Say I would like to include a border for the right and bottom of the document
177
  icon, but only when descriptions are shown (to delineate the icon from the
178
- description text). To do this, I would need to add the following CSS to my
179
- theme stylesheet:
180
 
181
  `.document-icon-wrapper.descriptions .document-icon{
182
  border-right: 1px solid #37824A;
@@ -189,19 +190,16 @@ would just change the first line, removing the descriptions class like so:
189
 
190
  `.document-icon-wrapper .document-icon`
191
 
192
- *NOTE: Please don't modify the plugin stylesheet directly or your changes will
193
- be lost when a new version is released.*
194
-
195
  = Developers =
196
 
197
- **Filter .document-icon Content**
198
-
199
  For those unfamiliar with content filters, [here is some
200
  documentation](http://codex.wordpress.org/Plugin_API/Filter_Reference) that you
201
  should read before continuing.
202
 
203
- Document Gallery implements its own filter, allowing developers to customize
204
- the output generated. Specifically, the `div.document-icon` content, including
 
 
205
  the div itself, the URL to the attachment, the attachment icon, and the
206
  attachment title. Hooking into the `dg_doc_icon` filter will allow you to
207
  modify any of this content before it reaches your users.
@@ -235,11 +233,85 @@ modifying the image tag, the anchor tag, or the title can be handled with this
235
  filter. Note that this function does not use the $id value it receives, which
236
  is perfectly alright.
237
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  == Frequently Asked Questions ==
239
 
240
 
241
- = Q: Why is insert thumbnail generation method enabled on one of my WordPress
242
- installs, but not on another one? =
243
 
244
  A: Document Gallery works very hard behind the scenes to ensure that it enables
245
  as much as is possible for any given server, but some servers just can't do
@@ -298,6 +370,15 @@ Note that the display inherits styling from your active theme.
298
  forum](http://wordpress.org/support/plugin/document-gallery) if you have
299
  ideas)!
300
 
 
 
 
 
 
 
 
 
 
301
  = 2.0.9 =
302
  * **Bug Fix:** The `order` attribute was documented and implemented as being `ASC`
303
  or `DEC`, but the latter should actually have been `DESC`. Documentation and
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EE5LWRLG933EN&lc=US&item_name=Document%20Gallery%20Plugin&item_number=document%2dgallery&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
  Requires at least: 3.6
6
  Tested up to: 3.9
7
+ Stable tag: 2.0.10
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
165
 
166
  = Customize Appearance =
167
 
168
+ The Default Document gallery will often fit quite well with whatever theme you
169
+ are using. But, if you want to change things, Document Gallery makes that easy.
170
+ Just navigate to `Settings -> Document Gallery` and put any custom CSS in the
171
+ provided text box.
172
+
173
+ See [`style.css`](http://plugins.svn.wordpress.org/document-gallery/trunk/assets/css/style.css)
174
+ for all of the ids and classes being used in a Document Gallery.
175
 
176
  **Example**
177
 
178
  Say I would like to include a border for the right and bottom of the document
179
  icon, but only when descriptions are shown (to delineate the icon from the
180
+ description text). To do this, I would need to use the following CSS:
 
181
 
182
  `.document-icon-wrapper.descriptions .document-icon{
183
  border-right: 1px solid #37824A;
190
 
191
  `.document-icon-wrapper .document-icon`
192
 
 
 
 
193
  = Developers =
194
 
 
 
195
  For those unfamiliar with content filters, [here is some
196
  documentation](http://codex.wordpress.org/Plugin_API/Filter_Reference) that you
197
  should read before continuing.
198
 
199
+ **Filter .document-icon Content**
200
+
201
+ Document Gallery provides a filter allowing developers to customize
202
+ the HTML returned. Specifically, the `div.document-icon` content, including
203
  the div itself, the URL to the attachment, the attachment icon, and the
204
  attachment title. Hooking into the `dg_doc_icon` filter will allow you to
205
  modify any of this content before it reaches your users.
233
  filter. Note that this function does not use the $id value it receives, which
234
  is perfectly alright.
235
 
236
+ **Filter Thumbnail Generation Methods**
237
+
238
+ Document Gallery provides the `dg_thumbers` filter, which allows developers to
239
+ add, remove, or even re-order which methods are used to generate a thumbnail
240
+ for a given attachment.
241
+
242
+ The value being filtered is an associative array with keys equal to a string
243
+ containing all supported file extensions, separated by a vertical bar (|) and values
244
+ equal to [callables](http://www.php.net/manual/en/language.types.callable.php)
245
+ which take an attachment ID and a page number as arguments.
246
+
247
+ The callable given should return false if thumbnail generation fails or
248
+ a system path to a **temporary** copy of the generated image if generation
249
+ succeeds. The caller will manipulate the file at the returned path so **do not** pass
250
+ in a file path to the original copy of anything as it will be destroyed. Also, do not
251
+ worry about any image resizing or giving the file a sensible name as the caller
252
+ of your method will resize and rename the file before returning.
253
+
254
+ The following is an example taken from the Document Gallery source (with a few
255
+ modifications for ease of readability), where we add thumbnail generation for
256
+ all Audio/Video filetypes supported by WordPress:
257
+
258
+ `function dg_filter_thumbers($thumbers) {
259
+ $av_file_types = array_merge(wp_get_audio_extensions(), wp_get_video_extensions());
260
+ $exts = implode('|', $av_file_types);
261
+ $thumbers[$exts] = 'dg_get_audio_video_thumbnail';
262
+ }
263
+ add_filter('dg_thumbers', 'dg_filter_thumbers', 10);
264
+
265
+ function dg_get_audio_video_thumbnail($ID, $pg) {
266
+ include_once ABSPATH . 'wp-admin/includes/media.php';
267
+
268
+ $attachment = get_post($ID);
269
+ $doc_path = get_attached_file($ID);
270
+
271
+ // get the file metadata
272
+ if (preg_match('#^video/#', get_post_mime_type($attachment))) {
273
+ $metadata = wp_read_video_metadata($doc_path);
274
+ }
275
+ elseif (preg_match('#^audio/#', get_post_mime_type($attachment))) {
276
+ $metadata = wp_read_audio_metadata($doc_path);
277
+ }
278
+
279
+ // unsupported mime type || no embedded image present
280
+ if(!isset($metadata) || empty($metadata['image']['data'])) {
281
+ return false;
282
+ }
283
+
284
+ $ext = 'jpg';
285
+ switch ($metadata['image']['mime']) {
286
+ case 'image/gif':
287
+ $ext = 'gif';
288
+ break;
289
+ case 'image/png':
290
+ $ext = 'png';
291
+ break;
292
+ }
293
+
294
+ $tmp_dir = untrailingslashit(get_temp_dir());
295
+ $temp_file = $tmp_dir . DIRECTORY_SEPARATOR . wp_unique_filename($tmp_dir, md5(time()) + ".$ext");
296
+
297
+ if (!$fp = @fopen($temp_file, 'wb')) {
298
+ return false;
299
+ }
300
+
301
+ if (!@fwrite($fp, $metadata['image']['data'])) {
302
+ fclose($fp);
303
+ return false;
304
+ }
305
+
306
+ fclose($fp);
307
+
308
+ return $temp_file;
309
+ }`
310
+
311
  == Frequently Asked Questions ==
312
 
313
 
314
+ = Q: Why is [insert thumbnail generation method] enabled on one of my WordPress installs, but not on another one? =
 
315
 
316
  A: Document Gallery works very hard behind the scenes to ensure that it enables
317
  as much as is possible for any given server, but some servers just can't do
370
  forum](http://wordpress.org/support/plugin/document-gallery) if you have
371
  ideas)!
372
 
373
+ = 2.0.10 =
374
+ * **Enhancement:** Ghostscript detection should now work correctly on GoDaddy
375
+ and some other hosts that don't properly setup their executables.
376
+ * **Translation:** Thanks *again* to
377
+ [demur](http://wordpress.org/support/profile/demur) who has translated
378
+ Document Gallery into Russian and Ukrainian! If you would like to help
379
+ translate Document Gallery into another language, get started
380
+ [here](http://wordpress.org/support/topic/seeking-translators)!
381
+
382
  = 2.0.9 =
383
  * **Bug Fix:** The `order` attribute was documented and implemented as being `ASC`
384
  or `DEC`, but the latter should actually have been `DESC`. Documentation and
document-gallery.php CHANGED
@@ -5,7 +5,7 @@ defined('WPINC') OR exit;
5
  Plugin Name: Document Gallery
6
  Plugin URI: http://wordpress.org/extend/plugins/document-gallery/
7
  Description: Display non-images (and images) in gallery format on a page or post with the [dg] shortcode.
8
- Version: 2.0.9
9
  Author: Dan Rossiter
10
  Author URI: http://danrossiter.org/
11
  License: GPLv2
@@ -13,7 +13,7 @@ defined('WPINC') OR exit;
13
  */
14
 
15
  // define helper paths & URLs
16
- define('DG_VERSION', '2.0.9');
17
  define('DG_URL', plugin_dir_url(__FILE__));
18
  define('DG_PATH', plugin_dir_path(__FILE__));
19
  define('DG_WPINC_PATH', ABSPATH . WPINC . '/');
5
  Plugin Name: Document Gallery
6
  Plugin URI: http://wordpress.org/extend/plugins/document-gallery/
7
  Description: Display non-images (and images) in gallery format on a page or post with the [dg] shortcode.
8
+ Version: 2.0.10
9
  Author: Dan Rossiter
10
  Author URI: http://danrossiter.org/
11
  License: GPLv2
13
  */
14
 
15
  // define helper paths & URLs
16
+ define('DG_VERSION', '2.0.10');
17
  define('DG_URL', plugin_dir_url(__FILE__));
18
  define('DG_PATH', plugin_dir_path(__FILE__));
19
  define('DG_WPINC_PATH', ABSPATH . WPINC . '/');
inc/class-thumber.php CHANGED
@@ -285,9 +285,18 @@ class DG_Thumber {
285
  return $executable;
286
  }
287
 
288
- // this is why I use Linux...
289
  $executable = exec('which gs');
290
- $executable = empty($executable) ? false : $executable;
 
 
 
 
 
 
 
 
 
291
  return $executable;
292
  }
293
 
285
  return $executable;
286
  }
287
 
288
+ // handle Linux systems
289
  $executable = exec('which gs');
290
+ if (!empty($executable)) {
291
+ return $executable;
292
+ }
293
+
294
+ // GoDaddy and others aren't setup in such a way that
295
+ // the above works so we need to fallback to a direct
296
+ // filesystem check
297
+ $executable = file_exists('/usr/bin/gs')
298
+ ? '/usr/bin/gs' : false;
299
+
300
  return $executable;
301
  }
302
 
languages/document-gallery-ru_RU.mo ADDED
Binary file
languages/document-gallery-ru_RU.po ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 Document Gallery
2
+ # This file is distributed under the same license as the Document Gallery package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Document Gallery 2.0.9\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/document-gallery\n"
7
+ "POT-Creation-Date: 2014-04-21 02:57:10+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: 2014-04-21 17:59-0600\n"
12
+ "Last-Translator: Dan Rossiter <dan.rossiters@gmail.com>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "X-Generator: Poedit 1.6.4\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "Language: ru\n"
17
+
18
+ #: admin/class-admin.php:27
19
+ msgid "Settings"
20
+ msgstr "Настройки"
21
+
22
+ #: admin/class-admin.php:37
23
+ msgid "Document Gallery Settings"
24
+ msgstr "Настройки Document Gallery"
25
+
26
+ #. Plugin Name of the plugin/theme
27
+ #: admin/class-admin.php:38
28
+ msgid "Document Gallery"
29
+ msgstr "Document Gallery"
30
+
31
+ #: admin/class-admin.php:58
32
+ msgid "Default Settings"
33
+ msgstr "Настройки По Умолчанию"
34
+
35
+ #: admin/class-admin.php:62
36
+ msgid "Thumbnail Generation"
37
+ msgstr "Создание Миниатюр"
38
+
39
+ #: admin/class-admin.php:66
40
+ msgid "Custom CSS"
41
+ msgstr "Индивидуальные CSS"
42
+
43
+ #: admin/class-admin.php:70
44
+ msgid "Advanced Thumbnail Generation"
45
+ msgstr "Настройки Создания Миниатюр для Опытных Пользователей"
46
+
47
+ #: admin/class-admin.php:82
48
+ msgid "Link to attachment page rather than to file"
49
+ msgstr "Ссылка на страницу вложения, а не на сам файл"
50
+
51
+ #: admin/class-admin.php:94
52
+ msgid "Include document descriptions"
53
+ msgstr "Включать описания документов"
54
+
55
+ #: admin/class-admin.php:106
56
+ msgid "Use auto-generated document thumbnails"
57
+ msgstr "Использовать автоматически создаваемые миниатюры документов"
58
+
59
+ #: admin/class-admin.php:118
60
+ msgid "Include image attachments in gallery"
61
+ msgstr "Включать прикрепленные к посту картинки в галерею"
62
+
63
+ #: admin/class-admin.php:130
64
+ msgid "Only look for attachments in post where [dg] is used"
65
+ msgstr "Искать вложения только в постах, где используется [dg]"
66
+
67
+ #: admin/class-admin.php:143
68
+ msgid "Ascending or descending sorting of documents"
69
+ msgstr "Сортировка документов по возрастанию или по убыванию"
70
+
71
+ #: admin/class-admin.php:156
72
+ msgid "Which field to order documents by"
73
+ msgstr "По какому полю сортировать документы"
74
+
75
+ #: admin/class-admin.php:169
76
+ msgid ""
77
+ "Whether matched documents must have all taxa_names (AND) or at least one (OR)"
78
+ msgstr ""
79
+ "Искать документы, принадлежащие всем категориям (AND) перечисленным в "
80
+ "параметре category, также возмозжно использование taxon_name, или хотя бы "
81
+ "одной (OR)"
82
+
83
+ #: admin/class-admin.php:181
84
+ msgid "Locally generate thumbnails for audio & video files."
85
+ msgstr "Локально создавать миниатюры для аудио и видео файлов."
86
+
87
+ #: admin/class-admin.php:194
88
+ msgid ""
89
+ "Use <a href=\"http://www.ghostscript.com/\" target=\"_blank\">Ghostscript</"
90
+ "a> for faster local PDF processing (compared to Imagick)."
91
+ msgstr ""
92
+ "Использовать <a href=\"http://www.ghostscript.com/\" target=\"_blank"
93
+ "\">Ghostscript</a> для более быстрой локальной обработки PDF (в сравнении с "
94
+ "Imagick)."
95
+
96
+ #: admin/class-admin.php:195
97
+ msgid ""
98
+ "Your server is not configured to run <a href=\"http://www.ghostscript.com/\" "
99
+ "target=\"_blank\">Ghostscript</a>."
100
+ msgstr ""
101
+ "Ваш сервер не настроен для использования <a href=\"http://www.ghostscript."
102
+ "com/\" target=\"_blank\">Ghostscript</a>."
103
+
104
+ #: admin/class-admin.php:209
105
+ msgid ""
106
+ "Use <a href=\"http://www.php.net/manual/en/book.imagick.php\" target=\"_blank"
107
+ "\">Imagick</a> to handle lots of filetypes locally."
108
+ msgstr ""
109
+ "Использовать <a href=\"http://www.php.net/manual/ru/book.imagick.php\" "
110
+ "target=\"_blank\">Imagick</a> для локальной обработки множества типов файлов."
111
+
112
+ #: admin/class-admin.php:210
113
+ msgid ""
114
+ "Your server is not configured to run <a href=\"http://www.php.net/manual/en/"
115
+ "book.imagick.php\" target=\"_blank\">Imagick</a>."
116
+ msgstr ""
117
+ "Ваш сервер не настроен для использования <a href=\"http://www.php.net/manual/"
118
+ "ru/book.imagick.php\" target=\"_blank\">Imagick</a>."
119
+
120
+ #: admin/class-admin.php:224
121
+ msgid ""
122
+ "Use <a href=\"https://drive.google.com/viewer\" target=\"_blank\">Google "
123
+ "Drive Viewer</a> to generate thumbnails for MS Office files and many other "
124
+ "file types remotely."
125
+ msgstr ""
126
+ "Использовать <a href=\"https://drive.google.com/viewer\" target=\"_blank"
127
+ "\">Google Drive Viewer</a> для создания миниатюр файлов MS Office и многих "
128
+ "других типов файлов удалённо."
129
+
130
+ #: admin/class-admin.php:225
131
+ msgid "Your server does not allow remote HTTP access."
132
+ msgstr "Ваш сервер не разрешает удаленные HTTP обращения."
133
+
134
+ #: admin/class-admin.php:239
135
+ msgid "Successfully auto-detected the location of Ghostscript."
136
+ msgstr "Успешно автоматически определено местонахождение Ghostscript."
137
+
138
+ #: admin/class-admin.php:240
139
+ msgid "Failed to auto-detect the location of Ghostscript."
140
+ msgstr "Не удалось автоматически определить местонахождение Ghostscript."
141
+
142
+ #: admin/class-admin.php:248
143
+ msgid ""
144
+ "The following values will be used by default in the shortcode. You can still "
145
+ "manually set each of these values in each individual shortcode."
146
+ msgstr ""
147
+ "Следующие значения будут использоваться шорткодом [dg] по умолчанию. При "
148
+ "этом вручную можно установить любые из этих значений в каждом конкретном "
149
+ "экземпляре шорткода."
150
+
151
+ #: admin/class-admin.php:255
152
+ msgid "Select which tools to use when generating thumbnails."
153
+ msgstr "Выберите, какие инструменты использовать для создании миниатюр."
154
+
155
+ #: admin/class-admin.php:261
156
+ msgid ""
157
+ "Enter custom CSS styling for use with document galleries. To see which ids "
158
+ "and classes you can style, take a look at <a href=\"%s\" target=\"_blank"
159
+ "\">style.css</a>."
160
+ msgstr ""
161
+ "Введите индивидуальные CSS стили для использования с галереями документов. "
162
+ "Чтобы увидеть, какие селекторы стоит использовать, посмотрите на <a href=\"%s"
163
+ "\" target=\"_blank\">style.css</a>."
164
+
165
+ #: admin/class-admin.php:279
166
+ msgid ""
167
+ "Unless you <em>really</em> know what you're doing, you should not touch "
168
+ "these values."
169
+ msgstr ""
170
+ "Не стоит менять этих значений, за исключением случаев когда Вы "
171
+ "<em>действительно</em> знаете что делаете."
172
+
173
+ #: admin/class-admin.php:281
174
+ msgid ""
175
+ "NOTE: <code>exec()</code> is not accessible. Ghostscript will not function."
176
+ msgstr ""
177
+ "ВНИМАНИЕ: <code>exec()</code> недоступный. Ghostscript не будет работать."
178
+
179
+ #: admin/class-admin.php:388
180
+ msgid "Invalid Ghostscript path given: "
181
+ msgstr "Задан неверный путь Ghostscript: "
182
+
183
+ #: inc/class-gallery.php:92
184
+ msgid "Generated using Document Gallery. Get yours here: "
185
+ msgstr ""
186
+ "Сгенерировано используя Document Gallery. Понравилось? Получите Вашу копию "
187
+ "здесь: "
188
+
189
+ #: inc/class-gallery.php:95
190
+ msgid "No attachments to display. How boring! :("
191
+ msgstr "Ни одного вложения для отображения. Скукотища! :("
192
+
193
+ #: inc/class-gallery.php:96
194
+ msgid "The %s parameter may only be \"%s\" or \"%s.\" You entered \"%s.\""
195
+ msgstr ""
196
+ "Параметр %s может принимать только значения \"%s\" или \"%s.\" Вы же ввели "
197
+ "\"%s.\""
198
+
199
+ #: inc/class-gallery.php:267
200
+ msgid "The following ID is invalid: "
201
+ msgid_plural "The following IDs are invalid: "
202
+ msgstr[0] "Следующий идентификатор (ID) недействительный: "
203
+ msgstr[1] "Следующие идентификаторы (IDs) недействительны: "
204
+
205
+ #: inc/class-gallery.php:333
206
+ msgid "The orderby value entered, \"%s,\" is not valid."
207
+ msgstr "Указанное значение параметра orderby, \"%s,\" недопустимо."
208
+
209
+ #: inc/class-gallery.php:475
210
+ msgid "%s is not a valid term name in %s."
211
+ msgstr "Определение %s не является допустимым значением параметра %s."
212
+
213
+ #: inc/class-image-editor-imagick.php:37
214
+ msgid "Failed to set Imagick page number"
215
+ msgstr "Не удалось установить номер страницы в Imagick"
216
+
217
+ #: inc/class-thumber.php:125
218
+ msgid "Could not open file: "
219
+ msgstr "Не удалось открыть файл: "
220
+
221
+ #: inc/class-thumber.php:130
222
+ msgid "Could not write file: "
223
+ msgstr "Не удалось записать файл: "
224
+
225
+ #: inc/class-thumber.php:166
226
+ msgid "Failed to open file in Imagick: "
227
+ msgstr "Не удалось открыть файл в Imagick: "
228
+
229
+ #: inc/class-thumber.php:176
230
+ msgid "Failed to save image in Imagick: "
231
+ msgstr "Не удалось сохранить изображение в Imagick: "
232
+
233
+ #: inc/class-thumber.php:234
234
+ msgid "Ghostscript failed: "
235
+ msgstr "Сбой в Ghostscript: "
236
+
237
+ #: inc/class-thumber.php:364
238
+ msgid "Failed to retrieve thumbnail from Google: "
239
+ msgstr "Не удалось получить от Google миниатюру: "
240
+
241
+ #: inc/class-thumber.php:644
242
+ msgid "Failed to get image editor: "
243
+ msgstr ""
244
+ "Сбой при попытке использовании графического редактора (WP_Image_Editor): "
245
+
246
+ #: inc/class-thumber.php:655
247
+ msgid "Failed to save image: "
248
+ msgstr "Не удалось сохранить изображение: "
249
+
250
+ #. Plugin URI of the plugin/theme
251
+ msgid "http://wordpress.org/extend/plugins/document-gallery/"
252
+ msgstr "http://wordpress.org/extend/plugins/document-gallery/"
253
+
254
+ #. Description of the plugin/theme
255
+ msgid ""
256
+ "Display non-images (and images) in gallery format on a page or post with the "
257
+ "[dg] shortcode."
258
+ msgstr ""
259
+ "Отображение не-изображений (а также изображений) в виде галерей на страницах "
260
+ "и в записях с помощью шорткода [dg]."
261
+
262
+ #. Author of the plugin/theme
263
+ msgid "Dan Rossiter"
264
+ msgstr "Dan Rossiter"
265
+
266
+ #. Author URI of the plugin/theme
267
+ msgid "http://danrossiter.org/"
268
+ msgstr "http://danrossiter.org/"
languages/document-gallery-uk_UA.mo ADDED
Binary file
languages/document-gallery-uk_UA.po ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 Document Gallery
2
+ # This file is distributed under the same license as the Document Gallery package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Document Gallery 2.0.9\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/document-gallery\n"
7
+ "POT-Creation-Date: 2014-04-21 02:57:10+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: 2014-04-21 17:57-0600\n"
12
+ "Last-Translator: Dan Rossiter <dan.rossiters@gmail.com>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "X-Generator: Poedit 1.6.4\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "Language: uk\n"
17
+
18
+ #: admin/class-admin.php:27
19
+ msgid "Settings"
20
+ msgstr "Параметри"
21
+
22
+ #: admin/class-admin.php:37
23
+ msgid "Document Gallery Settings"
24
+ msgstr "Параметри Document Gallery"
25
+
26
+ #. Plugin Name of the plugin/theme
27
+ #: admin/class-admin.php:38
28
+ msgid "Document Gallery"
29
+ msgstr "Document Gallery"
30
+
31
+ #: admin/class-admin.php:58
32
+ msgid "Default Settings"
33
+ msgstr "Типові Параметри"
34
+
35
+ #: admin/class-admin.php:62
36
+ msgid "Thumbnail Generation"
37
+ msgstr "Утворення Мініатюр"
38
+
39
+ #: admin/class-admin.php:66
40
+ msgid "Custom CSS"
41
+ msgstr "Особисті CSS"
42
+
43
+ #: admin/class-admin.php:70
44
+ msgid "Advanced Thumbnail Generation"
45
+ msgstr "Параметри Утворення Мініатюр для Досвідчених Користувачів"
46
+
47
+ #: admin/class-admin.php:82
48
+ msgid "Link to attachment page rather than to file"
49
+ msgstr "Посилання на сторінку прикріпленого до запису файла, а не на сам файл"
50
+
51
+ #: admin/class-admin.php:94
52
+ msgid "Include document descriptions"
53
+ msgstr "Додавати описи документів"
54
+
55
+ #: admin/class-admin.php:106
56
+ msgid "Use auto-generated document thumbnails"
57
+ msgstr "Використовувати автоматично згенеровані мініатюри документів"
58
+
59
+ #: admin/class-admin.php:118
60
+ msgid "Include image attachments in gallery"
61
+ msgstr "Включати прикріплені до посту зображення в галерею"
62
+
63
+ #: admin/class-admin.php:130
64
+ msgid "Only look for attachments in post where [dg] is used"
65
+ msgstr "Шукати прикріплені файли лише у записах, де використовується [dg]"
66
+
67
+ #: admin/class-admin.php:143
68
+ msgid "Ascending or descending sorting of documents"
69
+ msgstr "Сортування документів за зростанням або за спаданням"
70
+
71
+ #: admin/class-admin.php:156
72
+ msgid "Which field to order documents by"
73
+ msgstr "За яким полем сортувати документи"
74
+
75
+ #: admin/class-admin.php:169
76
+ msgid ""
77
+ "Whether matched documents must have all taxa_names (AND) or at least one (OR)"
78
+ msgstr ""
79
+ "Шукати документи, що належать всім категоріям (AND) перерахованим в "
80
+ "параметрі category, також можливе використання taxon_name, або хоча б однієї "
81
+ "(OR)"
82
+
83
+ #: admin/class-admin.php:181
84
+ msgid "Locally generate thumbnails for audio & video files."
85
+ msgstr "Локально утворювати мініатюри для аудіо та відео файлів."
86
+
87
+ #: admin/class-admin.php:194
88
+ msgid ""
89
+ "Use <a href=\"http://www.ghostscript.com/\" target=\"_blank\">Ghostscript</"
90
+ "a> for faster local PDF processing (compared to Imagick)."
91
+ msgstr ""
92
+ "Використовувати <a href=\"http://www.ghostscript.com/\" target=\"_blank"
93
+ "\">Ghostscript</a> для більш швидкої локальної обробки PDF (порівняно з "
94
+ "Imagick)."
95
+
96
+ #: admin/class-admin.php:195
97
+ msgid ""
98
+ "Your server is not configured to run <a href=\"http://www.ghostscript.com/\" "
99
+ "target=\"_blank\">Ghostscript</a>."
100
+ msgstr ""
101
+ "Ваш сервер не налаштований для використання <a href=\"http://www.ghostscript."
102
+ "com/\" target=\"_blank\">Ghostscript</a>."
103
+
104
+ #: admin/class-admin.php:209
105
+ msgid ""
106
+ "Use <a href=\"http://www.php.net/manual/en/book.imagick.php\" target=\"_blank"
107
+ "\">Imagick</a> to handle lots of filetypes locally."
108
+ msgstr ""
109
+ "Використовувати <a href=\"http://www.php.net/manual/en/book.imagick.php\" "
110
+ "target=\"_blank\">Imagick</a> для локальної обробки великої кількості типів "
111
+ "файлів."
112
+
113
+ #: admin/class-admin.php:210
114
+ msgid ""
115
+ "Your server is not configured to run <a href=\"http://www.php.net/manual/en/"
116
+ "book.imagick.php\" target=\"_blank\">Imagick</a>."
117
+ msgstr ""
118
+ "Ваш сервер не налаштований для використання <a href=\"http://www.php.net/"
119
+ "manual/en/book.imagick.php\" target=\"_blank\">Imagick</a>."
120
+
121
+ #: admin/class-admin.php:224
122
+ msgid ""
123
+ "Use <a href=\"https://drive.google.com/viewer\" target=\"_blank\">Google "
124
+ "Drive Viewer</a> to generate thumbnails for MS Office files and many other "
125
+ "file types remotely."
126
+ msgstr ""
127
+ "Використовувати <a href=\"https://drive.google.com/viewer\" target=\"_blank"
128
+ "\">Google Drive Viewer</a> для утворення мініатюр файлів MS Office та "
129
+ "багатьох інших типів файлів віддалено."
130
+
131
+ #: admin/class-admin.php:225
132
+ msgid "Your server does not allow remote HTTP access."
133
+ msgstr "Ваш сервер не дозволяє віддалені HTTP запити."
134
+
135
+ #: admin/class-admin.php:239
136
+ msgid "Successfully auto-detected the location of Ghostscript."
137
+ msgstr "Успішно автоматично визначено місцезнаходження Ghostscript."
138
+
139
+ #: admin/class-admin.php:240
140
+ msgid "Failed to auto-detect the location of Ghostscript."
141
+ msgstr "Не вдалося автоматично визначити місцезнаходження Ghostscript."
142
+
143
+ #: admin/class-admin.php:248
144
+ msgid ""
145
+ "The following values will be used by default in the shortcode. You can still "
146
+ "manually set each of these values in each individual shortcode."
147
+ msgstr ""
148
+ "Наступні значення будуть використовуватися шорткодом [dg] як типові. При "
149
+ "цьому вручну можна встановити будь-які з цих значень в кожному конкретному "
150
+ "екземплярі шорткоду."
151
+
152
+ #: admin/class-admin.php:255
153
+ msgid "Select which tools to use when generating thumbnails."
154
+ msgstr "Оберіть, які інструменти використовувати для утворення мініатюр."
155
+
156
+ #: admin/class-admin.php:261
157
+ msgid ""
158
+ "Enter custom CSS styling for use with document galleries. To see which ids "
159
+ "and classes you can style, take a look at <a href=\"%s\" target=\"_blank"
160
+ "\">style.css</a>."
161
+ msgstr ""
162
+ "Внесіть особисті CSS стилі для використання з галереями документів. Щоб "
163
+ "побачити, які селектори варто використовувати, зверніть увагу на <a href=\"%s"
164
+ "\" target=\"_blank\">style.css</a>."
165
+
166
+ #: admin/class-admin.php:279
167
+ msgid ""
168
+ "Unless you <em>really</em> know what you're doing, you should not touch "
169
+ "these values."
170
+ msgstr ""
171
+ "Не варто міняти цих значень, за винятком випадків коли Ви <em>насправді</em> "
172
+ "знаєте що робите."
173
+
174
+ #: admin/class-admin.php:281
175
+ msgid ""
176
+ "NOTE: <code>exec()</code> is not accessible. Ghostscript will not function."
177
+ msgstr "УВАГА: <code>exec()</code> недосяжний. Ghostscript не працюватиме."
178
+
179
+ #: admin/class-admin.php:388
180
+ msgid "Invalid Ghostscript path given: "
181
+ msgstr "Задано невірний шлях Ghostscript: "
182
+
183
+ #: inc/class-gallery.php:92
184
+ msgid "Generated using Document Gallery. Get yours here: "
185
+ msgstr ""
186
+ "Згенеровано використовуючи Document Gallery. Сподобалось? Отримайте Вашу "
187
+ "копію тут: "
188
+
189
+ #: inc/class-gallery.php:95
190
+ msgid "No attachments to display. How boring! :("
191
+ msgstr "Жодного вкладення для відображення. Нудьга! :("
192
+
193
+ #: inc/class-gallery.php:96
194
+ msgid "The %s parameter may only be \"%s\" or \"%s.\" You entered \"%s.\""
195
+ msgstr ""
196
+ "Параметр %s може приймати тільки значення \"%s\" або \"%s.\" Ви ж ввели \"%s."
197
+ "\""
198
+
199
+ #: inc/class-gallery.php:267
200
+ msgid "The following ID is invalid: "
201
+ msgid_plural "The following IDs are invalid: "
202
+ msgstr[0] "Наступний ідентифікатор (ID) недійсний: "
203
+ msgstr[1] "Наступні ідентифікатори (IDs) недійсні: "
204
+
205
+ #: inc/class-gallery.php:333
206
+ msgid "The orderby value entered, \"%s,\" is not valid."
207
+ msgstr "Задане значення параметра orderby, \"%s,\" неприпустиме."
208
+
209
+ #: inc/class-gallery.php:475
210
+ msgid "%s is not a valid term name in %s."
211
+ msgstr "%s не є припустимим значенням параметра %s."
212
+
213
+ #: inc/class-image-editor-imagick.php:37
214
+ msgid "Failed to set Imagick page number"
215
+ msgstr "Не вдалося встановити номер сторінки в Imagick"
216
+
217
+ #: inc/class-thumber.php:125
218
+ msgid "Could not open file: "
219
+ msgstr "Не вдалося відкрити файл: "
220
+
221
+ #: inc/class-thumber.php:130
222
+ msgid "Could not write file: "
223
+ msgstr "Не вдалося записати файл: "
224
+
225
+ #: inc/class-thumber.php:166
226
+ msgid "Failed to open file in Imagick: "
227
+ msgstr "Не вдалося відкрити файл в Imagick: "
228
+
229
+ #: inc/class-thumber.php:176
230
+ msgid "Failed to save image in Imagick: "
231
+ msgstr "Не вдалося зберегти зображення в Imagick: "
232
+
233
+ #: inc/class-thumber.php:234
234
+ msgid "Ghostscript failed: "
235
+ msgstr "Ghostscript вийшов із ладу: "
236
+
237
+ #: inc/class-thumber.php:364
238
+ msgid "Failed to retrieve thumbnail from Google: "
239
+ msgstr "Не вдалося отримати від Google мініатюру: "
240
+
241
+ #: inc/class-thumber.php:644
242
+ msgid "Failed to get image editor: "
243
+ msgstr ""
244
+ "Невдача при спробі використання графічного редактора (WP_Image_Editor): "
245
+
246
+ #: inc/class-thumber.php:655
247
+ msgid "Failed to save image: "
248
+ msgstr "Не вдалося зберегти зображення: "
249
+
250
+ #. Plugin URI of the plugin/theme
251
+ msgid "http://wordpress.org/extend/plugins/document-gallery/"
252
+ msgstr "http://wordpress.org/extend/plugins/document-gallery/"
253
+
254
+ #. Description of the plugin/theme
255
+ msgid ""
256
+ "Display non-images (and images) in gallery format on a page or post with the "
257
+ "[dg] shortcode."
258
+ msgstr ""
259
+ "Відображення не-зображень (а також зображень) у вигляді галерей на сторінках "
260
+ "та в записах за допомогою шорткоду [dg]."
261
+
262
+ #. Author of the plugin/theme
263
+ msgid "Dan Rossiter"
264
+ msgstr "Dan Rossiter"
265
+
266
+ #. Author URI of the plugin/theme
267
+ msgid "http://danrossiter.org/"
268
+ msgstr "http://danrossiter.org/"