NextGEN Gallery – WordPress Gallery Plugin - Version 1.5.0

Version Description

  • 18.03.2010 =
  • NEW : Support for Post thumbnail feature
  • NEW : Backup and Recover function for images (THX to Simone Fumagalli)
  • NEW : Resize images after upload (THX to Simone Fumagalli)
  • NEW : Added a JSON class for fetching galleries in a RESTful way (see xml/json.php)
  • NEW : Adding various new capabilities for user roles
  • NEW : Auto downloader for translation file
  • Changed : Rename query var from slideshow to callback for compat reason with other plugin
  • Changed : Convert widget function to new WP structure
  • Changed : Include lookup for tags into the backend search
  • Changed : Restructure addgallery and settings page to enable custom tabs
  • Bugfix : Select album preview from gallery preview pics instead random list
  • Bugfix : Keep fix dimension in edit thumbnail operation
  • Bugfix : Import meta data didn't work correct for existing images
  • Bugfix : Fix onload bug for Chrome 4 in Shutter script
  • Bugfix : Remove various PHP notices for a better world
  • Removed : Canonical link is now part of Wordpress 2.9
Download this release

Release Info

Developer alexrabe
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 1.5.0
Comparing to
See all releases

Code changes from version 1.4.3 to 1.5.0

admin/about.php CHANGED
@@ -133,7 +133,8 @@ function ngg_list_contributors() {
133
  'Kristoffer Thøring (Norwegian Translation)' => '',
134
  'Flactarus (Italian Translation)' => 'http://www.giroevago.it',
135
  'Felip Alfred Galitó i Trilla (Catalan Translation)' => 'http://www.bratac.cat',
136
- 'Luka Komac (Slovenian Translation)' => 'http://www.komac.biz'
 
137
  );
138
 
139
  ksort($contributors);
133
  'Kristoffer Thøring (Norwegian Translation)' => '',
134
  'Flactarus (Italian Translation)' => 'http://www.giroevago.it',
135
  'Felip Alfred Galitó i Trilla (Catalan Translation)' => 'http://www.bratac.cat',
136
+ 'Luka Komac (Slovenian Translation)' => 'http://www.komac.biz',
137
+ 'Dimitris Ikonomou / Nikos Mouratidis (Greek Translation)' => 'http://www.kepik.gr'
138
  );
139
 
140
  ksort($contributors);
admin/addgallery.php CHANGED
@@ -4,80 +4,138 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
4
  // sometimes a error feedback is better than a white screen
5
  @ini_set('error_reporting', E_ALL ^ E_NOTICE);
6
 
7
- function nggallery_admin_add_gallery() {
8
 
9
- global $wpdb, $nggdb, $ngg;
10
-
11
- // same as $_SERVER['REQUEST_URI'], but should work under IIS 6.0
12
- $filepath = admin_url() . 'admin.php?page=' . $_GET['page'];
13
-
14
- // check for the max image size
15
- $maxsize = nggGallery::check_memory_limit();
16
-
17
- // link for the flash file
18
- $swf_upload_link = NGGALLERY_URLPATH . 'admin/upload.php';
19
- $swf_upload_link = wp_nonce_url($swf_upload_link, 'ngg_swfupload');
20
- //flash doesn't seem to like encoded ampersands, so convert them back here
21
- $swf_upload_link = str_replace('&', '&', $swf_upload_link);
 
 
 
 
 
 
 
 
 
22
 
23
- $defaultpath = $ngg->options['gallerypath'];
24
-
25
- if ($_POST['addgallery']){
26
- check_admin_referer('ngg_addgallery');
27
- $newgallery = esc_attr( $_POST['galleryname']);
28
- if ( !empty($newgallery) )
29
- nggAdmin::create_gallery($newgallery, $defaultpath);
30
- }
31
-
32
- if ($_POST['zipupload']){
33
- check_admin_referer('ngg_addgallery');
34
- if ($_FILES['zipfile']['error'] == 0 || (!empty($_POST['zipurl'])))
35
- nggAdmin::import_zipfile( intval( $_POST['zipgalselect'] ) );
36
- else
37
- nggGallery::show_error( __('Upload failed!','nggallery') );
38
- }
39
-
40
- if ($_POST['importfolder']){
41
- check_admin_referer('ngg_addgallery');
42
- $galleryfolder = $_POST['galleryfolder'];
43
- if ( ( !empty($galleryfolder) ) AND ($defaultpath != $galleryfolder) )
44
- nggAdmin::import_gallery($galleryfolder);
45
- }
46
-
47
- if ($_POST['uploadimage']){
48
- check_admin_referer('ngg_addgallery');
49
- if ( $_FILES['imagefiles']['error'][0] == 0 )
50
- $messagetext = nggAdmin::upload_images();
51
- else
52
- nggGallery::show_error( __('Upload failed!','nggallery') );
53
- }
54
-
55
- if (isset($_POST['swf_callback'])){
56
- if ($_POST['galleryselect'] == '0' )
57
- nggGallery::show_error(__('No gallery selected !','nggallery'));
58
- else {
59
- // get the path to the gallery
60
- $galleryID = (int) $_POST['galleryselect'];
61
- $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
62
- nggAdmin::import_gallery($gallerypath);
63
- }
64
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
- if ( isset($_POST['disable_flash']) ){
67
- check_admin_referer('ngg_addgallery');
68
- $ngg->options['swfUpload'] = false;
69
- update_option('ngg_options', $ngg->options);
70
- }
71
 
72
- if ( isset($_POST['enable_flash']) ){
73
- check_admin_referer('ngg_addgallery');
74
- $ngg->options['swfUpload'] = true;
75
- update_option('ngg_options', $ngg->options);
76
- }
 
 
77
 
78
- //get all galleries (after we added new ones)
79
- $gallerylist = $nggdb->find_all_galleries('gid', 'DESC');
 
 
 
80
 
 
 
 
 
 
 
 
 
 
 
81
  ?>
82
 
83
  <?php if($ngg->options['swfUpload']) { ?>
@@ -166,135 +224,182 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
166
  });
167
  /* ]]> */
168
  </script>
169
-
170
  <div id="slider" class="wrap">
171
-
172
- <ul id="tabs">
173
- <li><a href="#addgallery"><?php _e('Add new gallery', 'nggallery') ;?></a></li>
174
- <?php if ( wpmu_enable_function('wpmuZipUpload') ) { ?>
175
- <li><a href="#zipupload"><?php _e('Upload a Zip-File', 'nggallery') ;?></a></li>
176
- <?php }
177
- if (!IS_WPMU) {?>
178
- <li><a href="#importfolder"><?php _e('Import image folder', 'nggallery') ;?></a></li>
179
- <?php } ?>
180
- <li><a href="#uploadimage"><?php _e('Upload Images', 'nggallery') ;?></a></li>
181
  </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  <!-- create gallery -->
184
- <div id="addgallery">
185
  <h2><?php _e('Add new gallery', 'nggallery') ;?></h2>
186
- <form name="addgallery" id="addgallery_form" method="POST" action="<?php echo $filepath; ?>" accept-charset="utf-8" >
187
- <?php wp_nonce_field('ngg_addgallery') ?>
188
- <table class="form-table">
189
- <tr valign="top">
190
- <th scope="row"><?php _e('New Gallery', 'nggallery') ;?>:</th>
191
- <td><input type="text" size="35" name="galleryname" value="" /><br />
192
- <?php if(!IS_WPMU) { ?>
193
- <?php _e('Create a new , empty gallery below the folder', 'nggallery') ;?> <strong><?php echo $defaultpath ?></strong><br />
194
- <?php } ?>
195
- <i>( <?php _e('Allowed characters for file and folder names are', 'nggallery') ;?>: a-z, A-Z, 0-9, -, _ )</i></td>
196
- </tr>
197
- <?php do_action('ngg_add_new_gallery_form'); ?>
198
- </table>
199
- <div class="submit"><input class="button-primary" type="submit" name= "addgallery" value="<?php _e('Add gallery', 'nggallery') ;?>"/></div>
200
- </form>
201
- </div>
202
- <?php if ( wpmu_enable_function('wpmuZipUpload')) { ?>
 
 
 
203
  <!-- zip-file operation -->
204
- <div id="zipupload">
205
  <h2><?php _e('Upload a Zip-File', 'nggallery') ;?></h2>
206
- <form name="zipupload" id="zipupload_form" method="POST" enctype="multipart/form-data" action="<?php echo $filepath.'#zipupload'; ?>" accept-charset="utf-8" >
207
- <?php wp_nonce_field('ngg_addgallery') ?>
208
- <table class="form-table">
209
- <tr valign="top">
210
- <th scope="row"><?php _e('Select Zip-File', 'nggallery') ;?>:</th>
211
- <td><input type="file" name="zipfile" id="zipfile" size="35" class="uploadform"/><br />
212
- <?php _e('Upload a zip file with images', 'nggallery') ;?></td>
213
- </tr>
214
- <?php if (function_exists('curl_init')) : ?>
215
- <tr valign="top">
216
- <th scope="row"><?php _e('or enter a Zip-File URL', 'nggallery') ;?>:</th>
217
- <td><input type="text" name="zipurl" id="zipurl" size="35" class="uploadform"/><br />
218
- <?php _e('Import a zip file with images from a url', 'nggallery') ;?></td>
219
- </tr>
220
- <?php endif; ?>
221
- <tr valign="top">
222
- <th scope="row"><?php _e('in to', 'nggallery') ;?></th>
223
- <td><select name="zipgalselect">
224
- <option value="0" ><?php _e('a new gallery', 'nggallery') ?></option>
225
- <?php
226
- foreach($gallerylist as $gallery) {
227
- if ( !nggAdmin::can_manage_this_gallery($gallery->author) )
228
- continue;
229
- $name = ( empty($gallery->title) ) ? $gallery->name : $gallery->title;
230
- echo '<option value="' . $gallery->gid . '" >' . $gallery->gid . ' - ' . $name . '</option>' . "\n";
231
- }
232
- ?>
233
- </select>
234
- <br /><?php echo $maxsize; ?>
235
- <br /><?php echo _e('Note : The upload limit on your server is ','nggallery') . "<strong>" . ini_get('upload_max_filesize') . "Byte</strong>\n"; ?>
236
- <br /><?php if ( (IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck') ) display_space_usage(); ?></td>
237
- </tr>
238
- </table>
239
- <div class="submit"><input class="button-primary" type="submit" name= "zipupload" value="<?php _e('Start upload', 'nggallery') ;?>"/></div>
240
- </form>
241
- </div>
242
- <?php }
243
- if (!IS_WPMU) {?>
244
- <!-- import folder -->
245
- <div id="importfolder">
246
- <h2><?php _e('Import image folder', 'nggallery') ;?></h2>
247
- <form name="importfolder" id="importfolder_form" method="POST" action="<?php echo $filepath.'#importfolder'; ?>" accept-charset="utf-8" >
248
- <?php wp_nonce_field('ngg_addgallery') ?>
249
- <table class="form-table">
250
- <tr valign="top">
251
- <th scope="row"><?php _e('Import from Server path:', 'nggallery') ;?></th>
252
- <td><input type="text" size="35" name="galleryfolder" value="<?php echo $defaultpath; ?>" /><br />
253
- <br /><?php echo $maxsize; ?>
254
- <?php if (SAFE_MODE) {?><br /><?php _e(' Please note : For safe-mode = ON you need to add the subfolder thumbs manually', 'nggallery') ;?><?php }; ?></td>
255
- </tr>
256
- </table>
257
- <div class="submit"><input class="button-primary" type="submit" name= "importfolder" value="<?php _e('Import folder', 'nggallery') ;?>"/></div>
258
- </form>
259
- </div>
260
- <?php } ?>
261
- <!-- upload images -->
262
- <div id="uploadimage">
263
- <h2><?php _e('Upload Images', 'nggallery') ;?></h2>
264
- <form name="uploadimage" id="uploadimage_form" method="POST" enctype="multipart/form-data" action="<?php echo $filepath.'#uploadimage'; ?>" accept-charset="utf-8" >
265
- <?php wp_nonce_field('ngg_addgallery') ?>
266
- <table class="form-table">
267
- <tr valign="top">
268
- <th scope="row"><?php _e('Upload image', 'nggallery') ;?></th>
269
- <td><span id='spanButtonPlaceholder'></span><input type="file" name="imagefiles[]" id="imagefiles" size="35" class="imagefiles"/></td>
270
- </tr>
271
- <tr valign="top">
272
- <th scope="row"><?php _e('in to', 'nggallery') ;?></th>
273
- <td><select name="galleryselect" id="galleryselect">
274
- <option value="0" ><?php _e('Choose gallery', 'nggallery') ?></option>
275
- <?php
276
- foreach($gallerylist as $gallery) {
 
 
 
 
 
 
 
277
  if ( !nggAdmin::can_manage_this_gallery($gallery->author) )
278
  continue;
279
- $name = ( empty($gallery->title) ) ? $gallery->name : $gallery->title;
280
- echo '<option value="' . $gallery->gid . '" >' . $gallery->gid . ' - ' . $name . '</option>' . "\n";
281
- } ?>
282
- </select>
283
- <br /><?php echo $maxsize; ?>
284
- <br /><?php if ((IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck')) display_space_usage(); ?></td>
285
- </tr>
286
- </table>
287
- <div class="submit">
288
- <?php if ($ngg->options['swfUpload']) { ?>
289
- <input type="submit" name="disable_flash" id="disable_flash" title="<?php _e('The batch upload requires Adobe Flash 10, disable it if you have problems','nggallery') ?>" value="<?php _e('Disable flash upload', 'nggallery') ;?>" />
290
- <?php } else { ?>
291
- <input type="submit" name="enable_flash" id="enable_flash" title="<?php _e('Upload multiple files at once by ctrl/shift-selecting in dialog','nggallery') ?>" value="<?php _e('Enable flash based upload', 'nggallery') ;?>" />
292
- <?php } ?>
293
- <input class="button-primary" type="submit" name="uploadimage" id="uploadimage_btn" value="<?php _e('Upload images', 'nggallery') ;?>" />
294
- </div>
295
- </form>
296
- </div>
297
- </div>
298
- <?php
299
- }
300
  ?>
4
  // sometimes a error feedback is better than a white screen
5
  @ini_set('error_reporting', E_ALL ^ E_NOTICE);
6
 
7
+ class nggAddGallery {
8
 
9
+ /**
10
+ * PHP4 compatibility layer for calling the PHP5 constructor.
11
+ *
12
+ */
13
+ function nggAddGallery() {
14
+ return $this->__construct();
15
+ }
16
+
17
+ /**
18
+ * nggOptions::__construct()
19
+ *
20
+ * @return void
21
+ */
22
+ function __construct() {
23
+
24
+ // same as $_SERVER['REQUEST_URI'], but should work under IIS 6.0
25
+ $this->filepath = admin_url() . 'admin.php?page=' . $_GET['page'];
26
+
27
+ //Look for POST updates
28
+ if ( !empty($_POST) )
29
+ $this->processor();
30
+ }
31
 
32
+ /**
33
+ * Perform the upload and add a new hook for plugins
34
+ *
35
+ * @return void
36
+ */
37
+ function processor() {
38
+ global $wpdb, $ngg;
39
+
40
+ $defaultpath = $ngg->options['gallerypath'];
41
+
42
+ if ($_POST['addgallery']){
43
+ check_admin_referer('ngg_addgallery');
44
+
45
+ if ( !nggGallery::current_user_can( 'NextGEN Add new gallery' ))
46
+ wp_die(__('Cheatin&#8217; uh?'));
47
+
48
+ $newgallery = esc_attr( $_POST['galleryname']);
49
+ if ( !empty($newgallery) )
50
+ nggAdmin::create_gallery($newgallery, $defaultpath);
51
+ }
52
+
53
+ if ($_POST['zipupload']){
54
+ check_admin_referer('ngg_addgallery');
55
+
56
+ if ( !nggGallery::current_user_can( 'NextGEN Upload a zip' ))
57
+ wp_die(__('Cheatin&#8217; uh?'));
58
+
59
+ if ($_FILES['zipfile']['error'] == 0 || (!empty($_POST['zipurl'])))
60
+ nggAdmin::import_zipfile( intval( $_POST['zipgalselect'] ) );
61
+ else
62
+ nggGallery::show_error( __('Upload failed!','nggallery') );
63
+ }
64
+
65
+ if ($_POST['importfolder']){
66
+ check_admin_referer('ngg_addgallery');
67
+
68
+ if ( !nggGallery::current_user_can( 'NextGEN Import image folder' ))
69
+ wp_die(__('Cheatin&#8217; uh?'));
70
+
71
+ $galleryfolder = $_POST['galleryfolder'];
72
+ if ( ( !empty($galleryfolder) ) AND ($defaultpath != $galleryfolder) )
73
+ nggAdmin::import_gallery($galleryfolder);
74
+ }
75
+
76
+ if ($_POST['uploadimage']){
77
+ check_admin_referer('ngg_addgallery');
78
+
79
+ if ( !nggGallery::current_user_can( 'NextGEN Upload in all galleries' ))
80
+ wp_die(__('Cheatin&#8217; uh?'));
81
+
82
+ if ( $_FILES['imagefiles']['error'][0] == 0 )
83
+ $messagetext = nggAdmin::upload_images();
84
+ else
85
+ nggGallery::show_error( __('Upload failed! ' . nggAdmin::decode_upload_error( $_FILES['imagefiles']['error'][0]),'nggallery') );
86
+ }
87
+
88
+ if (isset($_POST['swf_callback'])){
89
+ if ($_POST['galleryselect'] == '0' )
90
+ nggGallery::show_error(__('No gallery selected !','nggallery'));
91
+ else {
92
+ // get the path to the gallery
93
+ $galleryID = (int) $_POST['galleryselect'];
94
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
95
+ nggAdmin::import_gallery($gallerypath);
96
+ }
97
+ }
98
+
99
+ if ( isset($_POST['disable_flash']) ){
100
+ check_admin_referer('ngg_addgallery');
101
+ $ngg->options['swfUpload'] = false;
102
+ update_option('ngg_options', $ngg->options);
103
+ }
104
+
105
+ if ( isset($_POST['enable_flash']) ){
106
+ check_admin_referer('ngg_addgallery');
107
+ $ngg->options['swfUpload'] = true;
108
+ update_option('ngg_options', $ngg->options);
109
+ }
110
 
111
+ do_action( 'ngg_update_addgallery_page' );
112
+
113
+ }
 
 
114
 
115
+ /**
116
+ * Render the page content
117
+ *
118
+ * @return void
119
+ */
120
+ function controller() {
121
+ global $ngg, $nggdb;
122
 
123
+ // get list of tabs
124
+ $tabs = $this->tabs_order();
125
+
126
+ // check for the max image size
127
+ $this->maxsize = nggGallery::check_memory_limit();
128
 
129
+ //get all galleries (after we added new ones)
130
+ $this->gallerylist = $nggdb->find_all_galleries('gid', 'DESC');
131
+
132
+ $this->defaultpath = $ngg->options['gallerypath'];
133
+
134
+ // link for the flash file
135
+ $swf_upload_link = NGGALLERY_URLPATH . 'admin/upload.php';
136
+ $swf_upload_link = wp_nonce_url($swf_upload_link, 'ngg_swfupload');
137
+ //flash doesn't seem to like encoded ampersands, so convert them back here
138
+ $swf_upload_link = str_replace('&#038;', '&', $swf_upload_link);
139
  ?>
140
 
141
  <?php if($ngg->options['swfUpload']) { ?>
224
  });
225
  /* ]]> */
226
  </script>
227
+
228
  <div id="slider" class="wrap">
229
+ <ul id="tabs">
230
+ <?php
231
+ foreach($tabs as $tab_key => $tab_name) {
232
+ echo "\n\t\t<li><a href='#$tab_key'>$tab_name</a></li>";
233
+ }
234
+ ?>
 
 
 
 
235
  </ul>
236
+ <?php
237
+ foreach($tabs as $tab_key => $tab_name) {
238
+ echo "\n\t<div id='$tab_key'>\n";
239
+ // Looks for the internal class function, otherwise enable a hook for plugins
240
+ if ( method_exists( 'nggAddGallery', "tab_$tab_key" ))
241
+ call_user_func( array( &$this , "tab_$tab_key") );
242
+ else
243
+ do_action( 'ngg_tab_content_' . $tab_key );
244
+ echo "\n\t</div>";
245
+ }
246
+ ?>
247
+ </div>
248
+ <?php
249
+
250
+ }
251
 
252
+ /**
253
+ * Create array for tabs and add a filter for other plugins to inject more tabs
254
+ *
255
+ * @return array $tabs
256
+ */
257
+ function tabs_order() {
258
+
259
+ $tabs = array();
260
+
261
+ if ( nggGallery::current_user_can( 'NextGEN Add new gallery' ))
262
+ $tabs['addgallery'] = __('Add new gallery', 'nggallery');
263
+
264
+ if ( wpmu_enable_function('wpmuZipUpload') && nggGallery::current_user_can( 'NextGEN Upload a zip' ) )
265
+ $tabs['zipupload'] = __('Upload a Zip-File', 'nggallery');
266
+
267
+ if (!IS_WPMU && nggGallery::current_user_can( 'NextGEN Import image folder' ) )
268
+ $tabs['importfolder'] = __('Import image folder', 'nggallery');
269
+
270
+ $tabs['uploadimage'] = __( 'Upload Images', 'nggallery' );
271
+
272
+ $tabs = apply_filters('ngg_addgallery_tabs', $tabs);
273
+
274
+ return $tabs;
275
+
276
+ }
277
+
278
+ function tab_addgallery() {
279
+ ?>
280
  <!-- create gallery -->
 
281
  <h2><?php _e('Add new gallery', 'nggallery') ;?></h2>
282
+ <form name="addgallery" id="addgallery_form" method="POST" action="<?php echo $this->filepath; ?>" accept-charset="utf-8" >
283
+ <?php wp_nonce_field('ngg_addgallery') ?>
284
+ <table class="form-table">
285
+ <tr valign="top">
286
+ <th scope="row"><?php _e('New Gallery', 'nggallery') ;?>:</th>
287
+ <td><input type="text" size="35" name="galleryname" value="" /><br />
288
+ <?php if(!IS_WPMU) { ?>
289
+ <?php _e('Create a new , empty gallery below the folder', 'nggallery') ;?> <strong><?php echo $this->defaultpath ?></strong><br />
290
+ <?php } ?>
291
+ <i>( <?php _e('Allowed characters for file and folder names are', 'nggallery') ;?>: a-z, A-Z, 0-9, -, _ )</i></td>
292
+ </tr>
293
+ <?php do_action('ngg_add_new_gallery_form'); ?>
294
+ </table>
295
+ <div class="submit"><input class="button-primary" type="submit" name= "addgallery" value="<?php _e('Add gallery', 'nggallery') ;?>"/></div>
296
+ </form>
297
+ <?php
298
+ }
299
+
300
+ function tab_zipupload() {
301
+ ?>
302
  <!-- zip-file operation -->
 
303
  <h2><?php _e('Upload a Zip-File', 'nggallery') ;?></h2>
304
+ <form name="zipupload" id="zipupload_form" method="POST" enctype="multipart/form-data" action="<?php echo $this->filepath.'#zipupload'; ?>" accept-charset="utf-8" >
305
+ <?php wp_nonce_field('ngg_addgallery') ?>
306
+ <table class="form-table">
307
+ <tr valign="top">
308
+ <th scope="row"><?php _e('Select Zip-File', 'nggallery') ;?>:</th>
309
+ <td><input type="file" name="zipfile" id="zipfile" size="35" class="uploadform"/><br />
310
+ <?php _e('Upload a zip file with images', 'nggallery') ;?></td>
311
+ </tr>
312
+ <?php if (function_exists('curl_init')) : ?>
313
+ <tr valign="top">
314
+ <th scope="row"><?php _e('or enter a Zip-File URL', 'nggallery') ;?>:</th>
315
+ <td><input type="text" name="zipurl" id="zipurl" size="35" class="uploadform"/><br />
316
+ <?php _e('Import a zip file with images from a url', 'nggallery') ;?></td>
317
+ </tr>
318
+ <?php endif; ?>
319
+ <tr valign="top">
320
+ <th scope="row"><?php _e('in to', 'nggallery') ;?></th>
321
+ <td><select name="zipgalselect">
322
+ <option value="0" ><?php _e('a new gallery', 'nggallery') ?></option>
323
+ <?php
324
+ foreach($this->gallerylist as $gallery) {
325
+ if ( !nggAdmin::can_manage_this_gallery($gallery->author) )
326
+ continue;
327
+ $name = ( empty($gallery->title) ) ? $gallery->name : $gallery->title;
328
+ echo '<option value="' . $gallery->gid . '" >' . $gallery->gid . ' - ' . $name . '</option>' . "\n";
329
+ }
330
+ ?>
331
+ </select>
332
+ <br /><?php echo $this->maxsize; ?>
333
+ <br /><?php echo _e('Note : The upload limit on your server is ','nggallery') . "<strong>" . ini_get('upload_max_filesize') . "Byte</strong>\n"; ?>
334
+ <br /><?php if ( (IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck') ) display_space_usage(); ?></td>
335
+ </tr>
336
+ </table>
337
+ <div class="submit"><input class="button-primary" type="submit" name= "zipupload" value="<?php _e('Start upload', 'nggallery') ;?>"/></div>
338
+ </form>
339
+ <?php
340
+ }
341
+
342
+ function tab_importfolder() {
343
+ ?>
344
+ <!-- import folder -->
345
+ <h2><?php _e('Import image folder', 'nggallery') ;?></h2>
346
+ <form name="importfolder" id="importfolder_form" method="POST" action="<?php echo $this->filepath.'#importfolder'; ?>" accept-charset="utf-8" >
347
+ <?php wp_nonce_field('ngg_addgallery') ?>
348
+ <table class="form-table">
349
+ <tr valign="top">
350
+ <th scope="row"><?php _e('Import from Server path:', 'nggallery') ;?></th>
351
+ <td><input type="text" size="35" name="galleryfolder" value="<?php echo $this->defaultpath; ?>" /><br />
352
+ <br /><?php echo $this->maxsize; ?>
353
+ <?php if (SAFE_MODE) {?><br /><?php _e(' Please note : For safe-mode = ON you need to add the subfolder thumbs manually', 'nggallery') ;?><?php }; ?></td>
354
+ </tr>
355
+ </table>
356
+ <div class="submit"><input class="button-primary" type="submit" name= "importfolder" value="<?php _e('Import folder', 'nggallery') ;?>"/></div>
357
+ </form>
358
+ <?php
359
+ }
360
+
361
+ function tab_uploadimage() {
362
+ global $ngg;
363
+ ?>
364
+ <!-- upload images -->
365
+ <h2><?php _e('Upload Images', 'nggallery') ;?></h2>
366
+ <form name="uploadimage" id="uploadimage_form" method="POST" enctype="multipart/form-data" action="<?php echo $this->filepath.'#uploadimage'; ?>" accept-charset="utf-8" >
367
+ <?php wp_nonce_field('ngg_addgallery') ?>
368
+ <table class="form-table">
369
+ <tr valign="top">
370
+ <th scope="row"><?php _e('Upload image', 'nggallery') ;?></th>
371
+ <td><span id='spanButtonPlaceholder'></span><input type="file" name="imagefiles[]" id="imagefiles" size="35" class="imagefiles"/></td>
372
+ </tr>
373
+ <tr valign="top">
374
+ <th scope="row"><?php _e('in to', 'nggallery') ;?></th>
375
+ <td><select name="galleryselect" id="galleryselect">
376
+ <option value="0" ><?php _e('Choose gallery', 'nggallery') ?></option>
377
+ <?php
378
+ foreach($this->gallerylist as $gallery) {
379
+
380
+ //special case : we check if a user has this cap, then we override the second cap check
381
+ if ( !current_user_can( 'NextGEN Upload in all galleries' ) )
382
  if ( !nggAdmin::can_manage_this_gallery($gallery->author) )
383
  continue;
384
+
385
+ $name = ( empty($gallery->title) ) ? $gallery->name : $gallery->title;
386
+ echo '<option value="' . $gallery->gid . '" >' . $gallery->gid . ' - ' . $name . '</option>' . "\n";
387
+ } ?>
388
+ </select>
389
+ <br /><?php echo $this->maxsize; ?>
390
+ <br /><?php if ((IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck')) display_space_usage(); ?></td>
391
+ </tr>
392
+ </table>
393
+ <div class="submit">
394
+ <?php if ($ngg->options['swfUpload']) { ?>
395
+ <input type="submit" name="disable_flash" id="disable_flash" title="<?php _e('The batch upload requires Adobe Flash 10, disable it if you have problems','nggallery') ?>" value="<?php _e('Disable flash upload', 'nggallery') ;?>" />
396
+ <?php } else { ?>
397
+ <input type="submit" name="enable_flash" id="enable_flash" title="<?php _e('Upload multiple files at once by ctrl/shift-selecting in dialog','nggallery') ?>" value="<?php _e('Enable flash based upload', 'nggallery') ;?>" />
398
+ <?php } ?>
399
+ <input class="button-primary" type="submit" name="uploadimage" id="uploadimage_btn" value="<?php _e('Upload images', 'nggallery') ;?>" />
400
+ </div>
401
+ </form>
402
+ <?php
403
+ }
404
+ }
405
  ?>
admin/admin.php CHANGED
@@ -28,21 +28,21 @@ class nggAdminPanel{
28
  // integrate the menu
29
  function add_menu() {
30
 
31
- add_menu_page( __ngettext( 'Gallery', 'Galleries', 1, 'nggallery' ), __ngettext( 'Gallery', 'Galleries', 1, 'nggallery' ), 'NextGEN Gallery overview', NGGFOLDER, array (&$this, 'show_menu'), NGGALLERY_URLPATH .'admin/images/nextgen.png' );
32
  add_submenu_page( NGGFOLDER , __('Overview', 'nggallery'), __('Overview', 'nggallery'), 'NextGEN Gallery overview', NGGFOLDER, array (&$this, 'show_menu'));
33
  add_submenu_page( NGGFOLDER , __('Add Gallery / Images', 'nggallery'), __('Add Gallery / Images', 'nggallery'), 'NextGEN Upload images', 'nggallery-add-gallery', array (&$this, 'show_menu'));
34
  add_submenu_page( NGGFOLDER , __('Manage Gallery', 'nggallery'), __('Manage Gallery', 'nggallery'), 'NextGEN Manage gallery', 'nggallery-manage-gallery', array (&$this, 'show_menu'));
35
- add_submenu_page( NGGFOLDER , __ngettext( 'Album', 'Albums', 1, 'nggallery' ), __ngettext( 'Album', 'Albums', 1, 'nggallery' ), 'NextGEN Edit album', 'nggallery-manage-album', array (&$this, 'show_menu'));
36
  add_submenu_page( NGGFOLDER , __('Tags', 'nggallery'), __('Tags', 'nggallery'), 'NextGEN Manage tags', 'nggallery-tags', array (&$this, 'show_menu'));
37
  add_submenu_page( NGGFOLDER , __('Options', 'nggallery'), __('Options', 'nggallery'), 'NextGEN Change options', 'nggallery-options', array (&$this, 'show_menu'));
38
  if (wpmu_enable_function('wpmuStyle'))
39
  add_submenu_page( NGGFOLDER , __('Style', 'nggallery'), __('Style', 'nggallery'), 'NextGEN Change style', 'nggallery-style', array (&$this, 'show_menu'));
40
- add_submenu_page( NGGFOLDER , __('Setup Gallery', 'nggallery'), __('Setup', 'nggallery'), 'activate_plugins', 'nggallery-setup', array (&$this, 'show_menu'));
41
  if (wpmu_enable_function('wpmuRoles'))
42
  add_submenu_page( NGGFOLDER , __('Roles', 'nggallery'), __('Roles', 'nggallery'), 'activate_plugins', 'nggallery-roles', array (&$this, 'show_menu'));
43
  add_submenu_page( NGGFOLDER , __('About this Gallery', 'nggallery'), __('About', 'nggallery'), 'NextGEN Gallery overview', 'nggallery-about', array (&$this, 'show_menu'));
44
  if ( wpmu_site_admin() )
45
  add_submenu_page( 'wpmu-admin.php' , __('NextGEN Gallery', 'nggallery'), __('NextGEN Gallery', 'nggallery'), 'activate_plugins', 'nggallery-wpmu', array (&$this, 'show_menu'));
 
46
 
47
  //register the column fields
48
  $this->register_columns();
@@ -106,7 +106,8 @@ class nggAdminPanel{
106
  case "nggallery-add-gallery" :
107
  include_once ( dirname (__FILE__) . '/functions.php' ); // admin functions
108
  include_once ( dirname (__FILE__) . '/addgallery.php' ); // nggallery_admin_add_gallery
109
- nggallery_admin_add_gallery();
 
110
  break;
111
  case "nggallery-manage-gallery" :
112
  include_once ( dirname (__FILE__) . '/functions.php' ); // admin functions
@@ -124,7 +125,8 @@ class nggAdminPanel{
124
  break;
125
  case "nggallery-options" :
126
  include_once ( dirname (__FILE__) . '/settings.php' ); // nggallery_admin_options
127
- nggallery_admin_options();
 
128
  break;
129
  case "nggallery-tags" :
130
  include_once ( dirname (__FILE__) . '/tags.php' ); // nggallery_admin_tags
@@ -255,7 +257,11 @@ class nggAdminPanel{
255
  }
256
 
257
  function show_help($help, $screen) {
258
-
 
 
 
 
259
  $link = '';
260
  // menu title is localized...
261
  $i18n = strtolower ( _n( 'Gallery', 'Galleries', 1, 'nggallery' ) );
@@ -367,7 +373,7 @@ class nggAdminPanel{
367
  * @return array of the content
368
  */
369
  function get_remote_array($url) {
370
- if ( function_exists(wp_remote_request) ) {
371
 
372
  $options = array();
373
  $options['headers'] = array(
@@ -471,7 +477,7 @@ if ( !class_exists( "CheckPlugin" ) ) {
471
  $check_intervall = time() + $this->period;
472
  update_option( $this->name . '_next_update', $check_intervall );
473
 
474
- if ( function_exists(wp_remote_request) ) {
475
 
476
  $options = array();
477
  $options['headers'] = array(
28
  // integrate the menu
29
  function add_menu() {
30
 
31
+ add_menu_page( _n( 'Gallery', 'Galleries', 1, 'nggallery' ), _n( 'Gallery', 'Galleries', 1, 'nggallery' ), 'NextGEN Gallery overview', NGGFOLDER, array (&$this, 'show_menu'), NGGALLERY_URLPATH .'admin/images/nextgen.png' );
32
  add_submenu_page( NGGFOLDER , __('Overview', 'nggallery'), __('Overview', 'nggallery'), 'NextGEN Gallery overview', NGGFOLDER, array (&$this, 'show_menu'));
33
  add_submenu_page( NGGFOLDER , __('Add Gallery / Images', 'nggallery'), __('Add Gallery / Images', 'nggallery'), 'NextGEN Upload images', 'nggallery-add-gallery', array (&$this, 'show_menu'));
34
  add_submenu_page( NGGFOLDER , __('Manage Gallery', 'nggallery'), __('Manage Gallery', 'nggallery'), 'NextGEN Manage gallery', 'nggallery-manage-gallery', array (&$this, 'show_menu'));
35
+ add_submenu_page( NGGFOLDER , _n( 'Album', 'Albums', 1, 'nggallery' ), _n( 'Album', 'Albums', 1, 'nggallery' ), 'NextGEN Edit album', 'nggallery-manage-album', array (&$this, 'show_menu'));
36
  add_submenu_page( NGGFOLDER , __('Tags', 'nggallery'), __('Tags', 'nggallery'), 'NextGEN Manage tags', 'nggallery-tags', array (&$this, 'show_menu'));
37
  add_submenu_page( NGGFOLDER , __('Options', 'nggallery'), __('Options', 'nggallery'), 'NextGEN Change options', 'nggallery-options', array (&$this, 'show_menu'));
38
  if (wpmu_enable_function('wpmuStyle'))
39
  add_submenu_page( NGGFOLDER , __('Style', 'nggallery'), __('Style', 'nggallery'), 'NextGEN Change style', 'nggallery-style', array (&$this, 'show_menu'));
 
40
  if (wpmu_enable_function('wpmuRoles'))
41
  add_submenu_page( NGGFOLDER , __('Roles', 'nggallery'), __('Roles', 'nggallery'), 'activate_plugins', 'nggallery-roles', array (&$this, 'show_menu'));
42
  add_submenu_page( NGGFOLDER , __('About this Gallery', 'nggallery'), __('About', 'nggallery'), 'NextGEN Gallery overview', 'nggallery-about', array (&$this, 'show_menu'));
43
  if ( wpmu_site_admin() )
44
  add_submenu_page( 'wpmu-admin.php' , __('NextGEN Gallery', 'nggallery'), __('NextGEN Gallery', 'nggallery'), 'activate_plugins', 'nggallery-wpmu', array (&$this, 'show_menu'));
45
+ add_submenu_page( NGGFOLDER , __('Reset / Uninstall', 'nggallery'), __('Reset / Uninstall', 'nggallery'), 'activate_plugins', 'nggallery-setup', array (&$this, 'show_menu'));
46
 
47
  //register the column fields
48
  $this->register_columns();
106
  case "nggallery-add-gallery" :
107
  include_once ( dirname (__FILE__) . '/functions.php' ); // admin functions
108
  include_once ( dirname (__FILE__) . '/addgallery.php' ); // nggallery_admin_add_gallery
109
+ $ngg->addgallery_page = new nggAddGallery ();
110
+ $ngg->addgallery_page->controller();
111
  break;
112
  case "nggallery-manage-gallery" :
113
  include_once ( dirname (__FILE__) . '/functions.php' ); // admin functions
125
  break;
126
  case "nggallery-options" :
127
  include_once ( dirname (__FILE__) . '/settings.php' ); // nggallery_admin_options
128
+ $ngg->option_page = new nggOptions ();
129
+ $ngg->option_page->controller();
130
  break;
131
  case "nggallery-tags" :
132
  include_once ( dirname (__FILE__) . '/tags.php' ); // nggallery_admin_tags
257
  }
258
 
259
  function show_help($help, $screen) {
260
+
261
+ // since WP3.0 it's an object
262
+ if ( is_object($screen) )
263
+ $screen = $screen->id;
264
+
265
  $link = '';
266
  // menu title is localized...
267
  $i18n = strtolower ( _n( 'Gallery', 'Galleries', 1, 'nggallery' ) );
373
  * @return array of the content
374
  */
375
  function get_remote_array($url) {
376
+ if ( function_exists('wp_remote_request') ) {
377
 
378
  $options = array();
379
  $options['headers'] = array(
477
  $check_intervall = time() + $this->period;
478
  update_option( $this->name . '_next_update', $check_intervall );
479
 
480
+ if ( function_exists('wp_remote_request') ) {
481
 
482
  $options = array();
483
  $options['headers'] = array(
admin/ajax.php CHANGED
@@ -49,6 +49,9 @@ function ngg_ajax_operation() {
49
  case 'set_watermark' :
50
  $result = nggAdmin::set_watermark($picture);
51
  break;
 
 
 
52
  case 'import_metadata' :
53
  $result = nggAdmin::import_MetaData( $id );
54
  break;
@@ -72,6 +75,8 @@ add_action('wp_ajax_createNewThumb', 'createNewThumb');
72
 
73
  function createNewThumb() {
74
 
 
 
75
  // check for correct capability
76
  if ( !is_user_logged_in() )
77
  die('-1');
@@ -80,11 +85,8 @@ function createNewThumb() {
80
  if ( !current_user_can('NextGEN Manage gallery') )
81
  die('-1');
82
 
83
- require_once( dirname( dirname(__FILE__) ) . '/ngg-config.php');
84
  include_once( nggGallery::graphic_library() );
85
-
86
- $ngg_options=get_option('ngg_options');
87
-
88
  $id = (int) $_POST['id'];
89
  $picture = nggdb::find_image( $id );
90
 
@@ -96,16 +98,28 @@ function createNewThumb() {
96
  $thumb = new ngg_Thumbnail($picture->imagePath, TRUE);
97
 
98
  $thumb->crop($x, $y, $w, $h);
99
-
100
- if ($ngg_options['thumbfix']) {
 
 
101
  if ($thumb->currentDimensions['height'] > $thumb->currentDimensions['width']) {
102
- $thumb->resize($ngg_options['thumbwidth'], 0);
 
 
 
 
103
  } else {
104
- $thumb->resize(0, $ngg_options['thumbheight']);
 
 
 
 
 
105
  }
 
106
  } else {
107
- $thumb->resize($ngg_options['thumbwidth'], $ngg_options['thumbheight'], $ngg_options['thumbResampleMode']);
108
- }
109
 
110
  if ( $thumb->save($picture->thumbPath, 100)) {
111
 
@@ -173,4 +187,38 @@ function ngg_rotateImage() {
173
  header('HTTP/1.1 500 Internal Server Error');
174
  die( $result );
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  }
49
  case 'set_watermark' :
50
  $result = nggAdmin::set_watermark($picture);
51
  break;
52
+ case 'recover_image' :
53
+ $result = nggAdmin::recover_image($picture);
54
+ break;
55
  case 'import_metadata' :
56
  $result = nggAdmin::import_MetaData( $id );
57
  break;
75
 
76
  function createNewThumb() {
77
 
78
+ global $ngg;
79
+
80
  // check for correct capability
81
  if ( !is_user_logged_in() )
82
  die('-1');
85
  if ( !current_user_can('NextGEN Manage gallery') )
86
  die('-1');
87
 
 
88
  include_once( nggGallery::graphic_library() );
89
+
 
 
90
  $id = (int) $_POST['id'];
91
  $picture = nggdb::find_image( $id );
92
 
98
  $thumb = new ngg_Thumbnail($picture->imagePath, TRUE);
99
 
100
  $thumb->crop($x, $y, $w, $h);
101
+
102
+ // Note : the routine is a bit different to create_thumbnail(), due to rounding it's resized in the other way
103
+ if ($ngg->options['thumbfix']) {
104
+ // check for portrait format
105
  if ($thumb->currentDimensions['height'] > $thumb->currentDimensions['width']) {
106
+ // first resize to the wanted height, here changed to create_thumbnail()
107
+ $thumb->resize(0, $ngg->options['thumbheight']);
108
+ // get optimal y startpos
109
+ $ypos = ($thumb->currentDimensions['height'] - $ngg->options['thumbheight']) / 2;
110
+ $thumb->crop(0, $ypos, $ngg->options['thumbwidth'],$ngg->options['thumbheight']);
111
  } else {
112
+ // first resize to the wanted width, here changed to create_thumbnail()
113
+ $thumb->resize($ngg->options['thumbwidth'], 0);
114
+ //
115
+ // get optimal x startpos
116
+ $xpos = ($thumb->currentDimensions['width'] - $ngg->options['thumbwidth']) / 2;
117
+ $thumb->crop($xpos, 0, $ngg->options['thumbwidth'],$ngg->options['thumbheight']);
118
  }
119
+ //this create a thumbnail but keep ratio settings
120
  } else {
121
+ $thumb->resize($ngg->options['thumbwidth'],$ngg->options['thumbheight']);
122
+ }
123
 
124
  if ( $thumb->save($picture->thumbPath, 100)) {
125
 
187
  header('HTTP/1.1 500 Internal Server Error');
188
  die( $result );
189
 
190
+ }
191
+
192
+ add_action('wp_ajax_ngg_dashboard', 'ngg_ajax_dashboard');
193
+ function ngg_ajax_dashboard() {
194
+
195
+ require_once( dirname( dirname(__FILE__) ) . '/admin/admin.php');
196
+ require_once( dirname( dirname(__FILE__) ) . '/admin/overview.php');
197
+
198
+ if ( !current_user_can('NextGEN Gallery overview') )
199
+ die('-1');
200
+
201
+ @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
202
+ @header( 'X-Content-Type-Options: nosniff' );
203
+
204
+ switch ( $_GET['jax'] ) {
205
+
206
+ case 'ngg_lastdonators' :
207
+ ngg_overview_donators();
208
+ break;
209
+
210
+ case 'dashboard_primary' :
211
+ ngg_overview_news();
212
+ break;
213
+
214
+ case 'ngg_locale' :
215
+ ngg_locale();
216
+ break;
217
+
218
+ case 'dashboard_plugins' :
219
+ ngg_related_plugins();
220
+ break;
221
+
222
+ }
223
+ die();
224
  }
admin/album.php CHANGED
@@ -91,6 +91,10 @@ class nggManageAlbum {
91
  check_admin_referer('ngg_album');
92
 
93
  if ( isset($_POST['add']) && isset ($_POST['newalbum']) ) {
 
 
 
 
94
  $newalbum = esc_attr($_POST['newalbum']);
95
  $result = $wpdb->query("INSERT INTO $wpdb->nggalbum (name, sortorder) VALUES ('$newalbum','0')");
96
  $this->currentID = (int) $wpdb->insert_id;
@@ -100,7 +104,9 @@ class nggManageAlbum {
100
  }
101
 
102
  if ( isset($_POST['update']) && ($this->currentID > 0) ) {
103
-
 
 
104
  // get variable galleryContainer
105
  parse_str($_POST['sortorder']);
106
  if (is_array($gid)){
@@ -114,7 +120,10 @@ class nggManageAlbum {
114
  }
115
 
116
  if ( isset($_POST['delete']) ) {
117
-
 
 
 
118
  $result = nggdb::delete_album( $this->currentID );
119
  if ($result)
120
  nggGallery::show_message(__('Album deleted','nggallery'));
@@ -127,6 +136,9 @@ class nggManageAlbum {
127
 
128
  check_admin_referer('ngg_thickbox_form');
129
 
 
 
 
130
  $name = esc_attr( $_POST['album_name'] );
131
  $desc = esc_attr( $_POST['album_desc'] );
132
  $prev = (int) $_POST['previewpic'];
@@ -265,12 +277,18 @@ function showDialog() {
265
  </select>
266
  <?php if ($this->currentID > 0){ ?>
267
  <input class="button-primary" type="submit" name="update" value="<?php _e('Update', 'nggallery'); ?>"/>
 
268
  <input class="button-secondary" type="submit" name="showThickbox" value="<?php _e( 'Edit album', 'nggallery'); ?>" onclick="showDialog(); return false;" />
 
 
269
  <input class="button-secondary action "type="submit" name="delete" value="<?php _e('Delete', 'nggallery'); ?>" onclick="javascript:check=confirm('<?php _e('Delete album ?','nggallery'); ?>');if(check==false) return false;"/>
 
270
  <?php } else { ?>
 
271
  <span><?php _e('Add new album', 'nggallery'); ?>&nbsp;</span>
272
  <input class="search-input" id="newalbum" name="newalbum" type="text" value="" />
273
  <input class="button-secondary action" type="submit" name="add" value="<?php _e('Add', 'nggallery'); ?>"/>
 
274
  <?php } ?>
275
  </div>
276
  </div>
@@ -317,7 +335,7 @@ function showDialog() {
317
 
318
  if( is_array( $this->galleries ) ) {
319
  //get the array of galleries
320
- $sort_array = (array) $this->albums[$this->currentID]->galleries;
321
  foreach($this->galleries as $gallery) {
322
  if (!in_array($gallery->gid, $sort_array)) {
323
  if (in_array($gallery->gid,$used_list))
@@ -388,10 +406,10 @@ function showDialog() {
388
  <select name="previewpic" style="width:95%" >
389
  <option value="0"><?php _e('No picture', 'nggallery'); ?></option>
390
  <?php
391
- $picturelist = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 GROUP BY tt.galleryid ORDER by tt.galleryid");
392
  if( is_array($picturelist) ) {
393
  foreach($picturelist as $picture) {
394
- echo '<option value="' . $picture->pid . '"'. (($picture->pid == $album->previewpic) ? ' selected="selected"' : '') . ' >'. $picture->pid . ' - ' . $picture->filename.'</option>'."\n";
395
  }
396
  }
397
  ?>
@@ -438,6 +456,7 @@ function showDialog() {
438
 
439
  $obj = array();
440
  $preview_image = '';
 
441
 
442
  // if the id started with a 'a', then it's a sub album
443
  if (substr( $id, 0, 1) == 'a') {
@@ -453,12 +472,12 @@ function showDialog() {
453
  $post = get_post($album->pageid);
454
  $obj['pagenname'] = ($post == null) ? '---' : $post->post_title;
455
 
456
- // for spped reason we limit it to 50
457
  if ( $this->num_albums < 50 ) {
458
- if ($album->previewpic != 0)
459
- $image = $nggdb->find_image( $album->previewpic );
460
-
461
- $preview_image = ($image->thumbURL) ? '<div class="inlinepicture"><img src="' . $image->thumbURL . '" /></div>' : '';
462
  }
463
 
464
  // this indicates that we have a album container
@@ -480,7 +499,7 @@ function showDialog() {
480
  if ( $this->num_galleries < 50 ) {
481
  // set image url
482
  $image = $nggdb->find_image( $gallery->previewpic );
483
- $preview_image = ($image->thumbURL) ? '<div class="inlinepicture"><img src="' . $image->thumbURL . '" /></div>' : '';
484
  }
485
 
486
  $prefix = '';
91
  check_admin_referer('ngg_album');
92
 
93
  if ( isset($_POST['add']) && isset ($_POST['newalbum']) ) {
94
+
95
+ if (!nggGallery::current_user_can( 'NextGEN Add/Delete album' ))
96
+ wp_die(__('Cheatin&#8217; uh?'));
97
+
98
  $newalbum = esc_attr($_POST['newalbum']);
99
  $result = $wpdb->query("INSERT INTO $wpdb->nggalbum (name, sortorder) VALUES ('$newalbum','0')");
100
  $this->currentID = (int) $wpdb->insert_id;
104
  }
105
 
106
  if ( isset($_POST['update']) && ($this->currentID > 0) ) {
107
+
108
+ $gid = '';
109
+
110
  // get variable galleryContainer
111
  parse_str($_POST['sortorder']);
112
  if (is_array($gid)){
120
  }
121
 
122
  if ( isset($_POST['delete']) ) {
123
+
124
+ if (!nggGallery::current_user_can( 'NextGEN Add/Delete album' ))
125
+ wp_die(__('Cheatin&#8217; uh?'));
126
+
127
  $result = nggdb::delete_album( $this->currentID );
128
  if ($result)
129
  nggGallery::show_message(__('Album deleted','nggallery'));
136
 
137
  check_admin_referer('ngg_thickbox_form');
138
 
139
+ if (!nggGallery::current_user_can( 'NextGEN Edit album settings' ))
140
+ wp_die(__('Cheatin&#8217; uh?'));
141
+
142
  $name = esc_attr( $_POST['album_name'] );
143
  $desc = esc_attr( $_POST['album_desc'] );
144
  $prev = (int) $_POST['previewpic'];
277
  </select>
278
  <?php if ($this->currentID > 0){ ?>
279
  <input class="button-primary" type="submit" name="update" value="<?php _e('Update', 'nggallery'); ?>"/>
280
+ <?php if(nggGallery::current_user_can( 'NextGEN Edit album settings' )) { ?>
281
  <input class="button-secondary" type="submit" name="showThickbox" value="<?php _e( 'Edit album', 'nggallery'); ?>" onclick="showDialog(); return false;" />
282
+ <?php } ?>
283
+ <?php if(nggGallery::current_user_can( 'NextGEN Add/Delete album' )) { ?>
284
  <input class="button-secondary action "type="submit" name="delete" value="<?php _e('Delete', 'nggallery'); ?>" onclick="javascript:check=confirm('<?php _e('Delete album ?','nggallery'); ?>');if(check==false) return false;"/>
285
+ <?php } ?>
286
  <?php } else { ?>
287
+ <?php if(nggGallery::current_user_can( 'NextGEN Add/Delete album' )) { ?>
288
  <span><?php _e('Add new album', 'nggallery'); ?>&nbsp;</span>
289
  <input class="search-input" id="newalbum" name="newalbum" type="text" value="" />
290
  <input class="button-secondary action" type="submit" name="add" value="<?php _e('Add', 'nggallery'); ?>"/>
291
+ <?php } ?>
292
  <?php } ?>
293
  </div>
294
  </div>
335
 
336
  if( is_array( $this->galleries ) ) {
337
  //get the array of galleries
338
+ $sort_array = $this->currentID > 0 ? (array) $this->albums[$this->currentID]->galleries : array() ;
339
  foreach($this->galleries as $gallery) {
340
  if (!in_array($gallery->gid, $sort_array)) {
341
  if (in_array($gallery->gid,$used_list))
406
  <select name="previewpic" style="width:95%" >
407
  <option value="0"><?php _e('No picture', 'nggallery'); ?></option>
408
  <?php
409
+ $picturelist = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt WHERE tt.pid=t.previewpic ORDER by tt.galleryid");
410
  if( is_array($picturelist) ) {
411
  foreach($picturelist as $picture) {
412
+ echo '<option value="' . $picture->pid . '"'. (($picture->pid == $album->previewpic) ? ' selected="selected"' : '') . ' >'. $picture->pid . ' - ' . ( empty($picture->name) ? $picture->filename : $picture->name ) .' </option>'."\n";
413
  }
414
  }
415
  ?>
456
 
457
  $obj = array();
458
  $preview_image = '';
459
+ $class = '';
460
 
461
  // if the id started with a 'a', then it's a sub album
462
  if (substr( $id, 0, 1) == 'a') {
472
  $post = get_post($album->pageid);
473
  $obj['pagenname'] = ($post == null) ? '---' : $post->post_title;
474
 
475
+ // for speed reason we limit it to 50
476
  if ( $this->num_albums < 50 ) {
477
+ if ($album->previewpic != 0) {
478
+ $image = $nggdb->find_image( $album->previewpic );
479
+ $preview_image = ( !is_null($image->thumbURL) ) ? '<div class="inlinepicture"><img src="' . $image->thumbURL . '" /></div>' : '';
480
+ }
481
  }
482
 
483
  // this indicates that we have a album container
499
  if ( $this->num_galleries < 50 ) {
500
  // set image url
501
  $image = $nggdb->find_image( $gallery->previewpic );
502
+ $preview_image = isset($image->thumbURL) ? '<div class="inlinepicture"><img src="' . $image->thumbURL . '" /></div>' : '';
503
  }
504
 
505
  $prefix = '';
admin/css/nggadmin.css CHANGED
@@ -152,7 +152,7 @@ p#ngg-inlinebutton {
152
  }
153
 
154
  .fixed .column-thumbnail img{
155
- max-height:60px;
156
  max-width:80px;
157
  }
158
 
152
  }
153
 
154
  .fixed .column-thumbnail img{
155
+ max-height:80px;
156
  max-width:80px;
157
  }
158
 
admin/edit-thumbnail.php CHANGED
@@ -166,7 +166,7 @@ if ( ($ngg_options['thumbfix'] == 1) ) {
166
  jQuery('#imageToEdit').Jcrop({
167
  onChange: showPreview,
168
  onSelect: showPreview,
169
- aspectRatio: <?php echo round($WidthHtmlPrev/$HeightHtmlPrev,1) ?>
170
  });
171
  });
172
  -->
166
  jQuery('#imageToEdit').Jcrop({
167
  onChange: showPreview,
168
  onSelect: showPreview,
169
+ aspectRatio: <?php echo round($WidthHtmlPrev/$HeightHtmlPrev, 3) ?>
170
  });
171
  });
172
  -->
admin/functions.php CHANGED
@@ -127,8 +127,8 @@ class nggAdmin{
127
  * TODO: Check permission of existing thumb folder & images
128
  *
129
  * @class nggAdmin
130
- * @param string $galleryfolder contains relative path
131
- * @return
132
  */
133
  function import_gallery($galleryfolder) {
134
 
@@ -150,6 +150,7 @@ class nggAdmin{
150
 
151
  // read list of images
152
  $new_imageslist = nggAdmin::scandir($gallerypath);
 
153
  if (empty($new_imageslist)) {
154
  nggGallery::show_message(__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('contains no pictures', 'nggallery'));
155
  return;
@@ -211,25 +212,28 @@ class nggAdmin{
211
  }
212
 
213
  /**
214
- * nggAdmin::scandir()
215
  *
216
  * @class nggAdmin
217
  * @param string $dirname
218
- * @return
219
  */
220
- function scandir($dirname = '.') {
221
- // thx to php.net :-)
222
  $ext = array('jpeg', 'jpg', 'png', 'gif');
 
223
  $files = array();
224
- if($handle = opendir($dirname)) {
225
- while(false !== ($file = readdir($handle)))
226
- for($i=0;$i<sizeof($ext);$i++)
227
- if(stristr($file, '.' . $ext[$i]))
228
- $files[] = utf8_encode($file);
229
- closedir($handle);
 
 
 
230
  }
231
- sort($files);
232
- return ($files);
233
  }
234
 
235
  /**
@@ -252,7 +256,10 @@ class nggAdmin{
252
 
253
  if ( !is_object($image) )
254
  return __('Object didn\'t contain correct data','nggallery');
255
-
 
 
 
256
  // check for existing thumbnail
257
  if (file_exists($image->thumbPath))
258
  if (!is_writable($image->thumbPath))
@@ -340,6 +347,11 @@ class nggAdmin{
340
 
341
  // skip if file is not there
342
  if (!$file->error) {
 
 
 
 
 
343
  $file->resize($width, $height, 4);
344
  $file->save($image->imagePath, $ngg->options['imgQuality']);
345
  // read the new sizes
@@ -419,6 +431,10 @@ class nggAdmin{
419
  // skip if file is not there
420
  if (!$file->error) {
421
 
 
 
 
 
422
  // before we start we import the meta data to database (required for uploads before V1.4.X)
423
  nggAdmin::maybe_import_meta( $image->pid );
424
 
@@ -450,7 +466,7 @@ class nggAdmin{
450
  }
451
 
452
  /**
453
- * nggAdmin::set_watermark() - set the watermarl for the image
454
  *
455
  * @class nggAdmin
456
  * @param object | int $image contain all information about the image or the id
@@ -479,6 +495,11 @@ class nggAdmin{
479
 
480
  // skip if file is not there
481
  if (!$file->error) {
 
 
 
 
 
482
  if ($ngg->options['wmType'] == 'image') {
483
  $file->watermarkImgPath = $ngg->options['wmPath'];
484
  $file->watermarkImage($ngg->options['wmPos'], $ngg->options['wmXpos'], $ngg->options['wmYpos']);
@@ -499,6 +520,47 @@ class nggAdmin{
499
  return '1';
500
  }
501
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  /**
503
  * Add images to database
504
  *
@@ -509,7 +571,7 @@ class nggAdmin{
509
  */
510
  function add_Images($galleryID, $imageslist) {
511
 
512
- global $wpdb;
513
 
514
  $image_ids = array();
515
 
@@ -523,14 +585,19 @@ class nggAdmin{
523
  $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES (%s, %s, %s, 0)", $galleryID, $picture, $alttext) );
524
  // and give me the new id
525
  $pic_id = (int) $wpdb->insert_id;
 
526
  if ($result)
527
  $image_ids[] = $pic_id;
528
 
529
  // add the metadata
530
- nggAdmin::import_MetaData($pic_id);
531
 
532
  // auto rotate
533
- nggAdmin::rotate_image($pic_id);
 
 
 
 
534
 
535
  // action hook for post process after the image is added to the database
536
  $image = array( 'id' => $pic_id, 'filename' => $picture, 'galleryID' => $galleryID);
@@ -539,10 +606,12 @@ class nggAdmin{
539
  }
540
  } // is_array
541
 
 
 
542
  return $image_ids;
543
 
544
  }
545
-
546
  /**
547
  * Import some meta data into the database (if avialable)
548
  *
@@ -585,7 +654,7 @@ class nggAdmin{
585
  if ($result === false)
586
  return ' <strong>' . $image->filename . ' ' . __('(Error : Couldn\'t not update data base)', 'nggallery') . '</strong>';
587
 
588
- //this flag will inform us the the import is already one time performed
589
  $meta['common']['saved'] = true;
590
  $result = nggdb::update_image_meta($image->pid, $meta['common']);
591
 
@@ -644,12 +713,13 @@ class nggAdmin{
644
 
645
  require_once(NGGALLERY_ABSPATH . '/lib/meta.php');
646
 
647
- $image = new nggMeta( $id );
648
-
649
- if ( $image->meta_data['saved'] != true ) {
650
- //this flag will inform us the the import is already one time performed
651
- $meta['saved'] = true;
652
- $result = nggdb::update_image_meta($image->pid, $meta['common']);
 
653
  } else
654
  return false;
655
 
@@ -757,11 +827,14 @@ class nggAdmin{
757
  $temp_zipfile = $_FILES['zipfile']['tmp_name'];
758
  $filename = $_FILES['zipfile']['name'];
759
 
760
- // check if file is a zip file
761
- if ( !preg_match('/(zip|download|octet-stream)/i', $_FILES['zipfile']['type']) ) {
762
- @unlink($temp_zipfile); // del temp file
763
- nggGallery::show_error(__('Uploaded file was no or a faulty zip file ! The server recognize : ','nggallery').$_FILES['zipfile']['type']);
764
- return false;
 
 
 
765
  }
766
  }
767
 
@@ -910,6 +983,7 @@ class nggAdmin{
910
 
911
  //create thumbnails
912
  nggAdmin::do_ajax_operation( 'create_thumbnail' , $image_ids, __('Create new thumbnails','nggallery') );
 
913
  //add the preview image if needed
914
  nggAdmin::set_gallery_preview ( $galleryID );
915
 
@@ -931,10 +1005,8 @@ class nggAdmin{
931
 
932
  global $wpdb;
933
 
934
- if ($galleryID == 0) {
935
- @unlink($temp_file);
936
  return __('No gallery selected !', 'nggallery');
937
- }
938
 
939
  // WPMU action
940
  if (nggAdmin::check_quota())
@@ -967,7 +1039,7 @@ class nggAdmin{
967
 
968
  // check if this filename already exist
969
  $i = 0;
970
- while (in_array($filename,$imageslist)) {
971
  $filename = $filepart['filename'] . '_' . $i++ . '.' . $filepart['extension'];
972
  }
973
 
@@ -1307,6 +1379,7 @@ class nggAdmin{
1307
  /**
1308
  * Return a JSON coded array of Image ids for a requested gallery
1309
  *
 
1310
  * @param int $galleryID
1311
  * @return arry (JSON)
1312
  */
@@ -1323,6 +1396,47 @@ class nggAdmin{
1323
  return $output;
1324
  }
1325
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1326
  } // END class nggAdmin
1327
 
1328
  /**
127
  * TODO: Check permission of existing thumb folder & images
128
  *
129
  * @class nggAdmin
130
+ * @param string $galleryfolder contains relative path to the gallery itself
131
+ * @return void
132
  */
133
  function import_gallery($galleryfolder) {
134
 
150
 
151
  // read list of images
152
  $new_imageslist = nggAdmin::scandir($gallerypath);
153
+
154
  if (empty($new_imageslist)) {
155
  nggGallery::show_message(__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('contains no pictures', 'nggallery'));
156
  return;
212
  }
213
 
214
  /**
215
+ * Scan folder for new images
216
  *
217
  * @class nggAdmin
218
  * @param string $dirname
219
+ * @return array $files list of image filenames
220
  */
221
+ function scandir( $dirname = '.' ) {
 
222
  $ext = array('jpeg', 'jpg', 'png', 'gif');
223
+
224
  $files = array();
225
+ if( $handle = opendir( $dirname ) ) {
226
+ while( false !== ( $file = readdir( $handle ) ) ) {
227
+ $info = pathinfo( $file );
228
+ // just look for images with the correct extension
229
+ if ( isset($info['extension']) )
230
+ if ( in_array( strtolower($info['extension']), $ext) )
231
+ $files[] = utf8_encode( $file );
232
+ }
233
+ closedir( $handle );
234
  }
235
+ sort( $files );
236
+ return ( $files );
237
  }
238
 
239
  /**
256
 
257
  if ( !is_object($image) )
258
  return __('Object didn\'t contain correct data','nggallery');
259
+
260
+ // before we start we import the meta data to database (required for uploads before V1.4.0)
261
+ nggAdmin::maybe_import_meta( $image->pid );
262
+
263
  // check for existing thumbnail
264
  if (file_exists($image->thumbPath))
265
  if (!is_writable($image->thumbPath))
347
 
348
  // skip if file is not there
349
  if (!$file->error) {
350
+
351
+ // If required save a backup copy of the file
352
+ if ( ($ngg->options['imgBackup'] == 1) && (!file_exists($image->imagePath . '_backup')) )
353
+ @copy ($image->imagePath, $image->imagePath . '_backup');
354
+
355
  $file->resize($width, $height, 4);
356
  $file->save($image->imagePath, $ngg->options['imgQuality']);
357
  // read the new sizes
431
  // skip if file is not there
432
  if (!$file->error) {
433
 
434
+ // If required save a backup copy of the file
435
+ if ( ($ngg->options['imgBackup'] == 1) && (!file_exists($image->imagePath . '_backup')) )
436
+ @copy ($image->imagePath, $image->imagePath . '_backup');
437
+
438
  // before we start we import the meta data to database (required for uploads before V1.4.X)
439
  nggAdmin::maybe_import_meta( $image->pid );
440
 
466
  }
467
 
468
  /**
469
+ * nggAdmin::set_watermark() - set the watermark for the image
470
  *
471
  * @class nggAdmin
472
  * @param object | int $image contain all information about the image or the id
495
 
496
  // skip if file is not there
497
  if (!$file->error) {
498
+
499
+ // If required save a backup copy of the file
500
+ if ( ($ngg->options['imgBackup'] == 1) && (!file_exists($image->imagePath . '_backup')) )
501
+ @copy ($image->imagePath, $image->imagePath . '_backup');
502
+
503
  if ($ngg->options['wmType'] == 'image') {
504
  $file->watermarkImgPath = $ngg->options['wmPath'];
505
  $file->watermarkImage($ngg->options['wmPos'], $ngg->options['wmXpos'], $ngg->options['wmYpos']);
520
  return '1';
521
  }
522
 
523
+ /**
524
+ * Recover image from backup copy and reprocess it
525
+ *
526
+ * @class nggAdmin
527
+ * @since 1.5.0
528
+ * @param object | int $image contain all information about the image or the id
529
+ * @return string result code
530
+ */
531
+
532
+ function recover_image($image) {
533
+
534
+ global $ngg;
535
+
536
+ if ( is_numeric($image) )
537
+ $image = nggdb::find_image( $image );
538
+
539
+ if ( !is_object( $image ) )
540
+ return __('Object didn\'t contain correct data','nggallery');
541
+
542
+ if (!is_writable( $image->imagePath ))
543
+ return ' <strong>' . $image->filename . __(' is not writeable','nggallery') . '</strong>';
544
+
545
+ if (!file_exists( $image->imagePath . '_backup' )) {
546
+ return ' <strong>'.__('File do not exists','nggallery').'</strong>';
547
+ }
548
+
549
+ if (!@copy( $image->imagePath . '_backup' , $image->imagePath) )
550
+ return ' <strong>'.__('Couldn\'t restore original image','nggallery').'</strong>';
551
+
552
+ require_once(NGGALLERY_ABSPATH . '/lib/meta.php');
553
+
554
+ $meta_obj = new nggMeta( $image->pid );
555
+
556
+ $common = $meta_obj->get_common_meta();
557
+ $common['saved'] = true;
558
+ $result = nggdb::update_image_meta($image->pid, $common);
559
+
560
+ return '1';
561
+
562
+ }
563
+
564
  /**
565
  * Add images to database
566
  *
571
  */
572
  function add_Images($galleryID, $imageslist) {
573
 
574
+ global $wpdb, $ngg;
575
 
576
  $image_ids = array();
577
 
585
  $result = $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES (%s, %s, %s, 0)", $galleryID, $picture, $alttext) );
586
  // and give me the new id
587
  $pic_id = (int) $wpdb->insert_id;
588
+
589
  if ($result)
590
  $image_ids[] = $pic_id;
591
 
592
  // add the metadata
593
+ nggAdmin::import_MetaData( $pic_id );
594
 
595
  // auto rotate
596
+ nggAdmin::rotate_image( $pic_id );
597
+
598
+ // Autoresize image if required
599
+ if ($ngg->options['imgAutoResize'])
600
+ nggAdmin::resize_image( $pic_id );
601
 
602
  // action hook for post process after the image is added to the database
603
  $image = array( 'id' => $pic_id, 'filename' => $picture, 'galleryID' => $galleryID);
606
  }
607
  } // is_array
608
 
609
+ do_action('ngg_after_new_images_added', $galleryID, $image_ids );
610
+
611
  return $image_ids;
612
 
613
  }
614
+
615
  /**
616
  * Import some meta data into the database (if avialable)
617
  *
654
  if ($result === false)
655
  return ' <strong>' . $image->filename . ' ' . __('(Error : Couldn\'t not update data base)', 'nggallery') . '</strong>';
656
 
657
+ //this flag will inform us that the import is already one time performed
658
  $meta['common']['saved'] = true;
659
  $result = nggdb::update_image_meta($image->pid, $meta['common']);
660
 
713
 
714
  require_once(NGGALLERY_ABSPATH . '/lib/meta.php');
715
 
716
+ $meta_obj = new nggMeta( $id );
717
+
718
+ if ( $meta_obj->image->meta_data['saved'] != true ) {
719
+ $common = $meta_obj->get_common_meta();
720
+ //this flag will inform us that the import is already one time performed
721
+ $common['saved'] = true;
722
+ $result = nggdb::update_image_meta($id, $common);
723
  } else
724
  return false;
725
 
827
  $temp_zipfile = $_FILES['zipfile']['tmp_name'];
828
  $filename = $_FILES['zipfile']['name'];
829
 
830
+ // Chrome return a empty content-type : http://code.google.com/p/chromium/issues/detail?id=6800
831
+ if ( !preg_match('/chrome/i', $_SERVER['HTTP_USER_AGENT']) ) {
832
+ // check if file is a zip file
833
+ if ( !preg_match('/(zip|download|octet-stream)/i', $_FILES['zipfile']['type']) ) {
834
+ @unlink($temp_zipfile); // del temp file
835
+ nggGallery::show_error(__('Uploaded file was no or a faulty zip file ! The server recognize : ','nggallery').$_FILES['zipfile']['type']);
836
+ return false;
837
+ }
838
  }
839
  }
840
 
983
 
984
  //create thumbnails
985
  nggAdmin::do_ajax_operation( 'create_thumbnail' , $image_ids, __('Create new thumbnails','nggallery') );
986
+
987
  //add the preview image if needed
988
  nggAdmin::set_gallery_preview ( $galleryID );
989
 
1005
 
1006
  global $wpdb;
1007
 
1008
+ if ($galleryID == 0)
 
1009
  return __('No gallery selected !', 'nggallery');
 
1010
 
1011
  // WPMU action
1012
  if (nggAdmin::check_quota())
1039
 
1040
  // check if this filename already exist
1041
  $i = 0;
1042
+ while (in_array($filename, $imageslist)) {
1043
  $filename = $filepart['filename'] . '_' . $i++ . '.' . $filepart['extension'];
1044
  }
1045
 
1379
  /**
1380
  * Return a JSON coded array of Image ids for a requested gallery
1381
  *
1382
+ * @class nggAdmin
1383
  * @param int $galleryID
1384
  * @return arry (JSON)
1385
  */
1396
  return $output;
1397
  }
1398
 
1399
+ /**
1400
+ * Decode upload error to normal message
1401
+ *
1402
+ * @class nggAdmin
1403
+ * @access internal
1404
+ * @param int $code php upload error code
1405
+ * @return string message
1406
+ */
1407
+
1408
+ function decode_upload_error( $code ) {
1409
+
1410
+ switch ($code) {
1411
+ case UPLOAD_ERR_INI_SIZE:
1412
+ $message = __ ( 'The uploaded file exceeds the upload_max_filesize directive in php.ini', 'nggallery' );
1413
+ break;
1414
+ case UPLOAD_ERR_FORM_SIZE:
1415
+ $message = __ ( 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form', 'nggallery' );
1416
+ break;
1417
+ case UPLOAD_ERR_PARTIAL:
1418
+ $message = __ ( 'The uploaded file was only partially uploaded', 'nggallery' );
1419
+ break;
1420
+ case UPLOAD_ERR_NO_FILE:
1421
+ $message = __ ( 'No file was uploaded', 'nggallery' );
1422
+ break;
1423
+ case UPLOAD_ERR_NO_TMP_DIR:
1424
+ $message = __ ( 'Missing a temporary folder', 'nggallery' );
1425
+ break;
1426
+ case UPLOAD_ERR_CANT_WRITE:
1427
+ $message = __ ( 'Failed to write file to disk', 'nggallery' );
1428
+ break;
1429
+ case UPLOAD_ERR_EXTENSION:
1430
+ $message = __ ( 'File upload stopped by extension', 'nggallery' );
1431
+ break;
1432
+ default:
1433
+ $message = __ ( 'Unknown upload error', 'nggallery' );
1434
+ break;
1435
+ }
1436
+
1437
+ return $message;
1438
+ }
1439
+
1440
  } // END class nggAdmin
1441
 
1442
  /**
admin/install.php CHANGED
@@ -151,11 +151,12 @@ function ngg_default_options() {
151
  $ngg_options['thumbquality'] = 100; // Thumb Quality
152
 
153
  // Image Settings
154
- $ngg_options['imgResize'] = false; // Activate resize (not used)
155
  $ngg_options['imgWidth'] = 800; // Image Width
156
  $ngg_options['imgHeight'] = 600; // Image height
157
  $ngg_options['imgQuality'] = 85; // Image Quality
158
- $ngg_options['imgCacheSinglePic'] = true; // cached the singlepic
 
 
159
 
160
  // Gallery Settings
161
  $ngg_options['galImages'] = '20'; // Number of images per page
151
  $ngg_options['thumbquality'] = 100; // Thumb Quality
152
 
153
  // Image Settings
 
154
  $ngg_options['imgWidth'] = 800; // Image Width
155
  $ngg_options['imgHeight'] = 600; // Image height
156
  $ngg_options['imgQuality'] = 85; // Image Quality
157
+ $ngg_options['imgCacheSinglePic'] = true; // Cached the singlepic
158
+ $ngg_options['imgBackup'] = true; // Create a backup
159
+ $ngg_options['imgAutoResize'] = false; // Resize after upload
160
 
161
  // Gallery Settings
162
  $ngg_options['galImages'] = '20'; // Number of images per page
admin/manage-galleries.php CHANGED
@@ -59,7 +59,7 @@ function nggallery_manage_gallery_main() {
59
  var numchecked = getNumChecked(document.getElementById('editgalleries'));
60
 
61
  if(numchecked < 1) {
62
- alert('<?php echo js_escape(__('No images selected', 'nggallery')); ?>');
63
  return false;
64
  }
65
 
@@ -76,7 +76,7 @@ function nggallery_manage_gallery_main() {
76
  break;
77
  }
78
 
79
- return confirm('<?php echo sprintf(js_escape(__("You are about to start the bulk edit for %s galleries \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>');
80
  }
81
 
82
  function showDialog( windowId, height ) {
@@ -127,10 +127,11 @@ function nggallery_manage_gallery_main() {
127
  <option value="new_thumbnail" ><?php _e("Create new thumbnails",'nggallery'); ?></option>
128
  <option value="resize_images" ><?php _e("Resize images",'nggallery'); ?></option>
129
  <option value="import_meta" ><?php _e("Import metadata",'nggallery'); ?></option>
 
130
  </select>
131
  <input name="showThickbox" class="button-secondary" type="submit" value="<?php _e('Apply','nggallery'); ?>" onclick="if ( !checkSelected() ) return false;" />
132
  <?php endif; ?>
133
- <?php if ( current_user_can('NextGEN Upload images') ) : ?>
134
  <input name="doaction" class="button-secondary action" type="submit" onclick="showAddGallery(); return false;" value="<?php _e('Add new gallery', 'nggallery') ?>"/>
135
  <?php endif; ?>
136
  </div>
59
  var numchecked = getNumChecked(document.getElementById('editgalleries'));
60
 
61
  if(numchecked < 1) {
62
+ alert('<?php echo esc_js(__('No images selected', 'nggallery')); ?>');
63
  return false;
64
  }
65
 
76
  break;
77
  }
78
 
79
+ return confirm('<?php echo sprintf(esc_js(__("You are about to start the bulk edit for %s galleries \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>');
80
  }
81
 
82
  function showDialog( windowId, height ) {
127
  <option value="new_thumbnail" ><?php _e("Create new thumbnails",'nggallery'); ?></option>
128
  <option value="resize_images" ><?php _e("Resize images",'nggallery'); ?></option>
129
  <option value="import_meta" ><?php _e("Import metadata",'nggallery'); ?></option>
130
+ <option value="recover_images" ><?php _e("Recover from backup",'nggallery'); ?></option>
131
  </select>
132
  <input name="showThickbox" class="button-secondary" type="submit" value="<?php _e('Apply','nggallery'); ?>" onclick="if ( !checkSelected() ) return false;" />
133
  <?php endif; ?>
134
+ <?php if ( current_user_can('NextGEN Upload images') && nggGallery::current_user_can( 'NextGEN Add new gallery' ) ) : ?>
135
  <input name="doaction" class="button-secondary action" type="submit" onclick="showAddGallery(); return false;" value="<?php _e('Add new gallery', 'nggallery') ?>"/>
136
  <?php endif; ?>
137
  </div>
admin/manage-images.php CHANGED
@@ -8,8 +8,9 @@ function nggallery_picturelist() {
8
 
9
  // Look if its a search result
10
  $is_search = isset ($_GET['s']) ? true : false;
 
11
 
12
- if ($is_search) {
13
 
14
  // fetch the imagelist
15
  $picturelist = $ngg->manage_page->search_result;
@@ -69,6 +70,8 @@ function nggallery_picturelist() {
69
  $gallery_columns = ngg_manage_gallery_columns();
70
  $hidden_columns = get_hidden_columns('nggallery-manage-images');
71
  $num_columns = count($gallery_columns) - count($hidden_columns);
 
 
72
 
73
  ?>
74
  <!--[if IE]>
@@ -134,7 +137,7 @@ function checkSelected() {
134
  var numchecked = getNumChecked(document.getElementById('updategallery'));
135
 
136
  if(numchecked < 1) {
137
- alert('<?php echo js_escape(__('No images selected', 'nggallery')); ?>');
138
  return false;
139
  }
140
 
@@ -162,7 +165,7 @@ function checkSelected() {
162
  break;
163
  }
164
 
165
- return confirm('<?php echo sprintf(js_escape(__("You are about to start the bulk edit for %s images \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>');
166
  }
167
 
168
  jQuery(document).ready( function() {
@@ -178,7 +181,7 @@ jQuery(document).ready( function() {
178
  <div class="wrap">
179
 
180
  <?php if ($is_search) :?>
181
- <h2><?php printf( __('Search results for &#8220;%s&#8221;', 'nggallery'), wp_specialchars( get_search_query() ) ); ?></h2>
182
  <form class="search-form" action="" method="get">
183
  <p class="search-box">
184
  <label class="hidden" for="media-search-input"><?php _e( 'Search Images', 'nggallery' ); ?>:</label>
@@ -203,6 +206,7 @@ jQuery(document).ready( function() {
203
  <?php wp_nonce_field('ngg_updategallery') ?>
204
  <input type="hidden" name="page" value="manage-images" />
205
 
 
206
  <div id="poststuff">
207
  <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
208
  <div id="gallerydiv" class="postbox <?php echo postbox_classes('gallerydiv', 'ngg-manage-gallery'); ?>" >
@@ -211,10 +215,10 @@ jQuery(document).ready( function() {
211
  <table class="form-table" >
212
  <tr>
213
  <th align="left"><?php _e('Title') ?>:</th>
214
- <th align="left"><input type="text" size="50" name="title" value="<?php echo $gallery->title; ?>" /></th>
215
  <th align="right"><?php _e('Page Link to', 'nggallery') ?>:</th>
216
  <th align="left">
217
- <select name="pageid" style="width:95%">
218
  <option value="0" ><?php _e('Not linked', 'nggallery') ?></option>
219
  <?php parent_dropdown($gallery->pageid); ?>
220
  </select>
@@ -222,10 +226,10 @@ jQuery(document).ready( function() {
222
  </tr>
223
  <tr>
224
  <th align="left"><?php _e('Description') ?>:</th>
225
- <th align="left"><textarea name="gallerydesc" cols="30" rows="3" style="width: 95%" ><?php echo $gallery->galdesc; ?></textarea></th>
226
  <th align="right"><?php _e('Preview image', 'nggallery') ?>:</th>
227
  <th align="left">
228
- <select name="previewpic" style="width:95%" >
229
  <option value="0" ><?php _e('No Picture', 'nggallery') ?></option>
230
  <?php
231
  if(is_array($picturelist)) {
@@ -240,12 +244,12 @@ jQuery(document).ready( function() {
240
  </tr>
241
  <tr>
242
  <th align="left"><?php _e('Path', 'nggallery') ?>:</th>
243
- <th align="left"><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="text" size="50" name="path" value="<?php echo $gallery->path; ?>" /></th>
244
  <th align="right"><?php _e('Author', 'nggallery'); ?>:</th>
245
  <th align="left">
246
  <?php
247
  $editable_ids = $ngg->manage_page->get_editable_user_ids( $user_ID );
248
- if ( $editable_ids && count( $editable_ids ) > 1 )
249
  wp_dropdown_users( array('include' => $editable_ids, 'name' => 'author', 'selected' => empty( $gallery->author ) ? 0 : $gallery->author ) );
250
  else
251
  echo $act_author_user->display_name;
@@ -278,6 +282,8 @@ jQuery(document).ready( function() {
278
  </div> <!-- poststuff -->
279
  <?php endif; ?>
280
 
 
 
281
  <div class="tablenav ngg-tablenav">
282
  <?php if ( $page_links ) : ?>
283
  <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s',
@@ -293,6 +299,7 @@ jQuery(document).ready( function() {
293
  <option value="set_watermark" ><?php _e("Set watermark",'nggallery'); ?></option>
294
  <option value="new_thumbnail" ><?php _e("Create new thumbnails",'nggallery'); ?></option>
295
  <option value="resize_images" ><?php _e("Resize images",'nggallery'); ?></option>
 
296
  <option value="delete_images" ><?php _e("Delete images",'nggallery'); ?></option>
297
  <option value="import_meta" ><?php _e("Import metadata",'nggallery'); ?></option>
298
  <option value="rotate_cw" ><?php _e("Rotate images clockwise",'nggallery'); ?></option>
@@ -330,7 +337,6 @@ jQuery(document).ready( function() {
330
  if($picturelist) {
331
 
332
  $thumbsize = '';
333
- $counter = 0;
334
 
335
  if ($ngg->options['thumbfix'])
336
  $thumbsize = 'width="' . $ngg->options['thumbwidth'] . '" height="' . $ngg->options['thumbheight'] . '"';
@@ -382,6 +388,7 @@ if($picturelist) {
382
  <br /><?php echo $date; ?>
383
  <?php if ( !empty($picture->meta_data) ): ?>
384
  <br /><?php echo $picture->meta_data['width']; ?> x <?php echo $picture->meta_data['height']; ?> <?php _e('pixel', 'nggallery'); ?>
 
385
  <?php endif; ?>
386
  <p>
387
  <?php
@@ -390,9 +397,11 @@ if($picturelist) {
390
  //$actions['edit'] = '<a class="editinline" href="#">' . __('Edit') . '</a>';
391
  $actions['view'] = '<a class="thickbox" href="' . $picture->imageURL . '" title="' . esc_attr(sprintf(__('View "%s"'), $picture->filename)) . '">' . __('View', 'nggallery') . '</a>';
392
  $actions['meta'] = '<a class="thickbox" href="' . NGGALLERY_URLPATH . 'admin/showmeta.php?id=' . $pid . '" title="' . __('Show Meta data','nggallery') . '">' . __('Meta', 'nggallery') . '</a>';
393
- $actions['custom_thumb'] = '<a class="thickbox" href="' . NGGALLERY_URLPATH . 'admin/edit-thumbnail.php?id=' . $pid . '" title="' . __('Customize thumbnail','nggallery') . '">' . __('Edit thumb', 'nggallery') . '</a>';
394
- $actions['rotate'] = '<a class="thickbox" href="' . NGGALLERY_URLPATH . 'admin/rotate.php?id=' . $pid . '" title="' . __('Rotate','nggallery') . '">' . __('Rotate', 'nggallery') . '</a>';
395
- $actions['delete'] = '<a class="submitdelete" href="' . wp_nonce_url("admin.php?page=nggallery-manage-gallery&amp;mode=delpic&amp;gid=" . $act_gid . "&amp;pid=" . $pid, 'ngg_delpicture'). '" class="delete column-delete" onclick="javascript:check=confirm( \'' . esc_attr(sprintf(__('Delete "%s"' , 'nggallery'), $picture->filename)). '\');if(check==false) return false;">' . __('Delete') . '</a>';
 
 
396
  $action_count = count($actions);
397
  $i = 0;
398
  echo '<div class="row-actions">';
@@ -451,14 +460,14 @@ if($picturelist) {
451
  }
452
 
453
  // In the case you have no capaptibility to see the search result
454
- if ( $counter==0 )
455
  echo '<tr><td colspan="' . $num_columns . '" align="center"><strong>'.__('No entries found','nggallery').'</strong></td></tr>';
456
 
457
  ?>
458
 
459
  </tbody>
460
  </table>
461
- <p class="submit"><input type="submit" class="button-primary action" name="updatepictures" value="<?php _e("Save Changes",'nggallery'); ?>" /></p>
462
  </form>
463
  <br class="clear"/>
464
  </div><!-- /#wrap -->
@@ -591,7 +600,6 @@ if ( $counter==0 )
591
 
592
  // define the columns to display, the syntax is 'internal name' => 'display name'
593
  function ngg_manage_gallery_columns() {
594
- global $ngg;
595
 
596
  $gallery_columns = array();
597
 
8
 
9
  // Look if its a search result
10
  $is_search = isset ($_GET['s']) ? true : false;
11
+ $counter = 0;
12
 
13
+ if ($is_search) {
14
 
15
  // fetch the imagelist
16
  $picturelist = $ngg->manage_page->search_result;
70
  $gallery_columns = ngg_manage_gallery_columns();
71
  $hidden_columns = get_hidden_columns('nggallery-manage-images');
72
  $num_columns = count($gallery_columns) - count($hidden_columns);
73
+
74
+ $attr = (nggGallery::current_user_can( 'NextGEN Edit gallery options' )) ? '' : 'disabled="disabled"';
75
 
76
  ?>
77
  <!--[if IE]>
137
  var numchecked = getNumChecked(document.getElementById('updategallery'));
138
 
139
  if(numchecked < 1) {
140
+ alert('<?php echo esc_js(__('No images selected', 'nggallery')); ?>');
141
  return false;
142
  }
143
 
165
  break;
166
  }
167
 
168
+ return confirm('<?php echo sprintf(esc_js(__("You are about to start the bulk edit for %s images \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>');
169
  }
170
 
171
  jQuery(document).ready( function() {
181
  <div class="wrap">
182
 
183
  <?php if ($is_search) :?>
184
+ <h2><?php printf( __('Search results for &#8220;%s&#8221;', 'nggallery'), esc_html( get_search_query() ) ); ?></h2>
185
  <form class="search-form" action="" method="get">
186
  <p class="search-box">
187
  <label class="hidden" for="media-search-input"><?php _e( 'Search Images', 'nggallery' ); ?>:</label>
206
  <?php wp_nonce_field('ngg_updategallery') ?>
207
  <input type="hidden" name="page" value="manage-images" />
208
 
209
+ <?php if ( nggGallery::current_user_can( 'NextGEN Edit gallery options' )) : ?>
210
  <div id="poststuff">
211
  <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
212
  <div id="gallerydiv" class="postbox <?php echo postbox_classes('gallerydiv', 'ngg-manage-gallery'); ?>" >
215
  <table class="form-table" >
216
  <tr>
217
  <th align="left"><?php _e('Title') ?>:</th>
218
+ <th align="left"><input <?php nggGallery::current_user_can_form( 'NextGEN Edit gallery title' ); ?> type="text" size="50" name="title" value="<?php echo $gallery->title; ?>" /></th>
219
  <th align="right"><?php _e('Page Link to', 'nggallery') ?>:</th>
220
  <th align="left">
221
+ <select <?php nggGallery::current_user_can_form( 'NextGEN Edit gallery page id' ); ?> name="pageid" style="width:95%">
222
  <option value="0" ><?php _e('Not linked', 'nggallery') ?></option>
223
  <?php parent_dropdown($gallery->pageid); ?>
224
  </select>
226
  </tr>
227
  <tr>
228
  <th align="left"><?php _e('Description') ?>:</th>
229
+ <th align="left"><textarea <?php nggGallery::current_user_can_form( 'NextGEN Edit gallery description' ); ?> name="gallerydesc" cols="30" rows="3" style="width: 95%" ><?php echo $gallery->galdesc; ?></textarea></th>
230
  <th align="right"><?php _e('Preview image', 'nggallery') ?>:</th>
231
  <th align="left">
232
+ <select <?php nggGallery::current_user_can_form( 'NextGEN Edit gallery preview pic' ); ?> name="previewpic" style="width:95%" >
233
  <option value="0" ><?php _e('No Picture', 'nggallery') ?></option>
234
  <?php
235
  if(is_array($picturelist)) {
244
  </tr>
245
  <tr>
246
  <th align="left"><?php _e('Path', 'nggallery') ?>:</th>
247
+ <th align="left"><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> <?php nggGallery::current_user_can_form( 'NextGEN Edit gallery path' ); ?> type="text" size="50" name="path" value="<?php echo $gallery->path; ?>" /></th>
248
  <th align="right"><?php _e('Author', 'nggallery'); ?>:</th>
249
  <th align="left">
250
  <?php
251
  $editable_ids = $ngg->manage_page->get_editable_user_ids( $user_ID );
252
+ if ( $editable_ids && count( $editable_ids ) > 1 && nggGallery::current_user_can( 'NextGEN Edit gallery author') )
253
  wp_dropdown_users( array('include' => $editable_ids, 'name' => 'author', 'selected' => empty( $gallery->author ) ? 0 : $gallery->author ) );
254
  else
255
  echo $act_author_user->display_name;
282
  </div> <!-- poststuff -->
283
  <?php endif; ?>
284
 
285
+ <?php endif; ?>
286
+
287
  <div class="tablenav ngg-tablenav">
288
  <?php if ( $page_links ) : ?>
289
  <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s',
299
  <option value="set_watermark" ><?php _e("Set watermark",'nggallery'); ?></option>
300
  <option value="new_thumbnail" ><?php _e("Create new thumbnails",'nggallery'); ?></option>
301
  <option value="resize_images" ><?php _e("Resize images",'nggallery'); ?></option>
302
+ <option value="recover_images" ><?php _e("Recover from backup",'nggallery'); ?></option>
303
  <option value="delete_images" ><?php _e("Delete images",'nggallery'); ?></option>
304
  <option value="import_meta" ><?php _e("Import metadata",'nggallery'); ?></option>
305
  <option value="rotate_cw" ><?php _e("Rotate images clockwise",'nggallery'); ?></option>
337
  if($picturelist) {
338
 
339
  $thumbsize = '';
 
340
 
341
  if ($ngg->options['thumbfix'])
342
  $thumbsize = 'width="' . $ngg->options['thumbwidth'] . '" height="' . $ngg->options['thumbheight'] . '"';
388
  <br /><?php echo $date; ?>
389
  <?php if ( !empty($picture->meta_data) ): ?>
390
  <br /><?php echo $picture->meta_data['width']; ?> x <?php echo $picture->meta_data['height']; ?> <?php _e('pixel', 'nggallery'); ?>
391
+
392
  <?php endif; ?>
393
  <p>
394
  <?php
397
  //$actions['edit'] = '<a class="editinline" href="#">' . __('Edit') . '</a>';
398
  $actions['view'] = '<a class="thickbox" href="' . $picture->imageURL . '" title="' . esc_attr(sprintf(__('View "%s"'), $picture->filename)) . '">' . __('View', 'nggallery') . '</a>';
399
  $actions['meta'] = '<a class="thickbox" href="' . NGGALLERY_URLPATH . 'admin/showmeta.php?id=' . $pid . '" title="' . __('Show Meta data','nggallery') . '">' . __('Meta', 'nggallery') . '</a>';
400
+ $actions['custom_thumb'] = '<a class="thickbox" href="' . NGGALLERY_URLPATH . 'admin/edit-thumbnail.php?id=' . $pid . '" title="' . __('Customize thumbnail','nggallery') . '">' . __('Edit thumb', 'nggallery') . '</a>';
401
+ $actions['rotate'] = '<a class="thickbox" href="' . NGGALLERY_URLPATH . 'admin/rotate.php?id=' . $pid . '" title="' . __('Rotate','nggallery') . '">' . __('Rotate', 'nggallery') . '</a>';
402
+ if ( file_exists( $picture->imagePath . '_backup' ) )
403
+ $actions['recover'] = '<a class="confirmrecover" href="' .wp_nonce_url("admin.php?page=nggallery-manage-gallery&amp;mode=recoverpic&amp;gid=" . $act_gid . "&amp;pid=" . $pid, 'ngg_recoverpicture'). '" title="' . __('Recover','nggallery') . '" onclick="javascript:check=confirm( \'' . esc_attr(sprintf(__('Recover "%s" ?' , 'nggallery'), $picture->filename)). '\');if(check==false) return false;">' . __('Recover', 'nggallery') . '</a>';
404
+ $actions['delete'] = '<a class="submitdelete" href="' . wp_nonce_url("admin.php?page=nggallery-manage-gallery&amp;mode=delpic&amp;gid=" . $act_gid . "&amp;pid=" . $pid, 'ngg_delpicture'). '" class="delete column-delete" onclick="javascript:check=confirm( \'' . esc_attr(sprintf(__('Delete "%s" ?' , 'nggallery'), $picture->filename)). '\');if(check==false) return false;">' . __('Delete') . '</a>';
405
  $action_count = count($actions);
406
  $i = 0;
407
  echo '<div class="row-actions">';
460
  }
461
 
462
  // In the case you have no capaptibility to see the search result
463
+ if ( $counter == 0 )
464
  echo '<tr><td colspan="' . $num_columns . '" align="center"><strong>'.__('No entries found','nggallery').'</strong></td></tr>';
465
 
466
  ?>
467
 
468
  </tbody>
469
  </table>
470
+ <p class="submit"><input type="submit" class="button-primary action" name="updatepictures" value="<?php _e('Save Changes', 'nggallery'); ?>" /></p>
471
  </form>
472
  <br class="clear"/>
473
  </div><!-- /#wrap -->
600
 
601
  // define the columns to display, the syntax is 'internal name' => 'display name'
602
  function ngg_manage_gallery_columns() {
 
603
 
604
  $gallery_columns = array();
605
 
admin/manage.php CHANGED
@@ -14,17 +14,17 @@ class nggManageGallery {
14
  function nggManageGallery() {
15
 
16
  // GET variables
17
- if(isset($_GET['gid']))
18
  $this->gid = (int) $_GET['gid'];
19
- if(isset($_GET['pid']))
20
  $this->pid = (int) $_GET['pid'];
21
- if(isset($_GET['mode']))
22
  $this->mode = trim ($_GET['mode']);
23
  // Should be only called via manage galleries overview
24
- if ( $_POST['page'] == 'manage-galleries' )
25
  $this->post_processor_galleries();
26
  // Should be only called via a edit single gallery page
27
- if ( $_POST['page'] == 'manage-images' )
28
  $this->post_processor_images();
29
  //Look for other POST process
30
  if ( !empty($_POST) || !empty($_GET) )
@@ -80,8 +80,7 @@ class nggManageGallery {
80
  }
81
  }
82
 
83
- $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE galleryid = $this->gid");
84
- $delete_galllery = $wpdb->query("DELETE FROM $wpdb->nggallery WHERE gid = $this->gid");
85
 
86
  if($delete_galllery)
87
  nggGallery::show_message( _n( 'Gallery', 'Galleries', 1, 'nggallery' ) . ' \''.$this->gid.'\' '.__('deleted successfully','nggallery'));
@@ -91,16 +90,19 @@ class nggManageGallery {
91
 
92
  // Delete a picture
93
  if ($this->mode == 'delpic') {
94
- //TODO:Remove also Tag reference
 
95
  check_admin_referer('ngg_delpicture');
96
  $image = $nggdb->find_image( $this->pid );
97
  if ($image) {
98
  if ($ngg->options['deleteImg']) {
99
  @unlink($image->imagePath);
100
  @unlink($image->thumbPath);
 
101
  }
102
- $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $image->pid");
103
- }
 
104
  if($delete_pic)
105
  nggGallery::show_message( __('Picture','nggallery').' \''.$this->pid.'\' '.__('deleted successfully','nggallery') );
106
 
@@ -108,6 +110,21 @@ class nggManageGallery {
108
 
109
  }
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  // will be called after a ajax operation
112
  if (isset ($_POST['ajax_callback'])) {
113
  if ($_POST['ajax_callback'] == 1)
@@ -135,6 +152,11 @@ class nggManageGallery {
135
  case 'no_action';
136
  // No action
137
  break;
 
 
 
 
 
138
  case 'set_watermark':
139
  // Set watermark
140
  // A prefix 'gallery_' will first fetch all ids from the selected galleries
@@ -152,6 +174,9 @@ class nggManageGallery {
152
 
153
  check_admin_referer('ngg_addgallery');
154
 
 
 
 
155
  // get the default path for a new gallery
156
  $defaultpath = $ngg->options['gallerypath'];
157
  $newgallery = esc_attr( $_POST['galleryname']);
@@ -208,7 +233,10 @@ class nggManageGallery {
208
  break;
209
  case 'rotate_ccw':
210
  nggAdmin::do_ajax_operation( 'rotate_ccw' , $_POST['doaction'], __('Rotate images', 'nggallery') );
211
- break;
 
 
 
212
  case 'set_watermark':
213
  nggAdmin::do_ajax_operation( 'set_watermark' , $_POST['doaction'], __('Set watermark', 'nggallery') );
214
  break;
@@ -219,7 +247,8 @@ class nggManageGallery {
219
  if ($image) {
220
  if ($ngg->options['deleteImg']) {
221
  @unlink($image->imagePath);
222
- @unlink($image->thumbPath);
 
223
  }
224
  $delete_pic = nggdb::delete_image( $image->pid );
225
  }
@@ -329,20 +358,26 @@ class nggManageGallery {
329
  // Update pictures
330
 
331
  check_admin_referer('ngg_updategallery');
332
-
333
- $gallery_title = esc_attr($_POST['title']);
334
- $gallery_path = esc_attr($_POST['path']);
335
- $gallery_desc = esc_attr($_POST['gallerydesc']);
336
- $gallery_pageid = (int) $_POST['pageid'];
337
- $gallery_preview = (int) $_POST['previewpic'];
338
 
339
- $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', path= '$gallery_path', galdesc = '$gallery_desc', pageid = '$gallery_pageid', previewpic = '$gallery_preview' WHERE gid = '$this->gid'");
340
-
341
- if (isset ($_POST['author'])) {
342
- $gallery_author = (int) $_POST['author'];
343
- $wpdb->query("UPDATE $wpdb->nggallery SET author = '$gallery_author' WHERE gid = '$this->gid'");
 
 
 
 
 
 
 
 
 
 
 
 
344
  }
345
-
346
  $this->update_pictures();
347
 
348
  //hook for other plugin to update the fields
@@ -382,7 +417,8 @@ class nggManageGallery {
382
  $gallery_pageid = wp_insert_post ($page);
383
  if ($gallery_pageid != 0) {
384
  $result = $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', pageid = '$gallery_pageid' WHERE gid = '$this->gid'");
385
- nggGallery::show_message( __('New gallery page ID','nggallery'). ' ' . $pageid . ' -> <strong>' . $gallery_title . '</strong> ' .__('created','nggallery') );
 
386
  }
387
  }
388
  }
@@ -393,22 +429,24 @@ class nggManageGallery {
393
  //TODO:Error message when update failed
394
  //TODO:Combine update in one query per image
395
 
396
- $description = $_POST['description'];
397
- $alttext = $_POST['alttext'];
398
- $exclude = $_POST['exclude'];
399
- $taglist = $_POST['tags'];
400
- $pictures = $_POST['pid'];
401
 
402
  if ( is_array($description) ) {
403
  foreach( $description as $key => $value ) {
404
  $desc = $wpdb->escape($value);
405
  $wpdb->query( "UPDATE $wpdb->nggpictures SET description = '$desc' WHERE pid = $key");
 
406
  }
407
  }
408
  if ( is_array($alttext) ){
409
  foreach( $alttext as $key => $value ) {
410
  $alttext = $wpdb->escape($value);
411
  $wpdb->query( "UPDATE $wpdb->nggpictures SET alttext = '$alttext' WHERE pid = $key");
 
412
  }
413
  }
414
 
@@ -456,7 +494,7 @@ class nggManageGallery {
456
 
457
  return $wpdb->get_col( $query );
458
  }
459
-
460
  function search_images() {
461
  global $nggdb;
462
 
@@ -465,8 +503,8 @@ class nggManageGallery {
465
  //on what ever reason I need to set again the query var
466
  set_query_var('s', $_GET['s']);
467
  $request = get_search_query();
468
- // looknow for the images
469
- $this->search_result = $nggdb->search_for_images( $request );
470
  // show pictures page
471
  $this->mode = 'edit';
472
  }
14
  function nggManageGallery() {
15
 
16
  // GET variables
17
+ if( isset($_GET['gid']) )
18
  $this->gid = (int) $_GET['gid'];
19
+ if( isset($_GET['pid']) )
20
  $this->pid = (int) $_GET['pid'];
21
+ if( isset($_GET['mode']) )
22
  $this->mode = trim ($_GET['mode']);
23
  // Should be only called via manage galleries overview
24
+ if ( isset($_POST['page']) && $_POST['page'] == 'manage-galleries' )
25
  $this->post_processor_galleries();
26
  // Should be only called via a edit single gallery page
27
+ if ( isset($_POST['page']) && $_POST['page'] == 'manage-images' )
28
  $this->post_processor_images();
29
  //Look for other POST process
30
  if ( !empty($_POST) || !empty($_GET) )
80
  }
81
  }
82
 
83
+ $delete_galllery = nggdb::delete_gallery( $this->gid );
 
84
 
85
  if($delete_galllery)
86
  nggGallery::show_message( _n( 'Gallery', 'Galleries', 1, 'nggallery' ) . ' \''.$this->gid.'\' '.__('deleted successfully','nggallery'));
90
 
91
  // Delete a picture
92
  if ($this->mode == 'delpic') {
93
+
94
+ //TODO:Remove also Tag reference
95
  check_admin_referer('ngg_delpicture');
96
  $image = $nggdb->find_image( $this->pid );
97
  if ($image) {
98
  if ($ngg->options['deleteImg']) {
99
  @unlink($image->imagePath);
100
  @unlink($image->thumbPath);
101
+ @unlink($image->imagePath . "_backup" );
102
  }
103
+ $delete_pic = nggdb::delete_image ( $this->pid );
104
+ }
105
+
106
  if($delete_pic)
107
  nggGallery::show_message( __('Picture','nggallery').' \''.$this->pid.'\' '.__('deleted successfully','nggallery') );
108
 
110
 
111
  }
112
 
113
+ // Recover picture from backup
114
+ if ($this->mode == 'recoverpic') {
115
+
116
+ check_admin_referer('ngg_recoverpicture');
117
+ $image = $nggdb->find_image( $this->pid );
118
+ // bring back the old image
119
+ nggAdmin::recover_image($image);
120
+ nggAdmin::create_thumbnail($image);
121
+
122
+ nggGallery::show_message(__('Operation successful. Please clear your browser cache.',"nggallery"));
123
+
124
+ $this->mode = 'edit'; // show pictures
125
+
126
+ }
127
+
128
  // will be called after a ajax operation
129
  if (isset ($_POST['ajax_callback'])) {
130
  if ($_POST['ajax_callback'] == 1)
152
  case 'no_action';
153
  // No action
154
  break;
155
+ case 'recover_images':
156
+ // Recover images from backup
157
+ // A prefix 'gallery_' will first fetch all ids from the selected galleries
158
+ nggAdmin::do_ajax_operation( 'gallery_recover_image' , $_POST['doaction'], __('Recover from backup','nggallery') );
159
+ break;
160
  case 'set_watermark':
161
  // Set watermark
162
  // A prefix 'gallery_' will first fetch all ids from the selected galleries
174
 
175
  check_admin_referer('ngg_addgallery');
176
 
177
+ if ( !nggGallery::current_user_can( 'NextGEN Add new gallery' ))
178
+ wp_die(__('Cheatin&#8217; uh?'));
179
+
180
  // get the default path for a new gallery
181
  $defaultpath = $ngg->options['gallerypath'];
182
  $newgallery = esc_attr( $_POST['galleryname']);
233
  break;
234
  case 'rotate_ccw':
235
  nggAdmin::do_ajax_operation( 'rotate_ccw' , $_POST['doaction'], __('Rotate images', 'nggallery') );
236
+ break;
237
+ case 'recover_images':
238
+ nggAdmin::do_ajax_operation( 'recover_image' , $_POST['doaction'], __('Recover from backup', 'nggallery') );
239
+ break;
240
  case 'set_watermark':
241
  nggAdmin::do_ajax_operation( 'set_watermark' , $_POST['doaction'], __('Set watermark', 'nggallery') );
242
  break;
247
  if ($image) {
248
  if ($ngg->options['deleteImg']) {
249
  @unlink($image->imagePath);
250
+ @unlink($image->thumbPath);
251
+ @unlink($image->imagePath."_backup");
252
  }
253
  $delete_pic = nggdb::delete_image( $image->pid );
254
  }
358
  // Update pictures
359
 
360
  check_admin_referer('ngg_updategallery');
 
 
 
 
 
 
361
 
362
+ if ( nggGallery::current_user_can( 'NextGEN Edit gallery options' )) {
363
+
364
+ if ( nggGallery::current_user_can( 'NextGEN Edit gallery title' ))
365
+ $wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET title= '%s' WHERE gid = %d", $_POST['title'], $this->gid) );
366
+ if ( nggGallery::current_user_can( 'NextGEN Edit gallery path' ))
367
+ $wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET path= '%s' WHERE gid = %d", untrailingslashit ( str_replace('\\', '/', trim( stripslashes($_POST['path']) )) ), $this->gid ) );
368
+ if ( nggGallery::current_user_can( 'NextGEN Edit gallery description' ))
369
+ $wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET galdesc= '%s' WHERE gid = %d", $_POST['gallerydesc'], $this->gid) );
370
+ if ( nggGallery::current_user_can( 'NextGEN Edit gallery page id' ))
371
+ $wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET pageid= '%d' WHERE gid = %d", (int) $_POST['pageid'], $this->gid) );
372
+ if ( nggGallery::current_user_can( 'NextGEN Edit gallery preview pic' ))
373
+ $wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET previewpic= '%d' WHERE gid = %d", (int) $_POST['previewpic'], $this->gid) );
374
+ if ( isset ($_POST['author']) && nggGallery::current_user_can( 'NextGEN Edit gallery author' ) )
375
+ $wpdb->query( $wpdb->prepare ("UPDATE $wpdb->nggallery SET author= '%d' WHERE gid = %d", (int) $_POST['author'], $this->gid) );
376
+
377
+ wp_cache_delete($this->gid, 'ngg_gallery');
378
+
379
  }
380
+
381
  $this->update_pictures();
382
 
383
  //hook for other plugin to update the fields
417
  $gallery_pageid = wp_insert_post ($page);
418
  if ($gallery_pageid != 0) {
419
  $result = $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', pageid = '$gallery_pageid' WHERE gid = '$this->gid'");
420
+ wp_cache_delete($this->gid, 'ngg_gallery');
421
+ nggGallery::show_message( __('New gallery page ID','nggallery'). ' ' . $pageid . ' -> <strong>' . $gallery_title . '</strong> ' .__('created','nggallery') );
422
  }
423
  }
424
  }
429
  //TODO:Error message when update failed
430
  //TODO:Combine update in one query per image
431
 
432
+ $description = isset ( $_POST['description'] ) ? $_POST['description'] : false;
433
+ $alttext = isset ( $_POST['alttext'] ) ? $_POST['alttext'] : false;
434
+ $exclude = isset ( $_POST['exclude'] ) ? $_POST['exclude'] : false;
435
+ $taglist = isset ( $_POST['tags'] ) ? $_POST['tags'] : false;
436
+ $pictures = isset ( $_POST['pid'] ) ? $_POST['pid'] : false;
437
 
438
  if ( is_array($description) ) {
439
  foreach( $description as $key => $value ) {
440
  $desc = $wpdb->escape($value);
441
  $wpdb->query( "UPDATE $wpdb->nggpictures SET description = '$desc' WHERE pid = $key");
442
+ wp_cache_delete($key, 'ngg_image');
443
  }
444
  }
445
  if ( is_array($alttext) ){
446
  foreach( $alttext as $key => $value ) {
447
  $alttext = $wpdb->escape($value);
448
  $wpdb->query( "UPDATE $wpdb->nggpictures SET alttext = '$alttext' WHERE pid = $key");
449
+ wp_cache_delete($key, 'ngg_image');
450
  }
451
  }
452
 
494
 
495
  return $wpdb->get_col( $query );
496
  }
497
+
498
  function search_images() {
499
  global $nggdb;
500
 
503
  //on what ever reason I need to set again the query var
504
  set_query_var('s', $_GET['s']);
505
  $request = get_search_query();
506
+ // look now for the images
507
+ $this->search_result = array_merge( (array) $nggdb->search_for_images( $request ), (array) nggTags::find_images_for_tags( $request , 'ASC' ));
508
  // show pictures page
509
  $this->mode = 'edit';
510
  }
admin/media-upload.php CHANGED
@@ -17,6 +17,9 @@ add_filter('media_upload_tabs', 'ngg_wp_upload_tabs');
17
 
18
  function media_upload_nextgen() {
19
 
 
 
 
20
  // Generate TinyMCE HTML output
21
  if ( isset($_POST['send']) ) {
22
  $keys = array_keys($_POST['send']);
@@ -85,30 +88,63 @@ function media_upload_nextgen_form($errors) {
85
  $post_id = intval($_REQUEST['post_id']);
86
  $galleryID = 0;
87
  $total = 1;
88
- $picarray = false;
89
 
90
  $form_action_url = site_url( "wp-admin/media-upload.php?type={$GLOBALS['type']}&tab=nextgen&post_id=$post_id", 'admin');
91
 
92
  // Get number of images in gallery
93
- if ($_REQUEST['select_gal']){
94
  $galleryID = (int) $_REQUEST['select_gal'];
95
  $total = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$galleryID'");
96
  }
97
 
98
  // Build navigation
99
- $_GET['paged'] = intval($_GET['paged']);
100
  if ( $_GET['paged'] < 1 )
101
  $_GET['paged'] = 1;
102
  $start = ( $_GET['paged'] - 1 ) * 10;
103
  if ( $start < 1 )
104
  $start = 0;
105
-
106
  // Get the images
107
  if ( $galleryID != 0 )
108
  $picarray = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY {$ngg->options['galSort']} {$ngg->options['galSortDir']} LIMIT $start, 10 ");
 
 
 
 
 
109
 
110
  ?>
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  <form id="filter" action="" method="get">
113
  <input type="hidden" name="type" value="<?php echo esc_attr( $GLOBALS['type'] ); ?>" />
114
  <input type="hidden" name="tab" value="<?php echo esc_attr( $GLOBALS['tab'] ); ?>" />
@@ -165,7 +201,7 @@ function media_upload_nextgen_form($errors) {
165
 
166
  <div id="media-items">
167
  <?php
168
- if(is_array($picarray)) {
169
  foreach ($picarray as $picid) {
170
  //TODO:Reduce SQL Queries
171
  $picture = nggdb::find_image($picid);
@@ -184,36 +220,36 @@ function media_upload_nextgen_form($errors) {
184
  <tr><td><?php echo esc_attr( stripslashes($picture->alttext) ); ?></td></tr>
185
  <tr><td>&nbsp;</td></tr>
186
  <tr>
187
- <td class="label"><label for="image[<?php echo $picid ?>][alttext]"><?php esc_attr( _e('Alt/Title text', "nggallery") );?></label></td>
188
- <td class="field"><input id="image[<?php echo $picid ?>][alttext]" name="image[<?php echo $picid ?>][alttext]" value="<?php echo esc_attr( stripslashes($picture->alttext) ); ?>" type="text"/></td>
189
  </tr>
190
  <tr>
191
- <td class="label"><label for="image[<?php echo $picid ?>][description]"><?php esc_attr( _e("Description","nggallery") ); ?></label></td>
192
- <td class="field"><textarea name="image[<?php echo $picid ?>][description]" id="image[<?php echo $picid ?>][description]"><?php echo esc_attr( stripslashes($picture->description) ); ?></textarea></td>
193
  </tr>
194
  <tr class="align">
195
- <td class="label"><label for="image[<?php echo $picid ?>][align]"><?php esc_attr( _e("Alignment") ); ?></label></td>
196
  <td class="field">
197
  <input name="image[<?php echo $picid ?>][align]" id="image-align-none-<?php echo $picid ?>" checked="checked" value="none" type="radio" />
198
- <label for="image-align-none-<?php echo $picid ?>" class="align image-align-none-label"><?php esc_attr( _e("None") );?></label>
199
  <input name="image[<?php echo $picid ?>][align]" id="image-align-left-<?php echo $picid ?>" value="left" type="radio" />
200
- <label for="image-align-left-<?php echo $picid ?>" class="align image-align-left-label"><?php esc_attr( _e("Left") );?></label>
201
  <input name="image[<?php echo $picid ?>][align]" id="image-align-center-<?php echo $picid ?>" value="center" type="radio" />
202
- <label for="image-align-center-<?php echo $picid ?>" class="align image-align-center-label"><?php esc_attr( _e("Center") );?></label>
203
  <input name="image[<?php echo $picid ?>][align]" id="image-align-right-<?php echo $picid ?>" value="right" type="radio" />
204
- <label for="image-align-right-<?php echo $picid ?>" class="align image-align-right-label"><?php esc_attr( _e("Right") );?></label>
205
  </td>
206
  </tr>
207
  <tr class="image-size">
208
- <th class="label"><label for="image[<?php echo $picid ?>][size]"><span class="alignleft"><?php esc_attr( _e("Size") ); ?></span></label>
209
  </th>
210
  <td class="field">
211
  <input name="image[<?php echo $picid ?>][size]" id="image-size-thumb-<?php echo $picid ?>" type="radio" checked="checked" value="thumbnail" />
212
- <label for="image-size-thumb-<?php echo $picid ?>"><?php esc_attr( _e("Thumbnail") ); ?></label>
213
  <input name="image[<?php echo $picid ?>][size]" id="image-size-full-<?php echo $picid ?>" type="radio" value="full" />
214
- <label for="image-size-full-<?php echo $picid ?>"><?php esc_attr( _e("Full size") ); ?></label>
215
  <input name="image[<?php echo $picid ?>][size]" id="image-size-singlepic-<?php echo $picid ?>" type="radio" value="singlepic" />
216
- <label for="image-size-singlepic-<?php echo $picid ?>"><?php esc_attr( _e("Singlepic", "nggallery") ); ?></label>
217
  </td>
218
  </tr>
219
  <tr class="submit">
@@ -221,7 +257,13 @@ function media_upload_nextgen_form($errors) {
221
  <input type="hidden" name="image[<?php echo $picid ?>][thumb]" value="<?php echo $picture->thumbURL ?>" />
222
  <input type="hidden" name="image[<?php echo $picid ?>][url]" value="<?php echo $picture->imageURL ?>" />
223
  </td>
224
- <td class="savesend"><button type="submit" class="button" value="1" name="send[<?php echo $picid ?>]"><?php echo esc_attr( __('Insert into Post') ); ?></button></td>
 
 
 
 
 
 
225
  </tr>
226
  </tbody></table>
227
  </div>
17
 
18
  function media_upload_nextgen() {
19
 
20
+ // Not in use
21
+ $errors = false;
22
+
23
  // Generate TinyMCE HTML output
24
  if ( isset($_POST['send']) ) {
25
  $keys = array_keys($_POST['send']);
88
  $post_id = intval($_REQUEST['post_id']);
89
  $galleryID = 0;
90
  $total = 1;
91
+ $picarray = array();
92
 
93
  $form_action_url = site_url( "wp-admin/media-upload.php?type={$GLOBALS['type']}&tab=nextgen&post_id=$post_id", 'admin');
94
 
95
  // Get number of images in gallery
96
+ if ( isset($_REQUEST['select_gal']) ){
97
  $galleryID = (int) $_REQUEST['select_gal'];
98
  $total = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$galleryID'");
99
  }
100
 
101
  // Build navigation
102
+ $_GET['paged'] = isset($_GET['paged']) ? intval($_GET['paged']) : 0;
103
  if ( $_GET['paged'] < 1 )
104
  $_GET['paged'] = 1;
105
  $start = ( $_GET['paged'] - 1 ) * 10;
106
  if ( $start < 1 )
107
  $start = 0;
108
+
109
  // Get the images
110
  if ( $galleryID != 0 )
111
  $picarray = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY {$ngg->options['galSort']} {$ngg->options['galSortDir']} LIMIT $start, 10 ");
112
+
113
+ // WP-Core code for Post-thumbnail
114
+ $calling_post_id = 0;
115
+ if ( isset( $_GET['post_id'] ) )
116
+ $calling_post_id = $_GET['post_id'];
117
 
118
  ?>
119
 
120
+ <script type="text/javascript">
121
+ <!--
122
+ function NGGSetAsThumbnail(id){
123
+ var $link = jQuery('a#ngg-post-thumbnail-' + id);
124
+
125
+ $link.text( setPostThumbnailL10n.saving );
126
+ jQuery.post(ajaxurl, {
127
+ action:"ngg_set_post_thumbnail", post_id: post_id, thumbnail_id: id, cookie: encodeURIComponent(document.cookie)
128
+ }, function(str){
129
+ var win = window.dialogArguments || opener || parent || top;
130
+ $link.text( setPostThumbnailL10n.setThumbnail );
131
+ if ( str == '0' ) {
132
+ alert( setPostThumbnailL10n.error );
133
+ } else {
134
+ jQuery('a.ngg-post-thumbnail').show();
135
+ $link.text( setPostThumbnailL10n.done );
136
+ $link.fadeOut( 2000 );
137
+ // set some id as meta input filed
138
+ win.WPSetThumbnailID('ngg-' + id);
139
+ // replace the meta box with the image
140
+ win.WPSetThumbnailHTML(str);
141
+ }
142
+ }
143
+ );
144
+ }
145
+ //-->
146
+ </script>
147
+
148
  <form id="filter" action="" method="get">
149
  <input type="hidden" name="type" value="<?php echo esc_attr( $GLOBALS['type'] ); ?>" />
150
  <input type="hidden" name="tab" value="<?php echo esc_attr( $GLOBALS['tab'] ); ?>" />
201
 
202
  <div id="media-items">
203
  <?php
204
+ if( is_array($picarray) ) {
205
  foreach ($picarray as $picid) {
206
  //TODO:Reduce SQL Queries
207
  $picture = nggdb::find_image($picid);
220
  <tr><td><?php echo esc_attr( stripslashes($picture->alttext) ); ?></td></tr>
221
  <tr><td>&nbsp;</td></tr>
222
  <tr>
223
+ <td class="label"><label for="image[<?php echo $picid ?>][alttext]"><?php esc_attr_e('Alt/Title text', "nggallery") ;?></label></td>
224
+ <td class="field"><input id="image[<?php echo $picid ?>][alttext]" name="image[<?php echo $picid ?>][alttext]" value="<?php esc_attr_e( stripslashes($picture->alttext) ); ?>" type="text"/></td>
225
  </tr>
226
  <tr>
227
+ <td class="label"><label for="image[<?php echo $picid ?>][description]"><?php esc_attr_e("Description","nggallery") ; ?></label></td>
228
+ <td class="field"><textarea name="image[<?php echo $picid ?>][description]" id="image[<?php echo $picid ?>][description]"><?php esc_attr_e( stripslashes($picture->description) ); ?></textarea></td>
229
  </tr>
230
  <tr class="align">
231
+ <td class="label"><label for="image[<?php echo $picid ?>][align]"><?php esc_attr_e("Alignment"); ?></label></td>
232
  <td class="field">
233
  <input name="image[<?php echo $picid ?>][align]" id="image-align-none-<?php echo $picid ?>" checked="checked" value="none" type="radio" />
234
+ <label for="image-align-none-<?php echo $picid ?>" class="align image-align-none-label"><?php esc_attr_e("None") ;?></label>
235
  <input name="image[<?php echo $picid ?>][align]" id="image-align-left-<?php echo $picid ?>" value="left" type="radio" />
236
+ <label for="image-align-left-<?php echo $picid ?>" class="align image-align-left-label"><?php esc_attr_e("Left") ;?></label>
237
  <input name="image[<?php echo $picid ?>][align]" id="image-align-center-<?php echo $picid ?>" value="center" type="radio" />
238
+ <label for="image-align-center-<?php echo $picid ?>" class="align image-align-center-label"><?php esc_attr_e("Center") ;?></label>
239
  <input name="image[<?php echo $picid ?>][align]" id="image-align-right-<?php echo $picid ?>" value="right" type="radio" />
240
+ <label for="image-align-right-<?php echo $picid ?>" class="align image-align-right-label"><?php esc_attr_e("Right") ;?></label>
241
  </td>
242
  </tr>
243
  <tr class="image-size">
244
+ <th class="label"><label for="image[<?php echo $picid ?>][size]"><span class="alignleft"><?php esc_attr_e("Size") ; ?></span></label>
245
  </th>
246
  <td class="field">
247
  <input name="image[<?php echo $picid ?>][size]" id="image-size-thumb-<?php echo $picid ?>" type="radio" checked="checked" value="thumbnail" />
248
+ <label for="image-size-thumb-<?php echo $picid ?>"><?php esc_attr_e("Thumbnail") ; ?></label>
249
  <input name="image[<?php echo $picid ?>][size]" id="image-size-full-<?php echo $picid ?>" type="radio" value="full" />
250
+ <label for="image-size-full-<?php echo $picid ?>"><?php esc_attr_e("Full size") ; ?></label>
251
  <input name="image[<?php echo $picid ?>][size]" id="image-size-singlepic-<?php echo $picid ?>" type="radio" value="singlepic" />
252
+ <label for="image-size-singlepic-<?php echo $picid ?>"><?php esc_attr_e("Singlepic", "nggallery") ; ?></label>
253
  </td>
254
  </tr>
255
  <tr class="submit">
257
  <input type="hidden" name="image[<?php echo $picid ?>][thumb]" value="<?php echo $picture->thumbURL ?>" />
258
  <input type="hidden" name="image[<?php echo $picid ?>][url]" value="<?php echo $picture->imageURL ?>" />
259
  </td>
260
+ <td class="savesend">
261
+ <?php
262
+ if ( $calling_post_id && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) ) )
263
+ echo "<a class='ngg-post-thumbnail' id='ngg-post-thumbnail-" . $picid . "' href='#' onclick='NGGSetAsThumbnail(\"$picid\");return false;'>" . esc_html__( 'Use as thumbnail' ) . "</a>";
264
+ ?>
265
+ <button type="submit" class="button" value="1" name="send[<?php echo $picid ?>]"><?php esc_html_e( 'Insert into Post' ); ?></button>
266
+ </td>
267
  </tr>
268
  </tbody></table>
269
  </div>
admin/overview.php CHANGED
@@ -30,6 +30,46 @@ function nggallery_admin_overview() {
30
  </div>
31
  <script type="text/javascript">
32
  //<![CDATA[
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  jQuery(document).ready( function($) {
34
  // postboxes setup
35
  postboxes.add_postbox_toggles('ngg-overview');
@@ -39,6 +79,19 @@ function nggallery_admin_overview() {
39
  <?php
40
  }
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  /**
43
  * Show the server settings in a dashboard widget
44
  *
@@ -91,6 +144,10 @@ function ngg_overview_graphic_lib() {
91
  *
92
  * @return void
93
  */
 
 
 
 
94
  function ngg_overview_donators() {
95
  global $ngg;
96
 
@@ -136,33 +193,63 @@ function ngg_overview_donators() {
136
  *
137
  * @return void
138
  */
 
 
 
139
  function ngg_overview_news(){
140
- // get feed_messages
141
- require_once(ABSPATH . WPINC . '/rss.php');
142
  ?>
143
  <div class="rss-widget">
144
  <?php
145
- $rss = @fetch_rss('http://feeds.feedburner.com/alexrabe/');
146
-
147
- if ( isset($rss->items) && 0 != count($rss->items) )
148
- {
149
- $rss->items = array_slice($rss->items, 0, 3);
150
- echo "<ul>";
151
- foreach ($rss->items as $item)
152
- {
153
- ?>
154
- <li><a class="rsswidget" title="" href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a>
155
- <span class="rss-date"><?php echo date("F jS, Y", strtotime($item['pubdate'])); ?></span>
156
- <div class="rssSummary"><strong><?php echo human_time_diff(strtotime($item['pubdate'], time())); ?></strong> - <?php echo $item['description']; ?></div></li>
157
- <?php
158
  }
159
- echo "</ul>";
160
- }
161
- else
162
- {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  ?>
164
- <p><?php printf(__('Newsfeed could not be loaded. Check the <a href="%s">front page</a> to check for updates.', 'nggallery'), 'http://alexrabe.boelinger.com/') ?></p>
 
 
165
  <?php
 
 
166
  }
167
  ?>
168
  </div>
@@ -181,8 +268,8 @@ function ngg_overview_right_now() {
181
  $albums = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggalbum") );
182
  ?>
183
 
184
- <p class="sub"><?php _e('At a Glance', 'nggallery'); ?></p>
185
- <div class="table">
186
  <table>
187
  <tbody>
188
  <tr class="first">
@@ -206,9 +293,9 @@ function ngg_overview_right_now() {
206
  </tbody>
207
  </table>
208
  </div>
209
- <div class="versions">
210
  <p>
211
- <?php if(current_user_can('NextGEN Upload images')): ?><a class="button rbutton" href="admin.php?page=nggallery-add-gallery"><strong><?php _e('Upload pictures', 'nggallery') ?></strong></a><?php endif; ?>
212
  <?php _e('Here you can control your images, galleries and albums.', 'nggallery') ?>
213
  </p>
214
  <span>
@@ -221,12 +308,81 @@ function ngg_overview_right_now() {
221
  <?php
222
  }
223
 
224
- add_meta_box('dashboard_right_now', __('Welcome to NextGEN Gallery !', 'nggallery'), 'ngg_overview_right_now', 'ngg_overview', 'left', 'core');
225
- add_meta_box('dashboard_primary', __('Latest News', 'nggallery'), 'ngg_overview_news', 'ngg_overview', 'right', 'core');
226
- add_meta_box('ngg_lastdonators', __('Recent donators', 'nggallery'), 'ngg_overview_donators', 'ngg_overview', 'left', 'core');
227
- add_meta_box('ngg_server', __('Server Settings', 'nggallery'), 'ngg_overview_server', 'ngg_overview', 'left', 'core');
228
- add_meta_box('dashboard_plugins', __('Related plugins', 'nggallery'), 'ngg_related_plugins', 'ngg_overview', 'right', 'core');
229
- add_meta_box('ngg_gd_lib', __('Graphic Library', 'nggallery'), 'ngg_overview_graphic_lib', 'ngg_overview', 'right', 'core');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
 
231
  /**
232
  * Show GD Library version information
@@ -289,8 +445,8 @@ function ngg_get_serverinfo() {
289
  if(ini_get('upload_max_filesize')) $upload_max = ini_get('upload_max_filesize');
290
  else $upload_max = __('N/A', 'nggallery');
291
  // Get PHP Output buffer Size
292
- if(ini_get('output_buffering')) $output_buffer = ini_get('output_buffering');
293
- else $output_buffer = __('N/A', 'nggallery');
294
  // Get PHP Max Post Size
295
  if(ini_get('post_max_size')) $post_max = ini_get('post_max_size');
296
  else $post_max = __('N/A', 'nggallery');
@@ -325,7 +481,7 @@ function ngg_get_serverinfo() {
325
  <li><?php _e('PHP Memory Limit', 'nggallery'); ?> : <span><?php echo $memory_limit; ?></span></li>
326
  <li><?php _e('PHP Max Upload Size', 'nggallery'); ?> : <span><?php echo $upload_max; ?></span></li>
327
  <li><?php _e('PHP Max Post Size', 'nggallery'); ?> : <span><?php echo $post_max; ?></span></li>
328
- <li><?php _e('PHP Output Buffer Size', 'nggallery'); ?> : <span><?php echo $output_buffer; ?></span></li>
329
  <li><?php _e('PHP Max Script Execute Time', 'nggallery'); ?> : <span><?php echo $max_execute; ?>s</span></li>
330
  <li><?php _e('PHP Exif support', 'nggallery'); ?> : <span><?php echo $exif; ?></span></li>
331
  <li><?php _e('PHP IPTC support', 'nggallery'); ?> : <span><?php echo $iptc; ?></span></li>
@@ -355,7 +511,7 @@ function ngg_check_for_PHP5() {
355
  class ngg_SpaceManager {
356
 
357
  function getQuota() {
358
- if (function_exists(get_space_allowed))
359
  $quota = get_space_allowed();
360
  else
361
  $quota = get_site_option( "blog_upload_space" );
@@ -498,6 +654,9 @@ function ngg_get_phpinfo() {
498
  *
499
  * @return postbox output
500
  */
 
 
 
501
  function ngg_related_plugins() {
502
  include(ABSPATH . 'wp-admin/includes/plugin-install.php');
503
 
30
  </div>
31
  <script type="text/javascript">
32
  //<![CDATA[
33
+ var ajaxWidgets, ajaxPopulateWidgets;
34
+
35
+ jQuery(document).ready( function($) {
36
+ // These widgets are sometimes populated via ajax
37
+ ajaxWidgets = [
38
+ 'ngg_lastdonators',
39
+ 'dashboard_primary',
40
+ 'ngg_locale',
41
+ 'dashboard_plugins'
42
+ ];
43
+
44
+ ajaxPopulateWidgets = function(el) {
45
+ show = function(id, i) {
46
+ var p, e = $('#' + id + ' div.inside:visible').find('.widget-loading');
47
+ if ( e.length ) {
48
+ p = e.parent();
49
+ setTimeout( function(){
50
+ p.load('admin-ajax.php?action=ngg_dashboard&jax=' + id, '', function() {
51
+ p.hide().slideDown('normal', function(){
52
+ $(this).css('display', '');
53
+ if ( 'dashboard_plugins' == id && $.isFunction(tb_init) )
54
+ tb_init('#dashboard_plugins a.thickbox');
55
+ });
56
+ });
57
+ }, i * 500 );
58
+ }
59
+ }
60
+ if ( el ) {
61
+ el = el.toString();
62
+ if ( $.inArray(el, ajaxWidgets) != -1 )
63
+ show(el, 0);
64
+ } else {
65
+ $.each( ajaxWidgets, function(i) {
66
+ show(this, i);
67
+ });
68
+ }
69
+ };
70
+ ajaxPopulateWidgets();
71
+ } );
72
+
73
  jQuery(document).ready( function($) {
74
  // postboxes setup
75
  postboxes.add_postbox_toggles('ngg-overview');
79
  <?php
80
  }
81
 
82
+ /**
83
+ * Load the meta boxes
84
+ *
85
+ */
86
+ add_meta_box('dashboard_right_now', __('Welcome to NextGEN Gallery !', 'nggallery'), 'ngg_overview_right_now', 'ngg_overview', 'left', 'core');
87
+ if ( !(get_locale() == 'en_US') )
88
+ add_meta_box('ngg_locale', __('Translation', 'nggallery'), 'ngg_widget_locale', 'ngg_overview', 'left', 'core');
89
+ add_meta_box('dashboard_primary', __('Latest News', 'nggallery'), 'ngg_widget_overview_news', 'ngg_overview', 'right', 'core');
90
+ add_meta_box('ngg_lastdonators', __('Recent donators', 'nggallery'), 'ngg_widget_overview_donators', 'ngg_overview', 'left', 'core');
91
+ add_meta_box('ngg_server', __('Server Settings', 'nggallery'), 'ngg_overview_server', 'ngg_overview', 'left', 'core');
92
+ add_meta_box('dashboard_plugins', __('Related plugins', 'nggallery'), 'ngg_widget_related_plugins', 'ngg_overview', 'right', 'core');
93
+ add_meta_box('ngg_gd_lib', __('Graphic Library', 'nggallery'), 'ngg_overview_graphic_lib', 'ngg_overview', 'right', 'core');
94
+
95
  /**
96
  * Show the server settings in a dashboard widget
97
  *
144
  *
145
  * @return void
146
  */
147
+ function ngg_widget_overview_donators() {
148
+ echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
149
+ }
150
+
151
  function ngg_overview_donators() {
152
  global $ngg;
153
 
193
  *
194
  * @return void
195
  */
196
+ function ngg_widget_overview_news() {
197
+ echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
198
+ }
199
  function ngg_overview_news(){
200
+
 
201
  ?>
202
  <div class="rss-widget">
203
  <?php
204
+ $rss = @fetch_feed( 'http://feeds.feedburner.com/alexrabe' );
205
+
206
+ if ( is_object($rss) ) {
207
+
208
+ if ( is_wp_error($rss) ) {
209
+ echo '<p>' . sprintf(__('Newsfeed could not be loaded. Check the <a href="%s">front page</a> to check for updates.', 'nggallery'), 'http://alexrabe.de/') . '</p>';
210
+ return;
 
 
 
 
 
 
211
  }
212
+
213
+ echo '<ul>';
214
+ foreach ( $rss->get_items(0, 3) as $item ) {
215
+ $link = $item->get_link();
216
+ while ( stristr($link, 'http') != $link )
217
+ $link = substr($link, 1);
218
+ $link = esc_url(strip_tags($link));
219
+ $title = esc_attr(strip_tags($item->get_title()));
220
+ if ( empty($title) )
221
+ $title = __('Untitled');
222
+
223
+ $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
224
+ $desc = wp_html_excerpt( $desc, 360 );
225
+
226
+ // Append ellipsis. Change existing [...] to [&hellip;].
227
+ if ( '[...]' == substr( $desc, -5 ) )
228
+ $desc = substr( $desc, 0, -5 ) . '[&hellip;]';
229
+ elseif ( '[&hellip;]' != substr( $desc, -10 ) )
230
+ $desc .= ' [&hellip;]';
231
+
232
+ $desc = esc_html( $desc );
233
+
234
+ $date = $item->get_date();
235
+ $diff = '';
236
+
237
+ if ( $date ) {
238
+
239
+ $diff = human_time_diff( strtotime($date, time()) );
240
+
241
+ if ( $date_stamp = strtotime( $date ) )
242
+ $date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' ), $date_stamp ) . '</span>';
243
+ else
244
+ $date = '';
245
+ }
246
  ?>
247
+ <li><a class="rsswidget" title="" href='<?php echo $link; ?>'><?php echo $title; ?></a>
248
+ <span class="rss-date"><?php echo $date; ?></span>
249
+ <div class="rssSummary"><strong><?php echo $diff; ?></strong> - <?php echo $desc; ?></div></li>
250
  <?php
251
+ }
252
+ echo '</ul>';
253
  }
254
  ?>
255
  </div>
268
  $albums = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggalbum") );
269
  ?>
270
 
271
+ <div class="table table_content">
272
+ <p class="sub"><?php _e('At a Glance', 'nggallery'); ?></p>
273
  <table>
274
  <tbody>
275
  <tr class="first">
293
  </tbody>
294
  </table>
295
  </div>
296
+ <div class="versions" style="padding-top:14px">
297
  <p>
298
+ <?php if(current_user_can('NextGEN Upload images')): ?><a class="button rbutton" href="admin.php?page=nggallery-add-gallery"><?php _e('Upload pictures', 'nggallery') ?></a><?php endif; ?>
299
  <?php _e('Here you can control your images, galleries and albums.', 'nggallery') ?>
300
  </p>
301
  <span>
308
  <?php
309
  }
310
 
311
+ /**
312
+ * Looks up for translation file
313
+ *
314
+ * @return void
315
+ */
316
+ function ngg_widget_locale() {
317
+
318
+ require_once(NGGALLERY_ABSPATH . '/lib/locale.php');
319
+
320
+ $locale = new ngg_locale();
321
+
322
+ $overview_url = admin_url() . 'admin.php?page=' . NGGFOLDER;
323
+
324
+ // Check if someone would like to update the translation file
325
+ if ( isset($_GET['locale']) && $_GET['locale'] == 'update' ) {
326
+ check_admin_referer('ngg_update_locale');
327
+
328
+ $result = $locale->download_locale();
329
+
330
+ if ($result == true) {
331
+ ?>
332
+ <p class="hint"><?php _e('Translation file successful updated. Please reload page.', 'nggallery'); ?></p>
333
+ <p class="textright">
334
+ <a class="button" href="<?php echo esc_url(strip_tags($overview_url)); ?>"><?php _e('Reload page', 'nggallery'); ?></a>
335
+ </p>
336
+ <?php
337
+ } else {
338
+ ?>
339
+ <p class="hint"><?php _e('Translation file couldn\'t be updated', 'nggallery'); ?></p>
340
+ <?php
341
+ }
342
+
343
+ return;
344
+ }
345
+
346
+ echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
347
+ }
348
+
349
+ function ngg_locale() {
350
+ global $ngg;
351
+
352
+ require_once(NGGALLERY_ABSPATH . '/lib/locale.php');
353
+
354
+ $locale = new ngg_locale();
355
+ $overview_url = admin_url() . 'admin.php?page=' . NGGFOLDER;
356
+ $result = $locale->check();
357
+ $update_url = wp_nonce_url ( $overview_url . '&amp;locale=update', 'ngg_update_locale');
358
+
359
+ //Translators can change this text via gettext
360
+ if ($result == 'installed') {
361
+ echo $ngg->translator;
362
+ if ( !is_wp_error($locale->response) && $locale->response['response']['code'] == '200') {
363
+ ?>
364
+ <p class="textright">
365
+ <a class="button" href="<?php echo esc_url( strip_tags($update_url) ); ?>"><?php _e('Update', 'nggallery'); ?></a>
366
+ </p>
367
+ <?php
368
+ }
369
+ }
370
+
371
+ //Translators can change this text via gettext
372
+ if ($result == 'available') {
373
+ ?>
374
+ <p><strong>Download now your language file !</strong></p>
375
+ <p class="textright">
376
+ <a class="button" href="<?php echo esc_url( strip_tags($update_url) ); ?>"><?php _e('Download', 'nggallery'); ?></a>
377
+ </p>
378
+ <?php
379
+ }
380
+
381
+
382
+ if ($result == 'not_exist')
383
+ echo '<p class="hint">'. sprintf( '<strong>Would you like to help to translate this plugin ?</strong> <a target="_blank" href="%s">Download</a> the current pot file and read <a href="http://alexrabe.de/wordpress-plugins/wordtube/translation-of-plugins/">here</a> how you can translate the plugin.', NGGALLERY_URLPATH . 'lang/nggallery.pot').'</p>';
384
+
385
+ }
386
 
387
  /**
388
  * Show GD Library version information
445
  if(ini_get('upload_max_filesize')) $upload_max = ini_get('upload_max_filesize');
446
  else $upload_max = __('N/A', 'nggallery');
447
  // Get PHP Output buffer Size
448
+ if(ini_get('pcre.backtrack_limit')) $backtrack_limit = ini_get('pcre.backtrack_limit');
449
+ else $backtrack_limit = __('N/A', 'nggallery');
450
  // Get PHP Max Post Size
451
  if(ini_get('post_max_size')) $post_max = ini_get('post_max_size');
452
  else $post_max = __('N/A', 'nggallery');
481
  <li><?php _e('PHP Memory Limit', 'nggallery'); ?> : <span><?php echo $memory_limit; ?></span></li>
482
  <li><?php _e('PHP Max Upload Size', 'nggallery'); ?> : <span><?php echo $upload_max; ?></span></li>
483
  <li><?php _e('PHP Max Post Size', 'nggallery'); ?> : <span><?php echo $post_max; ?></span></li>
484
+ <li><?php _e('PCRE Backtracking Limit', 'nggallery'); ?> : <span><?php echo $backtrack_limit; ?></span></li>
485
  <li><?php _e('PHP Max Script Execute Time', 'nggallery'); ?> : <span><?php echo $max_execute; ?>s</span></li>
486
  <li><?php _e('PHP Exif support', 'nggallery'); ?> : <span><?php echo $exif; ?></span></li>
487
  <li><?php _e('PHP IPTC support', 'nggallery'); ?> : <span><?php echo $iptc; ?></span></li>
511
  class ngg_SpaceManager {
512
 
513
  function getQuota() {
514
+ if (function_exists('get_space_allowed'))
515
  $quota = get_space_allowed();
516
  else
517
  $quota = get_site_option( "blog_upload_space" );
654
  *
655
  * @return postbox output
656
  */
657
+ function ngg_widget_related_plugins() {
658
+ echo '<p class="widget-loading hide-if-no-js">' . __( 'Loading&#8230;' ) . '</p><p class="describe hide-if-js">' . __('This widget requires JavaScript.') . '</p>';
659
+ }
660
  function ngg_related_plugins() {
661
  include(ABSPATH . 'wp-admin/includes/plugin-install.php');
662
 
admin/roles.php CHANGED
@@ -26,7 +26,7 @@ if ( isset($_POST['update_cap']) ) {
26
  <div class="wrap">
27
  <h2><?php _e('Roles / capabilities', 'nggallery') ;?></h2>
28
  <p><?php _e('Select the lowest role which should be able to access the follow capabilities. NextGEN Gallery supports the standard roles from WordPress.', 'nggallery') ?> <br />
29
- <?php _e('For a more flexible user management you can use the', 'nggallery') ?> <a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" target="_blank">Role Manager</a>.</p>
30
  <form name="addroles" id="addroles" method="POST" accept-charset="utf-8" >
31
  <?php wp_nonce_field('ngg_addroles') ?>
32
  <table class="form-table">
@@ -126,7 +126,7 @@ function ngg_set_capability($lowest_role, $capability){
126
  if ( $lowest_role == $role )
127
  $add_capability = true;
128
 
129
- // If you rename the roles, then please use the role manager plugin
130
 
131
  if ( empty($the_role) )
132
  continue;
26
  <div class="wrap">
27
  <h2><?php _e('Roles / capabilities', 'nggallery') ;?></h2>
28
  <p><?php _e('Select the lowest role which should be able to access the follow capabilities. NextGEN Gallery supports the standard roles from WordPress.', 'nggallery') ?> <br />
29
+ <?php _e('For a more flexible user management you can use the', 'nggallery') ?> <a href="http://wordpress.org/extend/plugins/capsman/" target="_blank">Capability Manager</a>.</p>
30
  <form name="addroles" id="addroles" method="POST" accept-charset="utf-8" >
31
  <?php wp_nonce_field('ngg_addroles') ?>
32
  <table class="form-table">
126
  if ( $lowest_role == $role )
127
  $add_capability = true;
128
 
129
+ // If you rename the roles, then please use a role manager plugin
130
 
131
  if ( empty($the_role) )
132
  continue;
admin/rotate.php CHANGED
@@ -36,7 +36,7 @@ $thumb->resize(350,350);
36
  $resizedPreviewInfo = $thumb->newDimensions;
37
  $thumb->destruct();
38
 
39
- $preview_image = NGGALLERY_URLPATH . 'nggshow.php?pid=' . $picture->pid . '&amp;width=350&amp;height=350';
40
 
41
  ?>
42
 
36
  $resizedPreviewInfo = $thumb->newDimensions;
37
  $thumb->destruct();
38
 
39
+ $preview_image = get_option ('siteurl') . '/' . 'index.php?callback=image&amp;pid=' . $picture->pid . '&amp;width=350&amp;height=350';
40
 
41
  ?>
42
 
admin/settings.php CHANGED
@@ -1,68 +1,110 @@
1
  <?php
2
  if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
 
4
- function nggallery_admin_options() {
5
-
6
- global $wpdb, $ngg, $nggRewrite;
7
-
8
- $old_state = $ngg->options['usePermalinks'];
9
-
10
- // same as $_SERVER['REQUEST_URI'], but should work under IIS 6.0
11
- $filepath = admin_url() . 'admin.php?page='.$_GET['page'];
12
 
13
- if ( isset($_POST['irDetect']) ) {
14
- check_admin_referer('ngg_settings');
15
- $ngg->options['irURL'] = ngg_search_imagerotator();
16
- update_option('ngg_options', $ngg->options);
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- if ( isset($_POST['updateoption']) ) {
20
- check_admin_referer('ngg_settings');
21
- // get the hidden option fields, taken from WP core
22
- if ( $_POST['page_options'] )
23
- $options = explode(',', stripslashes($_POST['page_options']));
24
- if ($options) {
25
- foreach ($options as $option) {
26
- $option = trim($option);
27
- $value = trim($_POST[$option]);
28
- // $value = sanitize_option($option, $value); // This does stripslashes on those that need it
29
- $ngg->options[$option] = $value;
30
- }
31
- // the path should always end with a slash
32
- $ngg->options['gallerypath'] = trailingslashit($ngg->options['gallerypath']);
33
- $ngg->options['imageMagickDir'] = trailingslashit($ngg->options['imageMagickDir']);
34
- // the custom sortorder must be ascending
35
- $ngg->options['galSortDir'] = ($ngg->options['galSort'] == 'sortorder') ? 'ASC' : $ngg->options['galSortDir'];
36
- }
37
- // Save options
38
- update_option('ngg_options', $ngg->options);
39
 
40
- // Flush ReWrite rules
41
- if ( $old_state != $ngg->options['usePermalinks'] )
42
- $nggRewrite->flush();
43
-
44
- nggGallery::show_message(__('Update Successfully','nggallery'));
45
- }
46
-
47
- if ( isset($_POST['clearcache']) ) {
48
-
49
- $path = WINABSPATH . $ngg->options['gallerypath'] . 'cache/';
50
-
51
- if (is_dir($path))
52
- if ($handle = opendir($path)) {
53
- while (false !== ($file = readdir($handle))) {
54
- if ($file != '.' && $file != '..') {
55
- @unlink($path . '/' . $file);
56
- }
57
- }
58
- closedir($handle);
59
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
- nggGallery::show_message(__('Cache cleared','nggallery'));
62
- }
63
- // message windows
64
- if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
65
-
66
  ?>
67
  <script type="text/javascript">
68
  jQuery(document).ready(function(){
@@ -124,502 +166,563 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
124
  </script>
125
 
126
  <div id="slider" class="wrap">
127
-
128
- <ul id="tabs">
129
- <li><a href="#generaloptions"><?php _e('General Options', 'nggallery') ;?></a></li>
130
- <li><a href="#thumbnails"><?php _e('Thumbnails', 'nggallery') ;?></a></li>
131
- <li><a href="#images"><?php _e('Images', 'nggallery') ;?></a></li>
132
- <li><a href="#gallery"><?php echo _n( 'Gallery', 'Galleries', 1, 'nggallery' ) ;?></a></li>
133
- <li><a href="#effects"><?php _e('Effects', 'nggallery') ;?></a></li>
134
- <li><a href="#watermark"><?php _e('Watermark', 'nggallery') ;?></a></li>
135
- <li><a href="#slideshow"><?php _e('Slideshow', 'nggallery') ;?></a></li>
136
  </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
 
138
- <!-- General Options -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
140
- <div id="generaloptions">
141
- <h2><?php _e('General Options','nggallery'); ?></h2>
142
- <form name="generaloptions" method="post">
143
- <?php wp_nonce_field('ngg_settings') ?>
144
- <input type="hidden" name="page_options" value="gallerypath,deleteImg,useMediaRSS,usePicLens,usePermalinks,graphicLibrary,imageMagickDir,activateTags,appendType,maxImages" />
145
- <table class="form-table ngg-options">
146
- <tr valign="top">
147
- <th align="left"><?php _e('Gallery path','nggallery'); ?></th>
148
- <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="text" size="35" name="gallerypath" value="<?php echo $ngg->options['gallerypath']; ?>" />
149
- <span class="setting-description"><?php _e('This is the default path for all galleries','nggallery') ?></span></td>
150
- </tr>
151
- <tr class="expert" valign="top">
152
- <th align="left"><?php _e('Delete image files','nggallery') ?></th>
153
- <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="deleteImg" value="1" <?php checked('1', $ngg->options['deleteImg']); ?> />
154
- <?php _e('Delete files, when removing a gallery in the database','nggallery') ?></td>
155
- </tr>
156
- <tr valign="top">
157
- <th align="left"><?php _e('Activate permalinks','nggallery') ?></th>
158
- <td><input type="checkbox" name="usePermalinks" value="1" <?php checked('1', $ngg->options['usePermalinks']); ?> />
159
- <?php _e('When you activate this option, you need to update your permalink structure one time.','nggallery') ?></td>
160
- </tr>
161
- <tr class="expert">
162
- <th valign="top"><?php _e('Select graphic library','nggallery') ?>:</th>
163
- <td><label><input name="graphicLibrary" type="radio" value="gd" <?php checked('gd', $ngg->options['graphicLibrary']); ?> /> <?php _e('GD Library', 'nggallery') ;?></label><br />
164
- <label><input name="graphicLibrary" type="radio" value="im" <?php checked('im', $ngg->options['graphicLibrary']); ?> /> <?php _e('ImageMagick (Experimental). Path to the library :', 'nggallery') ;?>&nbsp;
165
- <input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="text" size="35" name="imageMagickDir" value="<?php echo $ngg->options['imageMagickDir']; ?>" /></label>
166
- </td>
167
- </tr>
168
- <tr>
169
- <th align="left"><?php _e('Activate Media RSS feed','nggallery') ?></th>
170
- <td><input type="checkbox" name="useMediaRSS" value="1" <?php checked('1', $ngg->options['useMediaRSS']); ?> />
171
- <span class="setting-description"><?php _e('A RSS feed will be added to you blog header. Useful for CoolIris/PicLens','nggallery') ?></span></td>
172
- </tr>
173
- <tr>
174
- <th align="left"><?php _e('Activate PicLens/CoolIris support','nggallery') ?> (<a href="http://www.cooliris.com">CoolIris</a>)</th>
175
- <td><input type="checkbox" name="usePicLens" value="1" <?php checked('1', $ngg->options['usePicLens']); ?> />
176
- <span class="setting-description"><?php _e('When you activate this option, some javascript is added to your site footer. Make sure that wp_footer is called in your theme.','nggallery') ?></span></td>
177
- </tr>
178
- </table>
179
- <h3 class="expert"><?php _e('Tags / Categories','nggallery') ?></h3>
180
- <table class="expert form-table ngg-options">
181
- <tr>
182
- <th valign="top"><?php _e('Activate related images','nggallery') ?>:</th>
183
- <td><input name="activateTags" type="checkbox" value="1" <?php checked('1', $ngg->options['activateTags']); ?> />
184
- <?php _e('This option will append related images to every post','nggallery') ?>
185
- </td>
186
- </tr>
187
- <tr>
188
- <th valign="top"><?php _e('Match with','nggallery') ?>:</th>
189
- <td><label><input name="appendType" type="radio" value="category" <?php checked('category', $ngg->options['appendType']); ?> /> <?php _e('Categories', 'nggallery') ;?></label><br />
190
- <label><input name="appendType" type="radio" value="tags" <?php checked('tags', $ngg->options['appendType']); ?> /> <?php _e('Tags', 'nggallery') ;?></label>
191
- </td>
192
- </tr>
193
- <tr>
194
- <th valign="top"><?php _e('Max. number of images','nggallery') ?>:</th>
195
- <td><input type="text" name="maxImages" value="<?php echo $ngg->options['maxImages'] ?>" size="3" maxlength="3" />
196
- <span class="setting-description"><?php _e('0 will show all images','nggallery') ?></span>
197
- </td>
198
- </tr>
199
- </table>
200
- <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
201
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes'); ?>"/></div>
202
- </form>
203
- </div>
204
-
205
- <!-- Thumbnail settings -->
206
-
207
- <div id="thumbnails">
208
- <h2><?php _e('Thumbnail settings','nggallery'); ?></h2>
209
- <form name="thumbnailsettings" method="POST" action="<?php echo $filepath.'#thumbnails'; ?>" >
210
- <?php wp_nonce_field('ngg_settings') ?>
211
- <input type="hidden" name="page_options" value="thumbwidth,thumbheight,thumbfix,thumbquality" />
212
- <p><?php _e('Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery .', 'nggallery') ?></p>
213
- <table class="form-table ngg-options">
214
- <tr valign="top">
215
- <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
216
- <td><input type="text" size="4" maxlength="4" name="thumbwidth" value="<?php echo $ngg->options['thumbwidth']; ?>" /> x <input type="text" size="4" maxlength="4" name="thumbheight" value="<?php echo $ngg->options['thumbheight']; ?>" />
217
- <span class="setting-description"><?php _e('These values are maximum values ','nggallery') ?></span></td>
218
- </tr>
219
- <tr valign="top">
220
- <th align="left"><?php _e('Set fix dimension','nggallery') ?></th>
221
- <td><input type="checkbox" name="thumbfix" value="1" <?php checked('1', $ngg->options['thumbfix']); ?> />
222
- <?php _e('Ignore the aspect ratio, no portrait thumbnails','nggallery') ?></td>
223
- </tr>
224
- <tr class="expert" valign="top">
225
- <th align="left"><?php _e('Thumbnail quality','nggallery') ?></th>
226
- <td><input type="text" size="3" maxlength="3" name="thumbquality" value="<?php echo $ngg->options['thumbquality']; ?>" /> %</td>
227
- </tr>
228
- </table>
229
- <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
230
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
231
- </form>
232
- </div>
233
-
 
 
 
 
 
 
 
 
 
 
234
  <!-- Image settings -->
235
-
236
- <div id="images">
237
- <h2><?php _e('Image settings','nggallery'); ?></h2>
238
- <form name="imagesettings" method="POST" action="<?php echo $filepath.'#images'; ?>" >
239
- <?php wp_nonce_field('ngg_settings') ?>
240
- <input type="hidden" name="page_options" value="imgResize,imgWidth,imgHeight,imgQuality,imgCacheSinglePic" />
241
- <table class="form-table ngg-options">
242
- <tr valign="top">
243
- <th scope="row"><label for="fixratio"><?php _e('Resize Images','nggallery') ?></label></th>
244
- <!--TODO: checkbox fixratio can be used later -->
245
- <td><input type="hidden" name="imgResize" value="1" <?php checked('1', $ngg->options['imgResize']); ?> /> </td>
246
- <td><input type="text" size="5" name="imgWidth" value="<?php echo $ngg->options['imgWidth']; ?>" /> x <input type="text" size="5" name="imgHeight" value="<?php echo $ngg->options['imgHeight']; ?>" />
247
- <span class="setting-description"><?php _e('Width x height (in pixel). NextGEN Gallery will keep ratio size','nggallery') ?></span></td>
248
- </tr>
249
- <tr valign="top">
250
- <th align="left"><?php _e('Image quality','nggallery') ?></th>
251
- <td></td>
252
- <td><input type="text" size="3" maxlength="3" name="imgQuality" value="<?php echo $ngg->options['imgQuality']; ?>" /> %</td>
253
- </tr>
254
- </table>
255
- <h3 class="expert"><?php _e('Single picture','nggallery') ?></h3>
256
- <table class="expert form-table ngg-options">
257
- <tr valign="top">
258
- <th align="left"><?php _e('Cache single pictures','nggallery') ?></th>
259
- <td></td>
260
- <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="imgCacheSinglePic" value="1" <?php checked('1', $ngg->options['imgCacheSinglePic']); ?> />
261
- <span class="setting-description"><?php _e('Creates a file for each singlepic settings. Reduce the CPU load','nggallery') ?></span></td>
262
- </tr>
263
- <tr valign="top">
264
- <th align="left"><?php _e('Clear cache folder','nggallery') ?></th>
265
- <td></td>
266
- <td><input type="submit" name="clearcache" class="button-secondary" value="<?php _e('Proceed now','nggallery') ;?> &raquo;"/></td>
267
- </tr>
268
- </table>
269
- <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
270
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
271
- </form>
272
- </div>
273
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  <!-- Gallery settings -->
275
-
276
- <div id="gallery">
277
- <h2><?php _e('Gallery settings','nggallery'); ?></h2>
278
- <form name="galleryform" method="POST" action="<?php echo $filepath.'#gallery'; ?>" >
279
- <?php wp_nonce_field('ngg_settings') ?>
280
- <input type="hidden" name="page_options" value="galNoPages,galImages,galColumns,galShowSlide,galTextSlide,galTextGallery,galShowOrder,galImgBrowser,galSort,galSortDir,galHiddenImg,galAjaxNav" />
281
- <table class="form-table ngg-options">
282
- <tr class="expert" >
283
- <th valign="top"><?php _e('Deactivate gallery page link','nggallery') ?>:</th>
284
- <td><input name="galNoPages" type="checkbox" value="1" <?php checked('1', $ngg->options['galNoPages']); ?> />
285
- <?php _e('The album will not link to a gallery subpage. The gallery is shown on the same page.','nggallery') ?>
286
- </td>
287
- </tr>
288
- <tr>
289
- <th valign="top"><?php _e('Number of images per page','nggallery') ?>:</th>
290
- <td><input type="text" name="galImages" value="<?php echo $ngg->options['galImages'] ?>" size="3" maxlength="3" />
291
- <span class="setting-description"><?php _e('0 will disable pagination, all images on one page','nggallery') ?></span>
292
- </td>
293
- </tr>
294
- <tr>
295
- <th valign="top"><?php _e('Number of columns','nggallery') ?>:</th>
296
- <td><input type="text" name="galColumns" value="<?php echo $ngg->options['galColumns'] ?>" size="3" maxlength="3" />
297
- <span class="setting-description"><?php _e('0 will display as much as possible based on the width of your theme. Setting normally only required for captions below the images','nggallery') ?></span>
298
- </td>
299
- </tr>
300
- <tr>
301
- <th valign="top"><?php _e('Integrate slideshow','nggallery') ?>:</th>
302
- <td><input name="galShowSlide" type="checkbox" value="1" <?php checked('1', $ngg->options['galShowSlide']); ?> />
303
- <input type="text" name="galTextSlide" value="<?php echo $ngg->options['galTextSlide'] ?>" size="20" />
304
- <input type="text" name="galTextGallery" value="<?php echo $ngg->options['galTextGallery'] ?>" size="20" />
305
- </td>
306
- </tr>
307
- <tr class="expert" >
308
- <th valign="top"><?php _e('Show first','nggallery') ?>:</th>
309
- <td><label><input name="galShowOrder" type="radio" value="gallery" <?php checked('gallery', $ngg->options['galShowOrder']); ?> /> <?php _e('Thumbnails', 'nggallery') ;?></label><br />
310
- <label><input name="galShowOrder" type="radio" value="slide" <?php checked('slide', $ngg->options['galShowOrder']); ?> /> <?php _e('Slideshow', 'nggallery') ;?></label>
311
- </td>
312
- </tr>
313
- <tr class="expert" >
314
- <th valign="top"><?php _e('Show ImageBrowser','nggallery'); ?>:</th>
315
- <td><input name="galImgBrowser" type="checkbox" value="1" <?php checked('1', $ngg->options['galImgBrowser']); ?> />
316
- <?php _e('The gallery will open the ImageBrowser instead the effect.', 'nggallery'); ?>
317
- </td>
318
- </tr>
319
- <tr class="expert" >
320
- <th valign="top"><?php _e('Add hidden images','nggallery'); ?>:</th>
321
- <td><input name="galHiddenImg" type="checkbox" value="1" <?php checked('1', $ngg->options['galHiddenImg']); ?> />
322
- <?php _e('If pagination is used, this option will still show all images in the modal window (Thickbox, Lightbox etc.). Note : This increase the page load','nggallery'); ?>
323
- </td>
324
- </tr>
325
- <tr class="expert" >
326
- <th valign="top"><?php _e('Enable AJAX pagination','nggallery'); ?>:</th>
327
- <td><input name="galAjaxNav" type="checkbox" value="1" <?php checked('1', $ngg->options['galAjaxNav']); ?> />
328
- <?php _e('Browse images without reload the page. Note : Work only in combination with Shutter effect','nggallery'); ?>
329
- </td>
330
- </tr>
331
- </table>
332
- <h3 class="expert" ><?php _e('Sort options','nggallery') ?></h3>
333
- <table class="expert form-table ngg-options">
334
- <tr>
335
- <th valign="top"><?php _e('Sort thumbnails','nggallery') ?>:</th>
336
- <td>
337
- <label><input name="galSort" type="radio" value="sortorder" <?php checked('sortorder', $ngg->options['galSort']); ?> /> <?php _e('Custom order', 'nggallery') ;?></label><br />
338
- <label><input name="galSort" type="radio" value="pid" <?php checked('pid', $ngg->options['galSort']); ?> /> <?php _e('Image ID', 'nggallery') ;?></label><br />
339
- <label><input name="galSort" type="radio" value="filename" <?php checked('filename', $ngg->options['galSort']); ?> /> <?php _e('File name', 'nggallery') ;?></label><br />
340
- <label><input name="galSort" type="radio" value="alttext" <?php checked('alttext', $ngg->options['galSort']); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label><br />
341
- <label><input name="galSort" type="radio" value="imagedate" <?php checked('imagedate', $ngg->options['galSort']); ?> /> <?php _e('Date / Time', 'nggallery') ;?></label>
342
- </td>
343
- </tr>
344
- <tr>
345
- <th valign="top"><?php _e('Sort direction','nggallery') ?>:</th>
346
- <td><label><input name="galSortDir" type="radio" value="ASC" <?php checked('ASC', $ngg->options['galSortDir']); ?> /> <?php _e('Ascending', 'nggallery') ;?></label><br />
347
- <label><input name="galSortDir" type="radio" value="DESC" <?php checked('DESC', $ngg->options['galSortDir']); ?> /> <?php _e('Descending', 'nggallery') ;?></label>
348
- </td>
349
- </tr>
350
- </table>
351
- <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
352
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
353
- </form>
354
- </div>
355
-
 
 
356
  <!-- Effects settings -->
357
-
358
- <div id="effects">
359
- <h2><?php _e('Effects','nggallery'); ?></h2>
360
- <form name="effectsform" method="POST" action="<?php echo $filepath.'#effects'; ?>" >
361
- <?php wp_nonce_field('ngg_settings') ?>
362
- <input type="hidden" name="page_options" value="thumbEffect,thumbCode" />
363
- <p><?php _e('Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Shutter and Thickbox effect will automatic added to your theme.','nggallery'); ?>
364
- <?php _e('With the placeholder','nggallery'); ?><strong> %GALLERY_NAME% </strong> <?php _e('you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do.','nggallery'); ?></p>
365
- <table class="form-table ngg-options">
366
- <tr valign="top">
367
- <th><?php _e('JavaScript Thumbnail effect','nggallery') ?>:</th>
368
- <td>
369
- <select size="1" id="thumbEffect" name="thumbEffect" onchange="insertcode(this.value)">
370
- <option value="none" <?php selected('none', $ngg->options['thumbEffect']); ?> ><?php _e('None', 'nggallery') ;?></option>
371
- <option value="thickbox" <?php selected('thickbox', $ngg->options['thumbEffect']); ?> ><?php _e('Thickbox', 'nggallery') ;?></option>
372
- <option value="lightbox" <?php selected('lightbox', $ngg->options['thumbEffect']); ?> ><?php _e('Lightbox', 'nggallery') ;?></option>
373
- <option value="highslide" <?php selected('highslide', $ngg->options['thumbEffect']); ?> ><?php _e('Highslide', 'nggallery') ;?></option>
374
- <option value="shutter" <?php selected('shutter', $ngg->options['thumbEffect']); ?> ><?php _e('Shutter', 'nggallery') ;?></option>
375
- <option value="custom" <?php selected('custom', $ngg->options['thumbEffect']); ?> ><?php _e('Custom', 'nggallery') ;?></option>
376
- </select>
377
- </td>
378
- </tr>
379
- <tr class="expert" valign="top">
380
- <th><?php _e('Link Code line','nggallery') ?> :</th>
381
- <td><textarea id="thumbCode" name="thumbCode" cols="50" rows="5"><?php echo htmlspecialchars(stripslashes($ngg->options['thumbCode'])); ?></textarea></td>
382
- </tr>
383
- </table>
384
- <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
385
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
386
- </form>
387
- </div>
388
-
389
- <!-- Watermark settings -->
390
-
391
- <?php
392
- $imageID = $wpdb->get_var("SELECT MIN(pid) FROM $wpdb->nggpictures");
393
- $imageID = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$imageID'");
394
- if ($imageID) $imageURL = '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID->pid.'&amp;mode=watermark&amp;width=300&amp;height=250" alt="'.$imageID->alttext.'" title="'.$imageID->alttext.'" />';
395
 
396
- ?>
397
- <div id="watermark">
398
- <h2><?php _e('Watermark','nggallery'); ?></h2>
399
- <p><?php _e('Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone.', 'nggallery') ?></p>
400
- <form name="watermarkform" method="POST" action="<?php echo $filepath.'#watermark'; ?>" >
401
- <?php wp_nonce_field('ngg_settings') ?>
402
- <input type="hidden" name="page_options" value="wmPos,wmXpos,wmYpos,wmType,wmPath,wmFont,wmSize,wmColor,wmText,wmOpaque" />
403
- <div id="wm-preview">
404
- <h3><?php _e('Preview','nggallery') ?></h3>
405
- <p style="text-align:center;"><?php echo $imageURL; ?></p>
406
- <h3><?php _e('Position','nggallery') ?></h3>
407
- <div>
408
- <table id="wm-position">
409
- <tr>
410
- <td valign="top">
411
- <strong><?php _e('Position','nggallery') ?></strong>
412
- <table border="1">
413
- <tr>
414
- <td><input type="radio" name="wmPos" value="topLeft" <?php checked('topLeft', $ngg->options['wmPos']); ?> /></td>
415
- <td><input type="radio" name="wmPos" value="topCenter" <?php checked('topCenter', $ngg->options['wmPos']); ?> /></td>
416
- <td><input type="radio" name="wmPos" value="topRight" <?php checked('topRight', $ngg->options['wmPos']); ?> /></td>
417
- </tr>
418
- <tr>
419
- <td><input type="radio" name="wmPos" value="midLeft" <?php checked('midLeft', $ngg->options['wmPos']); ?> /></td>
420
- <td><input type="radio" name="wmPos" value="midCenter" <?php checked('midCenter', $ngg->options['wmPos']); ?> /></td>
421
- <td><input type="radio" name="wmPos" value="midRight" <?php checked('midRight', $ngg->options['wmPos']); ?> /></td>
422
- </tr>
423
- <tr>
424
- <td><input type="radio" name="wmPos" value="botLeft" <?php checked('botLeft', $ngg->options['wmPos']); ?> /></td>
425
- <td><input type="radio" name="wmPos" value="botCenter" <?php checked('botCenter', $ngg->options['wmPos']); ?> /></td>
426
- <td><input type="radio" name="wmPos" value="botRight" <?php checked('botRight', $ngg->options['wmPos']); ?> /></td>
427
- </tr>
428
- </table>
429
- </td>
430
- <td valign="top">
431
- <strong><?php _e('Offset','nggallery') ?></strong>
432
- <table border="0">
433
- <tr>
434
- <td>x</td>
435
- <td><input type="text" name="wmXpos" value="<?php echo $ngg->options['wmXpos'] ?>" size="4" /> px</td>
436
- </tr>
437
- <tr>
438
- <td>y</td>
439
- <td><input type="text" name="wmYpos" value="<?php echo $ngg->options['wmYpos'] ?>" size="4" /> px</td>
440
- </tr>
441
- </table>
442
- </td>
443
- </tr>
444
- </table>
445
- </div>
446
- </div>
447
- <h3><label><input type="radio" name="wmType" value="image" <?php checked('image', $ngg->options['wmType']); ?> /> <?php _e('Use image as watermark','nggallery') ?></label></h3>
448
- <table class="wm-table form-table">
449
- <tr>
450
- <th><?php _e('URL to file','nggallery') ?> :</th>
451
- <td><input type="text" size="40" name="wmPath" value="<?php echo $ngg->options['wmPath']; ?>" /><br />
452
- <?php if(!ini_get('allow_url_fopen')) _e('The accessing of URL files is disabled at your server (allow_url_fopen)','nggallery') ?> </td>
453
- </tr>
454
- </table>
455
- <h3><label><input type="radio" name="wmType" value="text" <?php checked('text', $ngg->options['wmType']); ?> /> <?php _e('Use text as watermark','nggallery') ?></label></h3>
456
- <table class="wm-table form-table">
457
- <tr>
458
- <th><?php _e('Font','nggallery') ?>:</th>
459
- <td><select name="wmFont" size="1"> <?php
460
- $fontlist = ngg_get_TTFfont();
461
- foreach ( $fontlist as $fontfile ) {
462
- echo "\n".'<option value="'.$fontfile.'" '.ngg_input_selected($fontfile, $ngg->options['wmFont']).' >'.$fontfile.'</option>';
463
- }
464
- ?>
465
- </select><br /><span class="setting-description">
466
- <?php if ( !function_exists('ImageTTFBBox') )
467
- _e('This function will not work, cause you need the FreeType library','nggallery');
468
- else
469
- _e('You can upload more fonts in the folder <strong>nggallery/fonts</strong>','nggallery'); ?>
470
- </span>
471
- </td>
472
- </tr>
473
- <tr>
474
- <th><?php _e('Size','nggallery') ?>:</th>
475
- <td><input type="text" name="wmSize" value="<?php echo $ngg->options['wmSize'] ?>" size="4" maxlength="2" /> px</td>
476
- </tr>
477
- <tr>
478
- <th><?php _e('Color','nggallery') ?>:</th>
479
- <td><input class="picker" type="text" size="6" maxlength="6" id="wmColor" name="wmColor" onchange="setcolor('#previewText', this.value)" value="<?php echo $ngg->options['wmColor'] ?>" />
480
- <input type="text" size="1" readonly="readonly" id="previewText" style="background-color: #<?php echo $ngg->options['wmColor'] ?>" /> <?php _e('(hex w/o #)','nggallery') ?></td>
481
- </tr>
482
- <tr>
483
- <th valign="top"><?php _e('Text','nggallery') ?>:</th>
484
- <td><textarea name="wmText" cols="40" rows="4"><?php echo $ngg->options['wmText'] ?></textarea></td>
485
- </tr>
486
- <tr>
487
- <th><?php _e('Opaque','nggallery') ?>:</th>
488
- <td><input type="text" name="wmOpaque" value="<?php echo $ngg->options['wmOpaque'] ?>" size="3" maxlength="3" /> % </td>
489
- </tr>
490
- </table>
491
- <div class="clear"> &nbsp; </div>
492
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
493
- </form>
494
- </div>
495
-
496
- <!-- Slideshow settings -->
497
-
498
- <div id="slideshow">
499
- <form name="player_options" method="POST" action="<?php echo $filepath.'#slideshow'; ?>" >
500
  <?php wp_nonce_field('ngg_settings') ?>
501
- <input type="hidden" name="page_options" value="irURL,irWidth,irHeight,irShuffle,irLinkfromdisplay,irShownavigation,irShowicons,irWatermark,irOverstretch,irRotatetime,irTransition,irKenburns,irBackcolor,irFrontcolor,irLightcolor,irScreencolor,irAudio,irXHTMLvalid" />
502
- <h2><?php _e('Slideshow','nggallery'); ?></h2>
503
- <?php if (empty($ngg->options['irURL'])) { ?>
504
- <p>
505
- <div id="message" class="error">
506
- <p>
507
- <?php _e('The path to imagerotator.swf is not defined, the slideshow will not work.','nggallery') ?><br />
508
- <?php _e('If you would like to use the JW Image Rotatator, please download the player <a href="http://www.longtailvideo.com/players/jw-image-rotator/" target="_blank" >here</a> and upload it to your Upload folder (Default is wp-content/uploads).','nggallery') ?>
509
- </p>
510
- </div>
511
- </p>
512
- <?php }?>
513
- <p><?php _e('The settings are used in the JW Image Rotator Version', 'nggallery') ?> 3.17 .
514
- <?php _e('See more information for the Flash Player on the web page', 'nggallery') ?> <a href="http://www.longtailvideo.com/players/jw-image-rotator/" target="_blank" >JW Image Rotator from Jeroen Wijering</a>.
515
- </p>
516
- <table class="form-table ngg-options">
517
- <tr>
518
- <th><?php _e('Path to the Imagerotator (URL)','nggallery') ?>:</th>
519
- <td>
520
- <input type="text" size="50" id="irURL" name="irURL" value="<?php echo $ngg->options['irURL'] ?>" />
521
- <input type="submit" name="irDetect" class="button-secondary" value="<?php _e('Search now','nggallery') ;?> &raquo;"/>
522
- <br /><span class="setting-description"><?php _e('Press the button to search automatic for the imagerotator, if you uploaded it to wp-content/uploads or a subfolder','nggallery') ?></span>
523
- </td>
524
- </tr>
525
- <tr>
526
- <th><?php _e('Default size (W x H)','nggallery') ?>:</th>
527
- <td><input type="text" size="3" maxlength="4" name="irWidth" value="<?php echo $ngg->options['irWidth'] ?>" /> x
528
- <input type="text" size="3" maxlength="4" name="irHeight" value="<?php echo $ngg->options['irHeight'] ?>" /></td>
529
- </tr>
530
- <tr>
531
- <th><?php _e('Shuffle mode','nggallery') ?>:</th>
532
- <td><input name="irShuffle" type="checkbox" value="1" <?php checked('1', $ngg->options['irShuffle']); ?> /></td>
533
- </tr>
534
- <tr class="expert">
535
- <th><?php _e('Show next image on click','nggallery') ?>:</th>
536
- <td><input name="irLinkfromdisplay" type="checkbox" value="1" <?php checked('1', $ngg->options['irLinkfromdisplay']); ?> /></td>
537
- </tr>
538
- <tr class="expert">
539
- <th><?php _e('Show navigation bar','nggallery') ?>:</th>
540
- <td><input name="irShownavigation" type="checkbox" value="1" <?php checked('1', $ngg->options['irShownavigation']); ?> /></td>
541
- </tr>
542
- <tr class="expert">
543
- <th><?php _e('Show loading icon','nggallery') ?>:</th>
544
- <td><input name="irShowicons" type="checkbox" value="1" <?php checked('1', $ngg->options['irShowicons']); ?> /></td>
545
- </tr>
546
- <tr class="expert">
547
- <th><?php _e('Use watermark logo','nggallery') ?>:</th>
548
- <td><input name="irWatermark" type="checkbox" value="1" <?php checked('1', $ngg->options['irWatermark']); ?> />
549
- <span class="setting-description"><?php _e('You can change the logo at the watermark settings','nggallery') ?></span></td>
550
- </tr>
551
- <tr class="expert">
552
- <th><?php _e('Stretch image','nggallery') ?>:</th>
553
- <td>
554
- <select size="1" name="irOverstretch">
555
- <option value="true" <?php selected('true', $ngg->options['irOverstretch']); ?> ><?php _e('true', 'nggallery') ;?></option>
556
- <option value="false" <?php selected('false', $ngg->options['irOverstretch']); ?> ><?php _e('false', 'nggallery') ;?></option>
557
- <option value="fit" <?php selected('fit', $ngg->options['irOverstretch']); ?> ><?php _e('fit', 'nggallery') ;?></option>
558
- <option value="none" <?php selected('none', $ngg->options['irOverstretch']); ?> ><?php _e('none', 'nggallery') ;?></option>
559
- </select>
560
- </td>
561
- </tr>
562
- <tr>
563
- <th><?php _e('Duration time','nggallery') ?>:</th>
564
- <td><input type="text" size="3" maxlength="3" name="irRotatetime" value="<?php echo $ngg->options['irRotatetime'] ?>" /> <?php _e('sec.', 'nggallery') ;?></td>
565
- </tr>
566
- <tr>
567
- <th><?php _e('Transition / Fade effect','nggallery') ?>:</th>
568
- <td>
569
- <select size="1" name="irTransition">
570
- <option value="fade" <?php selected('fade', $ngg->options['irTransition']); ?> ><?php _e('fade', 'nggallery') ;?></option>
571
- <option value="bgfade" <?php selected('bgfade', $ngg->options['irTransition']); ?> ><?php _e('bgfade', 'nggallery') ;?></option>
572
- <option value="slowfade" <?php selected('slowfade', $ngg->options['irTransition']); ?> ><?php _e('slowfade', 'nggallery') ;?></option>
573
- <option value="circles" <?php selected('circles', $ngg->options['irTransition']); ?> ><?php _e('circles', 'nggallery') ;?></option>
574
- <option value="bubbles" <?php selected('bubbles', $ngg->options['irTransition']); ?> ><?php _e('bubbles', 'nggallery') ;?></option>
575
- <option value="blocks" <?php selected('blocks', $ngg->options['irTransition']); ?> ><?php _e('blocks', 'nggallery') ;?></option>
576
- <option value="fluids" <?php selected('fluids', $ngg->options['irTransition']); ?> ><?php _e('fluids', 'nggallery') ;?></option>
577
- <option value="flash" <?php selected('flash', $ngg->options['irTransition']); ?> ><?php _e('flash', 'nggallery') ;?></option>
578
- <option value="lines" <?php selected('lines', $ngg->options['irTransition']); ?> ><?php _e('lines', 'nggallery') ;?></option>
579
- <option value="random" <?php selected('random', $ngg->options['irTransition']); ?> ><?php _e('random', 'nggallery') ;?></option>
580
- </select>
581
- </tr>
582
- <tr class="expert">
583
- <th><?php _e('Use slow zooming effect','nggallery') ?>:</th>
584
- <td><input name="irKenburns" type="checkbox" value="1" <?php checked('1', $ngg->options['irKenburns']); ?> /></td>
585
- </tr>
586
- <tr>
587
- <th><?php _e('Background Color','nggallery') ?>:</th>
588
- <td><input class="picker" type="text" size="6" maxlength="6" id="irBackcolor" name="irBackcolor" onchange="setcolor('#previewBack', this.value)" value="<?php echo $ngg->options['irBackcolor'] ?>" />
589
- <input type="text" size="1" readonly="readonly" id="previewBack" style="background-color: #<?php echo $ngg->options['irBackcolor'] ?>" /></td>
590
- </tr>
591
- <tr>
592
- <th><?php _e('Texts / Buttons Color','nggallery') ?>:</th>
593
- <td><input class="picker" type="text" size="6" maxlength="6" id="irFrontcolor" name="irFrontcolor" onchange="setcolor('#previewFront', this.value)" value="<?php echo $ngg->options['irFrontcolor'] ?>" />
594
- <input type="text" size="1" readonly="readonly" id="previewFront" style="background-color: #<?php echo $ngg->options['irFrontcolor'] ?>" /></td>
595
- </tr>
596
- <tr class="expert">
597
- <th><?php _e('Rollover / Active Color','nggallery') ?>:</th>
598
- <td><input class="picker" type="text" size="6" maxlength="6" id="irLightcolor" name="irLightcolor" onchange="setcolor('#previewLight', this.value)" value="<?php echo $ngg->options['irLightcolor'] ?>" />
599
- <input type="text" size="1" readonly="readonly" id="previewLight" style="background-color: #<?php echo $ngg->options['irLightcolor'] ?>" /></td>
600
- </tr>
601
- <tr class="expert">
602
- <th><?php _e('Screen Color','nggallery') ?>:</th>
603
- <td><input class="picker" type="text" size="6" maxlength="6" id="irScreencolor" name="irScreencolor" onchange="setcolor('#previewScreen', this.value)" value="<?php echo $ngg->options['irScreencolor'] ?>" />
604
- <input type="text" size="1" readonly="readonly" id="previewScreen" style="background-color: #<?php echo $ngg->options['irScreencolor'] ?>" /></td>
605
- </tr>
606
- <tr class="expert">
607
- <th><?php _e('Background music (URL)','nggallery') ?>:</th>
608
- <td><input type="text" size="50" id="irAudio" name="irAudio" value="<?php echo $ngg->options['irAudio'] ?>" /></td>
609
- </tr>
610
- <tr class="expert">
611
- <th ><?php _e('Try XHTML validation (with CDATA)','nggallery') ?>:</th>
612
- <td><input name="irXHTMLvalid" type="checkbox" value="1" <?php checked('1', $ngg->options['irXHTMLvalid']); ?> />
613
- <span class="setting-description"><?php _e('Important : Could causes problem at some browser. Please recheck your page.','nggallery') ?></span></td>
614
- </tr>
615
- </table>
616
- <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
617
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
618
- </form>
619
- </div>
620
- </div>
621
 
622
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
623
  }
624
 
625
  function ngg_get_TTFfont() {
1
  <?php
2
  if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
 
4
+ class nggOptions {
 
 
 
 
 
 
 
5
 
6
+ /**
7
+ * PHP4 compatibility layer for calling the PHP5 constructor.
8
+ *
9
+ */
10
+ function nggOptions() {
11
+ return $this->__construct();
12
+ }
13
+
14
+ /**
15
+ * nggOptions::__construct()
16
+ *
17
+ * @return void
18
+ */
19
+ function __construct() {
20
+
21
+ // same as $_SERVER['REQUEST_URI'], but should work under IIS 6.0
22
+ $this->filepath = admin_url() . 'admin.php?page=' . $_GET['page'];
23
+
24
+ //Look for POST updates
25
+ if ( !empty($_POST) )
26
+ $this->processor();
27
+ }
28
 
29
+ /**
30
+ * Save/Load options and add a new hook for plugins
31
+ *
32
+ * @return void
33
+ */
34
+ function processor() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ global $ngg, $nggRewrite;
37
+
38
+ $old_state = $ngg->options['usePermalinks'];
39
+
40
+ if ( isset($_POST['irDetect']) ) {
41
+ check_admin_referer('ngg_settings');
42
+ $ngg->options['irURL'] = ngg_search_imagerotator();
43
+ update_option('ngg_options', $ngg->options);
44
+ }
45
+
46
+ if ( isset($_POST['updateoption']) ) {
47
+ check_admin_referer('ngg_settings');
48
+ // get the hidden option fields, taken from WP core
49
+ if ( $_POST['page_options'] )
50
+ $options = explode(',', stripslashes($_POST['page_options']));
51
+
52
+ if ($options) {
53
+ foreach ($options as $option) {
54
+ $option = trim($option);
55
+ $value = isset($_POST[$option]) ? trim($_POST[$option]) : false;
56
+ // $value = sanitize_option($option, $value); // This does stripslashes on those that need it
57
+ $ngg->options[$option] = $value;
58
+ }
59
+
60
+ // the path should always end with a slash
61
+ $ngg->options['gallerypath'] = trailingslashit($ngg->options['gallerypath']);
62
+ $ngg->options['imageMagickDir'] = trailingslashit($ngg->options['imageMagickDir']);
63
+
64
+ // the custom sortorder must be ascending
65
+ $ngg->options['galSortDir'] = ($ngg->options['galSort'] == 'sortorder') ? 'ASC' : $ngg->options['galSortDir'];
66
+ }
67
+ // Save options
68
+ update_option('ngg_options', $ngg->options);
69
+
70
+ // Flush Rewrite rules
71
+ if ( $old_state != $ngg->options['usePermalinks'] )
72
+ $nggRewrite->flush();
73
+
74
+ nggGallery::show_message(__('Update Successfully','nggallery'));
75
+ }
76
+
77
+ if ( isset($_POST['clearcache']) ) {
78
+
79
+ $path = WINABSPATH . $ngg->options['gallerypath'] . 'cache/';
80
+
81
+ if (is_dir($path))
82
+ if ($handle = opendir($path)) {
83
+ while (false !== ($file = readdir($handle))) {
84
+ if ($file != '.' && $file != '..') {
85
+ @unlink($path . '/' . $file);
86
+ }
87
+ }
88
+ closedir($handle);
89
+ }
90
+
91
+ nggGallery::show_message(__('Cache cleared','nggallery'));
92
+ }
93
+
94
+ do_action( 'ngg_update_options_page' );
95
+
96
+ }
97
+
98
+ /**
99
+ * Render the page content
100
+ *
101
+ * @return void
102
+ */
103
+ function controller() {
104
+
105
+ // get list of tabs
106
+ $tabs = $this->tabs_order();
107
 
 
 
 
 
 
108
  ?>
109
  <script type="text/javascript">
110
  jQuery(document).ready(function(){
166
  </script>
167
 
168
  <div id="slider" class="wrap">
169
+ <ul id="tabs">
170
+ <?php
171
+ foreach($tabs as $tab_key => $tab_name) {
172
+ echo "\n\t\t<li><a href='#$tab_key'>$tab_name</a></li>";
173
+ }
174
+ ?>
 
 
 
175
  </ul>
176
+ <?php
177
+ foreach($tabs as $tab_key => $tab_name) {
178
+ echo "\n\t<div id='$tab_key'>\n";
179
+ // Looks for the internal class function, otherwise enable a hook for plugins
180
+ if ( method_exists( 'nggOptions', "tab_$tab_key" ))
181
+ call_user_func( array( &$this , "tab_$tab_key") );
182
+ else
183
+ do_action( 'ngg_tab_content_' . $tab_key );
184
+ echo "\n\t</div>";
185
+ }
186
+ ?>
187
+ </div>
188
+ <?php
189
+
190
+ }
191
 
192
+ /**
193
+ * Create array for tabs and add a filter for other plugins to inject more tabs
194
+ *
195
+ * @return array $tabs
196
+ */
197
+ function tabs_order() {
198
+
199
+ $tabs = array();
200
+
201
+ $tabs['generaloptions'] = __('General Options', 'nggallery');
202
+ $tabs['thumbnails'] = __('Thumbnails', 'nggallery');
203
+ $tabs['images'] = __('Images', 'nggallery');
204
+ $tabs['gallery'] = _n( 'Gallery', 'Galleries', 1, 'nggallery' );
205
+ $tabs['effects'] = __('Effects', 'nggallery');
206
+ $tabs['watermark'] = __('Watermark', 'nggallery');
207
+ $tabs['slideshow'] = __('Slideshow', 'nggallery');
208
+
209
+ $tabs = apply_filters('ngg_settings_tabs', $tabs);
210
+
211
+ return $tabs;
212
+
213
+ }
214
 
215
+ function tab_generaloptions() {
216
+ global $ngg;
217
+
218
+ ?>
219
+ <!-- General Options -->
220
+ <h2><?php _e('General Options','nggallery'); ?></h2>
221
+ <form name="generaloptions" method="post">
222
+ <?php wp_nonce_field('ngg_settings') ?>
223
+ <input type="hidden" name="page_options" value="gallerypath,deleteImg,useMediaRSS,usePicLens,usePermalinks,graphicLibrary,imageMagickDir,activateTags,appendType,maxImages" />
224
+ <table class="form-table ngg-options">
225
+ <tr valign="top">
226
+ <th align="left"><?php _e('Gallery path','nggallery'); ?></th>
227
+ <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="text" size="35" name="gallerypath" value="<?php echo $ngg->options['gallerypath']; ?>" />
228
+ <span class="setting-description"><?php _e('This is the default path for all galleries','nggallery') ?></span></td>
229
+ </tr>
230
+ <tr class="expert" valign="top">
231
+ <th align="left"><?php _e('Delete image files','nggallery'); ?></th>
232
+ <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="deleteImg" value="1" <?php checked('1', $ngg->options['deleteImg']); ?> />
233
+ <?php _e('Delete files, when removing a gallery in the database','nggallery'); ?></td>
234
+ </tr>
235
+ <tr valign="top">
236
+ <th align="left"><?php _e('Activate permalinks','nggallery') ?></th>
237
+ <td><input type="checkbox" name="usePermalinks" value="1" <?php checked('1', $ngg->options['usePermalinks']); ?> />
238
+ <?php _e('When you activate this option, you need to update your permalink structure one time.','nggallery'); ?></td>
239
+ </tr>
240
+ <tr class="expert">
241
+ <th valign="top"><?php _e('Select graphic library','nggallery'); ?>:</th>
242
+ <td><label><input name="graphicLibrary" type="radio" value="gd" <?php checked('gd', $ngg->options['graphicLibrary']); ?> /> <?php _e('GD Library', 'nggallery') ;?></label><br />
243
+ <label><input name="graphicLibrary" type="radio" value="im" <?php checked('im', $ngg->options['graphicLibrary']); ?> /> <?php _e('ImageMagick (Experimental). Path to the library :', 'nggallery') ;?>&nbsp;
244
+ <input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="text" size="35" name="imageMagickDir" value="<?php echo $ngg->options['imageMagickDir']; ?>" /></label>
245
+ </td>
246
+ </tr>
247
+ <tr>
248
+ <th align="left"><?php _e('Activate Media RSS feed','nggallery'); ?></th>
249
+ <td><input type="checkbox" name="useMediaRSS" value="1" <?php checked('1', $ngg->options['useMediaRSS']); ?> />
250
+ <span class="setting-description"><?php _e('A RSS feed will be added to you blog header. Useful for CoolIris/PicLens','nggallery') ?></span></td>
251
+ </tr>
252
+ <tr>
253
+ <th align="left"><?php _e('Activate PicLens/CoolIris support','nggallery'); ?> (<a href="http://www.cooliris.com">CoolIris</a>)</th>
254
+ <td><input type="checkbox" name="usePicLens" value="1" <?php checked('1', $ngg->options['usePicLens']); ?> />
255
+ <span class="setting-description"><?php _e('When you activate this option, some javascript is added to your site footer. Make sure that wp_footer is called in your theme.','nggallery') ?></span></td>
256
+ </tr>
257
+ </table>
258
+ <h3 class="expert"><?php _e('Tags / Categories','nggallery'); ?></h3>
259
+ <table class="expert form-table ngg-options">
260
+ <tr>
261
+ <th valign="top"><?php _e('Activate related images','nggallery'); ?>:</th>
262
+ <td><input name="activateTags" type="checkbox" value="1" <?php checked('1', $ngg->options['activateTags']); ?> />
263
+ <?php _e('This option will append related images to every post','nggallery'); ?>
264
+ </td>
265
+ </tr>
266
+ <tr>
267
+ <th valign="top"><?php _e('Match with','nggallery') ?>:</th>
268
+ <td><label><input name="appendType" type="radio" value="category" <?php checked('category', $ngg->options['appendType']); ?> /> <?php _e('Categories', 'nggallery') ;?></label><br />
269
+ <label><input name="appendType" type="radio" value="tags" <?php checked('tags', $ngg->options['appendType']); ?> /> <?php _e('Tags', 'nggallery') ;?></label>
270
+ </td>
271
+ </tr>
272
+ <tr>
273
+ <th valign="top"><?php _e('Max. number of images','nggallery') ?>:</th>
274
+ <td><input type="text" name="maxImages" value="<?php echo $ngg->options['maxImages']; ?>" size="3" maxlength="3" />
275
+ <span class="setting-description"><?php _e('0 will show all images','nggallery'); ?></span>
276
+ </td>
277
+ </tr>
278
+ </table>
279
+ <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
280
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes'); ?>"/></div>
281
+ </form>
282
+ <?php
283
+ }
284
+
285
+ function tab_thumbnails() {
286
+ global $ngg;
287
+ ?>
288
+ <!-- Thumbnail settings -->
289
+ <h2><?php _e('Thumbnail settings','nggallery'); ?></h2>
290
+ <form name="thumbnailsettings" method="POST" action="<?php echo $this->filepath.'#thumbnails'; ?>" >
291
+ <?php wp_nonce_field('ngg_settings') ?>
292
+ <input type="hidden" name="page_options" value="thumbwidth,thumbheight,thumbfix,thumbquality" />
293
+ <p><?php _e('Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery .', 'nggallery') ?></p>
294
+ <table class="form-table ngg-options">
295
+ <tr valign="top">
296
+ <th align="left"><?php _e('Width x height (in pixel)','nggallery'); ?></th>
297
+ <td><input type="text" size="4" maxlength="4" name="thumbwidth" value="<?php echo $ngg->options['thumbwidth']; ?>" /> x <input type="text" size="4" maxlength="4" name="thumbheight" value="<?php echo $ngg->options['thumbheight']; ?>" />
298
+ <span class="setting-description"><?php _e('These values are maximum values ','nggallery'); ?></span></td>
299
+ </tr>
300
+ <tr valign="top">
301
+ <th align="left"><?php _e('Set fix dimension','nggallery'); ?></th>
302
+ <td><input type="checkbox" name="thumbfix" value="1" <?php checked('1', $ngg->options['thumbfix']); ?> />
303
+ <?php _e('Ignore the aspect ratio, no portrait thumbnails','nggallery') ?></td>
304
+ </tr>
305
+ <tr class="expert" valign="top">
306
+ <th align="left"><?php _e('Thumbnail quality','nggallery'); ?></th>
307
+ <td><input type="text" size="3" maxlength="3" name="thumbquality" value="<?php echo $ngg->options['thumbquality']; ?>" /> %</td>
308
+ </tr>
309
+ </table>
310
+ <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
311
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
312
+ </form>
313
+ <?php
314
+ }
315
+
316
+ function tab_images() {
317
+ global $ngg;
318
+ ?>
319
  <!-- Image settings -->
320
+ <h2><?php _e('Image settings','nggallery'); ?></h2>
321
+ <form name="imagesettings" method="POST" action="<?php echo $this->filepath.'#images'; ?>" >
322
+ <?php wp_nonce_field('ngg_settings') ?>
323
+ <input type="hidden" name="page_options" value="imgResize,imgWidth,imgHeight,imgQuality,imgBackup,imgAutoResize,imgCacheSinglePic" />
324
+ <table class="form-table ngg-options">
325
+ <tr valign="top">
326
+ <th scope="row"><label for="fixratio"><?php _e('Resize Images','nggallery') ?></label></th>
327
+ <td></td>
328
+ <td><input type="text" size="5" name="imgWidth" value="<?php echo $ngg->options['imgWidth']; ?>" /> x <input type="text" size="5" name="imgHeight" value="<?php echo $ngg->options['imgHeight']; ?>" />
329
+ <span class="setting-description"><?php _e('Width x height (in pixel). NextGEN Gallery will keep ratio size','nggallery') ?></span></td>
330
+ </tr>
331
+ <tr valign="top">
332
+ <th align="left"><?php _e('Image quality','nggallery'); ?></th>
333
+ <td></td>
334
+ <td><input type="text" size="3" maxlength="3" name="imgQuality" value="<?php echo $ngg->options['imgQuality']; ?>" /> %</td>
335
+ </tr>
336
+ <tr>
337
+ <th colspan="1"><?php _e('Backup original images','nggallery'); ?></th>
338
+ <td></td>
339
+ <td colspan="3"><input type="checkbox" name="imgBackup" value="1"<?php echo ($ngg->options['imgBackup'] == 1) ? ' checked ="chechked"' : ''; ?>/>
340
+ <span class="setting-description"><?php _e('Creates a backup for inserted images','nggallery'); ?></span></td>
341
+ </tr>
342
+ <tr>
343
+ <th colspan="1"><?php _e('Automatically resize','nggallery'); ?></th>
344
+ <td></td>
345
+ <td colspan="3"><input type="checkbox" name="imgAutoResize" value="1"<?php echo ($ngg->options['imgAutoResize'] == 1) ? ' checked ="chechked"' : ''; ?>/>
346
+ <span class="setting-description"><?php _e('Automatically resize images on upload.','nggallery') ?></span></td>
347
+ </tr>
348
+ </table>
349
+ <h3 class="expert"><?php _e('Single picture','nggallery') ?></h3>
350
+ <table class="expert form-table ngg-options">
351
+ <tr valign="top">
352
+ <th align="left"><?php _e('Cache single pictures','nggallery'); ?></th>
353
+ <td></td>
354
+ <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="imgCacheSinglePic" value="1" <?php checked('1', $ngg->options['imgCacheSinglePic']); ?> />
355
+ <span class="setting-description"><?php _e('Creates a file for each singlepic settings. Reduce the CPU load','nggallery') ?></span></td>
356
+ </tr>
357
+ <tr valign="top">
358
+ <th align="left"><?php _e('Clear cache folder','nggallery'); ?></th>
359
+ <td></td>
360
+ <td><input type="submit" name="clearcache" class="button-secondary" value="<?php _e('Proceed now','nggallery') ;?> &raquo;"/></td>
361
+ </tr>
362
+ </table>
363
+ <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
364
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
365
+ </form>
366
+
367
+ <?php
368
+ }
369
+
370
+ function tab_gallery() {
371
+ global $ngg;
372
+ ?>
373
  <!-- Gallery settings -->
374
+ <h2><?php _e('Gallery settings','nggallery'); ?></h2>
375
+ <form name="galleryform" method="POST" action="<?php echo $this->filepath.'#gallery'; ?>" >
376
+ <?php wp_nonce_field('ngg_settings') ?>
377
+ <input type="hidden" name="page_options" value="galNoPages,galImages,galColumns,galShowSlide,galTextSlide,galTextGallery,galShowOrder,galImgBrowser,galSort,galSortDir,galHiddenImg,galAjaxNav" />
378
+ <table class="form-table ngg-options">
379
+ <tr class="expert" >
380
+ <th valign="top"><?php _e('Deactivate gallery page link','nggallery') ?>:</th>
381
+ <td><input name="galNoPages" type="checkbox" value="1" <?php checked('1', $ngg->options['galNoPages']); ?> />
382
+ <?php _e('The album will not link to a gallery subpage. The gallery is shown on the same page.','nggallery') ?>
383
+ </td>
384
+ </tr>
385
+ <tr>
386
+ <th valign="top"><?php _e('Number of images per page','nggallery') ?>:</th>
387
+ <td><input type="text" name="galImages" value="<?php echo $ngg->options['galImages']; ?>" size="3" maxlength="3" />
388
+ <span class="setting-description"><?php _e('0 will disable pagination, all images on one page','nggallery') ?></span>
389
+ </td>
390
+ </tr>
391
+ <tr>
392
+ <th valign="top"><?php _e('Number of columns','nggallery') ?>:</th>
393
+ <td><input type="text" name="galColumns" value="<?php echo $ngg->options['galColumns']; ?>" size="3" maxlength="3" />
394
+ <span class="setting-description"><?php _e('0 will display as much as possible based on the width of your theme. Setting normally only required for captions below the images','nggallery') ?></span>
395
+ </td>
396
+ </tr>
397
+ <tr>
398
+ <th valign="top"><?php _e('Integrate slideshow','nggallery') ?>:</th>
399
+ <td><input name="galShowSlide" type="checkbox" value="1" <?php checked('1', $ngg->options['galShowSlide']); ?> />
400
+ <input type="text" name="galTextSlide" value="<?php echo $ngg->options['galTextSlide'] ?>" size="20" />
401
+ <input type="text" name="galTextGallery" value="<?php echo $ngg->options['galTextGallery'] ?>" size="20" />
402
+ </td>
403
+ </tr>
404
+ <tr class="expert" >
405
+ <th valign="top"><?php _e('Show first','nggallery') ?>:</th>
406
+ <td><label><input name="galShowOrder" type="radio" value="gallery" <?php checked('gallery', $ngg->options['galShowOrder']); ?> /> <?php _e('Thumbnails', 'nggallery') ;?></label><br />
407
+ <label><input name="galShowOrder" type="radio" value="slide" <?php checked('slide', $ngg->options['galShowOrder']); ?> /> <?php _e('Slideshow', 'nggallery') ;?></label>
408
+ </td>
409
+ </tr>
410
+ <tr class="expert" >
411
+ <th valign="top"><?php _e('Show ImageBrowser','nggallery'); ?>:</th>
412
+ <td><input name="galImgBrowser" type="checkbox" value="1" <?php checked('1', $ngg->options['galImgBrowser']); ?> />
413
+ <?php _e('The gallery will open the ImageBrowser instead the effect.', 'nggallery'); ?>
414
+ </td>
415
+ </tr>
416
+ <tr class="expert" >
417
+ <th valign="top"><?php _e('Add hidden images','nggallery'); ?>:</th>
418
+ <td><input name="galHiddenImg" type="checkbox" value="1" <?php checked('1', $ngg->options['galHiddenImg']); ?> />
419
+ <?php _e('If pagination is used, this option will still show all images in the modal window (Thickbox, Lightbox etc.). Note : This increase the page load','nggallery'); ?>
420
+ </td>
421
+ </tr>
422
+ <tr class="expert" >
423
+ <th valign="top"><?php _e('Enable AJAX pagination','nggallery'); ?>:</th>
424
+ <td><input name="galAjaxNav" type="checkbox" value="1" <?php checked('1', $ngg->options['galAjaxNav']); ?> />
425
+ <?php _e('Browse images without reload the page. Note : Work only in combination with Shutter effect','nggallery'); ?>
426
+ </td>
427
+ </tr>
428
+ </table>
429
+ <h3 class="expert" ><?php _e('Sort options','nggallery') ?></h3>
430
+ <table class="expert form-table ngg-options">
431
+ <tr>
432
+ <th valign="top"><?php _e('Sort thumbnails','nggallery') ?>:</th>
433
+ <td>
434
+ <label><input name="galSort" type="radio" value="sortorder" <?php checked('sortorder', $ngg->options['galSort']); ?> /> <?php _e('Custom order', 'nggallery') ;?></label><br />
435
+ <label><input name="galSort" type="radio" value="pid" <?php checked('pid', $ngg->options['galSort']); ?> /> <?php _e('Image ID', 'nggallery') ;?></label><br />
436
+ <label><input name="galSort" type="radio" value="filename" <?php checked('filename', $ngg->options['galSort']); ?> /> <?php _e('File name', 'nggallery') ;?></label><br />
437
+ <label><input name="galSort" type="radio" value="alttext" <?php checked('alttext', $ngg->options['galSort']); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label><br />
438
+ <label><input name="galSort" type="radio" value="imagedate" <?php checked('imagedate', $ngg->options['galSort']); ?> /> <?php _e('Date / Time', 'nggallery') ;?></label>
439
+ </td>
440
+ </tr>
441
+ <tr>
442
+ <th valign="top"><?php _e('Sort direction','nggallery') ?>:</th>
443
+ <td><label><input name="galSortDir" type="radio" value="ASC" <?php checked('ASC', $ngg->options['galSortDir']); ?> /> <?php _e('Ascending', 'nggallery') ;?></label><br />
444
+ <label><input name="galSortDir" type="radio" value="DESC" <?php checked('DESC', $ngg->options['galSortDir']); ?> /> <?php _e('Descending', 'nggallery') ;?></label>
445
+ </td>
446
+ </tr>
447
+ </table>
448
+ <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
449
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
450
+ </form>
451
+ <?php
452
+ }
453
+
454
+ function tab_effects() {
455
+ global $ngg;
456
+ ?>
457
  <!-- Effects settings -->
458
+ <h2><?php _e('Effects','nggallery'); ?></h2>
459
+ <form name="effectsform" method="POST" action="<?php echo $this->filepath.'#effects'; ?>" >
460
+ <?php wp_nonce_field('ngg_settings') ?>
461
+ <input type="hidden" name="page_options" value="thumbEffect,thumbCode" />
462
+ <p><?php _e('Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Shutter and Thickbox effect will automatic added to your theme.','nggallery'); ?>
463
+ <?php _e('With the placeholder','nggallery'); ?><strong> %GALLERY_NAME% </strong> <?php _e('you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do.','nggallery'); ?></p>
464
+ <table class="form-table ngg-options">
465
+ <tr valign="top">
466
+ <th><?php _e('JavaScript Thumbnail effect','nggallery') ?>:</th>
467
+ <td>
468
+ <select size="1" id="thumbEffect" name="thumbEffect" onchange="insertcode(this.value)">
469
+ <option value="none" <?php selected('none', $ngg->options['thumbEffect']); ?> ><?php _e('None', 'nggallery') ;?></option>
470
+ <option value="thickbox" <?php selected('thickbox', $ngg->options['thumbEffect']); ?> ><?php _e('Thickbox', 'nggallery') ;?></option>
471
+ <option value="lightbox" <?php selected('lightbox', $ngg->options['thumbEffect']); ?> ><?php _e('Lightbox', 'nggallery') ;?></option>
472
+ <option value="highslide" <?php selected('highslide', $ngg->options['thumbEffect']); ?> ><?php _e('Highslide', 'nggallery') ;?></option>
473
+ <option value="shutter" <?php selected('shutter', $ngg->options['thumbEffect']); ?> ><?php _e('Shutter', 'nggallery') ;?></option>
474
+ <option value="custom" <?php selected('custom', $ngg->options['thumbEffect']); ?> ><?php _e('Custom', 'nggallery') ;?></option>
475
+ </select>
476
+ </td>
477
+ </tr>
478
+ <tr class="expert" valign="top">
479
+ <th><?php _e('Link Code line','nggallery') ?> :</th>
480
+ <td><textarea id="thumbCode" name="thumbCode" cols="50" rows="5"><?php echo htmlspecialchars(stripslashes($ngg->options['thumbCode'])); ?></textarea></td>
481
+ </tr>
482
+ </table>
483
+ <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
484
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
485
+ </form>
486
+
487
+ <?php
488
+ }
489
+
490
+ function tab_watermark() {
 
 
 
 
 
491
 
492
+ global $wpdb, $ngg;
493
+
494
+ $imageID = $wpdb->get_var("SELECT MIN(pid) FROM $wpdb->nggpictures");
495
+ $imageID = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$imageID'");
496
+ if ($imageID) $imageURL = '<img src="'. get_option ('siteurl') . '/' . 'index.php?callback=image&amp;pid='.$imageID->pid.'&amp;mode=watermark&amp;width=300&amp;height=250" alt="'.$imageID->alttext.'" title="'.$imageID->alttext.'" />';
497
+
498
+ ?>
499
+ <!-- Watermark settings -->
500
+ <h2><?php _e('Watermark','nggallery'); ?></h2>
501
+ <p><?php _e('Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone.', 'nggallery') ?></p>
502
+ <form name="watermarkform" method="POST" action="<?php echo $this->filepath.'#watermark'; ?>" >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  <?php wp_nonce_field('ngg_settings') ?>
504
+ <input type="hidden" name="page_options" value="wmPos,wmXpos,wmYpos,wmType,wmPath,wmFont,wmSize,wmColor,wmText,wmOpaque" />
505
+ <div id="wm-preview">
506
+ <h3><?php _e('Preview','nggallery') ?></h3>
507
+ <p style="text-align:center;"><?php echo $imageURL; ?></p>
508
+ <h3><?php _e('Position','nggallery') ?></h3>
509
+ <div>
510
+ <table id="wm-position">
511
+ <tr>
512
+ <td valign="top">
513
+ <strong><?php _e('Position','nggallery') ?></strong>
514
+ <table border="1">
515
+ <tr>
516
+ <td><input type="radio" name="wmPos" value="topLeft" <?php checked('topLeft', $ngg->options['wmPos']); ?> /></td>
517
+ <td><input type="radio" name="wmPos" value="topCenter" <?php checked('topCenter', $ngg->options['wmPos']); ?> /></td>
518
+ <td><input type="radio" name="wmPos" value="topRight" <?php checked('topRight', $ngg->options['wmPos']); ?> /></td>
519
+ </tr>
520
+ <tr>
521
+ <td><input type="radio" name="wmPos" value="midLeft" <?php checked('midLeft', $ngg->options['wmPos']); ?> /></td>
522
+ <td><input type="radio" name="wmPos" value="midCenter" <?php checked('midCenter', $ngg->options['wmPos']); ?> /></td>
523
+ <td><input type="radio" name="wmPos" value="midRight" <?php checked('midRight', $ngg->options['wmPos']); ?> /></td>
524
+ </tr>
525
+ <tr>
526
+ <td><input type="radio" name="wmPos" value="botLeft" <?php checked('botLeft', $ngg->options['wmPos']); ?> /></td>
527
+ <td><input type="radio" name="wmPos" value="botCenter" <?php checked('botCenter', $ngg->options['wmPos']); ?> /></td>
528
+ <td><input type="radio" name="wmPos" value="botRight" <?php checked('botRight', $ngg->options['wmPos']); ?> /></td>
529
+ </tr>
530
+ </table>
531
+ </td>
532
+ <td valign="top">
533
+ <strong><?php _e('Offset','nggallery') ?></strong>
534
+ <table border="0">
535
+ <tr>
536
+ <td>x</td>
537
+ <td><input type="text" name="wmXpos" value="<?php echo $ngg->options['wmXpos'] ?>" size="4" /> px</td>
538
+ </tr>
539
+ <tr>
540
+ <td>y</td>
541
+ <td><input type="text" name="wmYpos" value="<?php echo $ngg->options['wmYpos'] ?>" size="4" /> px</td>
542
+ </tr>
543
+ </table>
544
+ </td>
545
+ </tr>
546
+ </table>
547
+ </div>
548
+ </div>
549
+ <h3><label><input type="radio" name="wmType" value="image" <?php checked('image', $ngg->options['wmType']); ?> /> <?php _e('Use image as watermark','nggallery') ?></label></h3>
550
+ <table class="wm-table form-table">
551
+ <tr>
552
+ <th><?php _e('URL to file','nggallery') ?> :</th>
553
+ <td><input type="text" size="40" name="wmPath" value="<?php echo $ngg->options['wmPath']; ?>" /><br />
554
+ <?php if(!ini_get('allow_url_fopen')) _e('The accessing of URL files is disabled at your server (allow_url_fopen)','nggallery') ?> </td>
555
+ </tr>
556
+ </table>
557
+ <h3><label><input type="radio" name="wmType" value="text" <?php checked('text', $ngg->options['wmType']); ?> /> <?php _e('Use text as watermark','nggallery') ?></label></h3>
558
+ <table class="wm-table form-table">
559
+ <tr>
560
+ <th><?php _e('Font','nggallery') ?>:</th>
561
+ <td><select name="wmFont" size="1"> <?php
562
+ $fontlist = ngg_get_TTFfont();
563
+ foreach ( $fontlist as $fontfile ) {
564
+ echo "\n".'<option value="'.$fontfile.'" '.ngg_input_selected($fontfile, $ngg->options['wmFont']).' >'.$fontfile.'</option>';
565
+ }
566
+ ?>
567
+ </select><br /><span class="setting-description">
568
+ <?php if ( !function_exists('ImageTTFBBox') )
569
+ _e('This function will not work, cause you need the FreeType library','nggallery');
570
+ else
571
+ _e('You can upload more fonts in the folder <strong>nggallery/fonts</strong>','nggallery'); ?>
572
+ </span>
573
+ </td>
574
+ </tr>
575
+ <tr>
576
+ <th><?php _e('Size','nggallery') ?>:</th>
577
+ <td><input type="text" name="wmSize" value="<?php echo $ngg->options['wmSize']; ?>" size="4" maxlength="2" /> px</td>
578
+ </tr>
579
+ <tr>
580
+ <th><?php _e('Color','nggallery') ?>:</th>
581
+ <td><input class="picker" type="text" size="6" maxlength="6" id="wmColor" name="wmColor" onchange="setcolor('#previewText', this.value)" value="<?php echo $ngg->options['wmColor'] ?>" />
582
+ <input type="text" size="1" readonly="readonly" id="previewText" style="background-color: #<?php echo $ngg->options['wmColor']; ?>" /> <?php _e('(hex w/o #)','nggallery') ?></td>
583
+ </tr>
584
+ <tr>
585
+ <th valign="top"><?php _e('Text','nggallery') ?>:</th>
586
+ <td><textarea name="wmText" cols="40" rows="4"><?php echo $ngg->options['wmText'] ?></textarea></td>
587
+ </tr>
588
+ <tr>
589
+ <th><?php _e('Opaque','nggallery') ?>:</th>
590
+ <td><input type="text" name="wmOpaque" value="<?php echo $ngg->options['wmOpaque'] ?>" size="3" maxlength="3" /> % </td>
591
+ </tr>
592
+ </table>
593
+ <div class="clear"> &nbsp; </div>
594
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
595
+ </form>
596
+ <?php
597
+ }
598
+
599
+ function tab_slideshow() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
600
 
601
+ global $ngg;
602
+ ?>
603
+ <!-- Slideshow settings -->
604
+ <form name="player_options" method="POST" action="<?php echo $this->filepath.'#slideshow'; ?>" >
605
+ <?php wp_nonce_field('ngg_settings'); ?>
606
+ <input type="hidden" name="page_options" value="irURL,irWidth,irHeight,irShuffle,irLinkfromdisplay,irShownavigation,irShowicons,irWatermark,irOverstretch,irRotatetime,irTransition,irKenburns,irBackcolor,irFrontcolor,irLightcolor,irScreencolor,irAudio,irXHTMLvalid" />
607
+ <h2><?php _e('Slideshow','nggallery'); ?></h2>
608
+ <?php if (empty($ngg->options['irURL'])) { ?>
609
+ <p>
610
+ <div id="message" class="error">
611
+ <p>
612
+ <?php _e('The path to imagerotator.swf is not defined, the slideshow will not work.','nggallery') ?><br />
613
+ <?php _e('If you would like to use the JW Image Rotatator, please download the player <a href="http://www.longtailvideo.com/players/jw-image-rotator/" target="_blank" >here</a> and upload it to your Upload folder (Default is wp-content/uploads).','nggallery') ?>
614
+ </p>
615
+ </div>
616
+ </p>
617
+ <?php }?>
618
+ <p><?php _e('The settings are used in the JW Image Rotator Version', 'nggallery') ?> 3.17 .
619
+ <?php _e('See more information for the Flash Player on the web page', 'nggallery') ?> <a href="http://www.longtailvideo.com/players/jw-image-rotator/" target="_blank" >JW Image Rotator from Jeroen Wijering</a>.
620
+ </p>
621
+ <table class="form-table ngg-options">
622
+ <tr>
623
+ <th><?php _e('Path to the Imagerotator (URL)','nggallery') ?>:</th>
624
+ <td>
625
+ <input type="text" size="50" id="irURL" name="irURL" value="<?php echo $ngg->options['irURL']; ?>" />
626
+ <input type="submit" name="irDetect" class="button-secondary" value="<?php _e('Search now','nggallery') ;?> &raquo;"/>
627
+ <br /><span class="setting-description"><?php _e('Press the button to search automatic for the imagerotator, if you uploaded it to wp-content/uploads or a subfolder','nggallery') ?></span>
628
+ </td>
629
+ </tr>
630
+ <tr>
631
+ <th><?php _e('Default size (W x H)','nggallery') ?>:</th>
632
+ <td><input type="text" size="3" maxlength="4" name="irWidth" value="<?php echo $ngg->options['irWidth']; ?>" /> x
633
+ <input type="text" size="3" maxlength="4" name="irHeight" value="<?php echo $ngg->options['irHeight']; ?>" /></td>
634
+ </tr>
635
+ <tr>
636
+ <th><?php _e('Shuffle mode','nggallery') ?>:</th>
637
+ <td><input name="irShuffle" type="checkbox" value="1" <?php checked('1', $ngg->options['irShuffle']); ?> /></td>
638
+ </tr>
639
+ <tr class="expert">
640
+ <th><?php _e('Show next image on click','nggallery') ?>:</th>
641
+ <td><input name="irLinkfromdisplay" type="checkbox" value="1" <?php checked('1', $ngg->options['irLinkfromdisplay']); ?> /></td>
642
+ </tr>
643
+ <tr class="expert">
644
+ <th><?php _e('Show navigation bar','nggallery') ?>:</th>
645
+ <td><input name="irShownavigation" type="checkbox" value="1" <?php checked('1', $ngg->options['irShownavigation']); ?> /></td>
646
+ </tr>
647
+ <tr class="expert">
648
+ <th><?php _e('Show loading icon','nggallery') ?>:</th>
649
+ <td><input name="irShowicons" type="checkbox" value="1" <?php checked('1', $ngg->options['irShowicons']); ?> /></td>
650
+ </tr>
651
+ <tr class="expert">
652
+ <th><?php _e('Use watermark logo','nggallery') ?>:</th>
653
+ <td><input name="irWatermark" type="checkbox" value="1" <?php checked('1', $ngg->options['irWatermark']); ?> />
654
+ <span class="setting-description"><?php _e('You can change the logo at the watermark settings','nggallery') ?></span></td>
655
+ </tr>
656
+ <tr class="expert">
657
+ <th><?php _e('Stretch image','nggallery') ?>:</th>
658
+ <td>
659
+ <select size="1" name="irOverstretch">
660
+ <option value="true" <?php selected('true', $ngg->options['irOverstretch']); ?> ><?php _e('true', 'nggallery') ;?></option>
661
+ <option value="false" <?php selected('false', $ngg->options['irOverstretch']); ?> ><?php _e('false', 'nggallery') ;?></option>
662
+ <option value="fit" <?php selected('fit', $ngg->options['irOverstretch']); ?> ><?php _e('fit', 'nggallery') ;?></option>
663
+ <option value="none" <?php selected('none', $ngg->options['irOverstretch']); ?> ><?php _e('none', 'nggallery') ;?></option>
664
+ </select>
665
+ </td>
666
+ </tr>
667
+ <tr>
668
+ <th><?php _e('Duration time','nggallery') ?>:</th>
669
+ <td><input type="text" size="3" maxlength="3" name="irRotatetime" value="<?php echo $ngg->options['irRotatetime'] ?>" /> <?php _e('sec.', 'nggallery') ;?></td>
670
+ </tr>
671
+ <tr>
672
+ <th><?php _e('Transition / Fade effect','nggallery') ?>:</th>
673
+ <td>
674
+ <select size="1" name="irTransition">
675
+ <option value="fade" <?php selected('fade', $ngg->options['irTransition']); ?> ><?php _e('fade', 'nggallery') ;?></option>
676
+ <option value="bgfade" <?php selected('bgfade', $ngg->options['irTransition']); ?> ><?php _e('bgfade', 'nggallery') ;?></option>
677
+ <option value="slowfade" <?php selected('slowfade', $ngg->options['irTransition']); ?> ><?php _e('slowfade', 'nggallery') ;?></option>
678
+ <option value="circles" <?php selected('circles', $ngg->options['irTransition']); ?> ><?php _e('circles', 'nggallery') ;?></option>
679
+ <option value="bubbles" <?php selected('bubbles', $ngg->options['irTransition']); ?> ><?php _e('bubbles', 'nggallery') ;?></option>
680
+ <option value="blocks" <?php selected('blocks', $ngg->options['irTransition']); ?> ><?php _e('blocks', 'nggallery') ;?></option>
681
+ <option value="fluids" <?php selected('fluids', $ngg->options['irTransition']); ?> ><?php _e('fluids', 'nggallery') ;?></option>
682
+ <option value="flash" <?php selected('flash', $ngg->options['irTransition']); ?> ><?php _e('flash', 'nggallery') ;?></option>
683
+ <option value="lines" <?php selected('lines', $ngg->options['irTransition']); ?> ><?php _e('lines', 'nggallery') ;?></option>
684
+ <option value="random" <?php selected('random', $ngg->options['irTransition']); ?> ><?php _e('random', 'nggallery') ;?></option>
685
+ </select>
686
+ </tr>
687
+ <tr class="expert">
688
+ <th><?php _e('Use slow zooming effect','nggallery') ?>:</th>
689
+ <td><input name="irKenburns" type="checkbox" value="1" <?php checked('1', $ngg->options['irKenburns']); ?> /></td>
690
+ </tr>
691
+ <tr>
692
+ <th><?php _e('Background Color','nggallery') ?>:</th>
693
+ <td><input class="picker" type="text" size="6" maxlength="6" id="irBackcolor" name="irBackcolor" onchange="setcolor('#previewBack', this.value)" value="<?php echo $ngg->options['irBackcolor'] ?>" />
694
+ <input type="text" size="1" readonly="readonly" id="previewBack" style="background-color: #<?php echo $ngg->options['irBackcolor'] ?>" /></td>
695
+ </tr>
696
+ <tr>
697
+ <th><?php _e('Texts / Buttons Color','nggallery') ?>:</th>
698
+ <td><input class="picker" type="text" size="6" maxlength="6" id="irFrontcolor" name="irFrontcolor" onchange="setcolor('#previewFront', this.value)" value="<?php echo $ngg->options['irFrontcolor'] ?>" />
699
+ <input type="text" size="1" readonly="readonly" id="previewFront" style="background-color: #<?php echo $ngg->options['irFrontcolor'] ?>" /></td>
700
+ </tr>
701
+ <tr class="expert">
702
+ <th><?php _e('Rollover / Active Color','nggallery') ?>:</th>
703
+ <td><input class="picker" type="text" size="6" maxlength="6" id="irLightcolor" name="irLightcolor" onchange="setcolor('#previewLight', this.value)" value="<?php echo $ngg->options['irLightcolor'] ?>" />
704
+ <input type="text" size="1" readonly="readonly" id="previewLight" style="background-color: #<?php echo $ngg->options['irLightcolor'] ?>" /></td>
705
+ </tr>
706
+ <tr class="expert">
707
+ <th><?php _e('Screen Color','nggallery') ?>:</th>
708
+ <td><input class="picker" type="text" size="6" maxlength="6" id="irScreencolor" name="irScreencolor" onchange="setcolor('#previewScreen', this.value)" value="<?php echo $ngg->options['irScreencolor'] ?>" />
709
+ <input type="text" size="1" readonly="readonly" id="previewScreen" style="background-color: #<?php echo $ngg->options['irScreencolor'] ?>" /></td>
710
+ </tr>
711
+ <tr class="expert">
712
+ <th><?php _e('Background music (URL)','nggallery') ?>:</th>
713
+ <td><input type="text" size="50" id="irAudio" name="irAudio" value="<?php echo $ngg->options['irAudio'] ?>" /></td>
714
+ </tr>
715
+ <tr class="expert">
716
+ <th ><?php _e('Try XHTML validation (with CDATA)','nggallery') ?>:</th>
717
+ <td><input name="irXHTMLvalid" type="checkbox" value="1" <?php checked('1', $ngg->options['irXHTMLvalid']); ?> />
718
+ <span class="setting-description"><?php _e('Important : Could causes problem at some browser. Please recheck your page.','nggallery') ?></span></td>
719
+ </tr>
720
+ </table>
721
+ <div class="alignright"><a href="" class="switch-expert" >[<?php _e('More settings','nggallery'); ?>]</a></div>
722
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes') ;?>"/></div>
723
+ </form>
724
+ <?php
725
+ }
726
  }
727
 
728
  function ngg_get_TTFfont() {
admin/showmeta.php CHANGED
@@ -21,6 +21,7 @@ $dbdata = $meta->get_saved_meta();
21
  $exifdata = $meta->get_EXIF();
22
  $iptcdata = $meta->get_IPTC();
23
  $xmpdata = $meta->get_XMP();
 
24
 
25
  ?>
26
  <!-- META DATA -->
21
  $exifdata = $meta->get_EXIF();
22
  $iptcdata = $meta->get_IPTC();
23
  $xmpdata = $meta->get_XMP();
24
+ $class = '';
25
 
26
  ?>
27
  <!-- META DATA -->
admin/style.php CHANGED
@@ -55,8 +55,7 @@ if (isset($_POST['updatecss'])) {
55
 
56
  // get the content of the file
57
  //TODO: BUG : Read failed after write a file, maybe a Cache problem
58
- if (!is_file($real_file))
59
- $error = 1;
60
 
61
  if (!$error && filesize($real_file) > 0) {
62
  $f = fopen($real_file, 'r');
55
 
56
  // get the content of the file
57
  //TODO: BUG : Read failed after write a file, maybe a Cache problem
58
+ $error = ( !is_file($real_file) );
 
59
 
60
  if (!$error && filesize($real_file) > 0) {
61
  $f = fopen($real_file, 'r');
admin/tags.php CHANGED
@@ -111,7 +111,7 @@ if ($nb_tags < $tag_count && $offset>0) {
111
  <label for="search"><?php _e('Search tags', 'nggallery'); ?></label><br />
112
  <input type="hidden" name="page" value="<?php echo esc_attr(stripslashes($_GET['page'])); ?>" />
113
  <input type="hidden" name="tag_sortorder" value="<?php echo $sort_order; ?>" />
114
- <input type="text" name="search" id="search" size="10" value="<?php echo stripslashes($_GET['search']); ?>" />
115
  <input class="button" type="submit" value="<?php _e('Go', 'nggallery'); ?>" />
116
  </p>
117
  </form>
@@ -134,7 +134,10 @@ if ($nb_tags < $tag_count && $offset>0) {
134
  <?php
135
  $tags = (array) nggTags::find_tags($param, true);
136
  foreach( $tags as $tag ) {
137
- echo '<li><span>'.$tag->name.'</span>&nbsp;<a href="'.(get_tag_link( $tag->term_id )).'" title="'.sprintf(__('View all images tagged with %s', 'nggallery'), $tag->name).'">('.$tag->count.')</a></li>'."\n";
 
 
 
138
  }
139
  unset($tags);
140
  ?>
111
  <label for="search"><?php _e('Search tags', 'nggallery'); ?></label><br />
112
  <input type="hidden" name="page" value="<?php echo esc_attr(stripslashes($_GET['page'])); ?>" />
113
  <input type="hidden" name="tag_sortorder" value="<?php echo $sort_order; ?>" />
114
+ <input type="text" name="search" id="search" size="10" value="<?php if (isset($_GET['search'])) echo stripslashes($_GET['search']); ?>" />
115
  <input class="button" type="submit" value="<?php _e('Go', 'nggallery'); ?>" />
116
  </p>
117
  </form>
134
  <?php
135
  $tags = (array) nggTags::find_tags($param, true);
136
  foreach( $tags as $tag ) {
137
+ //TODO:Tag link should be call a list of images in manage gallery
138
+ //echo '<li><span>' . $tag->name . '</span>&nbsp;<a href="'.(ngg_get_tag_link( $tag->term_id )).'" title="'.sprintf(__('View all images tagged with %s', 'nggallery'), $tag->name).'">('.$tag->count.')</a></li>'."\n";
139
+ echo '<li><span>' . $tag->name . '</span>&nbsp;'.'('.$tag->count.')</li>'."\n";
140
+
141
  }
142
  unset($tags);
143
  ?>
admin/tinymce/window.php CHANGED
@@ -4,7 +4,7 @@
4
  require_once( dirname( dirname( dirname(__FILE__) ) ) . '/ngg-config.php');
5
 
6
  // check for rights
7
- if ( !is_user_logged_in() || !current_user_can('edit_posts') )
8
  wp_die(__("You are not allowed to be here"));
9
 
10
  global $wpdb, $nggdb;
4
  require_once( dirname( dirname( dirname(__FILE__) ) ) . '/ngg-config.php');
5
 
6
  // check for rights
7
+ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
8
  wp_die(__("You are not allowed to be here"));
9
 
10
  global $wpdb, $nggdb;
admin/upgrade.php CHANGED
@@ -142,6 +142,12 @@ function ngg_upgrade() {
142
  update_option('ngg_options', $ngg_options);
143
  echo __('finished', 'nggallery') . "<br />\n";
144
  }
 
 
 
 
 
 
145
 
146
  return;
147
  }
142
  update_option('ngg_options', $ngg_options);
143
  echo __('finished', 'nggallery') . "<br />\n";
144
  }
145
+
146
+ // Remove the old widget options
147
+ if (version_compare($installed_ver, '1.4.4', '<')) {
148
+ delete_option( 'ngg_widget' );
149
+ echo __('Updated widget structure. If you used NextGEN Widgets, you need to setup them again...', 'nggallery');
150
+ }
151
 
152
  return;
153
  }
changelog.txt CHANGED
@@ -1,6 +1,24 @@
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  = V1.4.3 - 16.11.2009 =
5
  * Bugfix : Urlencode XML file path for sildeshow
6
 
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
+ = V1.5.0 - 18.03.2010 =
5
+ * NEW : Support for Post thumbnail feature
6
+ * NEW : Backup and Recover function for images (THX to Simone Fumagalli)
7
+ * NEW : Resize images after upload (THX to Simone Fumagalli)
8
+ * NEW : Added a JSON class for fetching galleries in a RESTful way (see xml/json.php)
9
+ * NEW : Adding various new capabilities for user roles
10
+ * NEW : Auto downloader for translation file
11
+ * Changed : Rename query var from slideshow to callback for compat reason with other plugin
12
+ * Changed : Convert widget function to new WP structure
13
+ * Changed : Include lookup for tags into the backend search
14
+ * Changed : Restructure addgallery and settings page to enable custom tabs
15
+ * Bugfix : Select album preview from gallery preview pics instead random list
16
+ * Bugfix : Keep fix dimension in edit thumbnail operation
17
+ * Bugfix : Import meta data didn't work correct for existing images
18
+ * Bugfix : Fix onload bug for Chrome 4 in Shutter script
19
+ * Bugfix : Remove various PHP notices for a better world
20
+ * Removed : Canonical link is now part of Wordpress 2.9
21
+
22
  = V1.4.3 - 16.11.2009 =
23
  * Bugfix : Urlencode XML file path for sildeshow
24
 
js/ngg.js CHANGED
@@ -53,7 +53,7 @@ function ngg_ajax_navigation(e, obj) {
53
  ngg_show_loading(e);
54
 
55
  // load gallery content
56
- jQuery.get(ngg_ajax.path + "nggajax.php", {p: postId, galleryid: galleryId, nggpage: pageNumber, type: "gallery"}, function (data, textStatus) {
57
 
58
  // delete old content
59
  gallery.children().remove();
@@ -125,7 +125,7 @@ function ngg_ajax_browser_navigation(e, obj) {
125
  ngg_show_loading(e);
126
 
127
  // get content
128
- jQuery.get(ngg_ajax.path + "nggajax.php", {p: postId, galleryid: galleryId, pid: imageNumber, type: "browser"}, function (data, textStatus) {
129
  // delete old content
130
  gallery.children().remove();
131
 
53
  ngg_show_loading(e);
54
 
55
  // load gallery content
56
+ jQuery.get(ngg_ajax.callback, {p: postId, galleryid: galleryId, nggpage: pageNumber, type: "gallery"}, function (data, textStatus) {
57
 
58
  // delete old content
59
  gallery.children().remove();
125
  ngg_show_loading(e);
126
 
127
  // get content
128
+ jQuery.get(ngg_ajax.callback, {p: postId, galleryid: galleryId, pid: imageNumber, type: "browser"}, function (data, textStatus) {
129
  // delete old content
130
  gallery.children().remove();
131
 
lang/nggallery-de_DE.mo CHANGED
Binary file
lang/nggallery-de_DE.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-10-27 10:06+0100\n"
6
- "PO-Revision-Date: 2009-10-27 10:09+0100\n"
7
- "Last-Translator: Alex Rabe <no@email.com>\n"
8
  "Language-Team: Alex Rabe\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -18,49 +18,57 @@ msgstr ""
18
  "X-Poedit-SearchPath-0: .\n"
19
  "X-Poedit-SearchPath-1: ..\n"
20
 
21
- #: ../nggallery.php:169
 
 
 
 
 
 
 
 
22
  msgid "Sorry, NextGEN Gallery works only with a Memory Limit of 16 MB higher"
23
  msgstr "Tut mir leid, aber NextGEN Galerie benötigt minimum 16MB Speicher (Memory Limit) oder mehr"
24
 
25
- #: ../nggallery.php:194
26
  msgid "Picture tag"
27
  msgstr "Bilder Stichwort"
28
 
29
- #: ../nggallery.php:195
30
  msgid "Picture tag: %2$l."
31
  msgstr "Bilder Stichwort: %2$l."
32
 
33
- #: ../nggallery.php:196
34
  msgid "Separate picture tags with commas."
35
  msgstr "Trenne Stichwörter mittels Komma"
36
 
37
- #: ../nggallery.php:292
38
  msgid "L O A D I N G"
39
  msgstr "B I T T E &nbsp;&nbsp;W A R T E N"
40
 
41
- #: ../nggallery.php:293
42
  msgid "Click to Close"
43
  msgstr "Klicken zum Schliessen "
44
 
45
- #: ../nggallery.php:308
46
  msgid "loading"
47
  msgstr "lade..."
48
 
49
- #: ../nggallery.php:406
50
  #: ../nggfunctions.php:848
51
  #: ../admin/admin.php:32
52
  msgid "Overview"
53
  msgstr "Übersicht"
54
 
55
- #: ../nggallery.php:407
56
  msgid "Get help"
57
  msgstr "Hilfe"
58
 
59
- #: ../nggallery.php:408
60
  msgid "Contribute"
61
  msgstr "Mithelfen"
62
 
63
- #: ../nggallery.php:409
64
  msgid "Donate"
65
  msgstr "Spenden"
66
 
@@ -73,7 +81,7 @@ msgstr "Es wird der <a href=\"http://www.macromedia.com/go/getflashplayer\">Adob
73
  msgid "[Gallery not found]"
74
  msgstr "[Galerie nicht gefunden]"
75
 
76
- #: ../nggfunctions.php:363
77
  msgid "[Album not found]"
78
  msgstr "[Album nicht gefunden]"
79
 
@@ -99,7 +107,7 @@ msgstr "Dieses Plugin wird hauptsächlich entwickelt, dokumentiert und supportet
99
 
100
  #: ../admin/about.php:14
101
  msgid "There are many other folks who have made contributions to this project :"
102
- msgstr "Folgende Personen haben die Entwicklung bisher unterstützt :"
103
 
104
  #: ../admin/about.php:19
105
  msgid "Contributors / Tribute to"
@@ -197,154 +205,164 @@ msgstr "Vielen Dank!"
197
  msgid "We would like to thank this people which support us in the work :"
198
  msgstr "Ich möchte mich bei diesen Menschen für Ihre Unterstützung bedanken:"
199
 
200
- #: ../admin/about.php:164
201
  msgid "and all donators..."
202
  msgstr "und allen anderen Spendern..."
203
 
204
- #: ../admin/addgallery.php:37
205
- #: ../admin/addgallery.php:52
 
 
 
 
 
 
 
 
 
 
 
 
206
  msgid "Upload failed!"
207
  msgstr "Upload fehlgeschlagen!"
208
 
209
- #: ../admin/addgallery.php:57
210
- #: ../admin/functions.php:836
211
- #: ../admin/functions.php:936
 
 
 
 
212
  msgid "No gallery selected !"
213
  msgstr "Keine Galerie ausgewählt !"
214
 
215
- #: ../admin/addgallery.php:104
216
  msgid "Image Files"
217
  msgstr "Bilder"
218
 
219
- #: ../admin/addgallery.php:123
220
- #: ../admin/addgallery.php:154
221
  msgid "remove"
222
  msgstr "Entfernen"
223
 
224
- #: ../admin/addgallery.php:124
225
  msgid "Browse..."
226
  msgstr "Durchsuche..."
227
 
228
- #: ../admin/addgallery.php:125
229
- #: ../admin/addgallery.php:293
230
  msgid "Upload images"
231
  msgstr "Bilder hochladen"
232
 
233
- #: ../admin/addgallery.php:173
234
- #: ../admin/addgallery.php:185
235
- #: ../admin/manage-galleries.php:134
236
  msgid "Add new gallery"
237
  msgstr "Neue Galerie erstellen"
238
 
239
- #: ../admin/addgallery.php:175
240
- #: ../admin/addgallery.php:205
241
  msgid "Upload a Zip-File"
242
  msgstr "Zip-Datei hochladen"
243
 
244
- #: ../admin/addgallery.php:178
245
- #: ../admin/addgallery.php:246
246
  msgid "Import image folder"
247
  msgstr "Bilder-Verzeichnis importieren"
248
 
249
- #: ../admin/addgallery.php:180
250
- #: ../admin/addgallery.php:263
251
  msgid "Upload Images"
252
  msgstr "Bilder hochladen"
253
 
254
- #: ../admin/addgallery.php:190
255
- #: ../admin/manage-galleries.php:217
256
  msgid "New Gallery"
257
  msgstr "Neue Galerie"
258
 
259
- #: ../admin/addgallery.php:193
260
- #: ../admin/manage-galleries.php:219
261
  msgid "Create a new , empty gallery below the folder"
262
  msgstr "Erstelle eine neue, leere Galerie unter dem Verzeichnis"
263
 
264
- #: ../admin/addgallery.php:195
265
- #: ../admin/manage-galleries.php:221
266
  msgid "Allowed characters for file and folder names are"
267
  msgstr "Erlaubte Zeichen für die Datei- und Verzeichnisnamen sind"
268
 
269
- #: ../admin/addgallery.php:199
270
  msgid "Add gallery"
271
  msgstr "Galerie hinzufügen"
272
 
273
- #: ../admin/addgallery.php:210
274
  msgid "Select Zip-File"
275
  msgstr "Wähle Zip-Datei"
276
 
277
- #: ../admin/addgallery.php:212
278
  msgid "Upload a zip file with images"
279
  msgstr "Lade eine Zip-Datei mit Bildern hoch"
280
 
281
- #: ../admin/addgallery.php:216
282
  msgid "or enter a Zip-File URL"
283
  msgstr "oder gib eine URL zur ZIP-Datei an"
284
 
285
- #: ../admin/addgallery.php:218
286
  msgid "Import a zip file with images from a url"
287
  msgstr "Lade eine Zip-Datei mit Bildern über ein URL hoch"
288
 
289
- #: ../admin/addgallery.php:222
290
- #: ../admin/addgallery.php:272
291
  msgid "in to"
292
  msgstr "in"
293
 
294
- #: ../admin/addgallery.php:224
295
  msgid "a new gallery"
296
  msgstr "eine neue Galerie"
297
 
298
- #: ../admin/addgallery.php:235
299
  msgid "Note : The upload limit on your server is "
300
  msgstr "Hinweis : Das Upload-Limit auf dem Server beträgt "
301
 
302
- #: ../admin/addgallery.php:239
303
  msgid "Start upload"
304
  msgstr "Upload starten"
305
 
306
- #: ../admin/addgallery.php:251
307
  msgid "Import from Server path:"
308
  msgstr "Importieren aus Server-Pfad:"
309
 
310
- #: ../admin/addgallery.php:254
311
  msgid " Please note : For safe-mode = ON you need to add the subfolder thumbs manually"
312
  msgstr "Achtung : Da der Safe-Mode (PHP.INI) eingeschaltet ist, mußt Du das Unterverzeichnis für die Vorschaubilder (\"thumbs\") manuell (per FTP) anlegen"
313
 
314
- #: ../admin/addgallery.php:257
315
  msgid "Import folder"
316
  msgstr "Verzeichnis importieren"
317
 
318
- #: ../admin/addgallery.php:268
319
  msgid "Upload image"
320
  msgstr "Bild hochladen"
321
 
322
- #: ../admin/addgallery.php:274
323
  msgid "Choose gallery"
324
  msgstr "Wähle Galerie"
325
 
326
- #: ../admin/addgallery.php:289
327
  msgid "The batch upload requires Adobe Flash 10, disable it if you have problems"
328
  msgstr "Das Batch-Upload benötigt Adbode Flash 10, wenn es Probleme gibt deaktiviere es besser."
329
 
330
- #: ../admin/addgallery.php:289
331
  msgid "Disable flash upload"
332
  msgstr "Deaktiviere Batch-Upload"
333
 
334
- #: ../admin/addgallery.php:291
335
  msgid "Upload multiple files at once by ctrl/shift-selecting in dialog"
336
  msgstr "Wähle im Dialog mit Ctrl/Shift mehrere Bilder gleichzeitig aus."
337
 
338
- #: ../admin/addgallery.php:291
339
  msgid "Enable flash based upload"
340
  msgstr "Aktiviere Flash Batch Upload"
341
 
342
- #: ../admin/admin.php:31
343
- msgid "Gallery"
344
- msgid_plural "Galleries"
345
- msgstr[0] "Galerie"
346
- msgstr[1] "Galerien"
347
-
348
  #: ../admin/admin.php:33
349
  msgid "Add Gallery / Images"
350
  msgstr "Galerie / Bilder hinzufügen"
@@ -353,12 +371,6 @@ msgstr "Galerie / Bilder hinzufügen"
353
  msgid "Manage Gallery"
354
  msgstr "Galerie verwalten"
355
 
356
- #: ../admin/admin.php:35
357
- msgid "Album"
358
- msgid_plural "Albums"
359
- msgstr[0] "Album"
360
- msgstr[1] "Alben"
361
-
362
  #: ../admin/admin.php:36
363
  msgid "Tags"
364
  msgstr "Stichwörter"
@@ -371,303 +383,306 @@ msgstr "Optionen"
371
  msgid "Style"
372
  msgstr "Style"
373
 
374
- #: ../admin/admin.php:40
375
- msgid "Setup Gallery"
376
- msgstr "Galerie Setup"
377
-
378
- #: ../admin/admin.php:40
379
- msgid "Setup"
380
- msgstr "Setup"
381
-
382
- #: ../admin/admin.php:42
383
  msgid "Roles"
384
  msgstr "Zugriff"
385
 
386
- #: ../admin/admin.php:43
387
  msgid "About this Gallery"
388
  msgstr "Über diese Galerie"
389
 
390
- #: ../admin/admin.php:43
391
  msgid "About"
392
  msgstr "Über"
393
 
394
- #: ../admin/admin.php:45
395
  msgid "NextGEN Gallery"
396
  msgstr "NextGEN Gallery"
397
 
398
- #: ../admin/admin.php:73
 
 
 
 
399
  msgid "A new version of NextGEN Gallery is available !"
400
  msgstr "Eine neue Version von NextGEN Gallery ist jetzt verfügbar"
401
 
402
- #: ../admin/admin.php:73
403
  msgid "Download here"
404
  msgstr "Hier downloaden"
405
 
406
- #: ../admin/admin.php:92
407
  #, php-format
408
  msgid "Thanks for using this plugin, I hope you are satisfied ! If you would like to support the further development, please consider a <strong><a href=\"%s\">donation</a></strong>! If you still need some help, please post your questions <a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\">here</a> ."
409
  msgstr "Vielen Dank das du dieses Plugin nutzt. Ich hoffe du bist soweit zufrieden ! Wenn du die Weiterentwicklung unterstützen möchtest, würde ich mich über eine kleine <strong><a href=\"%s\">Spende</a></strong> freuen! Wenn du Fragen oder Problem hast, schreib sie doch <a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\">hier</a> ins Forum."
410
 
411
- #: ../admin/admin.php:95
412
  msgid "OK, hide this message now !"
413
  msgstr "OK, danke für die Info !"
414
 
415
- #: ../admin/admin.php:178
416
  msgid "You do not have the correct permission"
417
  msgstr "Du hast keine Zugriffsrechte"
418
 
419
- #: ../admin/admin.php:179
420
  msgid "Unexpected Error"
421
  msgstr "Unerwarteter Fehler"
422
 
423
- #: ../admin/admin.php:180
424
  msgid "A failure occurred"
425
  msgstr "Ein Fehler ist aufgetreten"
426
 
427
- #: ../admin/admin.php:265
428
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Introduction</a>"
429
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
430
 
431
- #: ../admin/admin.php:268
432
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Setup</a>"
433
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Setup</a>"
434
 
435
- #: ../admin/admin.php:271
436
  msgid "<a href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\" target=\"_blank\">Translation by alex rabe</a>"
437
  msgstr "<a href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\" target=\"_blank\">Unterstütze bei der Übersetzung</a>"
438
 
439
- #: ../admin/admin.php:274
440
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Roles / Capabilities</a>"
441
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
442
 
443
- #: ../admin/admin.php:277
444
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Styles</a>"
445
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
446
 
447
- #: ../admin/admin.php:278
448
  msgid "Templates"
449
  msgstr "Vorlagen"
450
 
451
- #: ../admin/admin.php:281
452
  #: ../admin/admin.php:287
 
453
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery management</a>"
454
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
455
 
456
- #: ../admin/admin.php:282
457
  msgid "Gallery example"
458
  msgstr "Galerie Beispiel"
459
 
460
- #: ../admin/admin.php:288
461
- #: ../admin/admin.php:298
462
  msgid "Gallery tags"
463
  msgstr "Galerie Stichwörter"
464
 
465
- #: ../admin/admin.php:291
466
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Album management</a>"
467
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
468
 
469
- #: ../admin/admin.php:292
470
  msgid "Album example"
471
  msgstr "Album Beispiel"
472
 
473
- #: ../admin/admin.php:293
474
  #: ../admin/admin.php:299
 
475
  msgid "Album tags"
476
  msgstr "Album Stichwörter"
477
 
478
- #: ../admin/admin.php:296
479
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery tags</a>"
480
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
481
 
482
- #: ../admin/admin.php:297
483
  msgid "Related images"
484
  msgstr "Verwandte Bilder"
485
 
486
- #: ../admin/admin.php:302
487
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-image-management/\" target=\"_blank\">Image management</a>"
488
  msgstr "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-image-management/\" target=\"_blank\">Bilderverwaltung (Englisch)</a>"
489
 
490
- #: ../admin/admin.php:303
491
  msgid "Custom fields"
492
  msgstr "Spezialfelder"
493
 
494
- #: ../admin/admin.php:308
495
  msgid "Get help with NextGEN Gallery"
496
  msgstr "Weitere Hilfe zu NextGEN Gallery"
497
 
498
- #: ../admin/admin.php:312
499
  msgid "More Help & Info"
500
  msgstr "Weitere Hilfe & Informationen"
501
 
502
- #: ../admin/admin.php:314
503
  msgid "<a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\" target=\"_blank\">Support Forums</a>"
504
  msgstr "<a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\" target=\"_blank\">Support Forum (Englisch)</a>"
505
 
506
- #: ../admin/admin.php:315
507
  msgid "FAQ"
508
  msgstr "FAQ (englisch)"
509
 
510
- #: ../admin/admin.php:316
511
  msgid "Feature request"
512
  msgstr "Wünsch dir was"
513
 
514
- #: ../admin/admin.php:317
515
  msgid "Get your language pack"
516
  msgstr "Lade deine Sprachdatei"
517
 
518
- #: ../admin/admin.php:318
519
  msgid "Contribute development"
520
  msgstr "Entwicklung helfen"
521
 
522
- #: ../admin/admin.php:319
523
  msgid "Download latest version"
524
  msgstr "Aktuelle Version downloaden"
525
 
526
- #: ../admin/album.php:99
527
- #: ../admin/album.php:112
528
- #: ../admin/album.php:138
529
  msgid "Update Successfully"
530
  msgstr "Update erfolgreich"
531
 
532
- #: ../admin/album.php:120
533
  msgid "Album deleted"
534
  msgstr "Album gelöscht"
535
 
536
- #: ../admin/album.php:248
537
  msgid "Manage Albums"
538
  msgstr "Verwalte Alben"
539
 
540
- #: ../admin/album.php:254
541
- #: ../admin/album.php:297
542
  msgid "Select album"
543
  msgstr "Wähle Album"
544
 
545
- #: ../admin/album.php:256
546
  msgid "No album selected"
547
  msgstr "Kein Album ausgewählt"
548
 
549
- #: ../admin/album.php:267
550
  #: ../admin/edit-thumbnail.php:157
551
  msgid "Update"
552
  msgstr "Aktualisiere"
553
 
554
- #: ../admin/album.php:268
555
  msgid "Edit album"
556
  msgstr "Album ändern"
557
 
558
- #: ../admin/album.php:269
559
- #: ../admin/manage-galleries.php:195
 
560
  msgid "Delete"
561
  msgstr "Lösche"
562
 
563
- #: ../admin/album.php:269
564
  msgid "Delete album ?"
565
  msgstr "Album löschen ?"
566
 
567
- #: ../admin/album.php:271
568
  msgid "Add new album"
569
  msgstr "Album hinzufügen"
570
 
571
- #: ../admin/album.php:273
572
  msgid "Add"
573
  msgstr "Hinzufügen"
574
 
575
- #: ../admin/album.php:283
576
  msgid "Show / hide used galleries"
577
  msgstr "Zeige / Verstecke verwendete Galerien"
578
 
579
- #: ../admin/album.php:283
580
  msgid "[Show all]"
581
  msgstr "[Alle zeigen]"
582
 
583
- #: ../admin/album.php:284
584
  msgid "Maximize the widget content"
585
  msgstr "Maximiere die Widgets"
586
 
587
- #: ../admin/album.php:284
588
  msgid "[Maximize]"
589
  msgstr "[Vergrößern]"
590
 
591
- #: ../admin/album.php:285
592
  msgid "Minimize the widget content"
593
  msgstr "Minimiere die Widgets"
594
 
595
- #: ../admin/album.php:285
596
  msgid "[Minimize]"
597
  msgstr "[Verkleinern]"
598
 
599
- #: ../admin/album.php:287
600
  msgid "After you create and select a album, you can drag and drop a gallery or another album into your new album below"
601
  msgstr "Nachdem du ein Album erstellt und ausgewählt hast, kannst du per Drag & Drop eine Galerie oder ein anderes Album in das neue Album ziehen"
602
 
603
- #: ../admin/album.php:313
604
  msgid "Select gallery"
605
  msgstr "Wähle Galerie"
606
 
607
- #: ../admin/album.php:342
608
  msgid "Album ID"
609
  msgstr "Album ID"
610
 
611
- #: ../admin/album.php:355
612
  msgid "No album selected!"
613
  msgstr "Kein Album ausgewählt"
614
 
615
- #: ../admin/album.php:375
616
  msgid "Album name:"
617
  msgstr "Album Name :"
618
 
619
- #: ../admin/album.php:381
620
  msgid "Album description:"
621
  msgstr "Beschreibung:"
622
 
623
- #: ../admin/album.php:387
624
  msgid "Select a preview image:"
625
  msgstr "Wähle Vorschaubild:"
626
 
627
- #: ../admin/album.php:389
628
  msgid "No picture"
629
  msgstr "Kein Bild"
630
 
631
- #: ../admin/album.php:403
 
632
  msgid "Page Link to"
633
  msgstr "Seite verlinkt zu"
634
 
635
- #: ../admin/album.php:405
 
636
  msgid "Not linked"
637
  msgstr "Nicht verlinkt"
638
 
639
- #: ../admin/album.php:415
640
- #: ../admin/manage-galleries.php:226
641
- #: ../admin/manage-galleries.php:255
642
- #: ../admin/manage-galleries.php:285
 
 
 
 
643
  msgid "OK"
644
  msgstr "OK"
645
 
646
- #: ../admin/album.php:417
647
- #: ../admin/manage-galleries.php:228
648
- #: ../admin/manage-galleries.php:257
649
- #: ../admin/manage-galleries.php:287
 
 
 
 
650
  msgid "Cancel"
651
  msgstr "Abbrechen"
652
 
653
- #: ../admin/album.php:500
654
  msgid "Name"
655
  msgstr "Name"
656
 
657
- #: ../admin/album.php:501
658
- #: ../admin/manage-galleries.php:155
 
659
  msgid "Title"
660
  msgstr "Titel"
661
 
662
- #: ../admin/album.php:502
663
  msgid "Page"
664
  msgstr "Seite"
665
 
666
- #: ../admin/edit-thumbnail.php:19
667
- #: ../admin/edit-thumbnail.php:22
668
- msgid "Cheatin&#8217; uh?"
669
- msgstr "Cheatin&#8217; uh?"
670
-
671
  #: ../admin/edit-thumbnail.php:106
672
  msgid "Select with the mouse the area for the new thumbnail"
673
  msgstr "Wähle mit der Maus den Bereich für das neue Thumbnail"
@@ -692,7 +707,7 @@ msgstr "Kein gültiger Galerie-Name!"
692
  #: ../admin/functions.php:56
693
  #: ../admin/functions.php:70
694
  #: ../admin/functions.php:147
695
- #: ../admin/functions.php:154
696
  msgid "Directory"
697
  msgstr "Verzeichnis"
698
 
@@ -712,7 +727,7 @@ msgstr "ist schreibgeschützt !"
712
 
713
  #: ../admin/functions.php:65
714
  #: ../admin/functions.php:75
715
- #: ../admin/functions.php:795
716
  msgid "Unable to create directory "
717
  msgstr "Kann Verzeichnis nicht erstellen "
718
 
@@ -749,171 +764,216 @@ msgstr "Galerie ändern"
749
  msgid "doesn&#96;t exist!"
750
  msgstr "gibt es nicht !"
751
 
752
- #: ../admin/functions.php:154
753
  msgid "contains no pictures"
754
  msgstr "enthält keine Bilder"
755
 
756
- #: ../admin/functions.php:172
757
  msgid "Database error. Could not add gallery!"
758
  msgstr "Datenbank-Fehler. Kann Galerie nicht hinzufügen!"
759
 
760
- #: ../admin/functions.php:175
761
  msgid "successfully created!"
762
  msgstr "erfolgreich erstellt!"
763
 
764
- #: ../admin/functions.php:204
765
- #: ../admin/functions.php:912
766
  #: ../admin/manage-galleries.php:127
 
 
 
767
  msgid "Create new thumbnails"
768
  msgstr "Neue Vorschaubilder erstellen"
769
 
770
- #: ../admin/functions.php:207
771
  msgid " picture(s) successfully added"
772
  msgstr " Bild(er) erfolgreich hinzugefügt"
773
 
774
- #: ../admin/functions.php:254
775
- #: ../admin/functions.php:327
776
- #: ../admin/functions.php:377
777
- #: ../admin/functions.php:470
 
778
  msgid "Object didn't contain correct data"
779
  msgstr "Das Objekt enhält nicht die notwendigen Daten"
780
 
781
- #: ../admin/functions.php:259
782
  msgid " is not writeable "
783
  msgstr "ist schreibgeschützt !"
784
 
785
- #: ../admin/functions.php:337
786
- #: ../admin/functions.php:380
787
- #: ../admin/functions.php:476
 
788
  msgid " is not writeable"
789
  msgstr "ist schreibgeschützt !"
790
 
791
- #: ../admin/functions.php:586
 
 
 
 
 
 
 
 
792
  msgid "(Error : Couldn't not update data base)"
793
  msgstr "(Fehler : Konnte Datenbank nicht updaten)"
794
 
795
- #: ../admin/functions.php:593
796
  msgid "(Error : Couldn't not update meta data)"
797
  msgstr "(Fehler : Konnte Metadaten nicht speichern)"
798
 
799
- #: ../admin/functions.php:602
800
  msgid "(Error : Couldn't not find image)"
801
  msgstr "(Fehler : Konnte das Bild nicht finden)"
802
 
803
- #: ../admin/functions.php:732
804
  msgid "No valid URL path "
805
  msgstr "Kein gültiger URL Pfad"
806
 
807
- #: ../admin/functions.php:748
808
  msgid "Import via cURL failed."
809
  msgstr "Import via cURL abgebrochen"
810
 
811
- #: ../admin/functions.php:763
812
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
813
  msgstr "Die hochgeladene Datei war keine korrekte Zip-Datei. Servermeldung :"
814
 
815
- #: ../admin/functions.php:779
816
  msgid "Could not get a valid foldername"
817
  msgstr "Konnte keinen gültigen Verzeichnisnamen finden"
818
 
819
- #: ../admin/functions.php:790
820
  #, php-format
821
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
822
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
823
 
824
- #: ../admin/functions.php:805
825
  msgid "Zip-File successfully unpacked"
826
  msgstr "Zip-Datei erfolgreich entpackt"
827
 
828
- #: ../admin/functions.php:844
829
- #: ../admin/functions.php:962
830
  msgid "Failure in database, no gallery path set !"
831
  msgstr "Datenbankfehler! Kein Galerie-Pfad gesetzt !"
832
 
833
- #: ../admin/functions.php:868
834
- #: ../admin/functions.php:956
835
  msgid "is no valid image file!"
836
  msgstr "ist keine zulässige Bilddatei !"
837
 
838
- #: ../admin/functions.php:882
839
- #: ../admin/functions.php:1098
840
  #: ../admin/functions.php:1171
 
841
  #, php-format
842
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
843
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
844
 
845
- #: ../admin/functions.php:889
846
- #: ../admin/functions.php:979
847
  msgid "Error, the file could not moved to : "
848
  msgstr "Fehler: Diese Datei kann nicht verschoben werden zu :"
849
 
850
- #: ../admin/functions.php:894
851
- #: ../admin/functions.php:983
852
  msgid "Error, the file permissions could not set"
853
  msgstr "Fehler: Die Berechtigungen für diese Datei können nicht gesetzt werden"
854
 
855
- #: ../admin/functions.php:916
856
  msgid " Image(s) successfully added"
857
  msgstr " Bild(er) erfolgreich hinzugefügt"
858
 
859
- #: ../admin/functions.php:945
860
  msgid "Invalid upload. Error Code : "
861
  msgstr "Ungültiger Upload. Fehler Code :"
862
 
863
- #: ../admin/functions.php:998
864
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
865
  msgstr "Schade, dein freier Speicher scheint aufgebraucht zu sein. Bitte lösche zuerst ein paar Bilder."
866
 
867
- #: ../admin/functions.php:1038
868
  #, php-format
869
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
870
  msgstr "SAFE MODE Einschränkungen ist aktiv. Du must das Verzeichnis <strong>%s</strong> manuell anlegen."
871
 
872
- #: ../admin/functions.php:1039
873
  #, php-format
874
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
875
  msgstr "Wenn der Safe-Mode eingeschaltet ist, überprüft PHP ob der Besitzer (%s) des Skript mit dem Besitzer (%s) der Datei/Verzeichnis übereinstimmt."
876
 
877
- #: ../admin/functions.php:1092
878
  #: ../admin/functions.php:1165
 
879
  msgid "The destination gallery does not exist"
880
  msgstr "Die ausgewählte Galerie existiert nicht"
881
 
882
- #: ../admin/functions.php:1123
883
  #, php-format
884
  msgid "Failed to move image %1$s to %2$s"
885
  msgstr "Konnte das Bild %1$s nicht nach %2$s verschieben"
886
 
887
- #: ../admin/functions.php:1141
888
  #, php-format
889
  msgid "Moved %1$s picture(s) to gallery : %2$s ."
890
  msgstr " %1$s Bild(er) in Galerie : %2$s verschoben."
891
 
892
- #: ../admin/functions.php:1198
893
  #, php-format
894
  msgid "Failed to copy image %1$s to %2$s"
895
  msgstr "Konnte das Bild %1$s nicht nach %2$s kopieren"
896
 
897
- #: ../admin/functions.php:1210
898
  #, php-format
899
  msgid "Failed to copy database row for picture %s"
900
  msgstr "Fehler bei der Datenbank-Operation für Bild %s"
901
 
902
- #: ../admin/functions.php:1218
903
  #, php-format
904
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s) &raquo; The file already existed in the destination gallery."
905
  msgstr "Bild %1$s (%2$s) als Bild %3$s (%4$s) kopiert &raquo; Die Datei existierte bereits."
906
 
907
- #: ../admin/functions.php:1221
908
  #, php-format
909
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s)"
910
  msgstr "Bild %1$s (%2$s) kopiert als Bild %3$s (%4$s)"
911
 
912
- #: ../admin/functions.php:1230
913
  #, php-format
914
  msgid "Copied %1$s picture(s) to gallery: %2$s ."
915
  msgstr "Kopiere %1$s Bild(er) in die Galerie : %2$s ."
916
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
917
  #: ../admin/install.php:23
918
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
919
  msgstr "Tut mir leid, aber NextGEN Gallery benötigt zwingend die Rolle \"Administrator\""
@@ -922,23 +982,26 @@ msgstr "Tut mir leid, aber NextGEN Gallery benötigt zwingend die Rolle \"Admini
922
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
923
  msgstr "NextGEN Gallery : Tabellen konnten nicht erstellt werden, überprüfe deine Datenbank"
924
 
925
- #: ../admin/install.php:165
926
  msgid "[Show as slideshow]"
927
  msgstr "[Zeige als Diashow]"
928
 
929
- #: ../admin/install.php:166
930
  msgid "[Show picture list]"
931
  msgstr "[Zeige Bilder-Liste]"
932
 
933
  #: ../admin/manage-galleries.php:20
 
934
  msgid "&laquo;"
935
  msgstr "&laquo;"
936
 
937
  #: ../admin/manage-galleries.php:21
 
938
  msgid "&raquo;"
939
  msgstr "&raquo;"
940
 
941
  #: ../admin/manage-galleries.php:62
 
942
  msgid "No images selected"
943
  msgstr "Keine Bilder ausgewählt"
944
 
@@ -959,91 +1022,123 @@ msgstr "Galerie Übersicht"
959
 
960
  #: ../admin/manage-galleries.php:110
961
  #: ../admin/manage-galleries.php:113
 
 
962
  msgid "Search Images"
963
  msgstr "Suche Bilder"
964
 
965
  #: ../admin/manage-galleries.php:125
 
966
  msgid "No action"
967
  msgstr "Keine Aktion"
968
 
969
  #: ../admin/manage-galleries.php:126
 
 
 
970
  msgid "Set watermark"
971
  msgstr "Wasserzeichen setzen"
972
 
973
  #: ../admin/manage-galleries.php:128
 
 
 
974
  msgid "Resize images"
975
  msgstr "Bilder verkleinern"
976
 
977
  #: ../admin/manage-galleries.php:129
 
 
 
978
  msgid "Import metadata"
979
  msgstr "Metadaten importieren"
980
 
981
- #: ../admin/manage-galleries.php:131
 
 
 
 
 
 
 
 
982
  msgid "Apply"
983
  msgstr "Übernehmen"
984
 
985
- #: ../admin/manage-galleries.php:139
 
986
  #, php-format
987
  msgid "Displaying %s&#8211;%s of %s"
988
  msgstr "Zeige %s&#8211;%s von %s"
989
 
990
- #: ../admin/manage-galleries.php:154
 
991
  msgid "ID"
992
  msgstr "ID"
993
 
994
- #: ../admin/manage-galleries.php:156
 
 
995
  msgid "Description"
996
  msgstr "Beschreibung"
997
 
998
- #: ../admin/manage-galleries.php:157
 
999
  msgid "Author"
1000
  msgstr "Autor"
1001
 
1002
- #: ../admin/manage-galleries.php:158
1003
  msgid "Page ID"
1004
  msgstr "Seiten ID"
1005
 
1006
- #: ../admin/manage-galleries.php:159
1007
  msgid "Quantity"
1008
  msgstr "Anzahl"
1009
 
1010
- #: ../admin/manage-galleries.php:160
1011
  msgid "Action"
1012
  msgstr "Aktion"
1013
 
1014
- #: ../admin/manage-galleries.php:182
1015
  msgid "Edit"
1016
  msgstr "Bearbeiten"
1017
 
1018
- #: ../admin/manage-galleries.php:195
1019
  msgid "Delete this gallery ?"
1020
  msgstr "Diese Galerie löschen ?"
1021
 
1022
- #: ../admin/manage-galleries.php:202
 
1023
  msgid "No entries found"
1024
  msgstr "Keine Einträge gefunden"
1025
 
1026
- #: ../admin/manage-galleries.php:246
 
1027
  msgid "Resize Images to"
1028
  msgstr "Verkleiner Bilder auf"
1029
 
1030
- #: ../admin/manage-galleries.php:250
 
1031
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1032
  msgstr "Breite x Höhe (in Pixel). Das Seitenverhältnis wird berücksichtigt."
1033
 
1034
- #: ../admin/manage-galleries.php:274
 
1035
  msgid "Width x height (in pixel)"
1036
  msgstr "Breite x Höhe (in Pixel)"
1037
 
1038
- #: ../admin/manage-galleries.php:276
 
1039
  msgid "These values are maximum values "
1040
  msgstr "Diese Angaben sind maximale Angaben."
1041
 
1042
- #: ../admin/manage-galleries.php:279
 
1043
  msgid "Set fix dimension"
1044
  msgstr "Setze feste Größe"
1045
 
1046
- #: ../admin/manage-galleries.php:281
 
1047
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1048
  msgstr "Ignoriere Bildseitenverhältnis"
1049
 
@@ -1055,7 +1150,7 @@ msgstr "Galerie nicht gefunden"
1055
  msgid "Sorry, you have no access here"
1056
  msgstr "Sorry, du hast nicht genügend Rechte"
1057
 
1058
- #: ../admin/manage-images.php:165
1059
  #, php-format
1060
  msgid ""
1061
  "You are about to start the bulk edit for %s images \n"
@@ -1066,162 +1161,162 @@ msgstr ""
1066
  " \n"
1067
  " 'Abbrechen' um zu stoppen, 'OK' um die Bearbeitung durchzuführen."
1068
 
1069
- #: ../admin/manage-images.php:181
1070
  #, php-format
1071
  msgid "Search results for &#8220;%s&#8221;"
1072
  msgstr "Suchergebinsse für &#8220;%s&#8221;"
1073
 
1074
- #: ../admin/manage-images.php:209
1075
- #: ../admin/settings.php:274
1076
  msgid "Gallery settings"
1077
  msgstr "Galerie Einstellungen"
1078
 
1079
- #: ../admin/manage-images.php:209
1080
  msgid "Click here for more settings"
1081
  msgstr "Hier klicken für weitere Einstellungen"
1082
 
1083
- #: ../admin/manage-images.php:226
1084
  msgid "Preview image"
1085
  msgstr "Vorschau-Bild"
1086
 
1087
- #: ../admin/manage-images.php:229
1088
  msgid "No Picture"
1089
  msgstr "Kein Bild"
1090
 
1091
- #: ../admin/manage-images.php:242
1092
  msgid "Path"
1093
  msgstr "Pfad"
1094
 
1095
- #: ../admin/manage-images.php:259
1096
  msgid "Create new page"
1097
  msgstr "Neue Seite erstellen"
1098
 
1099
- #: ../admin/manage-images.php:262
1100
  msgid "Main page (No parent)"
1101
  msgstr "Haupseite (keine Unterseite)"
1102
 
1103
- #: ../admin/manage-images.php:265
1104
  msgid "Add page"
1105
  msgstr "Seite hinzufügen"
1106
 
1107
- #: ../admin/manage-images.php:272
1108
  msgid "Scan Folder for new images"
1109
  msgstr "Überprüfe Verzeichnis nach neuen Bildern"
1110
 
1111
- #: ../admin/manage-images.php:273
1112
- #: ../admin/manage-images.php:312
1113
- #: ../admin/manage-images.php:461
1114
- #: ../admin/settings.php:198
1115
- #: ../admin/settings.php:227
1116
- #: ../admin/settings.php:267
1117
- #: ../admin/settings.php:349
1118
- #: ../admin/settings.php:382
1119
- #: ../admin/settings.php:489
1120
- #: ../admin/settings.php:614
1121
  msgid "Save Changes"
1122
  msgstr "Änderungen speichern"
1123
 
1124
- #: ../admin/manage-images.php:296
1125
  msgid "Delete images"
1126
  msgstr "Bilder löschen"
1127
 
1128
- #: ../admin/manage-images.php:298
1129
  msgid "Rotate images clockwise"
1130
  msgstr "Rechts drehen"
1131
 
1132
- #: ../admin/manage-images.php:299
1133
  msgid "Rotate images counter-clockwise"
1134
  msgstr "Links drehen"
1135
 
1136
- #: ../admin/manage-images.php:300
1137
  msgid "Copy to..."
1138
  msgstr "Kopiere nach..."
1139
 
1140
- #: ../admin/manage-images.php:301
1141
  msgid "Move to..."
1142
  msgstr "Verschiebe nach..."
1143
 
1144
- #: ../admin/manage-images.php:302
1145
  msgid "Add tags"
1146
  msgstr "Stichwörter hinzufügen"
1147
 
1148
- #: ../admin/manage-images.php:303
1149
  msgid "Delete tags"
1150
  msgstr "Stichwörter löschen"
1151
 
1152
- #: ../admin/manage-images.php:304
1153
  msgid "Overwrite tags"
1154
  msgstr "Stichwörter überschreiben"
1155
 
1156
- #: ../admin/manage-images.php:309
1157
  msgid "Sort gallery"
1158
  msgstr "Sortiere Bilder"
1159
 
1160
- #: ../admin/manage-images.php:384
1161
  msgid "pixel"
1162
  msgstr "pixel"
1163
 
1164
- #: ../admin/manage-images.php:391
1165
  #, php-format
1166
  msgid "View \"%s\""
1167
  msgstr "Anzeigen \"%s\""
1168
 
1169
- #: ../admin/manage-images.php:391
1170
  msgid "View"
1171
  msgstr "Ansehen"
1172
 
1173
- #: ../admin/manage-images.php:392
1174
  msgid "Show Meta data"
1175
  msgstr "Zeige Metadaten"
1176
 
1177
- #: ../admin/manage-images.php:392
1178
  msgid "Meta"
1179
  msgstr "Meta"
1180
 
1181
- #: ../admin/manage-images.php:393
1182
  msgid "Customize thumbnail"
1183
  msgstr "Thumbnails anpassen"
1184
 
1185
- #: ../admin/manage-images.php:393
1186
  msgid "Edit thumb"
1187
  msgstr "Thumbnail ändern"
1188
 
1189
- #: ../admin/manage-images.php:394
1190
  msgid "Rotate"
1191
  msgstr "Drehen"
1192
 
1193
- #: ../admin/manage-images.php:395
 
 
 
 
 
 
 
 
 
1194
  #, php-format
1195
- msgid "Delete \"%s\""
1196
- msgstr "Lösche \"%s\""
1197
 
1198
- #: ../admin/manage-images.php:475
1199
  msgid "Enter the tags"
1200
  msgstr "Stichwörter angeben"
1201
 
1202
- #: ../admin/manage-images.php:499
1203
  msgid "Select the destination gallery:"
1204
  msgstr "Galerie auswählen:"
1205
 
1206
- #: ../admin/manage-images.php:600
1207
- #: ../admin/media-upload.php:212
1208
  msgid "Thumbnail"
1209
  msgstr "Thumbnail"
1210
 
1211
- #: ../admin/manage-images.php:602
1212
  #: ../admin/manage-sort.php:74
1213
  msgid "Filename"
1214
  msgstr "Dateiname"
1215
 
1216
- #: ../admin/manage-images.php:604
1217
  msgid "Alt &amp; Title Text"
1218
  msgstr "Alt &amp; Titel Text"
1219
 
1220
- #: ../admin/manage-images.php:605
1221
  msgid "Tags (comma separated list)"
1222
  msgstr "Stichwörter (Tags)"
1223
 
1224
- #: ../admin/manage-images.php:607
1225
  msgid "exclude"
1226
  msgstr "ausschließen"
1227
 
@@ -1250,12 +1345,10 @@ msgid "Unsorted"
1250
  msgstr "Unsortiert"
1251
 
1252
  #: ../admin/manage-sort.php:73
1253
- #: ../admin/settings.php:335
1254
  msgid "Image ID"
1255
  msgstr "Bilder ID"
1256
 
1257
  #: ../admin/manage-sort.php:75
1258
- #: ../admin/media-upload.php:187
1259
  msgid "Alt/Title text"
1260
  msgstr "Alt / Titel Text"
1261
 
@@ -1264,307 +1357,307 @@ msgid "Date/Time"
1264
  msgstr "Datum/Zeit"
1265
 
1266
  #: ../admin/manage-sort.php:77
1267
- #: ../admin/settings.php:343
1268
  msgid "Ascending"
1269
  msgstr "Aufsteigend"
1270
 
1271
  #: ../admin/manage-sort.php:78
1272
- #: ../admin/settings.php:344
1273
  msgid "Descending"
1274
  msgstr "Absteigend"
1275
 
1276
- #: ../admin/manage.php:87
1277
- #: ../admin/manage.php:105
1278
  msgid "deleted successfully"
1279
  msgstr "erfolgreich gelöscht"
1280
 
1281
- #: ../admin/manage.php:105
1282
  msgid "Picture"
1283
  msgstr "Bild"
1284
 
1285
- #: ../admin/manage.php:114
 
1286
  msgid "Operation successful. Please clear your browser cache."
1287
- msgstr "Thumbnails erfolgreich erstellt. Bitte Browser-Cache aktualisieren."
1288
 
1289
- #: ../admin/manage.php:207
1290
- #: ../admin/manage.php:210
1291
  msgid "Rotate images"
1292
  msgstr "Bild drehen"
1293
 
1294
- #: ../admin/manage.php:228
1295
  msgid "Pictures deleted successfully "
1296
  msgstr "Bilder erfolgreich gelöscht"
1297
 
1298
- #: ../admin/manage.php:324
1299
  msgid "Tags changed"
1300
  msgstr "Stichwörter geändert"
1301
 
1302
- #: ../admin/manage.php:351
1303
  msgid "Update successful"
1304
  msgstr "Aktualisierung erfolgreich"
1305
 
1306
- #: ../admin/manage.php:385
1307
  msgid "New gallery page ID"
1308
  msgstr "Neue Galerie Seiten ID"
1309
 
1310
- #: ../admin/manage.php:385
1311
  msgid "created"
1312
  msgstr "erstellt"
1313
 
1314
- #: ../admin/media-upload.php:132
 
1315
  msgid "No gallery"
1316
  msgstr "Keine Galerie"
1317
 
1318
- #: ../admin/media-upload.php:144
1319
  msgid "Select &#187;"
1320
  msgstr "Wähle &#187;"
1321
 
1322
- #: ../admin/media-upload.php:175
1323
  msgid "Show"
1324
  msgstr "Zeige"
1325
 
1326
- #: ../admin/media-upload.php:176
1327
  msgid "Hide"
1328
  msgstr "Verstecke"
1329
 
1330
- #: ../admin/media-upload.php:181
1331
  msgid "Image ID:"
1332
  msgstr "Bild ID:"
1333
 
1334
- #: ../admin/media-upload.php:195
1335
- msgid "Alignment"
1336
- msgstr "Ausrichtung"
1337
-
1338
- #: ../admin/media-upload.php:198
1339
- #: ../admin/settings.php:367
1340
- msgid "None"
1341
- msgstr "Keiner"
1342
-
1343
- #: ../admin/media-upload.php:200
1344
- msgid "Left"
1345
- msgstr "Links"
1346
 
1347
- #: ../admin/media-upload.php:202
1348
- msgid "Center"
1349
- msgstr "Zentrieren"
1350
 
1351
- #: ../admin/media-upload.php:204
1352
- msgid "Right"
1353
- msgstr "Rechts"
1354
 
1355
- #: ../admin/media-upload.php:208
1356
- #: ../admin/settings.php:471
1357
- msgid "Size"
1358
- msgstr "Größe"
1359
 
1360
- #: ../admin/media-upload.php:214
1361
- msgid "Full size"
1362
- msgstr "Volle Größe"
1363
 
1364
- #: ../admin/media-upload.php:216
1365
- msgid "Singlepic"
1366
- msgstr "Einzelbilder"
1367
 
1368
- #: ../admin/media-upload.php:224
1369
- msgid "Insert into Post"
1370
- msgstr "In den Beitrag einfügen"
1371
 
1372
- #: ../admin/media-upload.php:234
1373
- msgid "Save all changes"
1374
- msgstr "Änderungen Speichern"
1375
 
1376
- #: ../admin/overview.php:14
1377
- msgid "NextGEN Gallery Overview"
1378
- msgstr "NextGEN Gallery Übersicht"
1379
 
1380
- #: ../admin/overview.php:104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1381
  msgid "Thanks to all donators..."
1382
  msgstr "Danke an alle Spender..."
1383
 
1384
- #: ../admin/overview.php:126
1385
  msgid "View all"
1386
  msgstr "Alle ansehen"
1387
 
1388
- #: ../admin/overview.php:164
 
 
 
 
1389
  #, php-format
1390
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1391
  msgstr "Der Newsfeed kann nicht geladen werden. Schaue auf die <a href=\"%s\">Hauptseite</a> um Updates mitzubekommen."
1392
 
1393
- #: ../admin/overview.php:184
1394
  msgid "At a Glance"
1395
  msgstr "Übersicht"
1396
 
1397
- #: ../admin/overview.php:211
1398
  msgid "Upload pictures"
1399
  msgstr "Bilder hochladen"
1400
 
1401
- #: ../admin/overview.php:212
1402
  msgid "Here you can control your images, galleries and albums."
1403
  msgstr "Hier kannst Du die Bilder, Galerien und Alben verwalten."
1404
 
1405
- #: ../admin/overview.php:216
1406
  msgid "Gallery Administrator"
1407
  msgstr "Galerie-Administrator"
1408
 
1409
- #: ../admin/overview.php:216
1410
  msgid "Gallery Editor"
1411
  msgstr "Galerie-Mitarbeiter"
1412
 
1413
- #: ../admin/overview.php:217
1414
  #, php-format
1415
  msgid "You currently have %s rights."
1416
  msgstr "Du hast derzeit %s Rechte."
1417
 
1418
- #: ../admin/overview.php:224
1419
- msgid "Welcome to NextGEN Gallery !"
1420
- msgstr "Willkomen bei NextGEN Gallery"
1421
-
1422
- #: ../admin/overview.php:225
1423
- msgid "Latest News"
1424
- msgstr "Letzte Informationen"
1425
-
1426
- #: ../admin/overview.php:226
1427
- msgid "Recent donators"
1428
- msgstr "Neusten Spender"
1429
 
1430
- #: ../admin/overview.php:227
1431
- msgid "Server Settings"
1432
- msgstr "Server- Einstellungen"
1433
 
1434
- #: ../admin/overview.php:228
1435
- msgid "Related plugins"
1436
- msgstr "Verwandte Plugins"
1437
 
1438
- #: ../admin/overview.php:229
1439
- msgid "Graphic Library"
1440
- msgstr "Grafik Bibliothek"
1441
 
1442
- #: ../admin/overview.php:249
1443
  msgid "No GD support"
1444
  msgstr "Keine GD Unterstützung"
1445
 
1446
- #: ../admin/overview.php:261
1447
- #: ../admin/overview.php:307
1448
- #: ../admin/overview.php:310
1449
- #: ../admin/overview.php:313
1450
  msgid "Yes"
1451
  msgstr "Ja"
1452
 
1453
- #: ../admin/overview.php:263
1454
- #: ../admin/overview.php:308
1455
- #: ../admin/overview.php:311
1456
- #: ../admin/overview.php:314
1457
  msgid "No"
1458
  msgstr "Nein"
1459
 
1460
- #: ../admin/overview.php:281
1461
  msgid "Not set"
1462
  msgstr "Nicht gesetzt"
1463
 
1464
- #: ../admin/overview.php:283
1465
- #: ../admin/overview.php:286
1466
  msgid "On"
1467
  msgstr "An"
1468
 
1469
- #: ../admin/overview.php:284
1470
- #: ../admin/overview.php:287
1471
  msgid "Off"
1472
  msgstr "Aus"
1473
 
1474
- #: ../admin/overview.php:290
1475
- #: ../admin/overview.php:293
1476
- #: ../admin/overview.php:296
1477
- #: ../admin/overview.php:299
1478
- #: ../admin/overview.php:302
1479
- #: ../admin/overview.php:305
1480
  msgid "N/A"
1481
  msgstr "N/A"
1482
 
1483
- #: ../admin/overview.php:304
1484
  msgid " MByte"
1485
  msgstr " MByte"
1486
 
1487
- #: ../admin/overview.php:317
1488
  msgid "Operating System"
1489
  msgstr "Betriebssystem"
1490
 
1491
- #: ../admin/overview.php:318
1492
  msgid "Server"
1493
  msgstr "Server"
1494
 
1495
- #: ../admin/overview.php:319
1496
  msgid "Memory usage"
1497
  msgstr "Speicherverbrauch"
1498
 
1499
- #: ../admin/overview.php:320
1500
  msgid "MYSQL Version"
1501
  msgstr "MySQL Version"
1502
 
1503
- #: ../admin/overview.php:321
1504
  msgid "SQL Mode"
1505
  msgstr "SQL Modus"
1506
 
1507
- #: ../admin/overview.php:322
1508
  msgid "PHP Version"
1509
  msgstr "PHP Version"
1510
 
1511
- #: ../admin/overview.php:323
1512
  msgid "PHP Safe Mode"
1513
  msgstr "PHP Safe Mode"
1514
 
1515
- #: ../admin/overview.php:324
1516
  msgid "PHP Allow URL fopen"
1517
  msgstr "PHP Allow URL fopen"
1518
 
1519
- #: ../admin/overview.php:325
1520
  msgid "PHP Memory Limit"
1521
  msgstr "PHP Memory Limit"
1522
 
1523
- #: ../admin/overview.php:326
1524
  msgid "PHP Max Upload Size"
1525
  msgstr "PHP Max Upload Größe"
1526
 
1527
- #: ../admin/overview.php:327
1528
  msgid "PHP Max Post Size"
1529
  msgstr "PHP Max Post Größe"
1530
 
1531
- #: ../admin/overview.php:328
1532
- msgid "PHP Output Buffer Size"
1533
- msgstr "PHP Output Buffer Größe"
1534
 
1535
- #: ../admin/overview.php:329
1536
  msgid "PHP Max Script Execute Time"
1537
  msgstr "PHP Max Script Execute Time"
1538
 
1539
- #: ../admin/overview.php:330
1540
  msgid "PHP Exif support"
1541
  msgstr "PHP Exif Modul"
1542
 
1543
- #: ../admin/overview.php:331
1544
  msgid "PHP IPTC support"
1545
  msgstr "PHP IPTC Modul"
1546
 
1547
- #: ../admin/overview.php:332
1548
  msgid "PHP XML support"
1549
  msgstr "PHP XML Modul"
1550
 
1551
- #: ../admin/overview.php:344
1552
  msgid "NextGEN Gallery contains some functions which are only available under PHP 5.2. You are using the old PHP 4 version, upgrade now! It's no longer supported by the PHP group. Many shared hosting providers offer both PHP 4 and PHP 5, running simultaneously. Ask your provider if they can do this."
1553
  msgstr "NextGEN Gallery enthält einige Funktionen die nur unter PHP 5.2 verfügbar sind. Du nutzt immer noch die alte PHP 4 Version. Bitte aktualisiere so bald wie möglich diese Version, sie wird nicht mehr gepflegt und weiterentwicklelt. Die meisten Hoster bieten bereits PHP5 an. Bitte kontaktiere deinen Provider und frag kurz nach ob sie ein Update durchführen können."
1554
 
1555
- #: ../admin/overview.php:403
1556
  msgid "Storage Space"
1557
  msgstr "Speicherplatz"
1558
 
1559
- #: ../admin/overview.php:406
1560
  msgid "Upload Space Used:"
1561
  msgstr "Verbrauchter Uploadspeicher:"
1562
 
1563
- #: ../admin/overview.php:412
1564
  msgid "Upload Space Remaining:"
1565
  msgstr "Verbleibender Speicher:"
1566
 
1567
- #: ../admin/overview.php:554
1568
  msgid "Install"
1569
  msgstr "Installieren"
1570
 
@@ -1648,516 +1741,542 @@ msgstr "Vertikal spiegeln"
1648
  msgid "Flip horizontally"
1649
  msgstr "Horizontal spiegeln"
1650
 
1651
- #: ../admin/settings.php:61
1652
  msgid "Cache cleared"
1653
  msgstr "Cache löschen"
1654
 
1655
- #: ../admin/settings.php:126
1656
- #: ../admin/settings.php:138
1657
  msgid "General Options"
1658
  msgstr "Allg. Optionen"
1659
 
1660
- #: ../admin/settings.php:127
1661
- #: ../admin/settings.php:306
1662
  msgid "Thumbnails"
1663
  msgstr "Thumbnails"
1664
 
1665
- #: ../admin/settings.php:128
1666
  msgid "Images"
1667
  msgstr "Bilder"
1668
 
1669
- #: ../admin/settings.php:130
1670
- #: ../admin/settings.php:356
1671
  msgid "Effects"
1672
  msgstr "Effekte"
1673
 
1674
- #: ../admin/settings.php:131
1675
- #: ../admin/settings.php:395
 
1676
  msgid "Watermark"
1677
  msgstr "Wasserzeichen"
1678
 
1679
- #: ../admin/settings.php:132
1680
- #: ../admin/settings.php:307
1681
- #: ../admin/settings.php:499
 
1682
  msgid "Slideshow"
1683
  msgstr "Slideshow"
1684
 
1685
- #: ../admin/settings.php:144
1686
  #: ../admin/wpmu.php:47
1687
  msgid "Gallery path"
1688
  msgstr "Galerie-Pfad"
1689
 
1690
- #: ../admin/settings.php:146
1691
  msgid "This is the default path for all galleries"
1692
  msgstr "Dies ist der Standard-Pfad für alle Galerien"
1693
 
1694
- #: ../admin/settings.php:149
1695
  msgid "Delete image files"
1696
  msgstr "Lösche Bilddateien"
1697
 
1698
- #: ../admin/settings.php:151
1699
  msgid "Delete files, when removing a gallery in the database"
1700
  msgstr "Löscht auch die Dateien, falls die Galerie aus der Datenbank entfernt wird"
1701
 
1702
- #: ../admin/settings.php:154
1703
  msgid "Activate permalinks"
1704
  msgstr "Aktiviere Permalinks"
1705
 
1706
- #: ../admin/settings.php:156
1707
  msgid "When you activate this option, you need to update your permalink structure one time."
1708
  msgstr "Wenn du diese Option aktivierst, muss du einmal die Permalink Struktur aktualisieren."
1709
 
1710
- #: ../admin/settings.php:159
1711
  msgid "Select graphic library"
1712
  msgstr "Wähle Grafik-Bibliothek"
1713
 
1714
- #: ../admin/settings.php:160
1715
  msgid "GD Library"
1716
  msgstr "GD Bibliothek"
1717
 
1718
- #: ../admin/settings.php:161
1719
  msgid "ImageMagick (Experimental). Path to the library :"
1720
  msgstr "ImageMagick (Experimental). Pfad zur Bibliothek :"
1721
 
1722
- #: ../admin/settings.php:166
1723
  msgid "Activate Media RSS feed"
1724
  msgstr "Aktiviere Media RSS Feed"
1725
 
1726
- #: ../admin/settings.php:168
1727
  msgid "A RSS feed will be added to you blog header. Useful for CoolIris/PicLens"
1728
  msgstr "Ein Bilder-RSS Feed wird zum Blog hinzugefügt"
1729
 
1730
- #: ../admin/settings.php:171
1731
  msgid "Activate PicLens/CoolIris support"
1732
  msgstr "Aktiviere PicLens/CoolIris"
1733
 
1734
- #: ../admin/settings.php:173
1735
  msgid "When you activate this option, some javascript is added to your site footer. Make sure that wp_footer is called in your theme."
1736
  msgstr "Dieser Effekt fügt ein neues Javascript zu deinem Theme hinzu. Beachte das wp_footer() in deinen Vorlagen aufgerufen wird."
1737
 
1738
- #: ../admin/settings.php:176
1739
  msgid "Tags / Categories"
1740
  msgstr "Stichwörter / Kategorien"
1741
 
1742
- #: ../admin/settings.php:179
1743
  msgid "Activate related images"
1744
  msgstr "Verwandte Bilder anzeigen"
1745
 
1746
- #: ../admin/settings.php:181
1747
  msgid "This option will append related images to every post"
1748
  msgstr "Diese Option hängt verwandte Bilder an jeden Beitrag"
1749
 
1750
- #: ../admin/settings.php:185
1751
  msgid "Match with"
1752
  msgstr "Vergleiche mit"
1753
 
1754
- #: ../admin/settings.php:186
1755
  msgid "Categories"
1756
  msgstr "Kategorien"
1757
 
1758
- #: ../admin/settings.php:191
1759
  msgid "Max. number of images"
1760
  msgstr "Max. Anzahl der Bilder"
1761
 
1762
- #: ../admin/settings.php:193
1763
  msgid "0 will show all images"
1764
  msgstr "0 zeige alle verwandten Bilder"
1765
 
1766
- #: ../admin/settings.php:197
1767
- #: ../admin/settings.php:226
1768
- #: ../admin/settings.php:266
1769
- #: ../admin/settings.php:348
1770
- #: ../admin/settings.php:381
1771
- #: ../admin/settings.php:613
1772
  msgid "More settings"
1773
  msgstr "Mehr Einstellungen"
1774
 
1775
- #: ../admin/settings.php:205
1776
  msgid "Thumbnail settings"
1777
  msgstr "Thumbnail Einstellungen"
1778
 
1779
- #: ../admin/settings.php:209
1780
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1781
  msgstr "Bitte beachten : Änderungen der Einstellungen werden erst übernommen, wenn Du neue Thumbnails unter -> \"Gallery verwalten\" erstellst"
1782
 
1783
- #: ../admin/settings.php:222
1784
  msgid "Thumbnail quality"
1785
  msgstr "Thumbnail Qualität"
1786
 
1787
- #: ../admin/settings.php:234
1788
  msgid "Image settings"
1789
  msgstr "Bild Einstellungen"
1790
 
1791
- #: ../admin/settings.php:240
1792
  msgid "Resize Images"
1793
  msgstr "Bilder verkleinern"
1794
 
1795
- #: ../admin/settings.php:247
1796
  msgid "Image quality"
1797
  msgstr "Bild Qualität"
1798
 
1799
- #: ../admin/settings.php:252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1800
  msgid "Single picture"
1801
  msgstr "Einzelbilder"
1802
 
1803
- #: ../admin/settings.php:255
1804
  msgid "Cache single pictures"
1805
  msgstr "Nutze Cache für Einzelbidler"
1806
 
1807
- #: ../admin/settings.php:258
1808
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1809
  msgstr "Erstellt ein Cache-Bild für jedes Einzelbild (singlepic). Reduziert die CPU Belastung."
1810
 
1811
- #: ../admin/settings.php:261
1812
  msgid "Clear cache folder"
1813
  msgstr "Lösche Cache Verzeichnis"
1814
 
1815
- #: ../admin/settings.php:263
1816
  msgid "Proceed now"
1817
  msgstr "Jetzt durchführen"
1818
 
1819
- #: ../admin/settings.php:280
1820
  msgid "Deactivate gallery page link"
1821
  msgstr "Keine Seitenverzweigung"
1822
 
1823
- #: ../admin/settings.php:282
1824
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1825
  msgstr "Ein Album benötigt dann keinen Link zur Seite. Die Galerie wird direkt angezeigt."
1826
 
1827
- #: ../admin/settings.php:286
1828
  msgid "Number of images per page"
1829
  msgstr "Anzahl der Bilder pro Seite"
1830
 
1831
- #: ../admin/settings.php:288
1832
  msgid "0 will disable pagination, all images on one page"
1833
  msgstr "0 schaltet Blätterfunktion ab ( = alle Bilder auf einer Seite )"
1834
 
1835
- #: ../admin/settings.php:292
1836
  msgid "Number of columns"
1837
  msgstr "Anzahl der Spalten"
1838
 
1839
- #: ../admin/settings.php:294
1840
  msgid "0 will display as much as possible based on the width of your theme. Setting normally only required for captions below the images"
1841
  msgstr "Mit \"0\" werden soviele Bilder wie möglich in einer Reihe dargestellt. Die Einstellung ist normalerweise nur für Beschriftungen unterhalb der Bilder sinnvoll."
1842
 
1843
- #: ../admin/settings.php:298
1844
  msgid "Integrate slideshow"
1845
  msgstr "Slideshow verwenden"
1846
 
1847
- #: ../admin/settings.php:305
1848
  msgid "Show first"
1849
  msgstr "Zeige als Erstes"
1850
 
1851
- #: ../admin/settings.php:311
1852
  msgid "Show ImageBrowser"
1853
  msgstr "Zeige Bilder Browser"
1854
 
1855
- #: ../admin/settings.php:313
1856
  msgid "The gallery will open the ImageBrowser instead the effect."
1857
  msgstr "Es wird der Bilder Browser angezeigt (Kein JavaScript Effekt)"
1858
 
1859
- #: ../admin/settings.php:317
1860
  msgid "Add hidden images"
1861
  msgstr "Verstecke Bilder hinzufügen"
1862
 
1863
- #: ../admin/settings.php:319
1864
  msgid "If pagination is used, this option will still show all images in the modal window (Thickbox, Lightbox etc.). Note : This increase the page load"
1865
  msgstr "Wenn du die Blätterfunktion nutzt, dann kannst du mit dieser Option alle Bilder im Modal-Fenster (Thickbox,Lightbox etc.) anzeigen. Berücksichtige das die Ladezeit der Seite erhöht wird."
1866
 
1867
- #: ../admin/settings.php:323
1868
  msgid "Enable AJAX pagination"
1869
  msgstr "Aktiviere AJAX Navigation"
1870
 
1871
- #: ../admin/settings.php:325
1872
  msgid "Browse images without reload the page. Note : Work only in combination with Shutter effect"
1873
  msgstr "Ermöglicht das Blättern zwischen den Bildern ohne de Seite neuzuladen. Hinweis : Funktioniert nur mit dem Shutter Effekt."
1874
 
1875
- #: ../admin/settings.php:329
1876
  msgid "Sort options"
1877
  msgstr "Sortierung"
1878
 
1879
- #: ../admin/settings.php:332
1880
  msgid "Sort thumbnails"
1881
  msgstr "Thumbnails sortieren"
1882
 
1883
- #: ../admin/settings.php:334
1884
  msgid "Custom order"
1885
  msgstr "Benutzerdefiniert"
1886
 
1887
- #: ../admin/settings.php:336
1888
  msgid "File name"
1889
  msgstr "Dateiname"
1890
 
1891
- #: ../admin/settings.php:337
1892
  msgid "Alt / Title text"
1893
  msgstr "Alt / Titel Text"
1894
 
1895
- #: ../admin/settings.php:338
1896
  msgid "Date / Time"
1897
  msgstr "Datum/Zeit"
1898
 
1899
- #: ../admin/settings.php:342
1900
  msgid "Sort direction"
1901
  msgstr "Sortierreihenfolge"
1902
 
1903
- #: ../admin/settings.php:360
1904
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Shutter and Thickbox effect will automatic added to your theme."
1905
  msgstr "Hier kannst Du den Effekt für die Thumbnails auswählen. NextGEN Galerie wird den benötigten HTML Code verwenden. Bitte beachte, das nur Shutter und der Thickbox Effekt automatisch in Dein Theme von Wordpress integriert wird. Alle anderen Effekte mußt Du selbst in die header.php eintragen (JS)."
1906
 
1907
- #: ../admin/settings.php:361
1908
  msgid "With the placeholder"
1909
  msgstr "Mit Platzhalter"
1910
 
1911
- #: ../admin/settings.php:361
1912
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1913
  msgstr "Du kannst eine Navigation durch die Bilder aktivieren (hängt vom Effekt ab). Ändere nur die Codezeile falls Du einen anderen Effekt für die Thumbnails verwendest oder einfach weißt, was Du tust."
1914
 
1915
- #: ../admin/settings.php:364
1916
  msgid "JavaScript Thumbnail effect"
1917
  msgstr "JavaScript Thumbnail Effekt"
1918
 
1919
- #: ../admin/settings.php:368
 
 
 
 
1920
  msgid "Thickbox"
1921
  msgstr "Thickbox"
1922
 
1923
- #: ../admin/settings.php:369
1924
  msgid "Lightbox"
1925
  msgstr "Lightbox"
1926
 
1927
- #: ../admin/settings.php:370
1928
  msgid "Highslide"
1929
  msgstr "Highslide"
1930
 
1931
- #: ../admin/settings.php:371
1932
  msgid "Shutter"
1933
  msgstr "Shutter"
1934
 
1935
- #: ../admin/settings.php:372
1936
  msgid "Custom"
1937
  msgstr "Eigener"
1938
 
1939
- #: ../admin/settings.php:377
1940
  msgid "Link Code line"
1941
  msgstr "Link Code Zeile"
1942
 
1943
- #: ../admin/settings.php:396
1944
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
1945
  msgstr "Bitte beachten : Das Wasserzeichen kann nur unter der Galerieverwaltung gesetzt werden. "
1946
 
1947
- #: ../admin/settings.php:401
1948
  msgid "Preview"
1949
  msgstr "Vorschau"
1950
 
1951
- #: ../admin/settings.php:403
1952
- #: ../admin/settings.php:408
1953
  msgid "Position"
1954
  msgstr "Position"
1955
 
1956
- #: ../admin/settings.php:428
1957
  msgid "Offset"
1958
  msgstr "Abstand"
1959
 
1960
- #: ../admin/settings.php:444
1961
  msgid "Use image as watermark"
1962
  msgstr "Benutze das Bild als Wasserzeichen"
1963
 
1964
- #: ../admin/settings.php:447
1965
  msgid "URL to file"
1966
  msgstr "URL zur Datei"
1967
 
1968
- #: ../admin/settings.php:449
1969
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
1970
  msgstr "Der Dateizugriff von URLs ist auf diesem Server deaktiviert (allow_url_fopen)"
1971
 
1972
- #: ../admin/settings.php:452
1973
  msgid "Use text as watermark"
1974
  msgstr "Benutze Text als Wasserzeichen"
1975
 
1976
- #: ../admin/settings.php:455
1977
  msgid "Font"
1978
  msgstr "Schriftart"
1979
 
1980
- #: ../admin/settings.php:464
1981
  msgid "This function will not work, cause you need the FreeType library"
1982
  msgstr "Diese Funktion benötigt die FreeType Bibliothek"
1983
 
1984
- #: ../admin/settings.php:466
1985
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1986
  msgstr "Du kannst mehr Schriftarten in das Verzeichniss <strong>nggallery/fonts</strong> hochladen."
1987
 
1988
- #: ../admin/settings.php:475
 
 
 
 
1989
  msgid "Color"
1990
  msgstr "Farbe"
1991
 
1992
- #: ../admin/settings.php:477
1993
  msgid "(hex w/o #)"
1994
  msgstr "(hex w/o #)"
1995
 
1996
- #: ../admin/settings.php:480
1997
  msgid "Text"
1998
  msgstr "Text"
1999
 
2000
- #: ../admin/settings.php:484
2001
  msgid "Opaque"
2002
  msgstr "Transparenz"
2003
 
2004
- #: ../admin/settings.php:504
2005
  msgid "The path to imagerotator.swf is not defined, the slideshow will not work."
2006
  msgstr "Der Pfad zu imagerotator.swf ist nicht gesetzt, die Flash-Diaschau kann dann nicht angezeigt werden"
2007
 
2008
- #: ../admin/settings.php:505
2009
  msgid "If you would like to use the JW Image Rotatator, please download the player <a href=\"http://www.longtailvideo.com/players/jw-image-rotator/\" target=\"_blank\" >here</a> and upload it to your Upload folder (Default is wp-content/uploads)."
2010
  msgstr "Wenn du den JW Image Rotator (Slideshow) nutzen möchtest, lade dir die aktuelle Version <a href=\"http://www.longtailvideo.com/players/jw-image-rotator/\" target=\"_blank\" >hier</a> herunter und übertrage sie dann in dein WordPress Upload Verzeichnis (Normalerweise wp-content/uploads),"
2011
 
2012
- #: ../admin/settings.php:510
2013
  msgid "The settings are used in the JW Image Rotator Version"
2014
  msgstr "Die Einstellungen werden im JW Image Rotator benutzt , in der Version"
2015
 
2016
- #: ../admin/settings.php:511
2017
  msgid "See more information for the Flash Player on the web page"
2018
  msgstr "Weitere Informationen auf der Flash Player Homepage"
2019
 
2020
- #: ../admin/settings.php:515
2021
  msgid "Path to the Imagerotator (URL)"
2022
  msgstr "Pfad zum JW Image Rotator (URL)"
2023
 
2024
- #: ../admin/settings.php:518
2025
  msgid "Search now"
2026
  msgstr "Suche jetzt"
2027
 
2028
- #: ../admin/settings.php:519
2029
  msgid "Press the button to search automatic for the imagerotator, if you uploaded it to wp-content/uploads or a subfolder"
2030
  msgstr "Drücke 'Suche jetzt' um automatisch den Pfad zum Image Rotator zu ermitteln, sofern du den Player in wp-content/uploads oder ein Unterverzeichnis hochgeladen hast."
2031
 
2032
- #: ../admin/settings.php:523
2033
  msgid "Default size (W x H)"
2034
  msgstr "Standard Größe (B x H)"
2035
 
2036
- #: ../admin/settings.php:528
2037
  msgid "Shuffle mode"
2038
  msgstr "Shuffle Modus"
2039
 
2040
- #: ../admin/settings.php:532
2041
  msgid "Show next image on click"
2042
  msgstr "Zeige nächstes Bild bei Klick"
2043
 
2044
- #: ../admin/settings.php:536
2045
  msgid "Show navigation bar"
2046
  msgstr "Zeige Navigations-Leiste"
2047
 
2048
- #: ../admin/settings.php:540
2049
  msgid "Show loading icon"
2050
  msgstr "Zeige Lade-Bildchen"
2051
 
2052
- #: ../admin/settings.php:544
2053
  msgid "Use watermark logo"
2054
  msgstr "Wasserzeichen anzeigen"
2055
 
2056
- #: ../admin/settings.php:546
2057
  msgid "You can change the logo at the watermark settings"
2058
  msgstr "Du kannst den Pfad in Einstellungen für das Wasserzeichen angeben"
2059
 
2060
- #: ../admin/settings.php:549
2061
  msgid "Stretch image"
2062
  msgstr "Bild dehnen"
2063
 
2064
- #: ../admin/settings.php:552
2065
  msgid "true"
2066
  msgstr "Ja"
2067
 
2068
- #: ../admin/settings.php:553
2069
  msgid "false"
2070
  msgstr "Nein"
2071
 
2072
- #: ../admin/settings.php:554
2073
  msgid "fit"
2074
  msgstr "Passend"
2075
 
2076
- #: ../admin/settings.php:555
2077
  msgid "none"
2078
  msgstr "keiner"
2079
 
2080
- #: ../admin/settings.php:560
2081
  msgid "Duration time"
2082
  msgstr "Dauer"
2083
 
2084
- #: ../admin/settings.php:561
2085
  msgid "sec."
2086
  msgstr "Sek."
2087
 
2088
- #: ../admin/settings.php:564
2089
  msgid "Transition / Fade effect"
2090
  msgstr "Fade Effekt"
2091
 
2092
- #: ../admin/settings.php:567
2093
  msgid "fade"
2094
  msgstr "Fade"
2095
 
2096
- #: ../admin/settings.php:568
2097
  msgid "bgfade"
2098
  msgstr "BGFade"
2099
 
2100
- #: ../admin/settings.php:569
2101
  msgid "slowfade"
2102
  msgstr "Slowfade"
2103
 
2104
- #: ../admin/settings.php:570
2105
  msgid "circles"
2106
  msgstr "Kreise"
2107
 
2108
- #: ../admin/settings.php:571
2109
  msgid "bubbles"
2110
  msgstr "Blasen"
2111
 
2112
- #: ../admin/settings.php:572
2113
  msgid "blocks"
2114
  msgstr "Blöcke"
2115
 
2116
- #: ../admin/settings.php:573
2117
  msgid "fluids"
2118
  msgstr "Fluids"
2119
 
2120
- #: ../admin/settings.php:574
2121
  msgid "flash"
2122
  msgstr "Flash"
2123
 
2124
- #: ../admin/settings.php:575
2125
  msgid "lines"
2126
  msgstr "Linien"
2127
 
2128
- #: ../admin/settings.php:576
2129
  msgid "random"
2130
  msgstr "Zufall"
2131
 
2132
- #: ../admin/settings.php:580
2133
  msgid "Use slow zooming effect"
2134
  msgstr "nutze Zoom Effekt"
2135
 
2136
- #: ../admin/settings.php:584
2137
  msgid "Background Color"
2138
  msgstr "Hintergrund (BG) Farbe"
2139
 
2140
- #: ../admin/settings.php:589
2141
  msgid "Texts / Buttons Color"
2142
  msgstr "Text- / Button Farbe"
2143
 
2144
- #: ../admin/settings.php:594
2145
  msgid "Rollover / Active Color"
2146
  msgstr "Rollover / Aktiv (Link) Farbe"
2147
 
2148
- #: ../admin/settings.php:599
2149
  msgid "Screen Color"
2150
  msgstr "Seiten Farbe"
2151
 
2152
- #: ../admin/settings.php:604
2153
  msgid "Background music (URL)"
2154
  msgstr "Hintergrundmusik (URL)"
2155
 
2156
- #: ../admin/settings.php:608
2157
  msgid "Try XHTML validation (with CDATA)"
2158
  msgstr "Integriere XHTML Validierung (mittels CDATA)"
2159
 
2160
- #: ../admin/settings.php:610
2161
  msgid "Important : Could causes problem at some browser. Please recheck your page."
2162
  msgstr "Wichtig : Es könnten Probleme bei einigen Browser entstehen. Unbedingt Seite danach prüfen."
2163
 
@@ -2231,41 +2350,41 @@ msgstr ""
2231
  "\\n"
2232
  "Wähle [Cancel] zum Abbrechen, [OK] zum Deinstallieren.\\n"
2233
 
2234
- #: ../admin/showmeta.php:28
2235
  msgid "Meta Data"
2236
  msgstr "Metadaten"
2237
 
2238
- #: ../admin/showmeta.php:33
2239
- #: ../admin/showmeta.php:59
2240
- #: ../admin/showmeta.php:84
2241
- #: ../admin/showmeta.php:108
2242
- msgid "Tag"
2243
- msgstr "Stichwort"
2244
-
2245
  #: ../admin/showmeta.php:34
2246
  #: ../admin/showmeta.php:60
2247
  #: ../admin/showmeta.php:85
2248
  #: ../admin/showmeta.php:109
 
 
 
 
 
 
 
2249
  msgid "Value"
2250
  msgstr "Wert"
2251
 
2252
- #: ../admin/showmeta.php:48
2253
  msgid "No meta data saved"
2254
  msgstr "Keine Metadaten gespeichert"
2255
 
2256
- #: ../admin/showmeta.php:54
2257
  msgid "EXIF Data"
2258
  msgstr "EXIF Daten"
2259
 
2260
- #: ../admin/showmeta.php:73
2261
  msgid "No exif data"
2262
  msgstr "Keine Exif Daten"
2263
 
2264
- #: ../admin/showmeta.php:80
2265
  msgid "IPTC Data"
2266
  msgstr "IPTC Daten"
2267
 
2268
- #: ../admin/showmeta.php:104
2269
  msgid "XMP Data"
2270
  msgstr "XMP Daten"
2271
 
@@ -2281,53 +2400,53 @@ msgstr "Du hast nicht die benötigten Rechte um Vorlagen in diesem Blog zu bearb
2281
  msgid "CSS file successfully updated"
2282
  msgstr "CSS Datei erfolgreich aktualisiert"
2283
 
2284
- #: ../admin/style.php:89
2285
  msgid "Style Editor"
2286
  msgstr "CSS Editor"
2287
 
2288
- #: ../admin/style.php:93
2289
  msgid "Activate and use style sheet:"
2290
  msgstr "Aktiviere und nutze Stylesheet:"
2291
 
2292
- #: ../admin/style.php:113
2293
  msgid "Activate"
2294
  msgstr "Aktiviere"
2295
 
2296
- #: ../admin/style.php:123
2297
  #, php-format
2298
  msgid "Editing <strong>%s</strong>"
2299
  msgstr "Bearbeite <strong>%s</strong>"
2300
 
2301
- #: ../admin/style.php:125
2302
  #, php-format
2303
  msgid "Browsing <strong>%s</strong>"
2304
  msgstr "Durchsuche <strong>%s</strong>"
2305
 
2306
- #: ../admin/style.php:135
2307
  msgid "Version"
2308
  msgstr "Version"
2309
 
2310
- #: ../admin/style.php:138
2311
  msgid "Tip : Copy your stylesheet (nggallery.css) to your theme folder, so it will be not lost during a upgrade"
2312
  msgstr "Kleiner Tip : Kopiere das Stylesheet (nggallery.css) in dein Theme-Verzeichnis, dadurch wird es beim nächsten Update nicht überschrieben."
2313
 
2314
- #: ../admin/style.php:140
2315
  msgid "Your theme contain a NextGEN Gallery stylesheet (nggallery.css), this file will be used"
2316
  msgstr "Dein Theme-Paket enthält eine NextGEN Gallery Stylesheet (nggallery.css), dieses Sheet wird automatisch eingebunden"
2317
 
2318
- #: ../admin/style.php:142
2319
  msgid "Tip No. 2: Use the color picker below to help you find the right color scheme for your gallery!"
2320
  msgstr "2.Tip : Beutze die Farbauswahl um den zugehörigen HTML Farbcode zu erhalten"
2321
 
2322
- #: ../admin/style.php:158
2323
  msgid "Update File"
2324
  msgstr "Datei aktualisieren"
2325
 
2326
- #: ../admin/style.php:161
2327
  msgid "If this file were writable you could edit it."
2328
  msgstr "Wenn diese Datei beschreibbar wäre, könntest Du sie bearbeiten."
2329
 
2330
- #: ../admin/style.php:166
2331
  msgid "Oops, no such file exists! Double check the name and try again, merci."
2332
  msgstr "Oha, eine solche Datei existiert nicht! Bitte überprüfe den Namen und probiere es erneut, danke."
2333
 
@@ -2439,68 +2558,72 @@ msgstr "Schlagwörter setzen:"
2439
  msgid "Upgrade database structure..."
2440
  msgstr "Aktualisiere die Datenbank-Struturen..."
2441
 
2442
- #: ../admin/upgrade.php:98
2443
- #: ../admin/upgrade.php:108
2444
- #: ../admin/upgrade.php:115
2445
- #: ../admin/upgrade.php:126
2446
- #: ../admin/upgrade.php:140
2447
  msgid "finished"
2448
  msgstr "beendet"
2449
 
2450
- #: ../admin/upgrade.php:106
2451
  msgid "Update file structure..."
2452
  msgstr "Aktualisiere Verzeichnisse..."
2453
 
2454
- #: ../admin/upgrade.php:113
2455
  msgid "Import date and time information..."
2456
  msgstr "Importiere Datum/Uhrzeit..."
2457
 
2458
- #: ../admin/upgrade.php:121
2459
  msgid "Move imagerotator to new location..."
2460
  msgstr "Verschiebe den Image Rotator in ein neues Verzeichnis..."
2461
 
2462
- #: ../admin/upgrade.php:132
2463
  msgid "Update settings..."
2464
  msgstr "Einstellungen gespeichert..."
2465
 
2466
- #: ../admin/upgrade.php:205
 
 
 
 
2467
  msgid "Some folders/files could not renamed, please recheck the permission and rescan the folder in the manage gallery section."
2468
  msgstr "Einige Verzeichnisse / Bilder konnten nicht umbenannt werden, bitte überprüfe die Zugriffsrechte und Scanne dann das Verzeichnis neu ein."
2469
 
2470
- #: ../admin/upgrade.php:207
2471
  msgid "Rename failed"
2472
  msgstr "Konnte nicht umbenannt werden"
2473
 
2474
- #: ../admin/upgrade.php:302
2475
- #: ../admin/upgrade.php:321
2476
  msgid "Upgrade NextGEN Gallery"
2477
  msgstr "NextGEN Gallery aktualisieren"
2478
 
2479
- #: ../admin/upgrade.php:303
2480
  msgid "The script detect that you upgrade from a older version."
2481
  msgstr "Es wurde eine ältere NextGEN Datenbank erkannt."
2482
 
2483
- #: ../admin/upgrade.php:304
2484
  msgid "Your database tables for NextGEN Gallery is out-of-date, and must be upgraded before you can continue."
2485
  msgstr "Deinen Datenbank für NextGEN Gallery ist nicht auf dem aktuellen Stand, sie muss jetzt aktualisiert werden."
2486
 
2487
- #: ../admin/upgrade.php:305
2488
  msgid "If you would like to downgrade later, please make first a complete backup of your database and the images."
2489
  msgstr "Wenn du wieder auf eine ältere Version zurückgehen möchtest, solltest du vorher die Datenbank sichern."
2490
 
2491
- #: ../admin/upgrade.php:306
2492
  msgid "The upgrade process may take a while, so please be patient."
2493
  msgstr "Der Upgrade Prozess kann etwas dauern, bitte sei geduldig..."
2494
 
2495
- #: ../admin/upgrade.php:307
2496
  msgid "Start upgrade now"
2497
  msgstr "Aktualisierung starten"
2498
 
2499
- #: ../admin/upgrade.php:323
2500
  msgid "Upgrade sucessful"
2501
  msgstr "Aktualisierung erfolgreich"
2502
 
2503
- #: ../admin/upgrade.php:324
2504
  msgid "Continue"
2505
  msgstr "Weiter"
2506
 
@@ -2613,6 +2736,18 @@ msgstr "Float"
2613
  msgid "No float"
2614
  msgstr "Kein Float"
2615
 
 
 
 
 
 
 
 
 
 
 
 
 
2616
  #: ../admin/tinymce/window.php:147
2617
  msgid "Insert"
2618
  msgstr "Einfügen"
@@ -2622,153 +2757,171 @@ msgstr "Einfügen"
2622
  msgid "Note : Based on your server memory limit you should not upload larger images then <strong>%d x %d</strong> pixel"
2623
  msgstr "Hinweis : Basierend auf der Speicherbegrenzung auf dem Server, solltest du keine Bilder grösser als <strong>%d x %d</strong> Pixel hochladen"
2624
 
2625
- #: ../lib/meta.php:123
 
 
 
 
 
 
 
 
 
2626
  msgid " mm"
2627
  msgstr " mm"
2628
 
2629
- #: ../lib/meta.php:129
2630
  msgid " sec"
2631
  msgstr " Sek."
2632
 
2633
- #: ../lib/meta.php:133
2634
  msgid "Fired"
2635
  msgstr "ausgelöst"
2636
 
2637
- #: ../lib/meta.php:133
2638
  msgid "Not fired"
2639
  msgstr "Nicht ausgelöst"
2640
 
2641
- #: ../lib/meta.php:414
2642
  msgid "Aperture"
2643
  msgstr "Blende"
2644
 
2645
- #: ../lib/meta.php:415
2646
- #: ../lib/meta.php:440
2647
  msgid "Credit"
2648
  msgstr "Autor"
2649
 
2650
- #: ../lib/meta.php:416
2651
  msgid "Camera"
2652
  msgstr "Kamera"
2653
 
2654
- #: ../lib/meta.php:417
2655
  msgid "Caption"
2656
  msgstr "Beschreibung"
2657
 
2658
- #: ../lib/meta.php:419
2659
  msgid "Copyright"
2660
  msgstr "Rechte"
2661
 
2662
- #: ../lib/meta.php:420
2663
  msgid "Focal length"
2664
  msgstr "Brennweite"
2665
 
2666
- #: ../lib/meta.php:421
2667
  msgid "ISO"
2668
  msgstr "ISO"
2669
 
2670
- #: ../lib/meta.php:422
2671
  msgid "Shutter speed"
2672
  msgstr "Belichtungszeit"
2673
 
2674
- #: ../lib/meta.php:426
2675
  msgid "Subject"
2676
  msgstr "Betreff"
2677
 
2678
- #: ../lib/meta.php:427
2679
  msgid "Make"
2680
  msgstr "Hersteller"
2681
 
2682
- #: ../lib/meta.php:428
2683
  msgid "Edit Status"
2684
  msgstr "Ändere Status"
2685
 
2686
- #: ../lib/meta.php:429
2687
  msgid "Category"
2688
  msgstr "Kategorie"
2689
 
2690
- #: ../lib/meta.php:430
2691
  msgid "Keywords"
2692
  msgstr "Schlüsselwörter"
2693
 
2694
- #: ../lib/meta.php:431
2695
  msgid "Date Created"
2696
  msgstr "erstellt (Datum)"
2697
 
2698
- #: ../lib/meta.php:432
2699
  msgid "Time Created"
2700
  msgstr "erstellt (Zeit)"
2701
 
2702
- #: ../lib/meta.php:433
2703
  msgid "Author Position"
2704
  msgstr "Autor Position"
2705
 
2706
- #: ../lib/meta.php:434
2707
  msgid "City"
2708
  msgstr "Stadt"
2709
 
2710
- #: ../lib/meta.php:435
2711
  msgid "Location"
2712
  msgstr "Ort"
2713
 
2714
- #: ../lib/meta.php:436
2715
  msgid "Province/State"
2716
  msgstr "Staat / PLZ"
2717
 
2718
- #: ../lib/meta.php:437
2719
  msgid "Country code"
2720
  msgstr "Landescode"
2721
 
2722
- #: ../lib/meta.php:438
2723
  msgid "Country"
2724
  msgstr "Land"
2725
 
2726
- #: ../lib/meta.php:439
2727
  msgid "Headline"
2728
  msgstr "Kopfzeile"
2729
 
2730
- #: ../lib/meta.php:441
2731
  msgid "Source"
2732
  msgstr "Quelle"
2733
 
2734
- #: ../lib/meta.php:442
2735
  msgid "Copyright Notice"
2736
  msgstr "Copyright Hinweise / Credits"
2737
 
2738
- #: ../lib/meta.php:443
2739
  msgid "Contact"
2740
  msgstr "Kontakt"
2741
 
2742
- #: ../lib/meta.php:444
2743
  msgid "Last modified"
2744
  msgstr "Zuletzt geändert"
2745
 
2746
- #: ../lib/meta.php:445
2747
  msgid "Program tool"
2748
  msgstr "Programm"
2749
 
2750
- #: ../lib/meta.php:446
2751
  msgid "Format"
2752
  msgstr "Format"
2753
 
2754
- #: ../lib/meta.php:447
2755
  msgid "Image Width"
2756
  msgstr "Breite"
2757
 
2758
- #: ../lib/meta.php:448
2759
  msgid "Image Height"
2760
  msgstr "Höhe"
2761
 
2762
- #: ../lib/meta.php:449
2763
  msgid "Flash"
2764
  msgstr "Blitz"
2765
 
2766
- #: ../lib/ngg-db.php:313
2767
- #: ../lib/ngg-db.php:314
2768
  msgid "Album overview"
2769
  msgstr "Album Übersicht"
2770
 
2771
- #: ../lib/shortcodes.php:289
 
 
 
 
 
 
 
 
 
2772
  msgid "[Pictures not found]"
2773
  msgstr "[Bilder nicht gefunden]"
2774
 
@@ -2891,13 +3044,11 @@ msgid "Sorry, could not create the gallery"
2891
  msgstr "Konnte die Galerie nicht anlegen"
2892
 
2893
  #: ../view/album-compact.php:32
 
2894
  msgid "Photos"
2895
  msgstr "Fotos"
2896
 
2897
  #: ../view/gallery-caption.php:32
2898
- #: ../view/gallery-hidden.php:32
2899
- #: ../view/gallery.php:32
2900
- #: ../widgets/media-rss-widget.php:236
2901
  msgid "[View with PicLens]"
2902
  msgstr "[Mit PicLens anzeigen]"
2903
 
@@ -2996,59 +3147,59 @@ msgstr "Höhe:"
2996
  msgid "Width:"
2997
  msgstr "Breite:"
2998
 
2999
- #: ../widgets/widgets.php:171
3000
  msgid "Add recent or random images from the galleries"
3001
  msgstr "Füge die neusten Bilder oder Zufallsbilder aus NextGEN Gallery ein"
3002
 
3003
- #: ../widgets/widgets.php:173
3004
  msgid "NextGEN Widget"
3005
  msgstr "NextGEN Widget"
3006
 
3007
- #: ../widgets/widgets.php:273
3008
  msgid "Title :"
3009
  msgstr "Titel :"
3010
 
3011
- #: ../widgets/widgets.php:279
3012
  msgid "Show :"
3013
  msgstr "Zeige als :"
3014
 
3015
- #: ../widgets/widgets.php:285
3016
  msgid "Original images"
3017
  msgstr "Original Bilder"
3018
 
3019
- #: ../widgets/widgets.php:293
3020
  msgid "recent added "
3021
  msgstr "zuletzt hinzugefügt"
3022
 
3023
- #: ../widgets/widgets.php:299
3024
  msgid "Enable IE8 Web Slices"
3025
  msgstr "IE8 Web Slices aktivieren"
3026
 
3027
- #: ../widgets/widgets.php:304
3028
  msgid "Width x Height :"
3029
  msgstr "Breite x Höhe :"
3030
 
3031
- #: ../widgets/widgets.php:311
3032
  msgid "Select :"
3033
  msgstr "Wähle :"
3034
 
3035
- #: ../widgets/widgets.php:313
3036
  msgid "All galleries"
3037
  msgstr "Alle Galerien"
3038
 
3039
- #: ../widgets/widgets.php:314
3040
  msgid "Only which are not listed"
3041
  msgstr "Nur ungelistete"
3042
 
3043
- #: ../widgets/widgets.php:315
3044
  msgid "Only which are listed"
3045
  msgstr "Nur gelistete"
3046
 
3047
- #: ../widgets/widgets.php:321
3048
  msgid "Gallery ID :"
3049
  msgstr "Galerie ID :"
3050
 
3051
- #: ../widgets/widgets.php:323
3052
  msgid "Gallery IDs, separated by commas."
3053
  msgstr "Galerie IDs, mit Kommas getrennt"
3054
 
@@ -3075,6 +3226,35 @@ msgstr "Album-ID %s existiert nicht"
3075
  msgid "Invalid MediaRSS command (%s)."
3076
  msgstr "Ungültiger Media RSS Befehl (%s)"
3077
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3078
  #~ msgid "for PclZip , a PHP library that manage ZIP archives"
3079
  #~ msgstr "für PclZip, eine ZIP PHP Library"
3080
  #~ msgid "Crop square thumbnail from image"
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-03-13 22:29+0100\n"
6
+ "PO-Revision-Date: 2010-03-13 22:36+0100\n"
7
+ "Last-Translator: Alex Rabe\n"
8
  "Language-Team: Alex Rabe\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
  "X-Poedit-SearchPath-1: ..\n"
20
 
21
+ #: ../nggallery.php:63
22
+ msgid "<strong>Translation by : </strong><a target=\"_blank\" href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\">See here</a>"
23
+ msgstr "<strong>Übersetzt von : </strong><a target=\"_blank\" href=\"http://alexrabe.de/wordpress-plugins/wordtube/translation-of-plugins/\">Alex Rabe</a>"
24
+
25
+ #: ../nggallery.php:64
26
+ msgid "<strong>This translation is not yet updated for Version 1.5.0</strong>. If you would like to help with translation, download the current po from the plugin folder and read <a href=\"http://alexrabe.de/wordpress-plugins/wordtube/translation-of-plugins/\">here</a> how you can translate the plugin."
27
+ msgstr "Sollten jemand Rechtschreibfehler, Deppenapostrophe oder andere deutsche Ungereimtheiten finden, freue ich mich jederzeit über einen kurzen Hinweis</p>"
28
+
29
+ #: ../nggallery.php:201
30
  msgid "Sorry, NextGEN Gallery works only with a Memory Limit of 16 MB higher"
31
  msgstr "Tut mir leid, aber NextGEN Galerie benötigt minimum 16MB Speicher (Memory Limit) oder mehr"
32
 
33
+ #: ../nggallery.php:226
34
  msgid "Picture tag"
35
  msgstr "Bilder Stichwort"
36
 
37
+ #: ../nggallery.php:227
38
  msgid "Picture tag: %2$l."
39
  msgstr "Bilder Stichwort: %2$l."
40
 
41
+ #: ../nggallery.php:228
42
  msgid "Separate picture tags with commas."
43
  msgstr "Trenne Stichwörter mittels Komma"
44
 
45
+ #: ../nggallery.php:325
46
  msgid "L O A D I N G"
47
  msgstr "B I T T E &nbsp;&nbsp;W A R T E N"
48
 
49
+ #: ../nggallery.php:326
50
  msgid "Click to Close"
51
  msgstr "Klicken zum Schliessen "
52
 
53
+ #: ../nggallery.php:342
54
  msgid "loading"
55
  msgstr "lade..."
56
 
57
+ #: ../nggallery.php:440
58
  #: ../nggfunctions.php:848
59
  #: ../admin/admin.php:32
60
  msgid "Overview"
61
  msgstr "Übersicht"
62
 
63
+ #: ../nggallery.php:441
64
  msgid "Get help"
65
  msgstr "Hilfe"
66
 
67
+ #: ../nggallery.php:442
68
  msgid "Contribute"
69
  msgstr "Mithelfen"
70
 
71
+ #: ../nggallery.php:443
72
  msgid "Donate"
73
  msgstr "Spenden"
74
 
81
  msgid "[Gallery not found]"
82
  msgstr "[Galerie nicht gefunden]"
83
 
84
+ #: ../nggfunctions.php:365
85
  msgid "[Album not found]"
86
  msgstr "[Album nicht gefunden]"
87
 
107
 
108
  #: ../admin/about.php:14
109
  msgid "There are many other folks who have made contributions to this project :"
110
+ msgstr "Folgende Personen haben die Entwicklung unterstützt :"
111
 
112
  #: ../admin/about.php:19
113
  msgid "Contributors / Tribute to"
205
  msgid "We would like to thank this people which support us in the work :"
206
  msgstr "Ich möchte mich bei diesen Menschen für Ihre Unterstützung bedanken:"
207
 
208
+ #: ../admin/about.php:165
209
  msgid "and all donators..."
210
  msgstr "und allen anderen Spendern..."
211
 
212
+ #: ../admin/addgallery.php:46
213
+ #: ../admin/addgallery.php:57
214
+ #: ../admin/addgallery.php:69
215
+ #: ../admin/addgallery.php:80
216
+ #: ../admin/album.php:96
217
+ #: ../admin/album.php:125
218
+ #: ../admin/album.php:140
219
+ #: ../admin/edit-thumbnail.php:19
220
+ #: ../admin/edit-thumbnail.php:22
221
+ #: ../admin/manage.php:178
222
+ msgid "Cheatin&#8217; uh?"
223
+ msgstr "Cheatin&#8217; uh?"
224
+
225
+ #: ../admin/addgallery.php:62
226
  msgid "Upload failed!"
227
  msgstr "Upload fehlgeschlagen!"
228
 
229
+ #: ../admin/addgallery.php:85
230
+ msgid "Upload failed! "
231
+ msgstr "Upload fehlgeschlagen!"
232
+
233
+ #: ../admin/addgallery.php:90
234
+ #: ../admin/functions.php:908
235
+ #: ../admin/functions.php:1009
236
  msgid "No gallery selected !"
237
  msgstr "Keine Galerie ausgewählt !"
238
 
239
+ #: ../admin/addgallery.php:162
240
  msgid "Image Files"
241
  msgstr "Bilder"
242
 
243
+ #: ../admin/addgallery.php:181
244
+ #: ../admin/addgallery.php:212
245
  msgid "remove"
246
  msgstr "Entfernen"
247
 
248
+ #: ../admin/addgallery.php:182
249
  msgid "Browse..."
250
  msgstr "Durchsuche..."
251
 
252
+ #: ../admin/addgallery.php:183
253
+ #: ../admin/addgallery.php:399
254
  msgid "Upload images"
255
  msgstr "Bilder hochladen"
256
 
257
+ #: ../admin/addgallery.php:262
258
+ #: ../admin/addgallery.php:281
259
+ #: ../admin/manage-galleries.php:135
260
  msgid "Add new gallery"
261
  msgstr "Neue Galerie erstellen"
262
 
263
+ #: ../admin/addgallery.php:265
264
+ #: ../admin/addgallery.php:303
265
  msgid "Upload a Zip-File"
266
  msgstr "Zip-Datei hochladen"
267
 
268
+ #: ../admin/addgallery.php:268
269
+ #: ../admin/addgallery.php:345
270
  msgid "Import image folder"
271
  msgstr "Bilder-Verzeichnis importieren"
272
 
273
+ #: ../admin/addgallery.php:270
274
+ #: ../admin/addgallery.php:365
275
  msgid "Upload Images"
276
  msgstr "Bilder hochladen"
277
 
278
+ #: ../admin/addgallery.php:286
279
+ #: ../admin/manage-galleries.php:218
280
  msgid "New Gallery"
281
  msgstr "Neue Galerie"
282
 
283
+ #: ../admin/addgallery.php:289
284
+ #: ../admin/manage-galleries.php:220
285
  msgid "Create a new , empty gallery below the folder"
286
  msgstr "Erstelle eine neue, leere Galerie unter dem Verzeichnis"
287
 
288
+ #: ../admin/addgallery.php:291
289
+ #: ../admin/manage-galleries.php:222
290
  msgid "Allowed characters for file and folder names are"
291
  msgstr "Erlaubte Zeichen für die Datei- und Verzeichnisnamen sind"
292
 
293
+ #: ../admin/addgallery.php:295
294
  msgid "Add gallery"
295
  msgstr "Galerie hinzufügen"
296
 
297
+ #: ../admin/addgallery.php:308
298
  msgid "Select Zip-File"
299
  msgstr "Wähle Zip-Datei"
300
 
301
+ #: ../admin/addgallery.php:310
302
  msgid "Upload a zip file with images"
303
  msgstr "Lade eine Zip-Datei mit Bildern hoch"
304
 
305
+ #: ../admin/addgallery.php:314
306
  msgid "or enter a Zip-File URL"
307
  msgstr "oder gib eine URL zur ZIP-Datei an"
308
 
309
+ #: ../admin/addgallery.php:316
310
  msgid "Import a zip file with images from a url"
311
  msgstr "Lade eine Zip-Datei mit Bildern über ein URL hoch"
312
 
313
+ #: ../admin/addgallery.php:320
314
+ #: ../admin/addgallery.php:374
315
  msgid "in to"
316
  msgstr "in"
317
 
318
+ #: ../admin/addgallery.php:322
319
  msgid "a new gallery"
320
  msgstr "eine neue Galerie"
321
 
322
+ #: ../admin/addgallery.php:333
323
  msgid "Note : The upload limit on your server is "
324
  msgstr "Hinweis : Das Upload-Limit auf dem Server beträgt "
325
 
326
+ #: ../admin/addgallery.php:337
327
  msgid "Start upload"
328
  msgstr "Upload starten"
329
 
330
+ #: ../admin/addgallery.php:350
331
  msgid "Import from Server path:"
332
  msgstr "Importieren aus Server-Pfad:"
333
 
334
+ #: ../admin/addgallery.php:353
335
  msgid " Please note : For safe-mode = ON you need to add the subfolder thumbs manually"
336
  msgstr "Achtung : Da der Safe-Mode (PHP.INI) eingeschaltet ist, mußt Du das Unterverzeichnis für die Vorschaubilder (\"thumbs\") manuell (per FTP) anlegen"
337
 
338
+ #: ../admin/addgallery.php:356
339
  msgid "Import folder"
340
  msgstr "Verzeichnis importieren"
341
 
342
+ #: ../admin/addgallery.php:370
343
  msgid "Upload image"
344
  msgstr "Bild hochladen"
345
 
346
+ #: ../admin/addgallery.php:376
347
  msgid "Choose gallery"
348
  msgstr "Wähle Galerie"
349
 
350
+ #: ../admin/addgallery.php:395
351
  msgid "The batch upload requires Adobe Flash 10, disable it if you have problems"
352
  msgstr "Das Batch-Upload benötigt Adbode Flash 10, wenn es Probleme gibt deaktiviere es besser."
353
 
354
+ #: ../admin/addgallery.php:395
355
  msgid "Disable flash upload"
356
  msgstr "Deaktiviere Batch-Upload"
357
 
358
+ #: ../admin/addgallery.php:397
359
  msgid "Upload multiple files at once by ctrl/shift-selecting in dialog"
360
  msgstr "Wähle im Dialog mit Ctrl/Shift mehrere Bilder gleichzeitig aus."
361
 
362
+ #: ../admin/addgallery.php:397
363
  msgid "Enable flash based upload"
364
  msgstr "Aktiviere Flash Batch Upload"
365
 
 
 
 
 
 
 
366
  #: ../admin/admin.php:33
367
  msgid "Add Gallery / Images"
368
  msgstr "Galerie / Bilder hinzufügen"
371
  msgid "Manage Gallery"
372
  msgstr "Galerie verwalten"
373
 
 
 
 
 
 
 
374
  #: ../admin/admin.php:36
375
  msgid "Tags"
376
  msgstr "Stichwörter"
383
  msgid "Style"
384
  msgstr "Style"
385
 
386
+ #: ../admin/admin.php:41
 
 
 
 
 
 
 
 
387
  msgid "Roles"
388
  msgstr "Zugriff"
389
 
390
+ #: ../admin/admin.php:42
391
  msgid "About this Gallery"
392
  msgstr "Über diese Galerie"
393
 
394
+ #: ../admin/admin.php:42
395
  msgid "About"
396
  msgstr "Über"
397
 
398
+ #: ../admin/admin.php:44
399
  msgid "NextGEN Gallery"
400
  msgstr "NextGEN Gallery"
401
 
402
+ #: ../admin/admin.php:45
403
+ msgid "Reset / Uninstall"
404
+ msgstr "Rücksetzen"
405
+
406
+ #: ../admin/admin.php:74
407
  msgid "A new version of NextGEN Gallery is available !"
408
  msgstr "Eine neue Version von NextGEN Gallery ist jetzt verfügbar"
409
 
410
+ #: ../admin/admin.php:74
411
  msgid "Download here"
412
  msgstr "Hier downloaden"
413
 
414
+ #: ../admin/admin.php:93
415
  #, php-format
416
  msgid "Thanks for using this plugin, I hope you are satisfied ! If you would like to support the further development, please consider a <strong><a href=\"%s\">donation</a></strong>! If you still need some help, please post your questions <a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\">here</a> ."
417
  msgstr "Vielen Dank das du dieses Plugin nutzt. Ich hoffe du bist soweit zufrieden ! Wenn du die Weiterentwicklung unterstützen möchtest, würde ich mich über eine kleine <strong><a href=\"%s\">Spende</a></strong> freuen! Wenn du Fragen oder Problem hast, schreib sie doch <a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\">hier</a> ins Forum."
418
 
419
+ #: ../admin/admin.php:96
420
  msgid "OK, hide this message now !"
421
  msgstr "OK, danke für die Info !"
422
 
423
+ #: ../admin/admin.php:180
424
  msgid "You do not have the correct permission"
425
  msgstr "Du hast keine Zugriffsrechte"
426
 
427
+ #: ../admin/admin.php:181
428
  msgid "Unexpected Error"
429
  msgstr "Unerwarteter Fehler"
430
 
431
+ #: ../admin/admin.php:182
432
  msgid "A failure occurred"
433
  msgstr "Ein Fehler ist aufgetreten"
434
 
435
+ #: ../admin/admin.php:271
436
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Introduction</a>"
437
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
438
 
439
+ #: ../admin/admin.php:274
440
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Setup</a>"
441
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Setup</a>"
442
 
443
+ #: ../admin/admin.php:277
444
  msgid "<a href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\" target=\"_blank\">Translation by alex rabe</a>"
445
  msgstr "<a href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\" target=\"_blank\">Unterstütze bei der Übersetzung</a>"
446
 
447
+ #: ../admin/admin.php:280
448
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Roles / Capabilities</a>"
449
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
450
 
451
+ #: ../admin/admin.php:283
452
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Styles</a>"
453
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
454
 
455
+ #: ../admin/admin.php:284
456
  msgid "Templates"
457
  msgstr "Vorlagen"
458
 
 
459
  #: ../admin/admin.php:287
460
+ #: ../admin/admin.php:293
461
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery management</a>"
462
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
463
 
464
+ #: ../admin/admin.php:288
465
  msgid "Gallery example"
466
  msgstr "Galerie Beispiel"
467
 
468
+ #: ../admin/admin.php:294
469
+ #: ../admin/admin.php:304
470
  msgid "Gallery tags"
471
  msgstr "Galerie Stichwörter"
472
 
473
+ #: ../admin/admin.php:297
474
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Album management</a>"
475
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
476
 
477
+ #: ../admin/admin.php:298
478
  msgid "Album example"
479
  msgstr "Album Beispiel"
480
 
 
481
  #: ../admin/admin.php:299
482
+ #: ../admin/admin.php:305
483
  msgid "Album tags"
484
  msgstr "Album Stichwörter"
485
 
486
+ #: ../admin/admin.php:302
487
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery tags</a>"
488
  msgstr "<a href=\"http://www.curlyrob.de/curlyrob/?page_id=129\" target=\"_blank\">Einführung</a>"
489
 
490
+ #: ../admin/admin.php:303
491
  msgid "Related images"
492
  msgstr "Verwandte Bilder"
493
 
494
+ #: ../admin/admin.php:308
495
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-image-management/\" target=\"_blank\">Image management</a>"
496
  msgstr "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-image-management/\" target=\"_blank\">Bilderverwaltung (Englisch)</a>"
497
 
498
+ #: ../admin/admin.php:309
499
  msgid "Custom fields"
500
  msgstr "Spezialfelder"
501
 
502
+ #: ../admin/admin.php:314
503
  msgid "Get help with NextGEN Gallery"
504
  msgstr "Weitere Hilfe zu NextGEN Gallery"
505
 
506
+ #: ../admin/admin.php:318
507
  msgid "More Help & Info"
508
  msgstr "Weitere Hilfe & Informationen"
509
 
510
+ #: ../admin/admin.php:320
511
  msgid "<a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\" target=\"_blank\">Support Forums</a>"
512
  msgstr "<a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\" target=\"_blank\">Support Forum (Englisch)</a>"
513
 
514
+ #: ../admin/admin.php:321
515
  msgid "FAQ"
516
  msgstr "FAQ (englisch)"
517
 
518
+ #: ../admin/admin.php:322
519
  msgid "Feature request"
520
  msgstr "Wünsch dir was"
521
 
522
+ #: ../admin/admin.php:323
523
  msgid "Get your language pack"
524
  msgstr "Lade deine Sprachdatei"
525
 
526
+ #: ../admin/admin.php:324
527
  msgid "Contribute development"
528
  msgstr "Entwicklung helfen"
529
 
530
+ #: ../admin/admin.php:325
531
  msgid "Download latest version"
532
  msgstr "Aktuelle Version downloaden"
533
 
534
+ #: ../admin/album.php:103
535
+ #: ../admin/album.php:118
536
+ #: ../admin/album.php:150
537
  msgid "Update Successfully"
538
  msgstr "Update erfolgreich"
539
 
540
+ #: ../admin/album.php:129
541
  msgid "Album deleted"
542
  msgstr "Album gelöscht"
543
 
544
+ #: ../admin/album.php:260
545
  msgid "Manage Albums"
546
  msgstr "Verwalte Alben"
547
 
548
+ #: ../admin/album.php:266
549
+ #: ../admin/album.php:315
550
  msgid "Select album"
551
  msgstr "Wähle Album"
552
 
553
+ #: ../admin/album.php:268
554
  msgid "No album selected"
555
  msgstr "Kein Album ausgewählt"
556
 
557
+ #: ../admin/album.php:279
558
  #: ../admin/edit-thumbnail.php:157
559
  msgid "Update"
560
  msgstr "Aktualisiere"
561
 
562
+ #: ../admin/album.php:281
563
  msgid "Edit album"
564
  msgstr "Album ändern"
565
 
566
+ #: ../admin/album.php:284
567
+ #: ../admin/manage-galleries.php:196
568
+ #: ../admin/manage-images.php:404
569
  msgid "Delete"
570
  msgstr "Lösche"
571
 
572
+ #: ../admin/album.php:284
573
  msgid "Delete album ?"
574
  msgstr "Album löschen ?"
575
 
576
+ #: ../admin/album.php:288
577
  msgid "Add new album"
578
  msgstr "Album hinzufügen"
579
 
580
+ #: ../admin/album.php:290
581
  msgid "Add"
582
  msgstr "Hinzufügen"
583
 
584
+ #: ../admin/album.php:301
585
  msgid "Show / hide used galleries"
586
  msgstr "Zeige / Verstecke verwendete Galerien"
587
 
588
+ #: ../admin/album.php:301
589
  msgid "[Show all]"
590
  msgstr "[Alle zeigen]"
591
 
592
+ #: ../admin/album.php:302
593
  msgid "Maximize the widget content"
594
  msgstr "Maximiere die Widgets"
595
 
596
+ #: ../admin/album.php:302
597
  msgid "[Maximize]"
598
  msgstr "[Vergrößern]"
599
 
600
+ #: ../admin/album.php:303
601
  msgid "Minimize the widget content"
602
  msgstr "Minimiere die Widgets"
603
 
604
+ #: ../admin/album.php:303
605
  msgid "[Minimize]"
606
  msgstr "[Verkleinern]"
607
 
608
+ #: ../admin/album.php:305
609
  msgid "After you create and select a album, you can drag and drop a gallery or another album into your new album below"
610
  msgstr "Nachdem du ein Album erstellt und ausgewählt hast, kannst du per Drag & Drop eine Galerie oder ein anderes Album in das neue Album ziehen"
611
 
612
+ #: ../admin/album.php:331
613
  msgid "Select gallery"
614
  msgstr "Wähle Galerie"
615
 
616
+ #: ../admin/album.php:360
617
  msgid "Album ID"
618
  msgstr "Album ID"
619
 
620
+ #: ../admin/album.php:373
621
  msgid "No album selected!"
622
  msgstr "Kein Album ausgewählt"
623
 
624
+ #: ../admin/album.php:393
625
  msgid "Album name:"
626
  msgstr "Album Name :"
627
 
628
+ #: ../admin/album.php:399
629
  msgid "Album description:"
630
  msgstr "Beschreibung:"
631
 
632
+ #: ../admin/album.php:405
633
  msgid "Select a preview image:"
634
  msgstr "Wähle Vorschaubild:"
635
 
636
+ #: ../admin/album.php:407
637
  msgid "No picture"
638
  msgstr "Kein Bild"
639
 
640
+ #: ../admin/album.php:421
641
+ #: ../admin/manage-images.php:218
642
  msgid "Page Link to"
643
  msgstr "Seite verlinkt zu"
644
 
645
+ #: ../admin/album.php:423
646
+ #: ../admin/manage-images.php:221
647
  msgid "Not linked"
648
  msgstr "Nicht verlinkt"
649
 
650
+ #: ../admin/album.php:433
651
+ #: ../admin/manage-galleries.php:227
652
+ #: ../admin/manage-galleries.php:256
653
+ #: ../admin/manage-galleries.php:286
654
+ #: ../admin/manage-images.php:488
655
+ #: ../admin/manage-images.php:524
656
+ #: ../admin/manage-images.php:553
657
+ #: ../admin/manage-images.php:583
658
  msgid "OK"
659
  msgstr "OK"
660
 
661
+ #: ../admin/album.php:435
662
+ #: ../admin/manage-galleries.php:229
663
+ #: ../admin/manage-galleries.php:258
664
+ #: ../admin/manage-galleries.php:288
665
+ #: ../admin/manage-images.php:490
666
+ #: ../admin/manage-images.php:526
667
+ #: ../admin/manage-images.php:555
668
+ #: ../admin/manage-images.php:585
669
  msgid "Cancel"
670
  msgstr "Abbrechen"
671
 
672
+ #: ../admin/album.php:519
673
  msgid "Name"
674
  msgstr "Name"
675
 
676
+ #: ../admin/album.php:520
677
+ #: ../admin/manage-galleries.php:156
678
+ #: ../admin/manage-images.php:216
679
  msgid "Title"
680
  msgstr "Titel"
681
 
682
+ #: ../admin/album.php:521
683
  msgid "Page"
684
  msgstr "Seite"
685
 
 
 
 
 
 
686
  #: ../admin/edit-thumbnail.php:106
687
  msgid "Select with the mouse the area for the new thumbnail"
688
  msgstr "Wähle mit der Maus den Bereich für das neue Thumbnail"
707
  #: ../admin/functions.php:56
708
  #: ../admin/functions.php:70
709
  #: ../admin/functions.php:147
710
+ #: ../admin/functions.php:155
711
  msgid "Directory"
712
  msgstr "Verzeichnis"
713
 
727
 
728
  #: ../admin/functions.php:65
729
  #: ../admin/functions.php:75
730
+ #: ../admin/functions.php:867
731
  msgid "Unable to create directory "
732
  msgstr "Kann Verzeichnis nicht erstellen "
733
 
764
  msgid "doesn&#96;t exist!"
765
  msgstr "gibt es nicht !"
766
 
767
+ #: ../admin/functions.php:155
768
  msgid "contains no pictures"
769
  msgstr "enthält keine Bilder"
770
 
771
+ #: ../admin/functions.php:173
772
  msgid "Database error. Could not add gallery!"
773
  msgstr "Datenbank-Fehler. Kann Galerie nicht hinzufügen!"
774
 
775
+ #: ../admin/functions.php:176
776
  msgid "successfully created!"
777
  msgstr "erfolgreich erstellt!"
778
 
779
+ #: ../admin/functions.php:205
780
+ #: ../admin/functions.php:984
781
  #: ../admin/manage-galleries.php:127
782
+ #: ../admin/manage-images.php:299
783
+ #: ../admin/manage.php:215
784
+ #: ../admin/manage.php:291
785
  msgid "Create new thumbnails"
786
  msgstr "Neue Vorschaubilder erstellen"
787
 
788
+ #: ../admin/functions.php:208
789
  msgid " picture(s) successfully added"
790
  msgstr " Bild(er) erfolgreich hinzugefügt"
791
 
792
+ #: ../admin/functions.php:257
793
+ #: ../admin/functions.php:333
794
+ #: ../admin/functions.php:388
795
+ #: ../admin/functions.php:485
796
+ #: ../admin/functions.php:539
797
  msgid "Object didn't contain correct data"
798
  msgstr "Das Objekt enhält nicht die notwendigen Daten"
799
 
800
+ #: ../admin/functions.php:265
801
  msgid " is not writeable "
802
  msgstr "ist schreibgeschützt !"
803
 
804
+ #: ../admin/functions.php:343
805
+ #: ../admin/functions.php:391
806
+ #: ../admin/functions.php:491
807
+ #: ../admin/functions.php:542
808
  msgid " is not writeable"
809
  msgstr "ist schreibgeschützt !"
810
 
811
+ #: ../admin/functions.php:545
812
+ msgid "File do not exists"
813
+ msgstr "Datei existiert nicht"
814
+
815
+ #: ../admin/functions.php:549
816
+ msgid "Couldn't restore original image"
817
+ msgstr "Konnte Originalbild nicht wiederherstellen"
818
+
819
+ #: ../admin/functions.php:654
820
  msgid "(Error : Couldn't not update data base)"
821
  msgstr "(Fehler : Konnte Datenbank nicht updaten)"
822
 
823
+ #: ../admin/functions.php:661
824
  msgid "(Error : Couldn't not update meta data)"
825
  msgstr "(Fehler : Konnte Metadaten nicht speichern)"
826
 
827
+ #: ../admin/functions.php:670
828
  msgid "(Error : Couldn't not find image)"
829
  msgstr "(Fehler : Konnte das Bild nicht finden)"
830
 
831
+ #: ../admin/functions.php:801
832
  msgid "No valid URL path "
833
  msgstr "Kein gültiger URL Pfad"
834
 
835
+ #: ../admin/functions.php:817
836
  msgid "Import via cURL failed."
837
  msgstr "Import via cURL abgebrochen"
838
 
839
+ #: ../admin/functions.php:834
840
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
841
  msgstr "Die hochgeladene Datei war keine korrekte Zip-Datei. Servermeldung :"
842
 
843
+ #: ../admin/functions.php:851
844
  msgid "Could not get a valid foldername"
845
  msgstr "Konnte keinen gültigen Verzeichnisnamen finden"
846
 
847
+ #: ../admin/functions.php:862
848
  #, php-format
849
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
850
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
851
 
852
+ #: ../admin/functions.php:877
853
  msgid "Zip-File successfully unpacked"
854
  msgstr "Zip-Datei erfolgreich entpackt"
855
 
856
+ #: ../admin/functions.php:916
857
+ #: ../admin/functions.php:1035
858
  msgid "Failure in database, no gallery path set !"
859
  msgstr "Datenbankfehler! Kein Galerie-Pfad gesetzt !"
860
 
861
+ #: ../admin/functions.php:940
862
+ #: ../admin/functions.php:1029
863
  msgid "is no valid image file!"
864
  msgstr "ist keine zulässige Bilddatei !"
865
 
866
+ #: ../admin/functions.php:954
 
867
  #: ../admin/functions.php:1171
868
+ #: ../admin/functions.php:1244
869
  #, php-format
870
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
871
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
872
 
873
+ #: ../admin/functions.php:961
874
+ #: ../admin/functions.php:1052
875
  msgid "Error, the file could not moved to : "
876
  msgstr "Fehler: Diese Datei kann nicht verschoben werden zu :"
877
 
878
+ #: ../admin/functions.php:966
879
+ #: ../admin/functions.php:1056
880
  msgid "Error, the file permissions could not set"
881
  msgstr "Fehler: Die Berechtigungen für diese Datei können nicht gesetzt werden"
882
 
883
+ #: ../admin/functions.php:989
884
  msgid " Image(s) successfully added"
885
  msgstr " Bild(er) erfolgreich hinzugefügt"
886
 
887
+ #: ../admin/functions.php:1018
888
  msgid "Invalid upload. Error Code : "
889
  msgstr "Ungültiger Upload. Fehler Code :"
890
 
891
+ #: ../admin/functions.php:1071
892
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
893
  msgstr "Schade, dein freier Speicher scheint aufgebraucht zu sein. Bitte lösche zuerst ein paar Bilder."
894
 
895
+ #: ../admin/functions.php:1111
896
  #, php-format
897
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
898
  msgstr "SAFE MODE Einschränkungen ist aktiv. Du must das Verzeichnis <strong>%s</strong> manuell anlegen."
899
 
900
+ #: ../admin/functions.php:1112
901
  #, php-format
902
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
903
  msgstr "Wenn der Safe-Mode eingeschaltet ist, überprüft PHP ob der Besitzer (%s) des Skript mit dem Besitzer (%s) der Datei/Verzeichnis übereinstimmt."
904
 
 
905
  #: ../admin/functions.php:1165
906
+ #: ../admin/functions.php:1238
907
  msgid "The destination gallery does not exist"
908
  msgstr "Die ausgewählte Galerie existiert nicht"
909
 
910
+ #: ../admin/functions.php:1196
911
  #, php-format
912
  msgid "Failed to move image %1$s to %2$s"
913
  msgstr "Konnte das Bild %1$s nicht nach %2$s verschieben"
914
 
915
+ #: ../admin/functions.php:1214
916
  #, php-format
917
  msgid "Moved %1$s picture(s) to gallery : %2$s ."
918
  msgstr " %1$s Bild(er) in Galerie : %2$s verschoben."
919
 
920
+ #: ../admin/functions.php:1271
921
  #, php-format
922
  msgid "Failed to copy image %1$s to %2$s"
923
  msgstr "Konnte das Bild %1$s nicht nach %2$s kopieren"
924
 
925
+ #: ../admin/functions.php:1283
926
  #, php-format
927
  msgid "Failed to copy database row for picture %s"
928
  msgstr "Fehler bei der Datenbank-Operation für Bild %s"
929
 
930
+ #: ../admin/functions.php:1291
931
  #, php-format
932
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s) &raquo; The file already existed in the destination gallery."
933
  msgstr "Bild %1$s (%2$s) als Bild %3$s (%4$s) kopiert &raquo; Die Datei existierte bereits."
934
 
935
+ #: ../admin/functions.php:1294
936
  #, php-format
937
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s)"
938
  msgstr "Bild %1$s (%2$s) kopiert als Bild %3$s (%4$s)"
939
 
940
+ #: ../admin/functions.php:1303
941
  #, php-format
942
  msgid "Copied %1$s picture(s) to gallery: %2$s ."
943
  msgstr "Kopiere %1$s Bild(er) in die Galerie : %2$s ."
944
 
945
+ #: ../admin/functions.php:1413
946
+ msgid "The uploaded file exceeds the upload_max_filesize directive in php.ini"
947
+ msgstr "Die Datei überschreitet die erlaubte Grösse (upload_max_filesize) in der php.ini"
948
+
949
+ #: ../admin/functions.php:1416
950
+ msgid "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"
951
+ msgstr "Die Datei ist zu gross"
952
+
953
+ #: ../admin/functions.php:1419
954
+ msgid "The uploaded file was only partially uploaded"
955
+ msgstr "Die Datei wurde nur teilweise hochgeladen"
956
+
957
+ #: ../admin/functions.php:1422
958
+ msgid "No file was uploaded"
959
+ msgstr "Keinen Datei wurde geladen"
960
+
961
+ #: ../admin/functions.php:1425
962
+ msgid "Missing a temporary folder"
963
+ msgstr "Konnte temporäres Verzeichnis nicht finden"
964
+
965
+ #: ../admin/functions.php:1428
966
+ msgid "Failed to write file to disk"
967
+ msgstr "Konnte Datei nicht speichern"
968
+
969
+ #: ../admin/functions.php:1431
970
+ msgid "File upload stopped by extension"
971
+ msgstr "Upload dieser Dateierweiterung nicht erlaubt"
972
+
973
+ #: ../admin/functions.php:1434
974
+ msgid "Unknown upload error"
975
+ msgstr "Unbekannter Uploadfehler"
976
+
977
  #: ../admin/install.php:23
978
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
979
  msgstr "Tut mir leid, aber NextGEN Gallery benötigt zwingend die Rolle \"Administrator\""
982
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
983
  msgstr "NextGEN Gallery : Tabellen konnten nicht erstellt werden, überprüfe deine Datenbank"
984
 
985
+ #: ../admin/install.php:166
986
  msgid "[Show as slideshow]"
987
  msgstr "[Zeige als Diashow]"
988
 
989
+ #: ../admin/install.php:167
990
  msgid "[Show picture list]"
991
  msgstr "[Zeige Bilder-Liste]"
992
 
993
  #: ../admin/manage-galleries.php:20
994
+ #: ../admin/manage-images.php:54
995
  msgid "&laquo;"
996
  msgstr "&laquo;"
997
 
998
  #: ../admin/manage-galleries.php:21
999
+ #: ../admin/manage-images.php:55
1000
  msgid "&raquo;"
1001
  msgstr "&raquo;"
1002
 
1003
  #: ../admin/manage-galleries.php:62
1004
+ #: ../admin/manage-images.php:139
1005
  msgid "No images selected"
1006
  msgstr "Keine Bilder ausgewählt"
1007
 
1022
 
1023
  #: ../admin/manage-galleries.php:110
1024
  #: ../admin/manage-galleries.php:113
1025
+ #: ../admin/manage-images.php:186
1026
+ #: ../admin/manage-images.php:189
1027
  msgid "Search Images"
1028
  msgstr "Suche Bilder"
1029
 
1030
  #: ../admin/manage-galleries.php:125
1031
+ #: ../admin/manage-images.php:297
1032
  msgid "No action"
1033
  msgstr "Keine Aktion"
1034
 
1035
  #: ../admin/manage-galleries.php:126
1036
+ #: ../admin/manage-images.php:298
1037
+ #: ../admin/manage.php:163
1038
+ #: ../admin/manage.php:241
1039
  msgid "Set watermark"
1040
  msgstr "Wasserzeichen setzen"
1041
 
1042
  #: ../admin/manage-galleries.php:128
1043
+ #: ../admin/manage-images.php:300
1044
+ #: ../admin/manage.php:199
1045
+ #: ../admin/manage.php:277
1046
  msgid "Resize images"
1047
  msgstr "Bilder verkleinern"
1048
 
1049
  #: ../admin/manage-galleries.php:129
1050
+ #: ../admin/manage-images.php:303
1051
+ #: ../admin/manage.php:168
1052
+ #: ../admin/manage.php:261
1053
  msgid "Import metadata"
1054
  msgstr "Metadaten importieren"
1055
 
1056
+ #: ../admin/manage-galleries.php:130
1057
+ #: ../admin/manage-images.php:301
1058
+ #: ../admin/manage.php:158
1059
+ #: ../admin/manage.php:238
1060
+ msgid "Recover from backup"
1061
+ msgstr "Original wiederherstellen"
1062
+
1063
+ #: ../admin/manage-galleries.php:132
1064
+ #: ../admin/manage-images.php:312
1065
  msgid "Apply"
1066
  msgstr "Übernehmen"
1067
 
1068
+ #: ../admin/manage-galleries.php:140
1069
+ #: ../admin/manage-images.php:288
1070
  #, php-format
1071
  msgid "Displaying %s&#8211;%s of %s"
1072
  msgstr "Zeige %s&#8211;%s von %s"
1073
 
1074
+ #: ../admin/manage-galleries.php:155
1075
+ #: ../admin/manage-images.php:607
1076
  msgid "ID"
1077
  msgstr "ID"
1078
 
1079
+ #: ../admin/manage-galleries.php:157
1080
+ #: ../admin/manage-images.php:227
1081
+ #: ../admin/manage-images.php:612
1082
  msgid "Description"
1083
  msgstr "Beschreibung"
1084
 
1085
+ #: ../admin/manage-galleries.php:158
1086
+ #: ../admin/manage-images.php:247
1087
  msgid "Author"
1088
  msgstr "Autor"
1089
 
1090
+ #: ../admin/manage-galleries.php:159
1091
  msgid "Page ID"
1092
  msgstr "Seiten ID"
1093
 
1094
+ #: ../admin/manage-galleries.php:160
1095
  msgid "Quantity"
1096
  msgstr "Anzahl"
1097
 
1098
+ #: ../admin/manage-galleries.php:161
1099
  msgid "Action"
1100
  msgstr "Aktion"
1101
 
1102
+ #: ../admin/manage-galleries.php:183
1103
  msgid "Edit"
1104
  msgstr "Bearbeiten"
1105
 
1106
+ #: ../admin/manage-galleries.php:196
1107
  msgid "Delete this gallery ?"
1108
  msgstr "Diese Galerie löschen ?"
1109
 
1110
+ #: ../admin/manage-galleries.php:203
1111
+ #: ../admin/manage-images.php:464
1112
  msgid "No entries found"
1113
  msgstr "Keine Einträge gefunden"
1114
 
1115
+ #: ../admin/manage-galleries.php:247
1116
+ #: ../admin/manage-images.php:544
1117
  msgid "Resize Images to"
1118
  msgstr "Verkleiner Bilder auf"
1119
 
1120
+ #: ../admin/manage-galleries.php:251
1121
+ #: ../admin/manage-images.php:548
1122
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1123
  msgstr "Breite x Höhe (in Pixel). Das Seitenverhältnis wird berücksichtigt."
1124
 
1125
+ #: ../admin/manage-galleries.php:275
1126
+ #: ../admin/manage-images.php:572
1127
  msgid "Width x height (in pixel)"
1128
  msgstr "Breite x Höhe (in Pixel)"
1129
 
1130
+ #: ../admin/manage-galleries.php:277
1131
+ #: ../admin/manage-images.php:574
1132
  msgid "These values are maximum values "
1133
  msgstr "Diese Angaben sind maximale Angaben."
1134
 
1135
+ #: ../admin/manage-galleries.php:280
1136
+ #: ../admin/manage-images.php:577
1137
  msgid "Set fix dimension"
1138
  msgstr "Setze feste Größe"
1139
 
1140
+ #: ../admin/manage-galleries.php:282
1141
+ #: ../admin/manage-images.php:579
1142
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1143
  msgstr "Ignoriere Bildseitenverhältnis"
1144
 
1150
  msgid "Sorry, you have no access here"
1151
  msgstr "Sorry, du hast nicht genügend Rechte"
1152
 
1153
+ #: ../admin/manage-images.php:167
1154
  #, php-format
1155
  msgid ""
1156
  "You are about to start the bulk edit for %s images \n"
1161
  " \n"
1162
  " 'Abbrechen' um zu stoppen, 'OK' um die Bearbeitung durchzuführen."
1163
 
1164
+ #: ../admin/manage-images.php:183
1165
  #, php-format
1166
  msgid "Search results for &#8220;%s&#8221;"
1167
  msgstr "Suchergebinsse für &#8220;%s&#8221;"
1168
 
1169
+ #: ../admin/manage-images.php:212
 
1170
  msgid "Gallery settings"
1171
  msgstr "Galerie Einstellungen"
1172
 
1173
+ #: ../admin/manage-images.php:212
1174
  msgid "Click here for more settings"
1175
  msgstr "Hier klicken für weitere Einstellungen"
1176
 
1177
+ #: ../admin/manage-images.php:229
1178
  msgid "Preview image"
1179
  msgstr "Vorschau-Bild"
1180
 
1181
+ #: ../admin/manage-images.php:232
1182
  msgid "No Picture"
1183
  msgstr "Kein Bild"
1184
 
1185
+ #: ../admin/manage-images.php:245
1186
  msgid "Path"
1187
  msgstr "Pfad"
1188
 
1189
+ #: ../admin/manage-images.php:262
1190
  msgid "Create new page"
1191
  msgstr "Neue Seite erstellen"
1192
 
1193
+ #: ../admin/manage-images.php:265
1194
  msgid "Main page (No parent)"
1195
  msgstr "Haupseite (keine Unterseite)"
1196
 
1197
+ #: ../admin/manage-images.php:268
1198
  msgid "Add page"
1199
  msgstr "Seite hinzufügen"
1200
 
1201
+ #: ../admin/manage-images.php:275
1202
  msgid "Scan Folder for new images"
1203
  msgstr "Überprüfe Verzeichnis nach neuen Bildern"
1204
 
1205
+ #: ../admin/manage-images.php:276
1206
+ #: ../admin/manage-images.php:318
1207
+ #: ../admin/manage-images.php:470
 
 
 
 
 
 
 
1208
  msgid "Save Changes"
1209
  msgstr "Änderungen speichern"
1210
 
1211
+ #: ../admin/manage-images.php:302
1212
  msgid "Delete images"
1213
  msgstr "Bilder löschen"
1214
 
1215
+ #: ../admin/manage-images.php:304
1216
  msgid "Rotate images clockwise"
1217
  msgstr "Rechts drehen"
1218
 
1219
+ #: ../admin/manage-images.php:305
1220
  msgid "Rotate images counter-clockwise"
1221
  msgstr "Links drehen"
1222
 
1223
+ #: ../admin/manage-images.php:306
1224
  msgid "Copy to..."
1225
  msgstr "Kopiere nach..."
1226
 
1227
+ #: ../admin/manage-images.php:307
1228
  msgid "Move to..."
1229
  msgstr "Verschiebe nach..."
1230
 
1231
+ #: ../admin/manage-images.php:308
1232
  msgid "Add tags"
1233
  msgstr "Stichwörter hinzufügen"
1234
 
1235
+ #: ../admin/manage-images.php:309
1236
  msgid "Delete tags"
1237
  msgstr "Stichwörter löschen"
1238
 
1239
+ #: ../admin/manage-images.php:310
1240
  msgid "Overwrite tags"
1241
  msgstr "Stichwörter überschreiben"
1242
 
1243
+ #: ../admin/manage-images.php:315
1244
  msgid "Sort gallery"
1245
  msgstr "Sortiere Bilder"
1246
 
1247
+ #: ../admin/manage-images.php:390
1248
  msgid "pixel"
1249
  msgstr "pixel"
1250
 
1251
+ #: ../admin/manage-images.php:398
1252
  #, php-format
1253
  msgid "View \"%s\""
1254
  msgstr "Anzeigen \"%s\""
1255
 
1256
+ #: ../admin/manage-images.php:398
1257
  msgid "View"
1258
  msgstr "Ansehen"
1259
 
1260
+ #: ../admin/manage-images.php:399
1261
  msgid "Show Meta data"
1262
  msgstr "Zeige Metadaten"
1263
 
1264
+ #: ../admin/manage-images.php:399
1265
  msgid "Meta"
1266
  msgstr "Meta"
1267
 
1268
+ #: ../admin/manage-images.php:400
1269
  msgid "Customize thumbnail"
1270
  msgstr "Thumbnails anpassen"
1271
 
1272
+ #: ../admin/manage-images.php:400
1273
  msgid "Edit thumb"
1274
  msgstr "Thumbnail ändern"
1275
 
1276
+ #: ../admin/manage-images.php:401
1277
  msgid "Rotate"
1278
  msgstr "Drehen"
1279
 
1280
+ #: ../admin/manage-images.php:403
1281
+ msgid "Recover"
1282
+ msgstr "Rücksetzen"
1283
+
1284
+ #: ../admin/manage-images.php:403
1285
+ #, php-format
1286
+ msgid "Recover \"%s\" ?"
1287
+ msgstr " \"%s\" wiederherstellen ?"
1288
+
1289
+ #: ../admin/manage-images.php:404
1290
  #, php-format
1291
+ msgid "Delete \"%s\" ?"
1292
+ msgstr "Lösche \"%s\" ?"
1293
 
1294
+ #: ../admin/manage-images.php:484
1295
  msgid "Enter the tags"
1296
  msgstr "Stichwörter angeben"
1297
 
1298
+ #: ../admin/manage-images.php:508
1299
  msgid "Select the destination gallery:"
1300
  msgstr "Galerie auswählen:"
1301
 
1302
+ #: ../admin/manage-images.php:608
 
1303
  msgid "Thumbnail"
1304
  msgstr "Thumbnail"
1305
 
1306
+ #: ../admin/manage-images.php:610
1307
  #: ../admin/manage-sort.php:74
1308
  msgid "Filename"
1309
  msgstr "Dateiname"
1310
 
1311
+ #: ../admin/manage-images.php:612
1312
  msgid "Alt &amp; Title Text"
1313
  msgstr "Alt &amp; Titel Text"
1314
 
1315
+ #: ../admin/manage-images.php:613
1316
  msgid "Tags (comma separated list)"
1317
  msgstr "Stichwörter (Tags)"
1318
 
1319
+ #: ../admin/manage-images.php:615
1320
  msgid "exclude"
1321
  msgstr "ausschließen"
1322
 
1345
  msgstr "Unsortiert"
1346
 
1347
  #: ../admin/manage-sort.php:73
 
1348
  msgid "Image ID"
1349
  msgstr "Bilder ID"
1350
 
1351
  #: ../admin/manage-sort.php:75
 
1352
  msgid "Alt/Title text"
1353
  msgstr "Alt / Titel Text"
1354
 
1357
  msgstr "Datum/Zeit"
1358
 
1359
  #: ../admin/manage-sort.php:77
 
1360
  msgid "Ascending"
1361
  msgstr "Aufsteigend"
1362
 
1363
  #: ../admin/manage-sort.php:78
 
1364
  msgid "Descending"
1365
  msgstr "Absteigend"
1366
 
1367
+ #: ../admin/manage.php:86
1368
+ #: ../admin/manage.php:107
1369
  msgid "deleted successfully"
1370
  msgstr "erfolgreich gelöscht"
1371
 
1372
+ #: ../admin/manage.php:107
1373
  msgid "Picture"
1374
  msgstr "Bild"
1375
 
1376
+ #: ../admin/manage.php:122
1377
+ #: ../admin/manage.php:131
1378
  msgid "Operation successful. Please clear your browser cache."
1379
+ msgstr "Thumbnails erfolgreich erstellt. Bitte Browser-Cache löschen."
1380
 
1381
+ #: ../admin/manage.php:232
1382
+ #: ../admin/manage.php:235
1383
  msgid "Rotate images"
1384
  msgstr "Bild drehen"
1385
 
1386
+ #: ../admin/manage.php:257
1387
  msgid "Pictures deleted successfully "
1388
  msgstr "Bilder erfolgreich gelöscht"
1389
 
1390
+ #: ../admin/manage.php:353
1391
  msgid "Tags changed"
1392
  msgstr "Stichwörter geändert"
1393
 
1394
+ #: ../admin/manage.php:386
1395
  msgid "Update successful"
1396
  msgstr "Aktualisierung erfolgreich"
1397
 
1398
+ #: ../admin/manage.php:421
1399
  msgid "New gallery page ID"
1400
  msgstr "Neue Galerie Seiten ID"
1401
 
1402
+ #: ../admin/manage.php:421
1403
  msgid "created"
1404
  msgstr "erstellt"
1405
 
1406
+ #: ../admin/media-upload.php:165
1407
+ #: ../admin/tinymce/window.php:43
1408
  msgid "No gallery"
1409
  msgstr "Keine Galerie"
1410
 
1411
+ #: ../admin/media-upload.php:177
1412
  msgid "Select &#187;"
1413
  msgstr "Wähle &#187;"
1414
 
1415
+ #: ../admin/media-upload.php:208
1416
  msgid "Show"
1417
  msgstr "Zeige"
1418
 
1419
+ #: ../admin/media-upload.php:209
1420
  msgid "Hide"
1421
  msgstr "Verstecke"
1422
 
1423
+ #: ../admin/media-upload.php:214
1424
  msgid "Image ID:"
1425
  msgstr "Bild ID:"
1426
 
1427
+ #: ../admin/media-upload.php:273
1428
+ msgid "Save all changes"
1429
+ msgstr "Änderungen speichern"
 
 
 
 
 
 
 
 
 
1430
 
1431
+ #: ../admin/overview.php:14
1432
+ msgid "NextGEN Gallery Overview"
1433
+ msgstr "NextGEN Gallery Übersicht"
1434
 
1435
+ #: ../admin/overview.php:86
1436
+ msgid "Welcome to NextGEN Gallery !"
1437
+ msgstr "Willkomen bei NextGEN Gallery"
1438
 
1439
+ #: ../admin/overview.php:88
1440
+ msgid "Translation"
1441
+ msgstr "Übersetzung"
 
1442
 
1443
+ #: ../admin/overview.php:89
1444
+ msgid "Latest News"
1445
+ msgstr "Letzte Informationen"
1446
 
1447
+ #: ../admin/overview.php:90
1448
+ msgid "Recent donators"
1449
+ msgstr "Neusten Spender"
1450
 
1451
+ #: ../admin/overview.php:91
1452
+ msgid "Server Settings"
1453
+ msgstr "Server- Einstellungen"
1454
 
1455
+ #: ../admin/overview.php:92
1456
+ msgid "Related plugins"
1457
+ msgstr "Verwandte Plugins"
1458
 
1459
+ #: ../admin/overview.php:93
1460
+ msgid "Graphic Library"
1461
+ msgstr "Grafik Bibliothek"
1462
 
1463
+ #: ../admin/overview.php:148
1464
+ #: ../admin/overview.php:197
1465
+ #: ../admin/overview.php:346
1466
+ #: ../admin/overview.php:658
1467
+ msgid "Loading&#8230;"
1468
+ msgstr "Lade&#8230;"
1469
+
1470
+ #: ../admin/overview.php:148
1471
+ #: ../admin/overview.php:197
1472
+ #: ../admin/overview.php:346
1473
+ #: ../admin/overview.php:658
1474
+ msgid "This widget requires JavaScript."
1475
+ msgstr "Dieses Widget braucht JavaScript."
1476
+
1477
+ #: ../admin/overview.php:161
1478
  msgid "Thanks to all donators..."
1479
  msgstr "Danke an alle Spender..."
1480
 
1481
+ #: ../admin/overview.php:183
1482
  msgid "View all"
1483
  msgstr "Alle ansehen"
1484
 
1485
+ #: ../admin/overview.php:215
1486
+ msgid "Untitled"
1487
+ msgstr "Kein Titel"
1488
+
1489
+ #: ../admin/overview.php:251
1490
  #, php-format
1491
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1492
  msgstr "Der Newsfeed kann nicht geladen werden. Schaue auf die <a href=\"%s\">Hauptseite</a> um Updates mitzubekommen."
1493
 
1494
+ #: ../admin/overview.php:272
1495
  msgid "At a Glance"
1496
  msgstr "Übersicht"
1497
 
1498
+ #: ../admin/overview.php:298
1499
  msgid "Upload pictures"
1500
  msgstr "Bilder hochladen"
1501
 
1502
+ #: ../admin/overview.php:299
1503
  msgid "Here you can control your images, galleries and albums."
1504
  msgstr "Hier kannst Du die Bilder, Galerien und Alben verwalten."
1505
 
1506
+ #: ../admin/overview.php:303
1507
  msgid "Gallery Administrator"
1508
  msgstr "Galerie-Administrator"
1509
 
1510
+ #: ../admin/overview.php:303
1511
  msgid "Gallery Editor"
1512
  msgstr "Galerie-Mitarbeiter"
1513
 
1514
+ #: ../admin/overview.php:304
1515
  #, php-format
1516
  msgid "You currently have %s rights."
1517
  msgstr "Du hast derzeit %s Rechte."
1518
 
1519
+ #: ../admin/overview.php:332
1520
+ msgid "Translation file successful updated. Please reload page."
1521
+ msgstr "Überstetzungsdatei aktualisiert. Bitte Seite neu laden."
 
 
 
 
 
 
 
 
1522
 
1523
+ #: ../admin/overview.php:334
1524
+ msgid "Reload page"
1525
+ msgstr "Seite neu laden"
1526
 
1527
+ #: ../admin/overview.php:339
1528
+ msgid "Translation file couldn't be updated"
1529
+ msgstr "Übersetzung konnte nicht aktualisiert werden"
1530
 
1531
+ #: ../admin/overview.php:376
1532
+ msgid "Download"
1533
+ msgstr "Jetzt updaten"
1534
 
1535
+ #: ../admin/overview.php:405
1536
  msgid "No GD support"
1537
  msgstr "Keine GD Unterstützung"
1538
 
1539
+ #: ../admin/overview.php:417
1540
+ #: ../admin/overview.php:463
1541
+ #: ../admin/overview.php:466
1542
+ #: ../admin/overview.php:469
1543
  msgid "Yes"
1544
  msgstr "Ja"
1545
 
1546
+ #: ../admin/overview.php:419
1547
+ #: ../admin/overview.php:464
1548
+ #: ../admin/overview.php:467
1549
+ #: ../admin/overview.php:470
1550
  msgid "No"
1551
  msgstr "Nein"
1552
 
1553
+ #: ../admin/overview.php:437
1554
  msgid "Not set"
1555
  msgstr "Nicht gesetzt"
1556
 
1557
+ #: ../admin/overview.php:439
1558
+ #: ../admin/overview.php:442
1559
  msgid "On"
1560
  msgstr "An"
1561
 
1562
+ #: ../admin/overview.php:440
1563
+ #: ../admin/overview.php:443
1564
  msgid "Off"
1565
  msgstr "Aus"
1566
 
1567
+ #: ../admin/overview.php:446
1568
+ #: ../admin/overview.php:449
1569
+ #: ../admin/overview.php:452
1570
+ #: ../admin/overview.php:455
1571
+ #: ../admin/overview.php:458
1572
+ #: ../admin/overview.php:461
1573
  msgid "N/A"
1574
  msgstr "N/A"
1575
 
1576
+ #: ../admin/overview.php:460
1577
  msgid " MByte"
1578
  msgstr " MByte"
1579
 
1580
+ #: ../admin/overview.php:473
1581
  msgid "Operating System"
1582
  msgstr "Betriebssystem"
1583
 
1584
+ #: ../admin/overview.php:474
1585
  msgid "Server"
1586
  msgstr "Server"
1587
 
1588
+ #: ../admin/overview.php:475
1589
  msgid "Memory usage"
1590
  msgstr "Speicherverbrauch"
1591
 
1592
+ #: ../admin/overview.php:476
1593
  msgid "MYSQL Version"
1594
  msgstr "MySQL Version"
1595
 
1596
+ #: ../admin/overview.php:477
1597
  msgid "SQL Mode"
1598
  msgstr "SQL Modus"
1599
 
1600
+ #: ../admin/overview.php:478
1601
  msgid "PHP Version"
1602
  msgstr "PHP Version"
1603
 
1604
+ #: ../admin/overview.php:479
1605
  msgid "PHP Safe Mode"
1606
  msgstr "PHP Safe Mode"
1607
 
1608
+ #: ../admin/overview.php:480
1609
  msgid "PHP Allow URL fopen"
1610
  msgstr "PHP Allow URL fopen"
1611
 
1612
+ #: ../admin/overview.php:481
1613
  msgid "PHP Memory Limit"
1614
  msgstr "PHP Memory Limit"
1615
 
1616
+ #: ../admin/overview.php:482
1617
  msgid "PHP Max Upload Size"
1618
  msgstr "PHP Max Upload Größe"
1619
 
1620
+ #: ../admin/overview.php:483
1621
  msgid "PHP Max Post Size"
1622
  msgstr "PHP Max Post Größe"
1623
 
1624
+ #: ../admin/overview.php:484
1625
+ msgid "PCRE Backtracking Limit"
1626
+ msgstr "PCRE Backtracking Limit"
1627
 
1628
+ #: ../admin/overview.php:485
1629
  msgid "PHP Max Script Execute Time"
1630
  msgstr "PHP Max Script Execute Time"
1631
 
1632
+ #: ../admin/overview.php:486
1633
  msgid "PHP Exif support"
1634
  msgstr "PHP Exif Modul"
1635
 
1636
+ #: ../admin/overview.php:487
1637
  msgid "PHP IPTC support"
1638
  msgstr "PHP IPTC Modul"
1639
 
1640
+ #: ../admin/overview.php:488
1641
  msgid "PHP XML support"
1642
  msgstr "PHP XML Modul"
1643
 
1644
+ #: ../admin/overview.php:500
1645
  msgid "NextGEN Gallery contains some functions which are only available under PHP 5.2. You are using the old PHP 4 version, upgrade now! It's no longer supported by the PHP group. Many shared hosting providers offer both PHP 4 and PHP 5, running simultaneously. Ask your provider if they can do this."
1646
  msgstr "NextGEN Gallery enthält einige Funktionen die nur unter PHP 5.2 verfügbar sind. Du nutzt immer noch die alte PHP 4 Version. Bitte aktualisiere so bald wie möglich diese Version, sie wird nicht mehr gepflegt und weiterentwicklelt. Die meisten Hoster bieten bereits PHP5 an. Bitte kontaktiere deinen Provider und frag kurz nach ob sie ein Update durchführen können."
1647
 
1648
+ #: ../admin/overview.php:559
1649
  msgid "Storage Space"
1650
  msgstr "Speicherplatz"
1651
 
1652
+ #: ../admin/overview.php:562
1653
  msgid "Upload Space Used:"
1654
  msgstr "Verbrauchter Uploadspeicher:"
1655
 
1656
+ #: ../admin/overview.php:568
1657
  msgid "Upload Space Remaining:"
1658
  msgstr "Verbleibender Speicher:"
1659
 
1660
+ #: ../admin/overview.php:713
1661
  msgid "Install"
1662
  msgstr "Installieren"
1663
 
1741
  msgid "Flip horizontally"
1742
  msgstr "Horizontal spiegeln"
1743
 
1744
+ #: ../admin/settings.php:91
1745
  msgid "Cache cleared"
1746
  msgstr "Cache löschen"
1747
 
1748
+ #: ../admin/settings.php:201
1749
+ #: ../admin/settings.php:220
1750
  msgid "General Options"
1751
  msgstr "Allg. Optionen"
1752
 
1753
+ #: ../admin/settings.php:202
1754
+ #: ../admin/settings.php:406
1755
  msgid "Thumbnails"
1756
  msgstr "Thumbnails"
1757
 
1758
+ #: ../admin/settings.php:203
1759
  msgid "Images"
1760
  msgstr "Bilder"
1761
 
1762
+ #: ../admin/settings.php:205
1763
+ #: ../admin/settings.php:458
1764
  msgid "Effects"
1765
  msgstr "Effekte"
1766
 
1767
+ #: ../admin/settings.php:206
1768
+ #: ../admin/settings.php:500
1769
+ #: ../admin/tinymce/window.php:119
1770
  msgid "Watermark"
1771
  msgstr "Wasserzeichen"
1772
 
1773
+ #: ../admin/settings.php:207
1774
+ #: ../admin/settings.php:407
1775
+ #: ../admin/settings.php:607
1776
+ #: ../admin/tinymce/window.php:58
1777
  msgid "Slideshow"
1778
  msgstr "Slideshow"
1779
 
1780
+ #: ../admin/settings.php:226
1781
  #: ../admin/wpmu.php:47
1782
  msgid "Gallery path"
1783
  msgstr "Galerie-Pfad"
1784
 
1785
+ #: ../admin/settings.php:228
1786
  msgid "This is the default path for all galleries"
1787
  msgstr "Dies ist der Standard-Pfad für alle Galerien"
1788
 
1789
+ #: ../admin/settings.php:231
1790
  msgid "Delete image files"
1791
  msgstr "Lösche Bilddateien"
1792
 
1793
+ #: ../admin/settings.php:233
1794
  msgid "Delete files, when removing a gallery in the database"
1795
  msgstr "Löscht auch die Dateien, falls die Galerie aus der Datenbank entfernt wird"
1796
 
1797
+ #: ../admin/settings.php:236
1798
  msgid "Activate permalinks"
1799
  msgstr "Aktiviere Permalinks"
1800
 
1801
+ #: ../admin/settings.php:238
1802
  msgid "When you activate this option, you need to update your permalink structure one time."
1803
  msgstr "Wenn du diese Option aktivierst, muss du einmal die Permalink Struktur aktualisieren."
1804
 
1805
+ #: ../admin/settings.php:241
1806
  msgid "Select graphic library"
1807
  msgstr "Wähle Grafik-Bibliothek"
1808
 
1809
+ #: ../admin/settings.php:242
1810
  msgid "GD Library"
1811
  msgstr "GD Bibliothek"
1812
 
1813
+ #: ../admin/settings.php:243
1814
  msgid "ImageMagick (Experimental). Path to the library :"
1815
  msgstr "ImageMagick (Experimental). Pfad zur Bibliothek :"
1816
 
1817
+ #: ../admin/settings.php:248
1818
  msgid "Activate Media RSS feed"
1819
  msgstr "Aktiviere Media RSS Feed"
1820
 
1821
+ #: ../admin/settings.php:250
1822
  msgid "A RSS feed will be added to you blog header. Useful for CoolIris/PicLens"
1823
  msgstr "Ein Bilder-RSS Feed wird zum Blog hinzugefügt"
1824
 
1825
+ #: ../admin/settings.php:253
1826
  msgid "Activate PicLens/CoolIris support"
1827
  msgstr "Aktiviere PicLens/CoolIris"
1828
 
1829
+ #: ../admin/settings.php:255
1830
  msgid "When you activate this option, some javascript is added to your site footer. Make sure that wp_footer is called in your theme."
1831
  msgstr "Dieser Effekt fügt ein neues Javascript zu deinem Theme hinzu. Beachte das wp_footer() in deinen Vorlagen aufgerufen wird."
1832
 
1833
+ #: ../admin/settings.php:258
1834
  msgid "Tags / Categories"
1835
  msgstr "Stichwörter / Kategorien"
1836
 
1837
+ #: ../admin/settings.php:261
1838
  msgid "Activate related images"
1839
  msgstr "Verwandte Bilder anzeigen"
1840
 
1841
+ #: ../admin/settings.php:263
1842
  msgid "This option will append related images to every post"
1843
  msgstr "Diese Option hängt verwandte Bilder an jeden Beitrag"
1844
 
1845
+ #: ../admin/settings.php:267
1846
  msgid "Match with"
1847
  msgstr "Vergleiche mit"
1848
 
1849
+ #: ../admin/settings.php:268
1850
  msgid "Categories"
1851
  msgstr "Kategorien"
1852
 
1853
+ #: ../admin/settings.php:273
1854
  msgid "Max. number of images"
1855
  msgstr "Max. Anzahl der Bilder"
1856
 
1857
+ #: ../admin/settings.php:275
1858
  msgid "0 will show all images"
1859
  msgstr "0 zeige alle verwandten Bilder"
1860
 
1861
+ #: ../admin/settings.php:279
1862
+ #: ../admin/settings.php:310
1863
+ #: ../admin/settings.php:363
1864
+ #: ../admin/settings.php:448
1865
+ #: ../admin/settings.php:483
1866
+ #: ../admin/settings.php:721
1867
  msgid "More settings"
1868
  msgstr "Mehr Einstellungen"
1869
 
1870
+ #: ../admin/settings.php:289
1871
  msgid "Thumbnail settings"
1872
  msgstr "Thumbnail Einstellungen"
1873
 
1874
+ #: ../admin/settings.php:293
1875
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1876
  msgstr "Bitte beachten : Änderungen der Einstellungen werden erst übernommen, wenn Du neue Thumbnails unter -> \"Gallery verwalten\" erstellst"
1877
 
1878
+ #: ../admin/settings.php:306
1879
  msgid "Thumbnail quality"
1880
  msgstr "Thumbnail Qualität"
1881
 
1882
+ #: ../admin/settings.php:320
1883
  msgid "Image settings"
1884
  msgstr "Bild Einstellungen"
1885
 
1886
+ #: ../admin/settings.php:326
1887
  msgid "Resize Images"
1888
  msgstr "Bilder verkleinern"
1889
 
1890
+ #: ../admin/settings.php:332
1891
  msgid "Image quality"
1892
  msgstr "Bild Qualität"
1893
 
1894
+ #: ../admin/settings.php:337
1895
+ msgid "Backup original images"
1896
+ msgstr "Backup von Original Bilder "
1897
+
1898
+ #: ../admin/settings.php:340
1899
+ msgid "Creates a backup for inserted images"
1900
+ msgstr "Backup der Bilder anlegen"
1901
+
1902
+ #: ../admin/settings.php:343
1903
+ msgid "Automatically resize"
1904
+ msgstr "Grösse automatisch anpassen"
1905
+
1906
+ #: ../admin/settings.php:346
1907
+ msgid "Automatically resize images on upload."
1908
+ msgstr "Passt die Grösse automatsich beim Upload an"
1909
+
1910
+ #: ../admin/settings.php:349
1911
  msgid "Single picture"
1912
  msgstr "Einzelbilder"
1913
 
1914
+ #: ../admin/settings.php:352
1915
  msgid "Cache single pictures"
1916
  msgstr "Nutze Cache für Einzelbidler"
1917
 
1918
+ #: ../admin/settings.php:355
1919
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1920
  msgstr "Erstellt ein Cache-Bild für jedes Einzelbild (singlepic). Reduziert die CPU Belastung."
1921
 
1922
+ #: ../admin/settings.php:358
1923
  msgid "Clear cache folder"
1924
  msgstr "Lösche Cache Verzeichnis"
1925
 
1926
+ #: ../admin/settings.php:360
1927
  msgid "Proceed now"
1928
  msgstr "Jetzt durchführen"
1929
 
1930
+ #: ../admin/settings.php:380
1931
  msgid "Deactivate gallery page link"
1932
  msgstr "Keine Seitenverzweigung"
1933
 
1934
+ #: ../admin/settings.php:382
1935
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1936
  msgstr "Ein Album benötigt dann keinen Link zur Seite. Die Galerie wird direkt angezeigt."
1937
 
1938
+ #: ../admin/settings.php:386
1939
  msgid "Number of images per page"
1940
  msgstr "Anzahl der Bilder pro Seite"
1941
 
1942
+ #: ../admin/settings.php:388
1943
  msgid "0 will disable pagination, all images on one page"
1944
  msgstr "0 schaltet Blätterfunktion ab ( = alle Bilder auf einer Seite )"
1945
 
1946
+ #: ../admin/settings.php:392
1947
  msgid "Number of columns"
1948
  msgstr "Anzahl der Spalten"
1949
 
1950
+ #: ../admin/settings.php:394
1951
  msgid "0 will display as much as possible based on the width of your theme. Setting normally only required for captions below the images"
1952
  msgstr "Mit \"0\" werden soviele Bilder wie möglich in einer Reihe dargestellt. Die Einstellung ist normalerweise nur für Beschriftungen unterhalb der Bilder sinnvoll."
1953
 
1954
+ #: ../admin/settings.php:398
1955
  msgid "Integrate slideshow"
1956
  msgstr "Slideshow verwenden"
1957
 
1958
+ #: ../admin/settings.php:405
1959
  msgid "Show first"
1960
  msgstr "Zeige als Erstes"
1961
 
1962
+ #: ../admin/settings.php:411
1963
  msgid "Show ImageBrowser"
1964
  msgstr "Zeige Bilder Browser"
1965
 
1966
+ #: ../admin/settings.php:413
1967
  msgid "The gallery will open the ImageBrowser instead the effect."
1968
  msgstr "Es wird der Bilder Browser angezeigt (Kein JavaScript Effekt)"
1969
 
1970
+ #: ../admin/settings.php:417
1971
  msgid "Add hidden images"
1972
  msgstr "Verstecke Bilder hinzufügen"
1973
 
1974
+ #: ../admin/settings.php:419
1975
  msgid "If pagination is used, this option will still show all images in the modal window (Thickbox, Lightbox etc.). Note : This increase the page load"
1976
  msgstr "Wenn du die Blätterfunktion nutzt, dann kannst du mit dieser Option alle Bilder im Modal-Fenster (Thickbox,Lightbox etc.) anzeigen. Berücksichtige das die Ladezeit der Seite erhöht wird."
1977
 
1978
+ #: ../admin/settings.php:423
1979
  msgid "Enable AJAX pagination"
1980
  msgstr "Aktiviere AJAX Navigation"
1981
 
1982
+ #: ../admin/settings.php:425
1983
  msgid "Browse images without reload the page. Note : Work only in combination with Shutter effect"
1984
  msgstr "Ermöglicht das Blättern zwischen den Bildern ohne de Seite neuzuladen. Hinweis : Funktioniert nur mit dem Shutter Effekt."
1985
 
1986
+ #: ../admin/settings.php:429
1987
  msgid "Sort options"
1988
  msgstr "Sortierung"
1989
 
1990
+ #: ../admin/settings.php:432
1991
  msgid "Sort thumbnails"
1992
  msgstr "Thumbnails sortieren"
1993
 
1994
+ #: ../admin/settings.php:434
1995
  msgid "Custom order"
1996
  msgstr "Benutzerdefiniert"
1997
 
1998
+ #: ../admin/settings.php:436
1999
  msgid "File name"
2000
  msgstr "Dateiname"
2001
 
2002
+ #: ../admin/settings.php:437
2003
  msgid "Alt / Title text"
2004
  msgstr "Alt / Titel Text"
2005
 
2006
+ #: ../admin/settings.php:438
2007
  msgid "Date / Time"
2008
  msgstr "Datum/Zeit"
2009
 
2010
+ #: ../admin/settings.php:442
2011
  msgid "Sort direction"
2012
  msgstr "Sortierreihenfolge"
2013
 
2014
+ #: ../admin/settings.php:462
2015
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Shutter and Thickbox effect will automatic added to your theme."
2016
  msgstr "Hier kannst Du den Effekt für die Thumbnails auswählen. NextGEN Galerie wird den benötigten HTML Code verwenden. Bitte beachte, das nur Shutter und der Thickbox Effekt automatisch in Dein Theme von Wordpress integriert wird. Alle anderen Effekte mußt Du selbst in die header.php eintragen (JS)."
2017
 
2018
+ #: ../admin/settings.php:463
2019
  msgid "With the placeholder"
2020
  msgstr "Mit Platzhalter"
2021
 
2022
+ #: ../admin/settings.php:463
2023
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
2024
  msgstr "Du kannst eine Navigation durch die Bilder aktivieren (hängt vom Effekt ab). Ändere nur die Codezeile falls Du einen anderen Effekt für die Thumbnails verwendest oder einfach weißt, was Du tust."
2025
 
2026
+ #: ../admin/settings.php:466
2027
  msgid "JavaScript Thumbnail effect"
2028
  msgstr "JavaScript Thumbnail Effekt"
2029
 
2030
+ #: ../admin/settings.php:469
2031
+ msgid "None"
2032
+ msgstr "Keiner"
2033
+
2034
+ #: ../admin/settings.php:470
2035
  msgid "Thickbox"
2036
  msgstr "Thickbox"
2037
 
2038
+ #: ../admin/settings.php:471
2039
  msgid "Lightbox"
2040
  msgstr "Lightbox"
2041
 
2042
+ #: ../admin/settings.php:472
2043
  msgid "Highslide"
2044
  msgstr "Highslide"
2045
 
2046
+ #: ../admin/settings.php:473
2047
  msgid "Shutter"
2048
  msgstr "Shutter"
2049
 
2050
+ #: ../admin/settings.php:474
2051
  msgid "Custom"
2052
  msgstr "Eigener"
2053
 
2054
+ #: ../admin/settings.php:479
2055
  msgid "Link Code line"
2056
  msgstr "Link Code Zeile"
2057
 
2058
+ #: ../admin/settings.php:501
2059
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
2060
  msgstr "Bitte beachten : Das Wasserzeichen kann nur unter der Galerieverwaltung gesetzt werden. "
2061
 
2062
+ #: ../admin/settings.php:506
2063
  msgid "Preview"
2064
  msgstr "Vorschau"
2065
 
2066
+ #: ../admin/settings.php:508
2067
+ #: ../admin/settings.php:513
2068
  msgid "Position"
2069
  msgstr "Position"
2070
 
2071
+ #: ../admin/settings.php:533
2072
  msgid "Offset"
2073
  msgstr "Abstand"
2074
 
2075
+ #: ../admin/settings.php:549
2076
  msgid "Use image as watermark"
2077
  msgstr "Benutze das Bild als Wasserzeichen"
2078
 
2079
+ #: ../admin/settings.php:552
2080
  msgid "URL to file"
2081
  msgstr "URL zur Datei"
2082
 
2083
+ #: ../admin/settings.php:554
2084
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
2085
  msgstr "Der Dateizugriff von URLs ist auf diesem Server deaktiviert (allow_url_fopen)"
2086
 
2087
+ #: ../admin/settings.php:557
2088
  msgid "Use text as watermark"
2089
  msgstr "Benutze Text als Wasserzeichen"
2090
 
2091
+ #: ../admin/settings.php:560
2092
  msgid "Font"
2093
  msgstr "Schriftart"
2094
 
2095
+ #: ../admin/settings.php:569
2096
  msgid "This function will not work, cause you need the FreeType library"
2097
  msgstr "Diese Funktion benötigt die FreeType Bibliothek"
2098
 
2099
+ #: ../admin/settings.php:571
2100
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
2101
  msgstr "Du kannst mehr Schriftarten in das Verzeichniss <strong>nggallery/fonts</strong> hochladen."
2102
 
2103
+ #: ../admin/settings.php:576
2104
+ msgid "Size"
2105
+ msgstr "Größe"
2106
+
2107
+ #: ../admin/settings.php:580
2108
  msgid "Color"
2109
  msgstr "Farbe"
2110
 
2111
+ #: ../admin/settings.php:582
2112
  msgid "(hex w/o #)"
2113
  msgstr "(hex w/o #)"
2114
 
2115
+ #: ../admin/settings.php:585
2116
  msgid "Text"
2117
  msgstr "Text"
2118
 
2119
+ #: ../admin/settings.php:589
2120
  msgid "Opaque"
2121
  msgstr "Transparenz"
2122
 
2123
+ #: ../admin/settings.php:612
2124
  msgid "The path to imagerotator.swf is not defined, the slideshow will not work."
2125
  msgstr "Der Pfad zu imagerotator.swf ist nicht gesetzt, die Flash-Diaschau kann dann nicht angezeigt werden"
2126
 
2127
+ #: ../admin/settings.php:613
2128
  msgid "If you would like to use the JW Image Rotatator, please download the player <a href=\"http://www.longtailvideo.com/players/jw-image-rotator/\" target=\"_blank\" >here</a> and upload it to your Upload folder (Default is wp-content/uploads)."
2129
  msgstr "Wenn du den JW Image Rotator (Slideshow) nutzen möchtest, lade dir die aktuelle Version <a href=\"http://www.longtailvideo.com/players/jw-image-rotator/\" target=\"_blank\" >hier</a> herunter und übertrage sie dann in dein WordPress Upload Verzeichnis (Normalerweise wp-content/uploads),"
2130
 
2131
+ #: ../admin/settings.php:618
2132
  msgid "The settings are used in the JW Image Rotator Version"
2133
  msgstr "Die Einstellungen werden im JW Image Rotator benutzt , in der Version"
2134
 
2135
+ #: ../admin/settings.php:619
2136
  msgid "See more information for the Flash Player on the web page"
2137
  msgstr "Weitere Informationen auf der Flash Player Homepage"
2138
 
2139
+ #: ../admin/settings.php:623
2140
  msgid "Path to the Imagerotator (URL)"
2141
  msgstr "Pfad zum JW Image Rotator (URL)"
2142
 
2143
+ #: ../admin/settings.php:626
2144
  msgid "Search now"
2145
  msgstr "Suche jetzt"
2146
 
2147
+ #: ../admin/settings.php:627
2148
  msgid "Press the button to search automatic for the imagerotator, if you uploaded it to wp-content/uploads or a subfolder"
2149
  msgstr "Drücke 'Suche jetzt' um automatisch den Pfad zum Image Rotator zu ermitteln, sofern du den Player in wp-content/uploads oder ein Unterverzeichnis hochgeladen hast."
2150
 
2151
+ #: ../admin/settings.php:631
2152
  msgid "Default size (W x H)"
2153
  msgstr "Standard Größe (B x H)"
2154
 
2155
+ #: ../admin/settings.php:636
2156
  msgid "Shuffle mode"
2157
  msgstr "Shuffle Modus"
2158
 
2159
+ #: ../admin/settings.php:640
2160
  msgid "Show next image on click"
2161
  msgstr "Zeige nächstes Bild bei Klick"
2162
 
2163
+ #: ../admin/settings.php:644
2164
  msgid "Show navigation bar"
2165
  msgstr "Zeige Navigations-Leiste"
2166
 
2167
+ #: ../admin/settings.php:648
2168
  msgid "Show loading icon"
2169
  msgstr "Zeige Lade-Bildchen"
2170
 
2171
+ #: ../admin/settings.php:652
2172
  msgid "Use watermark logo"
2173
  msgstr "Wasserzeichen anzeigen"
2174
 
2175
+ #: ../admin/settings.php:654
2176
  msgid "You can change the logo at the watermark settings"
2177
  msgstr "Du kannst den Pfad in Einstellungen für das Wasserzeichen angeben"
2178
 
2179
+ #: ../admin/settings.php:657
2180
  msgid "Stretch image"
2181
  msgstr "Bild dehnen"
2182
 
2183
+ #: ../admin/settings.php:660
2184
  msgid "true"
2185
  msgstr "Ja"
2186
 
2187
+ #: ../admin/settings.php:661
2188
  msgid "false"
2189
  msgstr "Nein"
2190
 
2191
+ #: ../admin/settings.php:662
2192
  msgid "fit"
2193
  msgstr "Passend"
2194
 
2195
+ #: ../admin/settings.php:663
2196
  msgid "none"
2197
  msgstr "keiner"
2198
 
2199
+ #: ../admin/settings.php:668
2200
  msgid "Duration time"
2201
  msgstr "Dauer"
2202
 
2203
+ #: ../admin/settings.php:669
2204
  msgid "sec."
2205
  msgstr "Sek."
2206
 
2207
+ #: ../admin/settings.php:672
2208
  msgid "Transition / Fade effect"
2209
  msgstr "Fade Effekt"
2210
 
2211
+ #: ../admin/settings.php:675
2212
  msgid "fade"
2213
  msgstr "Fade"
2214
 
2215
+ #: ../admin/settings.php:676
2216
  msgid "bgfade"
2217
  msgstr "BGFade"
2218
 
2219
+ #: ../admin/settings.php:677
2220
  msgid "slowfade"
2221
  msgstr "Slowfade"
2222
 
2223
+ #: ../admin/settings.php:678
2224
  msgid "circles"
2225
  msgstr "Kreise"
2226
 
2227
+ #: ../admin/settings.php:679
2228
  msgid "bubbles"
2229
  msgstr "Blasen"
2230
 
2231
+ #: ../admin/settings.php:680
2232
  msgid "blocks"
2233
  msgstr "Blöcke"
2234
 
2235
+ #: ../admin/settings.php:681
2236
  msgid "fluids"
2237
  msgstr "Fluids"
2238
 
2239
+ #: ../admin/settings.php:682
2240
  msgid "flash"
2241
  msgstr "Flash"
2242
 
2243
+ #: ../admin/settings.php:683
2244
  msgid "lines"
2245
  msgstr "Linien"
2246
 
2247
+ #: ../admin/settings.php:684
2248
  msgid "random"
2249
  msgstr "Zufall"
2250
 
2251
+ #: ../admin/settings.php:688
2252
  msgid "Use slow zooming effect"
2253
  msgstr "nutze Zoom Effekt"
2254
 
2255
+ #: ../admin/settings.php:692
2256
  msgid "Background Color"
2257
  msgstr "Hintergrund (BG) Farbe"
2258
 
2259
+ #: ../admin/settings.php:697
2260
  msgid "Texts / Buttons Color"
2261
  msgstr "Text- / Button Farbe"
2262
 
2263
+ #: ../admin/settings.php:702
2264
  msgid "Rollover / Active Color"
2265
  msgstr "Rollover / Aktiv (Link) Farbe"
2266
 
2267
+ #: ../admin/settings.php:707
2268
  msgid "Screen Color"
2269
  msgstr "Seiten Farbe"
2270
 
2271
+ #: ../admin/settings.php:712
2272
  msgid "Background music (URL)"
2273
  msgstr "Hintergrundmusik (URL)"
2274
 
2275
+ #: ../admin/settings.php:716
2276
  msgid "Try XHTML validation (with CDATA)"
2277
  msgstr "Integriere XHTML Validierung (mittels CDATA)"
2278
 
2279
+ #: ../admin/settings.php:718
2280
  msgid "Important : Could causes problem at some browser. Please recheck your page."
2281
  msgstr "Wichtig : Es könnten Probleme bei einigen Browser entstehen. Unbedingt Seite danach prüfen."
2282
 
2350
  "\\n"
2351
  "Wähle [Cancel] zum Abbrechen, [OK] zum Deinstallieren.\\n"
2352
 
2353
+ #: ../admin/showmeta.php:29
2354
  msgid "Meta Data"
2355
  msgstr "Metadaten"
2356
 
 
 
 
 
 
 
 
2357
  #: ../admin/showmeta.php:34
2358
  #: ../admin/showmeta.php:60
2359
  #: ../admin/showmeta.php:85
2360
  #: ../admin/showmeta.php:109
2361
+ msgid "Tag"
2362
+ msgstr "Stichwort"
2363
+
2364
+ #: ../admin/showmeta.php:35
2365
+ #: ../admin/showmeta.php:61
2366
+ #: ../admin/showmeta.php:86
2367
+ #: ../admin/showmeta.php:110
2368
  msgid "Value"
2369
  msgstr "Wert"
2370
 
2371
+ #: ../admin/showmeta.php:49
2372
  msgid "No meta data saved"
2373
  msgstr "Keine Metadaten gespeichert"
2374
 
2375
+ #: ../admin/showmeta.php:55
2376
  msgid "EXIF Data"
2377
  msgstr "EXIF Daten"
2378
 
2379
+ #: ../admin/showmeta.php:74
2380
  msgid "No exif data"
2381
  msgstr "Keine Exif Daten"
2382
 
2383
+ #: ../admin/showmeta.php:81
2384
  msgid "IPTC Data"
2385
  msgstr "IPTC Daten"
2386
 
2387
+ #: ../admin/showmeta.php:105
2388
  msgid "XMP Data"
2389
  msgstr "XMP Daten"
2390
 
2400
  msgid "CSS file successfully updated"
2401
  msgstr "CSS Datei erfolgreich aktualisiert"
2402
 
2403
+ #: ../admin/style.php:88
2404
  msgid "Style Editor"
2405
  msgstr "CSS Editor"
2406
 
2407
+ #: ../admin/style.php:92
2408
  msgid "Activate and use style sheet:"
2409
  msgstr "Aktiviere und nutze Stylesheet:"
2410
 
2411
+ #: ../admin/style.php:112
2412
  msgid "Activate"
2413
  msgstr "Aktiviere"
2414
 
2415
+ #: ../admin/style.php:122
2416
  #, php-format
2417
  msgid "Editing <strong>%s</strong>"
2418
  msgstr "Bearbeite <strong>%s</strong>"
2419
 
2420
+ #: ../admin/style.php:124
2421
  #, php-format
2422
  msgid "Browsing <strong>%s</strong>"
2423
  msgstr "Durchsuche <strong>%s</strong>"
2424
 
2425
+ #: ../admin/style.php:134
2426
  msgid "Version"
2427
  msgstr "Version"
2428
 
2429
+ #: ../admin/style.php:137
2430
  msgid "Tip : Copy your stylesheet (nggallery.css) to your theme folder, so it will be not lost during a upgrade"
2431
  msgstr "Kleiner Tip : Kopiere das Stylesheet (nggallery.css) in dein Theme-Verzeichnis, dadurch wird es beim nächsten Update nicht überschrieben."
2432
 
2433
+ #: ../admin/style.php:139
2434
  msgid "Your theme contain a NextGEN Gallery stylesheet (nggallery.css), this file will be used"
2435
  msgstr "Dein Theme-Paket enthält eine NextGEN Gallery Stylesheet (nggallery.css), dieses Sheet wird automatisch eingebunden"
2436
 
2437
+ #: ../admin/style.php:141
2438
  msgid "Tip No. 2: Use the color picker below to help you find the right color scheme for your gallery!"
2439
  msgstr "2.Tip : Beutze die Farbauswahl um den zugehörigen HTML Farbcode zu erhalten"
2440
 
2441
+ #: ../admin/style.php:157
2442
  msgid "Update File"
2443
  msgstr "Datei aktualisieren"
2444
 
2445
+ #: ../admin/style.php:160
2446
  msgid "If this file were writable you could edit it."
2447
  msgstr "Wenn diese Datei beschreibbar wäre, könntest Du sie bearbeiten."
2448
 
2449
+ #: ../admin/style.php:165
2450
  msgid "Oops, no such file exists! Double check the name and try again, merci."
2451
  msgstr "Oha, eine solche Datei existiert nicht! Bitte überprüfe den Namen und probiere es erneut, danke."
2452
 
2558
  msgid "Upgrade database structure..."
2559
  msgstr "Aktualisiere die Datenbank-Struturen..."
2560
 
2561
+ #: ../admin/upgrade.php:101
2562
+ #: ../admin/upgrade.php:111
2563
+ #: ../admin/upgrade.php:118
2564
+ #: ../admin/upgrade.php:129
2565
+ #: ../admin/upgrade.php:143
2566
  msgid "finished"
2567
  msgstr "beendet"
2568
 
2569
+ #: ../admin/upgrade.php:109
2570
  msgid "Update file structure..."
2571
  msgstr "Aktualisiere Verzeichnisse..."
2572
 
2573
+ #: ../admin/upgrade.php:116
2574
  msgid "Import date and time information..."
2575
  msgstr "Importiere Datum/Uhrzeit..."
2576
 
2577
+ #: ../admin/upgrade.php:124
2578
  msgid "Move imagerotator to new location..."
2579
  msgstr "Verschiebe den Image Rotator in ein neues Verzeichnis..."
2580
 
2581
+ #: ../admin/upgrade.php:135
2582
  msgid "Update settings..."
2583
  msgstr "Einstellungen gespeichert..."
2584
 
2585
+ #: ../admin/upgrade.php:149
2586
+ msgid "Updated widget structure. If you used NextGEN Widgets, you need to setup them again..."
2587
+ msgstr "Die Widgets wurden überarbeitet. Wenn du NextGEN Widgets nutzt, musst du Sie nun neu einfügen..."
2588
+
2589
+ #: ../admin/upgrade.php:214
2590
  msgid "Some folders/files could not renamed, please recheck the permission and rescan the folder in the manage gallery section."
2591
  msgstr "Einige Verzeichnisse / Bilder konnten nicht umbenannt werden, bitte überprüfe die Zugriffsrechte und Scanne dann das Verzeichnis neu ein."
2592
 
2593
+ #: ../admin/upgrade.php:216
2594
  msgid "Rename failed"
2595
  msgstr "Konnte nicht umbenannt werden"
2596
 
2597
+ #: ../admin/upgrade.php:311
2598
+ #: ../admin/upgrade.php:330
2599
  msgid "Upgrade NextGEN Gallery"
2600
  msgstr "NextGEN Gallery aktualisieren"
2601
 
2602
+ #: ../admin/upgrade.php:312
2603
  msgid "The script detect that you upgrade from a older version."
2604
  msgstr "Es wurde eine ältere NextGEN Datenbank erkannt."
2605
 
2606
+ #: ../admin/upgrade.php:313
2607
  msgid "Your database tables for NextGEN Gallery is out-of-date, and must be upgraded before you can continue."
2608
  msgstr "Deinen Datenbank für NextGEN Gallery ist nicht auf dem aktuellen Stand, sie muss jetzt aktualisiert werden."
2609
 
2610
+ #: ../admin/upgrade.php:314
2611
  msgid "If you would like to downgrade later, please make first a complete backup of your database and the images."
2612
  msgstr "Wenn du wieder auf eine ältere Version zurückgehen möchtest, solltest du vorher die Datenbank sichern."
2613
 
2614
+ #: ../admin/upgrade.php:315
2615
  msgid "The upgrade process may take a while, so please be patient."
2616
  msgstr "Der Upgrade Prozess kann etwas dauern, bitte sei geduldig..."
2617
 
2618
+ #: ../admin/upgrade.php:316
2619
  msgid "Start upgrade now"
2620
  msgstr "Aktualisierung starten"
2621
 
2622
+ #: ../admin/upgrade.php:332
2623
  msgid "Upgrade sucessful"
2624
  msgstr "Aktualisierung erfolgreich"
2625
 
2626
+ #: ../admin/upgrade.php:333
2627
  msgid "Continue"
2628
  msgstr "Weiter"
2629
 
2736
  msgid "No float"
2737
  msgstr "Kein Float"
2738
 
2739
+ #: ../admin/tinymce/window.php:129
2740
+ msgid "Left"
2741
+ msgstr "Links"
2742
+
2743
+ #: ../admin/tinymce/window.php:130
2744
+ msgid "Center"
2745
+ msgstr "Zentrieren"
2746
+
2747
+ #: ../admin/tinymce/window.php:131
2748
+ msgid "Right"
2749
+ msgstr "Rechts"
2750
+
2751
  #: ../admin/tinymce/window.php:147
2752
  msgid "Insert"
2753
  msgstr "Einfügen"
2757
  msgid "Note : Based on your server memory limit you should not upload larger images then <strong>%d x %d</strong> pixel"
2758
  msgstr "Hinweis : Basierend auf der Speicherbegrenzung auf dem Server, solltest du keine Bilder grösser als <strong>%d x %d</strong> Pixel hochladen"
2759
 
2760
+ #: ../lib/locale.php:120
2761
+ msgid "Invalid URL Provided."
2762
+ msgstr "Ungültige URL"
2763
+
2764
+ #: ../lib/locale.php:124
2765
+ #: ../lib/locale.php:128
2766
+ msgid "Could not create Temporary file."
2767
+ msgstr "Konnte temporäre Datei nicht erstellen"
2768
+
2769
+ #: ../lib/meta.php:124
2770
  msgid " mm"
2771
  msgstr " mm"
2772
 
2773
+ #: ../lib/meta.php:130
2774
  msgid " sec"
2775
  msgstr " Sek."
2776
 
2777
+ #: ../lib/meta.php:134
2778
  msgid "Fired"
2779
  msgstr "ausgelöst"
2780
 
2781
+ #: ../lib/meta.php:134
2782
  msgid "Not fired"
2783
  msgstr "Nicht ausgelöst"
2784
 
2785
+ #: ../lib/meta.php:423
2786
  msgid "Aperture"
2787
  msgstr "Blende"
2788
 
2789
+ #: ../lib/meta.php:424
2790
+ #: ../lib/meta.php:449
2791
  msgid "Credit"
2792
  msgstr "Autor"
2793
 
2794
+ #: ../lib/meta.php:425
2795
  msgid "Camera"
2796
  msgstr "Kamera"
2797
 
2798
+ #: ../lib/meta.php:426
2799
  msgid "Caption"
2800
  msgstr "Beschreibung"
2801
 
2802
+ #: ../lib/meta.php:428
2803
  msgid "Copyright"
2804
  msgstr "Rechte"
2805
 
2806
+ #: ../lib/meta.php:429
2807
  msgid "Focal length"
2808
  msgstr "Brennweite"
2809
 
2810
+ #: ../lib/meta.php:430
2811
  msgid "ISO"
2812
  msgstr "ISO"
2813
 
2814
+ #: ../lib/meta.php:431
2815
  msgid "Shutter speed"
2816
  msgstr "Belichtungszeit"
2817
 
2818
+ #: ../lib/meta.php:435
2819
  msgid "Subject"
2820
  msgstr "Betreff"
2821
 
2822
+ #: ../lib/meta.php:436
2823
  msgid "Make"
2824
  msgstr "Hersteller"
2825
 
2826
+ #: ../lib/meta.php:437
2827
  msgid "Edit Status"
2828
  msgstr "Ändere Status"
2829
 
2830
+ #: ../lib/meta.php:438
2831
  msgid "Category"
2832
  msgstr "Kategorie"
2833
 
2834
+ #: ../lib/meta.php:439
2835
  msgid "Keywords"
2836
  msgstr "Schlüsselwörter"
2837
 
2838
+ #: ../lib/meta.php:440
2839
  msgid "Date Created"
2840
  msgstr "erstellt (Datum)"
2841
 
2842
+ #: ../lib/meta.php:441
2843
  msgid "Time Created"
2844
  msgstr "erstellt (Zeit)"
2845
 
2846
+ #: ../lib/meta.php:442
2847
  msgid "Author Position"
2848
  msgstr "Autor Position"
2849
 
2850
+ #: ../lib/meta.php:443
2851
  msgid "City"
2852
  msgstr "Stadt"
2853
 
2854
+ #: ../lib/meta.php:444
2855
  msgid "Location"
2856
  msgstr "Ort"
2857
 
2858
+ #: ../lib/meta.php:445
2859
  msgid "Province/State"
2860
  msgstr "Staat / PLZ"
2861
 
2862
+ #: ../lib/meta.php:446
2863
  msgid "Country code"
2864
  msgstr "Landescode"
2865
 
2866
+ #: ../lib/meta.php:447
2867
  msgid "Country"
2868
  msgstr "Land"
2869
 
2870
+ #: ../lib/meta.php:448
2871
  msgid "Headline"
2872
  msgstr "Kopfzeile"
2873
 
2874
+ #: ../lib/meta.php:450
2875
  msgid "Source"
2876
  msgstr "Quelle"
2877
 
2878
+ #: ../lib/meta.php:451
2879
  msgid "Copyright Notice"
2880
  msgstr "Copyright Hinweise / Credits"
2881
 
2882
+ #: ../lib/meta.php:452
2883
  msgid "Contact"
2884
  msgstr "Kontakt"
2885
 
2886
+ #: ../lib/meta.php:453
2887
  msgid "Last modified"
2888
  msgstr "Zuletzt geändert"
2889
 
2890
+ #: ../lib/meta.php:454
2891
  msgid "Program tool"
2892
  msgstr "Programm"
2893
 
2894
+ #: ../lib/meta.php:455
2895
  msgid "Format"
2896
  msgstr "Format"
2897
 
2898
+ #: ../lib/meta.php:456
2899
  msgid "Image Width"
2900
  msgstr "Breite"
2901
 
2902
+ #: ../lib/meta.php:457
2903
  msgid "Image Height"
2904
  msgstr "Höhe"
2905
 
2906
+ #: ../lib/meta.php:458
2907
  msgid "Flash"
2908
  msgstr "Blitz"
2909
 
2910
+ #: ../lib/ngg-db.php:315
2911
+ #: ../lib/ngg-db.php:316
2912
  msgid "Album overview"
2913
  msgstr "Album Übersicht"
2914
 
2915
+ #: ../lib/rewrite.php:185
2916
+ #: ../lib/rewrite.php:194
2917
+ msgid "Gallery"
2918
+ msgstr "Galerie"
2919
+
2920
+ #: ../lib/rewrite.php:191
2921
+ msgid "Album"
2922
+ msgstr "Album"
2923
+
2924
+ #: ../lib/shortcodes.php:296
2925
  msgid "[Pictures not found]"
2926
  msgstr "[Bilder nicht gefunden]"
2927
 
3044
  msgstr "Konnte die Galerie nicht anlegen"
3045
 
3046
  #: ../view/album-compact.php:32
3047
+ #: ../view/album-extend.php:30
3048
  msgid "Photos"
3049
  msgstr "Fotos"
3050
 
3051
  #: ../view/gallery-caption.php:32
 
 
 
3052
  msgid "[View with PicLens]"
3053
  msgstr "[Mit PicLens anzeigen]"
3054
 
3147
  msgid "Width:"
3148
  msgstr "Breite:"
3149
 
3150
+ #: ../widgets/widgets.php:160
3151
  msgid "Add recent or random images from the galleries"
3152
  msgstr "Füge die neusten Bilder oder Zufallsbilder aus NextGEN Gallery ein"
3153
 
3154
+ #: ../widgets/widgets.php:161
3155
  msgid "NextGEN Widget"
3156
  msgstr "NextGEN Widget"
3157
 
3158
+ #: ../widgets/widgets.php:200
3159
  msgid "Title :"
3160
  msgstr "Titel :"
3161
 
3162
+ #: ../widgets/widgets.php:206
3163
  msgid "Show :"
3164
  msgstr "Zeige als :"
3165
 
3166
+ #: ../widgets/widgets.php:212
3167
  msgid "Original images"
3168
  msgstr "Original Bilder"
3169
 
3170
+ #: ../widgets/widgets.php:221
3171
  msgid "recent added "
3172
  msgstr "zuletzt hinzugefügt"
3173
 
3174
+ #: ../widgets/widgets.php:227
3175
  msgid "Enable IE8 Web Slices"
3176
  msgstr "IE8 Web Slices aktivieren"
3177
 
3178
+ #: ../widgets/widgets.php:232
3179
  msgid "Width x Height :"
3180
  msgstr "Breite x Höhe :"
3181
 
3182
+ #: ../widgets/widgets.php:238
3183
  msgid "Select :"
3184
  msgstr "Wähle :"
3185
 
3186
+ #: ../widgets/widgets.php:240
3187
  msgid "All galleries"
3188
  msgstr "Alle Galerien"
3189
 
3190
+ #: ../widgets/widgets.php:241
3191
  msgid "Only which are not listed"
3192
  msgstr "Nur ungelistete"
3193
 
3194
+ #: ../widgets/widgets.php:242
3195
  msgid "Only which are listed"
3196
  msgstr "Nur gelistete"
3197
 
3198
+ #: ../widgets/widgets.php:248
3199
  msgid "Gallery ID :"
3200
  msgstr "Galerie ID :"
3201
 
3202
+ #: ../widgets/widgets.php:250
3203
  msgid "Gallery IDs, separated by commas."
3204
  msgstr "Galerie IDs, mit Kommas getrennt"
3205
 
3226
  msgid "Invalid MediaRSS command (%s)."
3227
  msgstr "Ungültiger Media RSS Befehl (%s)"
3228
 
3229
+ #~ msgid ""
3230
+ #~ "<strong>Would you like to help to translate this plugin ?</strong> <a "
3231
+ #~ "target=\"_blank\" href=\"%s\">Download</a> the current pot file and read "
3232
+ #~ "<a href=\"http://alexrabe.de/wordpress-plugins/wordtube/translation-of-"
3233
+ #~ "plugins/\">here</a> how you can translate the plugin."
3234
+ #~ msgstr ""
3235
+ #~ "<strong>Would you like to help to translate this plugin ?</strong> <a "
3236
+ #~ "target=\"_blank\" href=\"%s\">Download</a> the current pot file and read "
3237
+ #~ "<a href=\"http://alexrabe.de/wordpress-plugins/wordtube/translation-of-"
3238
+ #~ "plugins/\">here</a> how you can translate the plugin."
3239
+ #~ msgid ""
3240
+ #~ "<strong>Translation by : </strong><a target=\"_blank\" href=\"\">N/A</a>"
3241
+ #~ msgstr ""
3242
+ #~ "<strong>Übersetzt von : </strong><a target=\"_blank\" href=\"\">Alex "
3243
+ #~ "Rabe</a>"
3244
+ #~ msgid "Setup Gallery"
3245
+ #~ msgstr "Galerie Setup"
3246
+ #~ msgid "Setup"
3247
+ #~ msgstr "Setup"
3248
+ #~ msgid "Alignment"
3249
+ #~ msgstr "Ausrichtung"
3250
+ #~ msgid "Full size"
3251
+ #~ msgstr "Volle Größe"
3252
+ #~ msgid "Singlepic"
3253
+ #~ msgstr "Einzelbilder"
3254
+ #~ msgid "Insert into Post"
3255
+ #~ msgstr "In den Beitrag einfügen"
3256
+ #~ msgid "PHP Output Buffer Size"
3257
+ #~ msgstr "PHP Output Buffer Größe"
3258
  #~ msgid "for PclZip , a PHP library that manage ZIP archives"
3259
  #~ msgstr "für PclZip, eine ZIP PHP Library"
3260
  #~ msgid "Crop square thumbnail from image"
lang/nggallery.pot CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2009-10-27 10:06+0100\n"
6
- "PO-Revision-Date: 2009-10-27 10:06+0100\n"
7
- "Last-Translator: Alex Rabe <no@email.com>\n"
8
  "Language-Team: Alex Rabe\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -17,62 +17,70 @@ msgstr ""
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
- #: ../nggallery.php:169
 
 
 
 
 
 
 
 
21
  msgid "Sorry, NextGEN Gallery works only with a Memory Limit of 16 MB higher"
22
- msgstr "asd"
23
 
24
- #: ../nggallery.php:194
25
  msgid "Picture tag"
26
  msgstr ""
27
 
28
- #: ../nggallery.php:195
29
  msgid "Picture tag: %2$l."
30
  msgstr ""
31
 
32
- #: ../nggallery.php:196
33
  msgid "Separate picture tags with commas."
34
  msgstr ""
35
 
36
- #: ../nggallery.php:292
37
  msgid "L O A D I N G"
38
  msgstr ""
39
 
40
- #: ../nggallery.php:293
41
  msgid "Click to Close"
42
  msgstr ""
43
 
44
- #: ../nggallery.php:308
45
  msgid "loading"
46
  msgstr ""
47
 
48
- #: ../nggallery.php:406
49
  #: ../nggfunctions.php:848
50
  #: ../admin/admin.php:32
51
  msgid "Overview"
52
  msgstr ""
53
 
54
- #: ../nggallery.php:407
55
  msgid "Get help"
56
  msgstr ""
57
 
58
- #: ../nggallery.php:408
59
  msgid "Contribute"
60
  msgstr ""
61
 
62
- #: ../nggallery.php:409
63
  msgid "Donate"
64
  msgstr ""
65
 
66
  #: ../nggfunctions.php:37
67
  msgid "The <a href=\"http://www.macromedia.com/go/getflashplayer\">Flash Player</a> and <a href=\"http://www.mozilla.com/firefox/\">a browser with Javascript support</a> are needed.."
68
- msgstr "asd"
69
 
70
  #: ../nggfunctions.php:103
71
  #: ../nggfunctions.php:558
72
  msgid "[Gallery not found]"
73
  msgstr ""
74
 
75
- #: ../nggfunctions.php:363
76
  msgid "[Album not found]"
77
  msgstr ""
78
 
@@ -196,148 +204,176 @@ msgstr ""
196
  msgid "We would like to thank this people which support us in the work :"
197
  msgstr ""
198
 
199
- #: ../admin/about.php:164
200
  msgid "and all donators..."
201
  msgstr ""
202
 
203
- #: ../admin/addgallery.php:37
204
- #: ../admin/addgallery.php:52
 
 
 
 
 
 
 
 
 
 
 
 
205
  msgid "Upload failed!"
206
  msgstr ""
207
 
208
- #: ../admin/addgallery.php:57
209
- #: ../admin/functions.php:836
210
- #: ../admin/functions.php:936
 
 
 
 
211
  msgid "No gallery selected !"
212
  msgstr ""
213
 
214
- #: ../admin/addgallery.php:104
215
  msgid "Image Files"
216
  msgstr ""
217
 
218
- #: ../admin/addgallery.php:123
219
- #: ../admin/addgallery.php:154
220
  msgid "remove"
221
  msgstr ""
222
 
223
- #: ../admin/addgallery.php:124
224
  msgid "Browse..."
225
  msgstr ""
226
 
227
- #: ../admin/addgallery.php:125
228
- #: ../admin/addgallery.php:293
229
  msgid "Upload images"
230
  msgstr ""
231
 
232
- #: ../admin/addgallery.php:173
233
- #: ../admin/addgallery.php:185
234
- #: ../admin/manage-galleries.php:134
235
  msgid "Add new gallery"
236
  msgstr ""
237
 
238
- #: ../admin/addgallery.php:175
239
- #: ../admin/addgallery.php:205
240
  msgid "Upload a Zip-File"
241
  msgstr ""
242
 
243
- #: ../admin/addgallery.php:178
244
- #: ../admin/addgallery.php:246
245
  msgid "Import image folder"
246
  msgstr ""
247
 
248
- #: ../admin/addgallery.php:180
249
- #: ../admin/addgallery.php:263
250
  msgid "Upload Images"
251
  msgstr ""
252
 
253
- #: ../admin/addgallery.php:190
254
- #: ../admin/manage-galleries.php:217
255
  msgid "New Gallery"
256
  msgstr ""
257
 
258
- #: ../admin/addgallery.php:193
259
- #: ../admin/manage-galleries.php:219
260
  msgid "Create a new , empty gallery below the folder"
261
  msgstr ""
262
 
263
- #: ../admin/addgallery.php:195
264
- #: ../admin/manage-galleries.php:221
265
  msgid "Allowed characters for file and folder names are"
266
  msgstr ""
267
 
268
- #: ../admin/addgallery.php:199
269
  msgid "Add gallery"
270
  msgstr ""
271
 
272
- #: ../admin/addgallery.php:210
273
  msgid "Select Zip-File"
274
  msgstr ""
275
 
276
- #: ../admin/addgallery.php:212
277
  msgid "Upload a zip file with images"
278
  msgstr ""
279
 
280
- #: ../admin/addgallery.php:216
281
  msgid "or enter a Zip-File URL"
282
  msgstr ""
283
 
284
- #: ../admin/addgallery.php:218
285
  msgid "Import a zip file with images from a url"
286
  msgstr ""
287
 
288
- #: ../admin/addgallery.php:222
289
- #: ../admin/addgallery.php:272
290
  msgid "in to"
291
  msgstr ""
292
 
293
- #: ../admin/addgallery.php:224
294
  msgid "a new gallery"
295
  msgstr ""
296
 
297
- #: ../admin/addgallery.php:235
298
  msgid "Note : The upload limit on your server is "
299
  msgstr ""
300
 
301
- #: ../admin/addgallery.php:239
302
  msgid "Start upload"
303
  msgstr ""
304
 
305
- #: ../admin/addgallery.php:251
306
  msgid "Import from Server path:"
307
  msgstr ""
308
 
309
- #: ../admin/addgallery.php:254
310
  msgid " Please note : For safe-mode = ON you need to add the subfolder thumbs manually"
311
  msgstr ""
312
 
313
- #: ../admin/addgallery.php:257
314
  msgid "Import folder"
315
  msgstr ""
316
 
317
- #: ../admin/addgallery.php:268
318
  msgid "Upload image"
319
  msgstr ""
320
 
321
- #: ../admin/addgallery.php:274
322
  msgid "Choose gallery"
323
  msgstr ""
324
 
325
- #: ../admin/addgallery.php:289
326
  msgid "The batch upload requires Adobe Flash 10, disable it if you have problems"
327
  msgstr ""
328
 
329
- #: ../admin/addgallery.php:289
330
  msgid "Disable flash upload"
331
  msgstr ""
332
 
333
- #: ../admin/addgallery.php:291
334
  msgid "Upload multiple files at once by ctrl/shift-selecting in dialog"
335
  msgstr ""
336
 
337
- #: ../admin/addgallery.php:291
338
  msgid "Enable flash based upload"
339
  msgstr ""
340
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  #: ../admin/admin.php:33
342
  msgid "Add Gallery / Images"
343
  msgstr ""
@@ -346,6 +382,12 @@ msgstr ""
346
  msgid "Manage Gallery"
347
  msgstr ""
348
 
 
 
 
 
 
 
349
  #: ../admin/admin.php:36
350
  msgid "Tags"
351
  msgstr ""
@@ -358,312 +400,306 @@ msgstr ""
358
  msgid "Style"
359
  msgstr ""
360
 
361
- #: ../admin/admin.php:40
362
- msgid "Setup Gallery"
363
- msgstr ""
364
-
365
- #: ../admin/admin.php:40
366
- msgid "Setup"
367
- msgstr ""
368
-
369
- #: ../admin/admin.php:42
370
  msgid "Roles"
371
  msgstr ""
372
 
373
- #: ../admin/admin.php:43
374
  msgid "About this Gallery"
375
  msgstr ""
376
 
377
- #: ../admin/admin.php:43
378
  msgid "About"
379
  msgstr ""
380
 
381
- #: ../admin/admin.php:45
382
  msgid "NextGEN Gallery"
383
  msgstr ""
384
 
385
- #: ../admin/admin.php:73
 
 
 
 
386
  msgid "A new version of NextGEN Gallery is available !"
387
  msgstr ""
388
 
389
- #: ../admin/admin.php:73
390
  msgid "Download here"
391
  msgstr ""
392
 
393
- #: ../admin/admin.php:92
394
  #, php-format
395
  msgid "Thanks for using this plugin, I hope you are satisfied ! If you would like to support the further development, please consider a <strong><a href=\"%s\">donation</a></strong>! If you still need some help, please post your questions <a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\">here</a> ."
396
  msgstr ""
397
 
398
- #: ../admin/admin.php:95
399
  msgid "OK, hide this message now !"
400
  msgstr ""
401
 
402
- #: ../admin/admin.php:178
403
  msgid "You do not have the correct permission"
404
  msgstr ""
405
 
406
- #: ../admin/admin.php:179
407
  msgid "Unexpected Error"
408
  msgstr ""
409
 
410
- #: ../admin/admin.php:180
411
  msgid "A failure occurred"
412
  msgstr ""
413
 
414
- #: ../admin/admin.php:261
415
- #: ../admin/admin.php:329
416
- #: ../admin/functions.php:99
417
- #: ../admin/functions.php:175
418
- msgid "Gallery"
419
- msgid_plural "Galleries"
420
- msgstr[0] ""
421
- msgstr[1] ""
422
-
423
- #: ../admin/admin.php:265
424
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Introduction</a>"
425
  msgstr ""
426
 
427
- #: ../admin/admin.php:268
428
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Setup</a>"
429
  msgstr ""
430
 
431
- #: ../admin/admin.php:271
432
  msgid "<a href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\" target=\"_blank\">Translation by alex rabe</a>"
433
  msgstr ""
434
 
435
- #: ../admin/admin.php:274
436
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Roles / Capabilities</a>"
437
  msgstr ""
438
 
439
- #: ../admin/admin.php:277
440
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Styles</a>"
441
  msgstr ""
442
 
443
- #: ../admin/admin.php:278
444
  msgid "Templates"
445
  msgstr ""
446
 
447
- #: ../admin/admin.php:281
448
  #: ../admin/admin.php:287
 
449
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery management</a>"
450
  msgstr ""
451
 
452
- #: ../admin/admin.php:282
453
  msgid "Gallery example"
454
  msgstr ""
455
 
456
- #: ../admin/admin.php:288
457
- #: ../admin/admin.php:298
458
  msgid "Gallery tags"
459
  msgstr ""
460
 
461
- #: ../admin/admin.php:291
462
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Album management</a>"
463
  msgstr ""
464
 
465
- #: ../admin/admin.php:292
466
  msgid "Album example"
467
  msgstr ""
468
 
469
- #: ../admin/admin.php:293
470
  #: ../admin/admin.php:299
 
471
  msgid "Album tags"
472
  msgstr ""
473
 
474
- #: ../admin/admin.php:296
475
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery tags</a>"
476
  msgstr ""
477
 
478
- #: ../admin/admin.php:297
479
  msgid "Related images"
480
  msgstr ""
481
 
482
- #: ../admin/admin.php:302
483
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-image-management/\" target=\"_blank\">Image management</a>"
484
  msgstr ""
485
 
486
- #: ../admin/admin.php:303
487
  msgid "Custom fields"
488
  msgstr ""
489
 
490
- #: ../admin/admin.php:308
491
  msgid "Get help with NextGEN Gallery"
492
  msgstr ""
493
 
494
- #: ../admin/admin.php:312
495
  msgid "More Help & Info"
496
  msgstr ""
497
 
498
- #: ../admin/admin.php:314
499
  msgid "<a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\" target=\"_blank\">Support Forums</a>"
500
  msgstr ""
501
 
502
- #: ../admin/admin.php:315
503
  msgid "FAQ"
504
  msgstr ""
505
 
506
- #: ../admin/admin.php:316
507
  msgid "Feature request"
508
  msgstr ""
509
 
510
- #: ../admin/admin.php:317
511
  msgid "Get your language pack"
512
  msgstr ""
513
 
514
- #: ../admin/admin.php:318
515
  msgid "Contribute development"
516
  msgstr ""
517
 
518
- #: ../admin/admin.php:319
519
  msgid "Download latest version"
520
  msgstr ""
521
 
522
- #: ../admin/album.php:99
523
- #: ../admin/album.php:112
524
- #: ../admin/album.php:138
525
  msgid "Update Successfully"
526
  msgstr ""
527
 
528
- #: ../admin/album.php:120
529
  msgid "Album deleted"
530
  msgstr ""
531
 
532
- #: ../admin/album.php:248
533
  msgid "Manage Albums"
534
  msgstr ""
535
 
536
- #: ../admin/album.php:254
537
- #: ../admin/album.php:297
538
  msgid "Select album"
539
  msgstr ""
540
 
541
- #: ../admin/album.php:256
542
  msgid "No album selected"
543
  msgstr ""
544
 
545
- #: ../admin/album.php:267
546
  #: ../admin/edit-thumbnail.php:157
547
  msgid "Update"
548
  msgstr ""
549
 
550
- #: ../admin/album.php:268
551
  msgid "Edit album"
552
  msgstr ""
553
 
554
- #: ../admin/album.php:269
555
- #: ../admin/manage-galleries.php:195
 
556
  msgid "Delete"
557
  msgstr ""
558
 
559
- #: ../admin/album.php:269
560
  msgid "Delete album ?"
561
  msgstr ""
562
 
563
- #: ../admin/album.php:271
564
  msgid "Add new album"
565
  msgstr ""
566
 
567
- #: ../admin/album.php:273
568
  msgid "Add"
569
  msgstr ""
570
 
571
- #: ../admin/album.php:283
572
  msgid "Show / hide used galleries"
573
  msgstr ""
574
 
575
- #: ../admin/album.php:283
576
  msgid "[Show all]"
577
  msgstr ""
578
 
579
- #: ../admin/album.php:284
580
  msgid "Maximize the widget content"
581
  msgstr ""
582
 
583
- #: ../admin/album.php:284
584
  msgid "[Maximize]"
585
  msgstr ""
586
 
587
- #: ../admin/album.php:285
588
  msgid "Minimize the widget content"
589
  msgstr ""
590
 
591
- #: ../admin/album.php:285
592
  msgid "[Minimize]"
593
  msgstr ""
594
 
595
- #: ../admin/album.php:287
596
  msgid "After you create and select a album, you can drag and drop a gallery or another album into your new album below"
597
  msgstr ""
598
 
599
- #: ../admin/album.php:313
600
  msgid "Select gallery"
601
  msgstr ""
602
 
603
- #: ../admin/album.php:342
604
  msgid "Album ID"
605
  msgstr ""
606
 
607
- #: ../admin/album.php:355
608
  msgid "No album selected!"
609
  msgstr ""
610
 
611
- #: ../admin/album.php:375
612
  msgid "Album name:"
613
  msgstr ""
614
 
615
- #: ../admin/album.php:381
616
  msgid "Album description:"
617
  msgstr ""
618
 
619
- #: ../admin/album.php:387
620
  msgid "Select a preview image:"
621
  msgstr ""
622
 
623
- #: ../admin/album.php:389
624
  msgid "No picture"
625
  msgstr ""
626
 
627
- #: ../admin/album.php:403
 
628
  msgid "Page Link to"
629
  msgstr ""
630
 
631
- #: ../admin/album.php:405
 
632
  msgid "Not linked"
633
  msgstr ""
634
 
635
- #: ../admin/album.php:415
636
- #: ../admin/manage-galleries.php:226
637
- #: ../admin/manage-galleries.php:255
638
- #: ../admin/manage-galleries.php:285
 
 
 
 
639
  msgid "OK"
640
  msgstr ""
641
 
642
- #: ../admin/album.php:417
643
- #: ../admin/manage-galleries.php:228
644
- #: ../admin/manage-galleries.php:257
645
- #: ../admin/manage-galleries.php:287
 
 
 
 
646
  msgid "Cancel"
647
  msgstr ""
648
 
649
- #: ../admin/album.php:500
650
  msgid "Name"
651
  msgstr ""
652
 
653
- #: ../admin/album.php:501
654
- #: ../admin/manage-galleries.php:155
 
655
  msgid "Title"
656
  msgstr ""
657
 
658
- #: ../admin/album.php:502
659
  msgid "Page"
660
  msgstr ""
661
 
662
- #: ../admin/edit-thumbnail.php:19
663
- #: ../admin/edit-thumbnail.php:22
664
- msgid "Cheatin&#8217; uh?"
665
- msgstr ""
666
-
667
  #: ../admin/edit-thumbnail.php:106
668
  msgid "Select with the mouse the area for the new thumbnail"
669
  msgstr ""
@@ -688,7 +724,7 @@ msgstr ""
688
  #: ../admin/functions.php:56
689
  #: ../admin/functions.php:70
690
  #: ../admin/functions.php:147
691
- #: ../admin/functions.php:154
692
  msgid "Directory"
693
  msgstr ""
694
 
@@ -708,7 +744,7 @@ msgstr ""
708
 
709
  #: ../admin/functions.php:65
710
  #: ../admin/functions.php:75
711
- #: ../admin/functions.php:795
712
  msgid "Unable to create directory "
713
  msgstr ""
714
 
@@ -745,171 +781,216 @@ msgstr ""
745
  msgid "doesn&#96;t exist!"
746
  msgstr ""
747
 
748
- #: ../admin/functions.php:154
749
  msgid "contains no pictures"
750
  msgstr ""
751
 
752
- #: ../admin/functions.php:172
753
  msgid "Database error. Could not add gallery!"
754
  msgstr ""
755
 
756
- #: ../admin/functions.php:175
757
  msgid "successfully created!"
758
  msgstr ""
759
 
760
- #: ../admin/functions.php:204
761
- #: ../admin/functions.php:912
762
  #: ../admin/manage-galleries.php:127
 
 
 
763
  msgid "Create new thumbnails"
764
  msgstr ""
765
 
766
- #: ../admin/functions.php:207
767
  msgid " picture(s) successfully added"
768
  msgstr ""
769
 
770
- #: ../admin/functions.php:254
771
- #: ../admin/functions.php:327
772
- #: ../admin/functions.php:377
773
- #: ../admin/functions.php:470
 
774
  msgid "Object didn't contain correct data"
775
  msgstr ""
776
 
777
- #: ../admin/functions.php:259
778
  msgid " is not writeable "
779
  msgstr ""
780
 
781
- #: ../admin/functions.php:337
782
- #: ../admin/functions.php:380
783
- #: ../admin/functions.php:476
 
784
  msgid " is not writeable"
785
  msgstr ""
786
 
787
- #: ../admin/functions.php:586
 
 
 
 
 
 
 
 
788
  msgid "(Error : Couldn't not update data base)"
789
  msgstr ""
790
 
791
- #: ../admin/functions.php:593
792
  msgid "(Error : Couldn't not update meta data)"
793
  msgstr ""
794
 
795
- #: ../admin/functions.php:602
796
  msgid "(Error : Couldn't not find image)"
797
  msgstr ""
798
 
799
- #: ../admin/functions.php:732
800
  msgid "No valid URL path "
801
  msgstr ""
802
 
803
- #: ../admin/functions.php:748
804
  msgid "Import via cURL failed."
805
  msgstr ""
806
 
807
- #: ../admin/functions.php:763
808
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
809
  msgstr ""
810
 
811
- #: ../admin/functions.php:779
812
  msgid "Could not get a valid foldername"
813
  msgstr ""
814
 
815
- #: ../admin/functions.php:790
816
  #, php-format
817
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
818
  msgstr ""
819
 
820
- #: ../admin/functions.php:805
821
  msgid "Zip-File successfully unpacked"
822
  msgstr ""
823
 
824
- #: ../admin/functions.php:844
825
- #: ../admin/functions.php:962
826
  msgid "Failure in database, no gallery path set !"
827
  msgstr ""
828
 
829
- #: ../admin/functions.php:868
830
- #: ../admin/functions.php:956
831
  msgid "is no valid image file!"
832
  msgstr ""
833
 
834
- #: ../admin/functions.php:882
835
- #: ../admin/functions.php:1098
836
  #: ../admin/functions.php:1171
 
837
  #, php-format
838
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
839
  msgstr ""
840
 
841
- #: ../admin/functions.php:889
842
- #: ../admin/functions.php:979
843
  msgid "Error, the file could not moved to : "
844
  msgstr ""
845
 
846
- #: ../admin/functions.php:894
847
- #: ../admin/functions.php:983
848
  msgid "Error, the file permissions could not set"
849
  msgstr ""
850
 
851
- #: ../admin/functions.php:916
852
  msgid " Image(s) successfully added"
853
  msgstr ""
854
 
855
- #: ../admin/functions.php:945
856
  msgid "Invalid upload. Error Code : "
857
  msgstr ""
858
 
859
- #: ../admin/functions.php:998
860
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
861
  msgstr ""
862
 
863
- #: ../admin/functions.php:1038
864
  #, php-format
865
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
866
  msgstr ""
867
 
868
- #: ../admin/functions.php:1039
869
  #, php-format
870
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
871
  msgstr ""
872
 
873
- #: ../admin/functions.php:1092
874
  #: ../admin/functions.php:1165
 
875
  msgid "The destination gallery does not exist"
876
  msgstr ""
877
 
878
- #: ../admin/functions.php:1123
879
  #, php-format
880
  msgid "Failed to move image %1$s to %2$s"
881
  msgstr ""
882
 
883
- #: ../admin/functions.php:1141
884
  #, php-format
885
  msgid "Moved %1$s picture(s) to gallery : %2$s ."
886
  msgstr ""
887
 
888
- #: ../admin/functions.php:1198
889
  #, php-format
890
  msgid "Failed to copy image %1$s to %2$s"
891
  msgstr ""
892
 
893
- #: ../admin/functions.php:1210
894
  #, php-format
895
  msgid "Failed to copy database row for picture %s"
896
  msgstr ""
897
 
898
- #: ../admin/functions.php:1218
899
  #, php-format
900
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s) &raquo; The file already existed in the destination gallery."
901
  msgstr ""
902
 
903
- #: ../admin/functions.php:1221
904
  #, php-format
905
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s)"
906
  msgstr ""
907
 
908
- #: ../admin/functions.php:1230
909
  #, php-format
910
  msgid "Copied %1$s picture(s) to gallery: %2$s ."
911
  msgstr ""
912
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
913
  #: ../admin/install.php:23
914
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
915
  msgstr ""
@@ -918,23 +999,26 @@ msgstr ""
918
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
919
  msgstr ""
920
 
921
- #: ../admin/install.php:165
922
  msgid "[Show as slideshow]"
923
  msgstr ""
924
 
925
- #: ../admin/install.php:166
926
  msgid "[Show picture list]"
927
  msgstr ""
928
 
929
  #: ../admin/manage-galleries.php:20
 
930
  msgid "&laquo;"
931
  msgstr ""
932
 
933
  #: ../admin/manage-galleries.php:21
 
934
  msgid "&raquo;"
935
  msgstr ""
936
 
937
  #: ../admin/manage-galleries.php:62
 
938
  msgid "No images selected"
939
  msgstr ""
940
 
@@ -952,91 +1036,123 @@ msgstr ""
952
 
953
  #: ../admin/manage-galleries.php:110
954
  #: ../admin/manage-galleries.php:113
 
 
955
  msgid "Search Images"
956
  msgstr ""
957
 
958
  #: ../admin/manage-galleries.php:125
 
959
  msgid "No action"
960
  msgstr ""
961
 
962
  #: ../admin/manage-galleries.php:126
 
 
 
963
  msgid "Set watermark"
964
  msgstr ""
965
 
966
  #: ../admin/manage-galleries.php:128
 
 
 
967
  msgid "Resize images"
968
  msgstr ""
969
 
970
  #: ../admin/manage-galleries.php:129
 
 
 
971
  msgid "Import metadata"
972
  msgstr ""
973
 
974
- #: ../admin/manage-galleries.php:131
 
 
 
 
 
 
 
 
975
  msgid "Apply"
976
  msgstr ""
977
 
978
- #: ../admin/manage-galleries.php:139
 
979
  #, php-format
980
  msgid "Displaying %s&#8211;%s of %s"
981
  msgstr ""
982
 
983
- #: ../admin/manage-galleries.php:154
 
984
  msgid "ID"
985
  msgstr ""
986
 
987
- #: ../admin/manage-galleries.php:156
 
 
988
  msgid "Description"
989
  msgstr ""
990
 
991
- #: ../admin/manage-galleries.php:157
 
992
  msgid "Author"
993
  msgstr ""
994
 
995
- #: ../admin/manage-galleries.php:158
996
  msgid "Page ID"
997
  msgstr ""
998
 
999
- #: ../admin/manage-galleries.php:159
1000
  msgid "Quantity"
1001
  msgstr ""
1002
 
1003
- #: ../admin/manage-galleries.php:160
1004
  msgid "Action"
1005
  msgstr ""
1006
 
1007
- #: ../admin/manage-galleries.php:182
1008
  msgid "Edit"
1009
  msgstr ""
1010
 
1011
- #: ../admin/manage-galleries.php:195
1012
  msgid "Delete this gallery ?"
1013
  msgstr ""
1014
 
1015
- #: ../admin/manage-galleries.php:202
 
1016
  msgid "No entries found"
1017
  msgstr ""
1018
 
1019
- #: ../admin/manage-galleries.php:246
 
1020
  msgid "Resize Images to"
1021
  msgstr ""
1022
 
1023
- #: ../admin/manage-galleries.php:250
 
1024
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1025
  msgstr ""
1026
 
1027
- #: ../admin/manage-galleries.php:274
 
1028
  msgid "Width x height (in pixel)"
1029
  msgstr ""
1030
 
1031
- #: ../admin/manage-galleries.php:276
 
1032
  msgid "These values are maximum values "
1033
  msgstr ""
1034
 
1035
- #: ../admin/manage-galleries.php:279
 
1036
  msgid "Set fix dimension"
1037
  msgstr ""
1038
 
1039
- #: ../admin/manage-galleries.php:281
 
1040
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1041
  msgstr ""
1042
 
@@ -1048,7 +1164,7 @@ msgstr ""
1048
  msgid "Sorry, you have no access here"
1049
  msgstr ""
1050
 
1051
- #: ../admin/manage-images.php:165
1052
  #, php-format
1053
  msgid ""
1054
  "You are about to start the bulk edit for %s images \n"
@@ -1056,162 +1172,162 @@ msgid ""
1056
  " 'Cancel' to stop, 'OK' to proceed."
1057
  msgstr ""
1058
 
1059
- #: ../admin/manage-images.php:181
1060
  #, php-format
1061
  msgid "Search results for &#8220;%s&#8221;"
1062
  msgstr ""
1063
 
1064
- #: ../admin/manage-images.php:209
1065
- #: ../admin/settings.php:274
1066
  msgid "Gallery settings"
1067
  msgstr ""
1068
 
1069
- #: ../admin/manage-images.php:209
1070
  msgid "Click here for more settings"
1071
  msgstr ""
1072
 
1073
- #: ../admin/manage-images.php:226
1074
  msgid "Preview image"
1075
  msgstr ""
1076
 
1077
- #: ../admin/manage-images.php:229
1078
  msgid "No Picture"
1079
  msgstr ""
1080
 
1081
- #: ../admin/manage-images.php:242
1082
  msgid "Path"
1083
  msgstr ""
1084
 
1085
- #: ../admin/manage-images.php:259
1086
  msgid "Create new page"
1087
  msgstr ""
1088
 
1089
- #: ../admin/manage-images.php:262
1090
  msgid "Main page (No parent)"
1091
  msgstr ""
1092
 
1093
- #: ../admin/manage-images.php:265
1094
  msgid "Add page"
1095
  msgstr ""
1096
 
1097
- #: ../admin/manage-images.php:272
1098
  msgid "Scan Folder for new images"
1099
  msgstr ""
1100
 
1101
- #: ../admin/manage-images.php:273
1102
- #: ../admin/manage-images.php:312
1103
- #: ../admin/manage-images.php:461
1104
- #: ../admin/settings.php:198
1105
- #: ../admin/settings.php:227
1106
- #: ../admin/settings.php:267
1107
- #: ../admin/settings.php:349
1108
- #: ../admin/settings.php:382
1109
- #: ../admin/settings.php:489
1110
- #: ../admin/settings.php:614
1111
  msgid "Save Changes"
1112
  msgstr ""
1113
 
1114
- #: ../admin/manage-images.php:296
1115
  msgid "Delete images"
1116
  msgstr ""
1117
 
1118
- #: ../admin/manage-images.php:298
1119
  msgid "Rotate images clockwise"
1120
  msgstr ""
1121
 
1122
- #: ../admin/manage-images.php:299
1123
  msgid "Rotate images counter-clockwise"
1124
  msgstr ""
1125
 
1126
- #: ../admin/manage-images.php:300
1127
  msgid "Copy to..."
1128
  msgstr ""
1129
 
1130
- #: ../admin/manage-images.php:301
1131
  msgid "Move to..."
1132
  msgstr ""
1133
 
1134
- #: ../admin/manage-images.php:302
1135
  msgid "Add tags"
1136
  msgstr ""
1137
 
1138
- #: ../admin/manage-images.php:303
1139
  msgid "Delete tags"
1140
  msgstr ""
1141
 
1142
- #: ../admin/manage-images.php:304
1143
  msgid "Overwrite tags"
1144
  msgstr ""
1145
 
1146
- #: ../admin/manage-images.php:309
1147
  msgid "Sort gallery"
1148
  msgstr ""
1149
 
1150
- #: ../admin/manage-images.php:384
1151
  msgid "pixel"
1152
  msgstr ""
1153
 
1154
- #: ../admin/manage-images.php:391
1155
  #, php-format
1156
  msgid "View \"%s\""
1157
  msgstr ""
1158
 
1159
- #: ../admin/manage-images.php:391
1160
  msgid "View"
1161
  msgstr ""
1162
 
1163
- #: ../admin/manage-images.php:392
1164
  msgid "Show Meta data"
1165
  msgstr ""
1166
 
1167
- #: ../admin/manage-images.php:392
1168
  msgid "Meta"
1169
  msgstr ""
1170
 
1171
- #: ../admin/manage-images.php:393
1172
  msgid "Customize thumbnail"
1173
  msgstr ""
1174
 
1175
- #: ../admin/manage-images.php:393
1176
  msgid "Edit thumb"
1177
  msgstr ""
1178
 
1179
- #: ../admin/manage-images.php:394
1180
  msgid "Rotate"
1181
  msgstr ""
1182
 
1183
- #: ../admin/manage-images.php:395
 
 
 
 
 
 
 
 
 
1184
  #, php-format
1185
- msgid "Delete \"%s\""
1186
  msgstr ""
1187
 
1188
- #: ../admin/manage-images.php:475
1189
  msgid "Enter the tags"
1190
  msgstr ""
1191
 
1192
- #: ../admin/manage-images.php:499
1193
  msgid "Select the destination gallery:"
1194
  msgstr ""
1195
 
1196
- #: ../admin/manage-images.php:600
1197
- #: ../admin/media-upload.php:212
1198
  msgid "Thumbnail"
1199
  msgstr ""
1200
 
1201
- #: ../admin/manage-images.php:602
1202
  #: ../admin/manage-sort.php:74
1203
  msgid "Filename"
1204
  msgstr ""
1205
 
1206
- #: ../admin/manage-images.php:604
1207
  msgid "Alt &amp; Title Text"
1208
  msgstr ""
1209
 
1210
- #: ../admin/manage-images.php:605
1211
  msgid "Tags (comma separated list)"
1212
  msgstr ""
1213
 
1214
- #: ../admin/manage-images.php:607
1215
  msgid "exclude"
1216
  msgstr ""
1217
 
@@ -1240,12 +1356,10 @@ msgid "Unsorted"
1240
  msgstr ""
1241
 
1242
  #: ../admin/manage-sort.php:73
1243
- #: ../admin/settings.php:335
1244
  msgid "Image ID"
1245
  msgstr ""
1246
 
1247
  #: ../admin/manage-sort.php:75
1248
- #: ../admin/media-upload.php:187
1249
  msgid "Alt/Title text"
1250
  msgstr ""
1251
 
@@ -1254,319 +1368,313 @@ msgid "Date/Time"
1254
  msgstr ""
1255
 
1256
  #: ../admin/manage-sort.php:77
1257
- #: ../admin/settings.php:343
1258
  msgid "Ascending"
1259
  msgstr ""
1260
 
1261
  #: ../admin/manage-sort.php:78
1262
- #: ../admin/settings.php:344
1263
  msgid "Descending"
1264
  msgstr ""
1265
 
1266
- #: ../admin/manage.php:87
1267
- #: ../admin/manage.php:105
1268
  msgid "deleted successfully"
1269
  msgstr ""
1270
 
1271
- #: ../admin/manage.php:105
1272
  msgid "Picture"
1273
  msgstr ""
1274
 
1275
- #: ../admin/manage.php:114
 
1276
  msgid "Operation successful. Please clear your browser cache."
1277
  msgstr ""
1278
 
1279
- #: ../admin/manage.php:207
1280
- #: ../admin/manage.php:210
1281
  msgid "Rotate images"
1282
  msgstr ""
1283
 
1284
- #: ../admin/manage.php:228
1285
  msgid "Pictures deleted successfully "
1286
  msgstr ""
1287
 
1288
- #: ../admin/manage.php:324
1289
  msgid "Tags changed"
1290
  msgstr ""
1291
 
1292
- #: ../admin/manage.php:351
1293
  msgid "Update successful"
1294
  msgstr ""
1295
 
1296
- #: ../admin/manage.php:385
1297
  msgid "New gallery page ID"
1298
  msgstr ""
1299
 
1300
- #: ../admin/manage.php:385
1301
  msgid "created"
1302
  msgstr ""
1303
 
1304
- #: ../admin/media-upload.php:132
 
1305
  msgid "No gallery"
1306
  msgstr ""
1307
 
1308
- #: ../admin/media-upload.php:144
1309
  msgid "Select &#187;"
1310
  msgstr ""
1311
 
1312
- #: ../admin/media-upload.php:175
1313
  msgid "Show"
1314
  msgstr ""
1315
 
1316
- #: ../admin/media-upload.php:176
1317
  msgid "Hide"
1318
  msgstr ""
1319
 
1320
- #: ../admin/media-upload.php:181
1321
  msgid "Image ID:"
1322
  msgstr ""
1323
 
1324
- #: ../admin/media-upload.php:195
1325
- msgid "Alignment"
1326
  msgstr ""
1327
 
1328
- #: ../admin/media-upload.php:198
1329
- #: ../admin/settings.php:367
1330
- msgid "None"
1331
  msgstr ""
1332
 
1333
- #: ../admin/media-upload.php:200
1334
- msgid "Left"
1335
  msgstr ""
1336
 
1337
- #: ../admin/media-upload.php:202
1338
- msgid "Center"
1339
  msgstr ""
1340
 
1341
- #: ../admin/media-upload.php:204
1342
- msgid "Right"
1343
  msgstr ""
1344
 
1345
- #: ../admin/media-upload.php:208
1346
- #: ../admin/settings.php:471
1347
- msgid "Size"
1348
  msgstr ""
1349
 
1350
- #: ../admin/media-upload.php:214
1351
- msgid "Full size"
1352
  msgstr ""
1353
 
1354
- #: ../admin/media-upload.php:216
1355
- msgid "Singlepic"
1356
  msgstr ""
1357
 
1358
- #: ../admin/media-upload.php:224
1359
- msgid "Insert into Post"
1360
  msgstr ""
1361
 
1362
- #: ../admin/media-upload.php:234
1363
- msgid "Save all changes"
 
 
 
1364
  msgstr ""
1365
 
1366
- #: ../admin/overview.php:14
1367
- msgid "NextGEN Gallery Overview"
 
 
 
1368
  msgstr ""
1369
 
1370
- #: ../admin/overview.php:104
1371
  msgid "Thanks to all donators..."
1372
  msgstr ""
1373
 
1374
- #: ../admin/overview.php:126
1375
  msgid "View all"
1376
  msgstr ""
1377
 
1378
- #: ../admin/overview.php:164
 
 
 
 
1379
  #, php-format
1380
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1381
  msgstr ""
1382
 
1383
- #: ../admin/overview.php:184
1384
  msgid "At a Glance"
1385
  msgstr ""
1386
 
1387
- #: ../admin/overview.php:190
1388
  msgid "Image"
1389
  msgid_plural "Images"
1390
  msgstr[0] ""
1391
  msgstr[1] ""
1392
 
1393
- #: ../admin/overview.php:202
1394
- msgid "Album"
1395
- msgid_plural "Albums"
1396
- msgstr[0] ""
1397
- msgstr[1] ""
1398
-
1399
- #: ../admin/overview.php:211
1400
  msgid "Upload pictures"
1401
  msgstr ""
1402
 
1403
- #: ../admin/overview.php:212
1404
  msgid "Here you can control your images, galleries and albums."
1405
  msgstr ""
1406
 
1407
- #: ../admin/overview.php:216
1408
  msgid "Gallery Administrator"
1409
  msgstr ""
1410
 
1411
- #: ../admin/overview.php:216
1412
  msgid "Gallery Editor"
1413
  msgstr ""
1414
 
1415
- #: ../admin/overview.php:217
1416
  #, php-format
1417
  msgid "You currently have %s rights."
1418
  msgstr ""
1419
 
1420
- #: ../admin/overview.php:224
1421
- msgid "Welcome to NextGEN Gallery !"
1422
- msgstr ""
1423
-
1424
- #: ../admin/overview.php:225
1425
- msgid "Latest News"
1426
- msgstr ""
1427
-
1428
- #: ../admin/overview.php:226
1429
- msgid "Recent donators"
1430
  msgstr ""
1431
 
1432
- #: ../admin/overview.php:227
1433
- msgid "Server Settings"
1434
  msgstr ""
1435
 
1436
- #: ../admin/overview.php:228
1437
- msgid "Related plugins"
1438
  msgstr ""
1439
 
1440
- #: ../admin/overview.php:229
1441
- msgid "Graphic Library"
1442
  msgstr ""
1443
 
1444
- #: ../admin/overview.php:249
1445
  msgid "No GD support"
1446
  msgstr ""
1447
 
1448
- #: ../admin/overview.php:261
1449
- #: ../admin/overview.php:307
1450
- #: ../admin/overview.php:310
1451
- #: ../admin/overview.php:313
1452
  msgid "Yes"
1453
  msgstr ""
1454
 
1455
- #: ../admin/overview.php:263
1456
- #: ../admin/overview.php:308
1457
- #: ../admin/overview.php:311
1458
- #: ../admin/overview.php:314
1459
  msgid "No"
1460
  msgstr ""
1461
 
1462
- #: ../admin/overview.php:281
1463
  msgid "Not set"
1464
  msgstr ""
1465
 
1466
- #: ../admin/overview.php:283
1467
- #: ../admin/overview.php:286
1468
  msgid "On"
1469
  msgstr ""
1470
 
1471
- #: ../admin/overview.php:284
1472
- #: ../admin/overview.php:287
1473
  msgid "Off"
1474
  msgstr ""
1475
 
1476
- #: ../admin/overview.php:290
1477
- #: ../admin/overview.php:293
1478
- #: ../admin/overview.php:296
1479
- #: ../admin/overview.php:299
1480
- #: ../admin/overview.php:302
1481
- #: ../admin/overview.php:305
1482
  msgid "N/A"
1483
  msgstr ""
1484
 
1485
- #: ../admin/overview.php:304
1486
  msgid " MByte"
1487
  msgstr ""
1488
 
1489
- #: ../admin/overview.php:317
1490
  msgid "Operating System"
1491
  msgstr ""
1492
 
1493
- #: ../admin/overview.php:318
1494
  msgid "Server"
1495
  msgstr ""
1496
 
1497
- #: ../admin/overview.php:319
1498
  msgid "Memory usage"
1499
  msgstr ""
1500
 
1501
- #: ../admin/overview.php:320
1502
  msgid "MYSQL Version"
1503
  msgstr ""
1504
 
1505
- #: ../admin/overview.php:321
1506
  msgid "SQL Mode"
1507
  msgstr ""
1508
 
1509
- #: ../admin/overview.php:322
1510
  msgid "PHP Version"
1511
  msgstr ""
1512
 
1513
- #: ../admin/overview.php:323
1514
  msgid "PHP Safe Mode"
1515
  msgstr ""
1516
 
1517
- #: ../admin/overview.php:324
1518
  msgid "PHP Allow URL fopen"
1519
  msgstr ""
1520
 
1521
- #: ../admin/overview.php:325
1522
  msgid "PHP Memory Limit"
1523
  msgstr ""
1524
 
1525
- #: ../admin/overview.php:326
1526
  msgid "PHP Max Upload Size"
1527
  msgstr ""
1528
 
1529
- #: ../admin/overview.php:327
1530
  msgid "PHP Max Post Size"
1531
  msgstr ""
1532
 
1533
- #: ../admin/overview.php:328
1534
- msgid "PHP Output Buffer Size"
1535
  msgstr ""
1536
 
1537
- #: ../admin/overview.php:329
1538
  msgid "PHP Max Script Execute Time"
1539
  msgstr ""
1540
 
1541
- #: ../admin/overview.php:330
1542
  msgid "PHP Exif support"
1543
  msgstr ""
1544
 
1545
- #: ../admin/overview.php:331
1546
  msgid "PHP IPTC support"
1547
  msgstr ""
1548
 
1549
- #: ../admin/overview.php:332
1550
  msgid "PHP XML support"
1551
  msgstr ""
1552
 
1553
- #: ../admin/overview.php:344
1554
  msgid "NextGEN Gallery contains some functions which are only available under PHP 5.2. You are using the old PHP 4 version, upgrade now! It's no longer supported by the PHP group. Many shared hosting providers offer both PHP 4 and PHP 5, running simultaneously. Ask your provider if they can do this."
1555
  msgstr ""
1556
 
1557
- #: ../admin/overview.php:403
1558
  msgid "Storage Space"
1559
  msgstr ""
1560
 
1561
- #: ../admin/overview.php:406
1562
  msgid "Upload Space Used:"
1563
  msgstr ""
1564
 
1565
- #: ../admin/overview.php:412
1566
  msgid "Upload Space Remaining:"
1567
  msgstr ""
1568
 
1569
- #: ../admin/overview.php:554
1570
  msgid "Install"
1571
  msgstr ""
1572
 
@@ -1650,516 +1758,542 @@ msgstr ""
1650
  msgid "Flip horizontally"
1651
  msgstr ""
1652
 
1653
- #: ../admin/settings.php:61
1654
  msgid "Cache cleared"
1655
  msgstr ""
1656
 
1657
- #: ../admin/settings.php:126
1658
- #: ../admin/settings.php:138
1659
  msgid "General Options"
1660
  msgstr ""
1661
 
1662
- #: ../admin/settings.php:127
1663
- #: ../admin/settings.php:306
1664
  msgid "Thumbnails"
1665
  msgstr ""
1666
 
1667
- #: ../admin/settings.php:128
1668
  msgid "Images"
1669
  msgstr ""
1670
 
1671
- #: ../admin/settings.php:130
1672
- #: ../admin/settings.php:356
1673
  msgid "Effects"
1674
  msgstr ""
1675
 
1676
- #: ../admin/settings.php:131
1677
- #: ../admin/settings.php:395
 
1678
  msgid "Watermark"
1679
  msgstr ""
1680
 
1681
- #: ../admin/settings.php:132
1682
- #: ../admin/settings.php:307
1683
- #: ../admin/settings.php:499
 
1684
  msgid "Slideshow"
1685
  msgstr ""
1686
 
1687
- #: ../admin/settings.php:144
1688
  #: ../admin/wpmu.php:47
1689
  msgid "Gallery path"
1690
  msgstr ""
1691
 
1692
- #: ../admin/settings.php:146
1693
  msgid "This is the default path for all galleries"
1694
  msgstr ""
1695
 
1696
- #: ../admin/settings.php:149
1697
  msgid "Delete image files"
1698
  msgstr ""
1699
 
1700
- #: ../admin/settings.php:151
1701
  msgid "Delete files, when removing a gallery in the database"
1702
  msgstr ""
1703
 
1704
- #: ../admin/settings.php:154
1705
  msgid "Activate permalinks"
1706
  msgstr ""
1707
 
1708
- #: ../admin/settings.php:156
1709
  msgid "When you activate this option, you need to update your permalink structure one time."
1710
  msgstr ""
1711
 
1712
- #: ../admin/settings.php:159
1713
  msgid "Select graphic library"
1714
  msgstr ""
1715
 
1716
- #: ../admin/settings.php:160
1717
  msgid "GD Library"
1718
  msgstr ""
1719
 
1720
- #: ../admin/settings.php:161
1721
  msgid "ImageMagick (Experimental). Path to the library :"
1722
  msgstr ""
1723
 
1724
- #: ../admin/settings.php:166
1725
  msgid "Activate Media RSS feed"
1726
  msgstr ""
1727
 
1728
- #: ../admin/settings.php:168
1729
  msgid "A RSS feed will be added to you blog header. Useful for CoolIris/PicLens"
1730
  msgstr ""
1731
 
1732
- #: ../admin/settings.php:171
1733
  msgid "Activate PicLens/CoolIris support"
1734
  msgstr ""
1735
 
1736
- #: ../admin/settings.php:173
1737
  msgid "When you activate this option, some javascript is added to your site footer. Make sure that wp_footer is called in your theme."
1738
  msgstr ""
1739
 
1740
- #: ../admin/settings.php:176
1741
  msgid "Tags / Categories"
1742
  msgstr ""
1743
 
1744
- #: ../admin/settings.php:179
1745
  msgid "Activate related images"
1746
  msgstr ""
1747
 
1748
- #: ../admin/settings.php:181
1749
  msgid "This option will append related images to every post"
1750
  msgstr ""
1751
 
1752
- #: ../admin/settings.php:185
1753
  msgid "Match with"
1754
  msgstr ""
1755
 
1756
- #: ../admin/settings.php:186
1757
  msgid "Categories"
1758
  msgstr ""
1759
 
1760
- #: ../admin/settings.php:191
1761
  msgid "Max. number of images"
1762
  msgstr ""
1763
 
1764
- #: ../admin/settings.php:193
1765
  msgid "0 will show all images"
1766
  msgstr ""
1767
 
1768
- #: ../admin/settings.php:197
1769
- #: ../admin/settings.php:226
1770
- #: ../admin/settings.php:266
1771
- #: ../admin/settings.php:348
1772
- #: ../admin/settings.php:381
1773
- #: ../admin/settings.php:613
1774
  msgid "More settings"
1775
  msgstr ""
1776
 
1777
- #: ../admin/settings.php:205
1778
  msgid "Thumbnail settings"
1779
  msgstr ""
1780
 
1781
- #: ../admin/settings.php:209
1782
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1783
  msgstr ""
1784
 
1785
- #: ../admin/settings.php:222
1786
  msgid "Thumbnail quality"
1787
  msgstr ""
1788
 
1789
- #: ../admin/settings.php:234
1790
  msgid "Image settings"
1791
  msgstr ""
1792
 
1793
- #: ../admin/settings.php:240
1794
  msgid "Resize Images"
1795
  msgstr ""
1796
 
1797
- #: ../admin/settings.php:247
1798
  msgid "Image quality"
1799
  msgstr ""
1800
 
1801
- #: ../admin/settings.php:252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1802
  msgid "Single picture"
1803
  msgstr ""
1804
 
1805
- #: ../admin/settings.php:255
1806
  msgid "Cache single pictures"
1807
  msgstr ""
1808
 
1809
- #: ../admin/settings.php:258
1810
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1811
  msgstr ""
1812
 
1813
- #: ../admin/settings.php:261
1814
  msgid "Clear cache folder"
1815
  msgstr ""
1816
 
1817
- #: ../admin/settings.php:263
1818
  msgid "Proceed now"
1819
  msgstr ""
1820
 
1821
- #: ../admin/settings.php:280
1822
  msgid "Deactivate gallery page link"
1823
  msgstr ""
1824
 
1825
- #: ../admin/settings.php:282
1826
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1827
  msgstr ""
1828
 
1829
- #: ../admin/settings.php:286
1830
  msgid "Number of images per page"
1831
  msgstr ""
1832
 
1833
- #: ../admin/settings.php:288
1834
  msgid "0 will disable pagination, all images on one page"
1835
  msgstr ""
1836
 
1837
- #: ../admin/settings.php:292
1838
  msgid "Number of columns"
1839
  msgstr ""
1840
 
1841
- #: ../admin/settings.php:294
1842
  msgid "0 will display as much as possible based on the width of your theme. Setting normally only required for captions below the images"
1843
  msgstr ""
1844
 
1845
- #: ../admin/settings.php:298
1846
  msgid "Integrate slideshow"
1847
  msgstr ""
1848
 
1849
- #: ../admin/settings.php:305
1850
  msgid "Show first"
1851
  msgstr ""
1852
 
1853
- #: ../admin/settings.php:311
1854
  msgid "Show ImageBrowser"
1855
  msgstr ""
1856
 
1857
- #: ../admin/settings.php:313
1858
  msgid "The gallery will open the ImageBrowser instead the effect."
1859
  msgstr ""
1860
 
1861
- #: ../admin/settings.php:317
1862
  msgid "Add hidden images"
1863
  msgstr ""
1864
 
1865
- #: ../admin/settings.php:319
1866
  msgid "If pagination is used, this option will still show all images in the modal window (Thickbox, Lightbox etc.). Note : This increase the page load"
1867
  msgstr ""
1868
 
1869
- #: ../admin/settings.php:323
1870
  msgid "Enable AJAX pagination"
1871
  msgstr ""
1872
 
1873
- #: ../admin/settings.php:325
1874
  msgid "Browse images without reload the page. Note : Work only in combination with Shutter effect"
1875
  msgstr ""
1876
 
1877
- #: ../admin/settings.php:329
1878
  msgid "Sort options"
1879
  msgstr ""
1880
 
1881
- #: ../admin/settings.php:332
1882
  msgid "Sort thumbnails"
1883
  msgstr ""
1884
 
1885
- #: ../admin/settings.php:334
1886
  msgid "Custom order"
1887
  msgstr ""
1888
 
1889
- #: ../admin/settings.php:336
1890
  msgid "File name"
1891
  msgstr ""
1892
 
1893
- #: ../admin/settings.php:337
1894
  msgid "Alt / Title text"
1895
  msgstr ""
1896
 
1897
- #: ../admin/settings.php:338
1898
  msgid "Date / Time"
1899
  msgstr ""
1900
 
1901
- #: ../admin/settings.php:342
1902
  msgid "Sort direction"
1903
  msgstr ""
1904
 
1905
- #: ../admin/settings.php:360
1906
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Shutter and Thickbox effect will automatic added to your theme."
1907
  msgstr ""
1908
 
1909
- #: ../admin/settings.php:361
1910
  msgid "With the placeholder"
1911
  msgstr ""
1912
 
1913
- #: ../admin/settings.php:361
1914
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1915
  msgstr ""
1916
 
1917
- #: ../admin/settings.php:364
1918
  msgid "JavaScript Thumbnail effect"
1919
  msgstr ""
1920
 
1921
- #: ../admin/settings.php:368
 
 
 
 
1922
  msgid "Thickbox"
1923
  msgstr ""
1924
 
1925
- #: ../admin/settings.php:369
1926
  msgid "Lightbox"
1927
  msgstr ""
1928
 
1929
- #: ../admin/settings.php:370
1930
  msgid "Highslide"
1931
  msgstr ""
1932
 
1933
- #: ../admin/settings.php:371
1934
  msgid "Shutter"
1935
  msgstr ""
1936
 
1937
- #: ../admin/settings.php:372
1938
  msgid "Custom"
1939
  msgstr ""
1940
 
1941
- #: ../admin/settings.php:377
1942
  msgid "Link Code line"
1943
  msgstr ""
1944
 
1945
- #: ../admin/settings.php:396
1946
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
1947
  msgstr ""
1948
 
1949
- #: ../admin/settings.php:401
1950
  msgid "Preview"
1951
  msgstr ""
1952
 
1953
- #: ../admin/settings.php:403
1954
- #: ../admin/settings.php:408
1955
  msgid "Position"
1956
  msgstr ""
1957
 
1958
- #: ../admin/settings.php:428
1959
  msgid "Offset"
1960
  msgstr ""
1961
 
1962
- #: ../admin/settings.php:444
1963
  msgid "Use image as watermark"
1964
  msgstr ""
1965
 
1966
- #: ../admin/settings.php:447
1967
  msgid "URL to file"
1968
  msgstr ""
1969
 
1970
- #: ../admin/settings.php:449
1971
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
1972
  msgstr ""
1973
 
1974
- #: ../admin/settings.php:452
1975
  msgid "Use text as watermark"
1976
  msgstr ""
1977
 
1978
- #: ../admin/settings.php:455
1979
  msgid "Font"
1980
  msgstr ""
1981
 
1982
- #: ../admin/settings.php:464
1983
  msgid "This function will not work, cause you need the FreeType library"
1984
  msgstr ""
1985
 
1986
- #: ../admin/settings.php:466
1987
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1988
  msgstr ""
1989
 
1990
- #: ../admin/settings.php:475
 
 
 
 
1991
  msgid "Color"
1992
  msgstr ""
1993
 
1994
- #: ../admin/settings.php:477
1995
  msgid "(hex w/o #)"
1996
  msgstr ""
1997
 
1998
- #: ../admin/settings.php:480
1999
  msgid "Text"
2000
  msgstr ""
2001
 
2002
- #: ../admin/settings.php:484
2003
  msgid "Opaque"
2004
  msgstr ""
2005
 
2006
- #: ../admin/settings.php:504
2007
  msgid "The path to imagerotator.swf is not defined, the slideshow will not work."
2008
  msgstr ""
2009
 
2010
- #: ../admin/settings.php:505
2011
  msgid "If you would like to use the JW Image Rotatator, please download the player <a href=\"http://www.longtailvideo.com/players/jw-image-rotator/\" target=\"_blank\" >here</a> and upload it to your Upload folder (Default is wp-content/uploads)."
2012
  msgstr ""
2013
 
2014
- #: ../admin/settings.php:510
2015
  msgid "The settings are used in the JW Image Rotator Version"
2016
  msgstr ""
2017
 
2018
- #: ../admin/settings.php:511
2019
  msgid "See more information for the Flash Player on the web page"
2020
  msgstr ""
2021
 
2022
- #: ../admin/settings.php:515
2023
  msgid "Path to the Imagerotator (URL)"
2024
  msgstr ""
2025
 
2026
- #: ../admin/settings.php:518
2027
  msgid "Search now"
2028
  msgstr ""
2029
 
2030
- #: ../admin/settings.php:519
2031
  msgid "Press the button to search automatic for the imagerotator, if you uploaded it to wp-content/uploads or a subfolder"
2032
  msgstr ""
2033
 
2034
- #: ../admin/settings.php:523
2035
  msgid "Default size (W x H)"
2036
  msgstr ""
2037
 
2038
- #: ../admin/settings.php:528
2039
  msgid "Shuffle mode"
2040
  msgstr ""
2041
 
2042
- #: ../admin/settings.php:532
2043
  msgid "Show next image on click"
2044
  msgstr ""
2045
 
2046
- #: ../admin/settings.php:536
2047
  msgid "Show navigation bar"
2048
  msgstr ""
2049
 
2050
- #: ../admin/settings.php:540
2051
  msgid "Show loading icon"
2052
  msgstr ""
2053
 
2054
- #: ../admin/settings.php:544
2055
  msgid "Use watermark logo"
2056
  msgstr ""
2057
 
2058
- #: ../admin/settings.php:546
2059
  msgid "You can change the logo at the watermark settings"
2060
  msgstr ""
2061
 
2062
- #: ../admin/settings.php:549
2063
  msgid "Stretch image"
2064
  msgstr ""
2065
 
2066
- #: ../admin/settings.php:552
2067
  msgid "true"
2068
  msgstr ""
2069
 
2070
- #: ../admin/settings.php:553
2071
  msgid "false"
2072
  msgstr ""
2073
 
2074
- #: ../admin/settings.php:554
2075
  msgid "fit"
2076
  msgstr ""
2077
 
2078
- #: ../admin/settings.php:555
2079
  msgid "none"
2080
  msgstr ""
2081
 
2082
- #: ../admin/settings.php:560
2083
  msgid "Duration time"
2084
  msgstr ""
2085
 
2086
- #: ../admin/settings.php:561
2087
  msgid "sec."
2088
  msgstr ""
2089
 
2090
- #: ../admin/settings.php:564
2091
  msgid "Transition / Fade effect"
2092
  msgstr ""
2093
 
2094
- #: ../admin/settings.php:567
2095
  msgid "fade"
2096
  msgstr ""
2097
 
2098
- #: ../admin/settings.php:568
2099
  msgid "bgfade"
2100
  msgstr ""
2101
 
2102
- #: ../admin/settings.php:569
2103
  msgid "slowfade"
2104
  msgstr ""
2105
 
2106
- #: ../admin/settings.php:570
2107
  msgid "circles"
2108
  msgstr ""
2109
 
2110
- #: ../admin/settings.php:571
2111
  msgid "bubbles"
2112
  msgstr ""
2113
 
2114
- #: ../admin/settings.php:572
2115
  msgid "blocks"
2116
  msgstr ""
2117
 
2118
- #: ../admin/settings.php:573
2119
  msgid "fluids"
2120
  msgstr ""
2121
 
2122
- #: ../admin/settings.php:574
2123
  msgid "flash"
2124
  msgstr ""
2125
 
2126
- #: ../admin/settings.php:575
2127
  msgid "lines"
2128
  msgstr ""
2129
 
2130
- #: ../admin/settings.php:576
2131
  msgid "random"
2132
  msgstr ""
2133
 
2134
- #: ../admin/settings.php:580
2135
  msgid "Use slow zooming effect"
2136
  msgstr ""
2137
 
2138
- #: ../admin/settings.php:584
2139
  msgid "Background Color"
2140
  msgstr ""
2141
 
2142
- #: ../admin/settings.php:589
2143
  msgid "Texts / Buttons Color"
2144
  msgstr ""
2145
 
2146
- #: ../admin/settings.php:594
2147
  msgid "Rollover / Active Color"
2148
  msgstr ""
2149
 
2150
- #: ../admin/settings.php:599
2151
  msgid "Screen Color"
2152
  msgstr ""
2153
 
2154
- #: ../admin/settings.php:604
2155
  msgid "Background music (URL)"
2156
  msgstr ""
2157
 
2158
- #: ../admin/settings.php:608
2159
  msgid "Try XHTML validation (with CDATA)"
2160
  msgstr ""
2161
 
2162
- #: ../admin/settings.php:610
2163
  msgid "Important : Could causes problem at some browser. Please recheck your page."
2164
  msgstr ""
2165
 
@@ -2226,41 +2360,41 @@ msgid ""
2226
  "Choose [Cancel] to Stop, [OK] to Uninstall.\\n"
2227
  msgstr ""
2228
 
2229
- #: ../admin/showmeta.php:28
2230
  msgid "Meta Data"
2231
  msgstr ""
2232
 
2233
- #: ../admin/showmeta.php:33
2234
- #: ../admin/showmeta.php:59
2235
- #: ../admin/showmeta.php:84
2236
- #: ../admin/showmeta.php:108
2237
- msgid "Tag"
2238
- msgstr ""
2239
-
2240
  #: ../admin/showmeta.php:34
2241
  #: ../admin/showmeta.php:60
2242
  #: ../admin/showmeta.php:85
2243
  #: ../admin/showmeta.php:109
 
 
 
 
 
 
 
2244
  msgid "Value"
2245
  msgstr ""
2246
 
2247
- #: ../admin/showmeta.php:48
2248
  msgid "No meta data saved"
2249
  msgstr ""
2250
 
2251
- #: ../admin/showmeta.php:54
2252
  msgid "EXIF Data"
2253
  msgstr ""
2254
 
2255
- #: ../admin/showmeta.php:73
2256
  msgid "No exif data"
2257
  msgstr ""
2258
 
2259
- #: ../admin/showmeta.php:80
2260
  msgid "IPTC Data"
2261
  msgstr ""
2262
 
2263
- #: ../admin/showmeta.php:104
2264
  msgid "XMP Data"
2265
  msgstr ""
2266
 
@@ -2276,53 +2410,53 @@ msgstr ""
2276
  msgid "CSS file successfully updated"
2277
  msgstr ""
2278
 
2279
- #: ../admin/style.php:89
2280
  msgid "Style Editor"
2281
  msgstr ""
2282
 
2283
- #: ../admin/style.php:93
2284
  msgid "Activate and use style sheet:"
2285
  msgstr ""
2286
 
2287
- #: ../admin/style.php:113
2288
  msgid "Activate"
2289
  msgstr ""
2290
 
2291
- #: ../admin/style.php:123
2292
  #, php-format
2293
  msgid "Editing <strong>%s</strong>"
2294
  msgstr ""
2295
 
2296
- #: ../admin/style.php:125
2297
  #, php-format
2298
  msgid "Browsing <strong>%s</strong>"
2299
  msgstr ""
2300
 
2301
- #: ../admin/style.php:135
2302
  msgid "Version"
2303
  msgstr ""
2304
 
2305
- #: ../admin/style.php:138
2306
  msgid "Tip : Copy your stylesheet (nggallery.css) to your theme folder, so it will be not lost during a upgrade"
2307
  msgstr ""
2308
 
2309
- #: ../admin/style.php:140
2310
  msgid "Your theme contain a NextGEN Gallery stylesheet (nggallery.css), this file will be used"
2311
  msgstr ""
2312
 
2313
- #: ../admin/style.php:142
2314
  msgid "Tip No. 2: Use the color picker below to help you find the right color scheme for your gallery!"
2315
  msgstr ""
2316
 
2317
- #: ../admin/style.php:158
2318
  msgid "Update File"
2319
  msgstr ""
2320
 
2321
- #: ../admin/style.php:161
2322
  msgid "If this file were writable you could edit it."
2323
  msgstr ""
2324
 
2325
- #: ../admin/style.php:166
2326
  msgid "Oops, no such file exists! Double check the name and try again, merci."
2327
  msgstr ""
2328
 
@@ -2434,68 +2568,72 @@ msgstr ""
2434
  msgid "Upgrade database structure..."
2435
  msgstr ""
2436
 
2437
- #: ../admin/upgrade.php:98
2438
- #: ../admin/upgrade.php:108
2439
- #: ../admin/upgrade.php:115
2440
- #: ../admin/upgrade.php:126
2441
- #: ../admin/upgrade.php:140
2442
  msgid "finished"
2443
  msgstr ""
2444
 
2445
- #: ../admin/upgrade.php:106
2446
  msgid "Update file structure..."
2447
  msgstr ""
2448
 
2449
- #: ../admin/upgrade.php:113
2450
  msgid "Import date and time information..."
2451
  msgstr ""
2452
 
2453
- #: ../admin/upgrade.php:121
2454
  msgid "Move imagerotator to new location..."
2455
  msgstr ""
2456
 
2457
- #: ../admin/upgrade.php:132
2458
  msgid "Update settings..."
2459
  msgstr ""
2460
 
2461
- #: ../admin/upgrade.php:205
 
 
 
 
2462
  msgid "Some folders/files could not renamed, please recheck the permission and rescan the folder in the manage gallery section."
2463
  msgstr ""
2464
 
2465
- #: ../admin/upgrade.php:207
2466
  msgid "Rename failed"
2467
  msgstr ""
2468
 
2469
- #: ../admin/upgrade.php:302
2470
- #: ../admin/upgrade.php:321
2471
  msgid "Upgrade NextGEN Gallery"
2472
  msgstr ""
2473
 
2474
- #: ../admin/upgrade.php:303
2475
  msgid "The script detect that you upgrade from a older version."
2476
  msgstr ""
2477
 
2478
- #: ../admin/upgrade.php:304
2479
  msgid "Your database tables for NextGEN Gallery is out-of-date, and must be upgraded before you can continue."
2480
  msgstr ""
2481
 
2482
- #: ../admin/upgrade.php:305
2483
  msgid "If you would like to downgrade later, please make first a complete backup of your database and the images."
2484
  msgstr ""
2485
 
2486
- #: ../admin/upgrade.php:306
2487
  msgid "The upgrade process may take a while, so please be patient."
2488
  msgstr ""
2489
 
2490
- #: ../admin/upgrade.php:307
2491
  msgid "Start upgrade now"
2492
  msgstr ""
2493
 
2494
- #: ../admin/upgrade.php:323
2495
  msgid "Upgrade sucessful"
2496
  msgstr ""
2497
 
2498
- #: ../admin/upgrade.php:324
2499
  msgid "Continue"
2500
  msgstr ""
2501
 
@@ -2608,6 +2746,18 @@ msgstr ""
2608
  msgid "No float"
2609
  msgstr ""
2610
 
 
 
 
 
 
 
 
 
 
 
 
 
2611
  #: ../admin/tinymce/window.php:147
2612
  msgid "Insert"
2613
  msgstr ""
@@ -2617,153 +2767,162 @@ msgstr ""
2617
  msgid "Note : Based on your server memory limit you should not upload larger images then <strong>%d x %d</strong> pixel"
2618
  msgstr ""
2619
 
2620
- #: ../lib/meta.php:123
 
 
 
 
 
 
 
 
 
2621
  msgid " mm"
2622
  msgstr ""
2623
 
2624
- #: ../lib/meta.php:129
2625
  msgid " sec"
2626
  msgstr ""
2627
 
2628
- #: ../lib/meta.php:133
2629
  msgid "Fired"
2630
  msgstr ""
2631
 
2632
- #: ../lib/meta.php:133
2633
  msgid "Not fired"
2634
  msgstr ""
2635
 
2636
- #: ../lib/meta.php:414
2637
  msgid "Aperture"
2638
  msgstr ""
2639
 
2640
- #: ../lib/meta.php:415
2641
- #: ../lib/meta.php:440
2642
  msgid "Credit"
2643
  msgstr ""
2644
 
2645
- #: ../lib/meta.php:416
2646
  msgid "Camera"
2647
  msgstr ""
2648
 
2649
- #: ../lib/meta.php:417
2650
  msgid "Caption"
2651
  msgstr ""
2652
 
2653
- #: ../lib/meta.php:419
2654
  msgid "Copyright"
2655
  msgstr ""
2656
 
2657
- #: ../lib/meta.php:420
2658
  msgid "Focal length"
2659
  msgstr ""
2660
 
2661
- #: ../lib/meta.php:421
2662
  msgid "ISO"
2663
  msgstr ""
2664
 
2665
- #: ../lib/meta.php:422
2666
  msgid "Shutter speed"
2667
  msgstr ""
2668
 
2669
- #: ../lib/meta.php:426
2670
  msgid "Subject"
2671
  msgstr ""
2672
 
2673
- #: ../lib/meta.php:427
2674
  msgid "Make"
2675
  msgstr ""
2676
 
2677
- #: ../lib/meta.php:428
2678
  msgid "Edit Status"
2679
  msgstr ""
2680
 
2681
- #: ../lib/meta.php:429
2682
  msgid "Category"
2683
  msgstr ""
2684
 
2685
- #: ../lib/meta.php:430
2686
  msgid "Keywords"
2687
  msgstr ""
2688
 
2689
- #: ../lib/meta.php:431
2690
  msgid "Date Created"
2691
  msgstr ""
2692
 
2693
- #: ../lib/meta.php:432
2694
  msgid "Time Created"
2695
  msgstr ""
2696
 
2697
- #: ../lib/meta.php:433
2698
  msgid "Author Position"
2699
  msgstr ""
2700
 
2701
- #: ../lib/meta.php:434
2702
  msgid "City"
2703
  msgstr ""
2704
 
2705
- #: ../lib/meta.php:435
2706
  msgid "Location"
2707
  msgstr ""
2708
 
2709
- #: ../lib/meta.php:436
2710
  msgid "Province/State"
2711
  msgstr ""
2712
 
2713
- #: ../lib/meta.php:437
2714
  msgid "Country code"
2715
  msgstr ""
2716
 
2717
- #: ../lib/meta.php:438
2718
  msgid "Country"
2719
  msgstr ""
2720
 
2721
- #: ../lib/meta.php:439
2722
  msgid "Headline"
2723
  msgstr ""
2724
 
2725
- #: ../lib/meta.php:441
2726
  msgid "Source"
2727
  msgstr ""
2728
 
2729
- #: ../lib/meta.php:442
2730
  msgid "Copyright Notice"
2731
  msgstr ""
2732
 
2733
- #: ../lib/meta.php:443
2734
  msgid "Contact"
2735
  msgstr ""
2736
 
2737
- #: ../lib/meta.php:444
2738
  msgid "Last modified"
2739
  msgstr ""
2740
 
2741
- #: ../lib/meta.php:445
2742
  msgid "Program tool"
2743
  msgstr ""
2744
 
2745
- #: ../lib/meta.php:446
2746
  msgid "Format"
2747
  msgstr ""
2748
 
2749
- #: ../lib/meta.php:447
2750
  msgid "Image Width"
2751
  msgstr ""
2752
 
2753
- #: ../lib/meta.php:448
2754
  msgid "Image Height"
2755
  msgstr ""
2756
 
2757
- #: ../lib/meta.php:449
2758
  msgid "Flash"
2759
  msgstr ""
2760
 
2761
- #: ../lib/ngg-db.php:313
2762
- #: ../lib/ngg-db.php:314
2763
  msgid "Album overview"
2764
  msgstr ""
2765
 
2766
- #: ../lib/shortcodes.php:289
2767
  msgid "[Pictures not found]"
2768
  msgstr ""
2769
 
@@ -2886,13 +3045,11 @@ msgid "Sorry, could not create the gallery"
2886
  msgstr ""
2887
 
2888
  #: ../view/album-compact.php:32
 
2889
  msgid "Photos"
2890
  msgstr ""
2891
 
2892
  #: ../view/gallery-caption.php:32
2893
- #: ../view/gallery-hidden.php:32
2894
- #: ../view/gallery.php:32
2895
- #: ../widgets/media-rss-widget.php:236
2896
  msgid "[View with PicLens]"
2897
  msgstr ""
2898
 
@@ -2991,59 +3148,59 @@ msgstr ""
2991
  msgid "Width:"
2992
  msgstr ""
2993
 
2994
- #: ../widgets/widgets.php:171
2995
  msgid "Add recent or random images from the galleries"
2996
  msgstr ""
2997
 
2998
- #: ../widgets/widgets.php:173
2999
  msgid "NextGEN Widget"
3000
  msgstr ""
3001
 
3002
- #: ../widgets/widgets.php:273
3003
  msgid "Title :"
3004
  msgstr ""
3005
 
3006
- #: ../widgets/widgets.php:279
3007
  msgid "Show :"
3008
  msgstr ""
3009
 
3010
- #: ../widgets/widgets.php:285
3011
  msgid "Original images"
3012
  msgstr ""
3013
 
3014
- #: ../widgets/widgets.php:293
3015
  msgid "recent added "
3016
  msgstr ""
3017
 
3018
- #: ../widgets/widgets.php:299
3019
  msgid "Enable IE8 Web Slices"
3020
  msgstr ""
3021
 
3022
- #: ../widgets/widgets.php:304
3023
  msgid "Width x Height :"
3024
  msgstr ""
3025
 
3026
- #: ../widgets/widgets.php:311
3027
  msgid "Select :"
3028
  msgstr ""
3029
 
3030
- #: ../widgets/widgets.php:313
3031
  msgid "All galleries"
3032
  msgstr ""
3033
 
3034
- #: ../widgets/widgets.php:314
3035
  msgid "Only which are not listed"
3036
  msgstr ""
3037
 
3038
- #: ../widgets/widgets.php:315
3039
  msgid "Only which are listed"
3040
  msgstr ""
3041
 
3042
- #: ../widgets/widgets.php:321
3043
  msgid "Gallery ID :"
3044
  msgstr ""
3045
 
3046
- #: ../widgets/widgets.php:323
3047
  msgid "Gallery IDs, separated by commas."
3048
  msgstr ""
3049
 
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-03-13 22:29+0100\n"
6
+ "PO-Revision-Date: 2010-03-13 22:29+0100\n"
7
+ "Last-Translator: Alex Rabe\n"
8
  "Language-Team: Alex Rabe\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
+ #: ../nggallery.php:63
21
+ msgid "<strong>Translation by : </strong><a target=\"_blank\" href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\">See here</a>"
22
+ msgstr ""
23
+
24
+ #: ../nggallery.php:64
25
+ msgid "<strong>This translation is not yet updated for Version 1.5.0</strong>. If you would like to help with translation, download the current po from the plugin folder and read <a href=\"http://alexrabe.de/wordpress-plugins/wordtube/translation-of-plugins/\">here</a> how you can translate the plugin."
26
+ msgstr ""
27
+
28
+ #: ../nggallery.php:201
29
  msgid "Sorry, NextGEN Gallery works only with a Memory Limit of 16 MB higher"
30
+ msgstr ""
31
 
32
+ #: ../nggallery.php:226
33
  msgid "Picture tag"
34
  msgstr ""
35
 
36
+ #: ../nggallery.php:227
37
  msgid "Picture tag: %2$l."
38
  msgstr ""
39
 
40
+ #: ../nggallery.php:228
41
  msgid "Separate picture tags with commas."
42
  msgstr ""
43
 
44
+ #: ../nggallery.php:325
45
  msgid "L O A D I N G"
46
  msgstr ""
47
 
48
+ #: ../nggallery.php:326
49
  msgid "Click to Close"
50
  msgstr ""
51
 
52
+ #: ../nggallery.php:342
53
  msgid "loading"
54
  msgstr ""
55
 
56
+ #: ../nggallery.php:440
57
  #: ../nggfunctions.php:848
58
  #: ../admin/admin.php:32
59
  msgid "Overview"
60
  msgstr ""
61
 
62
+ #: ../nggallery.php:441
63
  msgid "Get help"
64
  msgstr ""
65
 
66
+ #: ../nggallery.php:442
67
  msgid "Contribute"
68
  msgstr ""
69
 
70
+ #: ../nggallery.php:443
71
  msgid "Donate"
72
  msgstr ""
73
 
74
  #: ../nggfunctions.php:37
75
  msgid "The <a href=\"http://www.macromedia.com/go/getflashplayer\">Flash Player</a> and <a href=\"http://www.mozilla.com/firefox/\">a browser with Javascript support</a> are needed.."
76
+ msgstr ""
77
 
78
  #: ../nggfunctions.php:103
79
  #: ../nggfunctions.php:558
80
  msgid "[Gallery not found]"
81
  msgstr ""
82
 
83
+ #: ../nggfunctions.php:365
84
  msgid "[Album not found]"
85
  msgstr ""
86
 
204
  msgid "We would like to thank this people which support us in the work :"
205
  msgstr ""
206
 
207
+ #: ../admin/about.php:165
208
  msgid "and all donators..."
209
  msgstr ""
210
 
211
+ #: ../admin/addgallery.php:46
212
+ #: ../admin/addgallery.php:57
213
+ #: ../admin/addgallery.php:69
214
+ #: ../admin/addgallery.php:80
215
+ #: ../admin/album.php:96
216
+ #: ../admin/album.php:125
217
+ #: ../admin/album.php:140
218
+ #: ../admin/edit-thumbnail.php:19
219
+ #: ../admin/edit-thumbnail.php:22
220
+ #: ../admin/manage.php:178
221
+ msgid "Cheatin&#8217; uh?"
222
+ msgstr ""
223
+
224
+ #: ../admin/addgallery.php:62
225
  msgid "Upload failed!"
226
  msgstr ""
227
 
228
+ #: ../admin/addgallery.php:85
229
+ msgid "Upload failed! "
230
+ msgstr ""
231
+
232
+ #: ../admin/addgallery.php:90
233
+ #: ../admin/functions.php:908
234
+ #: ../admin/functions.php:1009
235
  msgid "No gallery selected !"
236
  msgstr ""
237
 
238
+ #: ../admin/addgallery.php:162
239
  msgid "Image Files"
240
  msgstr ""
241
 
242
+ #: ../admin/addgallery.php:181
243
+ #: ../admin/addgallery.php:212
244
  msgid "remove"
245
  msgstr ""
246
 
247
+ #: ../admin/addgallery.php:182
248
  msgid "Browse..."
249
  msgstr ""
250
 
251
+ #: ../admin/addgallery.php:183
252
+ #: ../admin/addgallery.php:399
253
  msgid "Upload images"
254
  msgstr ""
255
 
256
+ #: ../admin/addgallery.php:262
257
+ #: ../admin/addgallery.php:281
258
+ #: ../admin/manage-galleries.php:135
259
  msgid "Add new gallery"
260
  msgstr ""
261
 
262
+ #: ../admin/addgallery.php:265
263
+ #: ../admin/addgallery.php:303
264
  msgid "Upload a Zip-File"
265
  msgstr ""
266
 
267
+ #: ../admin/addgallery.php:268
268
+ #: ../admin/addgallery.php:345
269
  msgid "Import image folder"
270
  msgstr ""
271
 
272
+ #: ../admin/addgallery.php:270
273
+ #: ../admin/addgallery.php:365
274
  msgid "Upload Images"
275
  msgstr ""
276
 
277
+ #: ../admin/addgallery.php:286
278
+ #: ../admin/manage-galleries.php:218
279
  msgid "New Gallery"
280
  msgstr ""
281
 
282
+ #: ../admin/addgallery.php:289
283
+ #: ../admin/manage-galleries.php:220
284
  msgid "Create a new , empty gallery below the folder"
285
  msgstr ""
286
 
287
+ #: ../admin/addgallery.php:291
288
+ #: ../admin/manage-galleries.php:222
289
  msgid "Allowed characters for file and folder names are"
290
  msgstr ""
291
 
292
+ #: ../admin/addgallery.php:295
293
  msgid "Add gallery"
294
  msgstr ""
295
 
296
+ #: ../admin/addgallery.php:308
297
  msgid "Select Zip-File"
298
  msgstr ""
299
 
300
+ #: ../admin/addgallery.php:310
301
  msgid "Upload a zip file with images"
302
  msgstr ""
303
 
304
+ #: ../admin/addgallery.php:314
305
  msgid "or enter a Zip-File URL"
306
  msgstr ""
307
 
308
+ #: ../admin/addgallery.php:316
309
  msgid "Import a zip file with images from a url"
310
  msgstr ""
311
 
312
+ #: ../admin/addgallery.php:320
313
+ #: ../admin/addgallery.php:374
314
  msgid "in to"
315
  msgstr ""
316
 
317
+ #: ../admin/addgallery.php:322
318
  msgid "a new gallery"
319
  msgstr ""
320
 
321
+ #: ../admin/addgallery.php:333
322
  msgid "Note : The upload limit on your server is "
323
  msgstr ""
324
 
325
+ #: ../admin/addgallery.php:337
326
  msgid "Start upload"
327
  msgstr ""
328
 
329
+ #: ../admin/addgallery.php:350
330
  msgid "Import from Server path:"
331
  msgstr ""
332
 
333
+ #: ../admin/addgallery.php:353
334
  msgid " Please note : For safe-mode = ON you need to add the subfolder thumbs manually"
335
  msgstr ""
336
 
337
+ #: ../admin/addgallery.php:356
338
  msgid "Import folder"
339
  msgstr ""
340
 
341
+ #: ../admin/addgallery.php:370
342
  msgid "Upload image"
343
  msgstr ""
344
 
345
+ #: ../admin/addgallery.php:376
346
  msgid "Choose gallery"
347
  msgstr ""
348
 
349
+ #: ../admin/addgallery.php:395
350
  msgid "The batch upload requires Adobe Flash 10, disable it if you have problems"
351
  msgstr ""
352
 
353
+ #: ../admin/addgallery.php:395
354
  msgid "Disable flash upload"
355
  msgstr ""
356
 
357
+ #: ../admin/addgallery.php:397
358
  msgid "Upload multiple files at once by ctrl/shift-selecting in dialog"
359
  msgstr ""
360
 
361
+ #: ../admin/addgallery.php:397
362
  msgid "Enable flash based upload"
363
  msgstr ""
364
 
365
+ #: ../admin/admin.php:31
366
+ #: ../admin/admin.php:267
367
+ #: ../admin/admin.php:335
368
+ #: ../admin/functions.php:99
369
+ #: ../admin/functions.php:176
370
+ #: ../admin/manage-images.php:200
371
+ #: ../admin/manage.php:86
372
+ msgid "Gallery"
373
+ msgid_plural "Galleries"
374
+ msgstr[0] ""
375
+ msgstr[1] ""
376
+
377
  #: ../admin/admin.php:33
378
  msgid "Add Gallery / Images"
379
  msgstr ""
382
  msgid "Manage Gallery"
383
  msgstr ""
384
 
385
+ #: ../admin/admin.php:35
386
+ msgid "Album"
387
+ msgid_plural "Albums"
388
+ msgstr[0] ""
389
+ msgstr[1] ""
390
+
391
  #: ../admin/admin.php:36
392
  msgid "Tags"
393
  msgstr ""
400
  msgid "Style"
401
  msgstr ""
402
 
403
+ #: ../admin/admin.php:41
 
 
 
 
 
 
 
 
404
  msgid "Roles"
405
  msgstr ""
406
 
407
+ #: ../admin/admin.php:42
408
  msgid "About this Gallery"
409
  msgstr ""
410
 
411
+ #: ../admin/admin.php:42
412
  msgid "About"
413
  msgstr ""
414
 
415
+ #: ../admin/admin.php:44
416
  msgid "NextGEN Gallery"
417
  msgstr ""
418
 
419
+ #: ../admin/admin.php:45
420
+ msgid "Reset / Uninstall"
421
+ msgstr ""
422
+
423
+ #: ../admin/admin.php:74
424
  msgid "A new version of NextGEN Gallery is available !"
425
  msgstr ""
426
 
427
+ #: ../admin/admin.php:74
428
  msgid "Download here"
429
  msgstr ""
430
 
431
+ #: ../admin/admin.php:93
432
  #, php-format
433
  msgid "Thanks for using this plugin, I hope you are satisfied ! If you would like to support the further development, please consider a <strong><a href=\"%s\">donation</a></strong>! If you still need some help, please post your questions <a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\">here</a> ."
434
  msgstr ""
435
 
436
+ #: ../admin/admin.php:96
437
  msgid "OK, hide this message now !"
438
  msgstr ""
439
 
440
+ #: ../admin/admin.php:180
441
  msgid "You do not have the correct permission"
442
  msgstr ""
443
 
444
+ #: ../admin/admin.php:181
445
  msgid "Unexpected Error"
446
  msgstr ""
447
 
448
+ #: ../admin/admin.php:182
449
  msgid "A failure occurred"
450
  msgstr ""
451
 
452
+ #: ../admin/admin.php:271
 
 
 
 
 
 
 
 
 
453
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Introduction</a>"
454
  msgstr ""
455
 
456
+ #: ../admin/admin.php:274
457
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Setup</a>"
458
  msgstr ""
459
 
460
+ #: ../admin/admin.php:277
461
  msgid "<a href=\"http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/\" target=\"_blank\">Translation by alex rabe</a>"
462
  msgstr ""
463
 
464
+ #: ../admin/admin.php:280
465
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Roles / Capabilities</a>"
466
  msgstr ""
467
 
468
+ #: ../admin/admin.php:283
469
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Styles</a>"
470
  msgstr ""
471
 
472
+ #: ../admin/admin.php:284
473
  msgid "Templates"
474
  msgstr ""
475
 
 
476
  #: ../admin/admin.php:287
477
+ #: ../admin/admin.php:293
478
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery management</a>"
479
  msgstr ""
480
 
481
+ #: ../admin/admin.php:288
482
  msgid "Gallery example"
483
  msgstr ""
484
 
485
+ #: ../admin/admin.php:294
486
+ #: ../admin/admin.php:304
487
  msgid "Gallery tags"
488
  msgstr ""
489
 
490
+ #: ../admin/admin.php:297
491
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Album management</a>"
492
  msgstr ""
493
 
494
+ #: ../admin/admin.php:298
495
  msgid "Album example"
496
  msgstr ""
497
 
 
498
  #: ../admin/admin.php:299
499
+ #: ../admin/admin.php:305
500
  msgid "Album tags"
501
  msgstr ""
502
 
503
+ #: ../admin/admin.php:302
504
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-introduction/\" target=\"_blank\">Gallery tags</a>"
505
  msgstr ""
506
 
507
+ #: ../admin/admin.php:303
508
  msgid "Related images"
509
  msgstr ""
510
 
511
+ #: ../admin/admin.php:308
512
  msgid "<a href=\"http://dpotter.net/Technical/2008/03/nextgen-gallery-review-image-management/\" target=\"_blank\">Image management</a>"
513
  msgstr ""
514
 
515
+ #: ../admin/admin.php:309
516
  msgid "Custom fields"
517
  msgstr ""
518
 
519
+ #: ../admin/admin.php:314
520
  msgid "Get help with NextGEN Gallery"
521
  msgstr ""
522
 
523
+ #: ../admin/admin.php:318
524
  msgid "More Help & Info"
525
  msgstr ""
526
 
527
+ #: ../admin/admin.php:320
528
  msgid "<a href=\"http://wordpress.org/tags/nextgen-gallery?forum_id=10\" target=\"_blank\">Support Forums</a>"
529
  msgstr ""
530
 
531
+ #: ../admin/admin.php:321
532
  msgid "FAQ"
533
  msgstr ""
534
 
535
+ #: ../admin/admin.php:322
536
  msgid "Feature request"
537
  msgstr ""
538
 
539
+ #: ../admin/admin.php:323
540
  msgid "Get your language pack"
541
  msgstr ""
542
 
543
+ #: ../admin/admin.php:324
544
  msgid "Contribute development"
545
  msgstr ""
546
 
547
+ #: ../admin/admin.php:325
548
  msgid "Download latest version"
549
  msgstr ""
550
 
551
+ #: ../admin/album.php:103
552
+ #: ../admin/album.php:118
553
+ #: ../admin/album.php:150
554
  msgid "Update Successfully"
555
  msgstr ""
556
 
557
+ #: ../admin/album.php:129
558
  msgid "Album deleted"
559
  msgstr ""
560
 
561
+ #: ../admin/album.php:260
562
  msgid "Manage Albums"
563
  msgstr ""
564
 
565
+ #: ../admin/album.php:266
566
+ #: ../admin/album.php:315
567
  msgid "Select album"
568
  msgstr ""
569
 
570
+ #: ../admin/album.php:268
571
  msgid "No album selected"
572
  msgstr ""
573
 
574
+ #: ../admin/album.php:279
575
  #: ../admin/edit-thumbnail.php:157
576
  msgid "Update"
577
  msgstr ""
578
 
579
+ #: ../admin/album.php:281
580
  msgid "Edit album"
581
  msgstr ""
582
 
583
+ #: ../admin/album.php:284
584
+ #: ../admin/manage-galleries.php:196
585
+ #: ../admin/manage-images.php:404
586
  msgid "Delete"
587
  msgstr ""
588
 
589
+ #: ../admin/album.php:284
590
  msgid "Delete album ?"
591
  msgstr ""
592
 
593
+ #: ../admin/album.php:288
594
  msgid "Add new album"
595
  msgstr ""
596
 
597
+ #: ../admin/album.php:290
598
  msgid "Add"
599
  msgstr ""
600
 
601
+ #: ../admin/album.php:301
602
  msgid "Show / hide used galleries"
603
  msgstr ""
604
 
605
+ #: ../admin/album.php:301
606
  msgid "[Show all]"
607
  msgstr ""
608
 
609
+ #: ../admin/album.php:302
610
  msgid "Maximize the widget content"
611
  msgstr ""
612
 
613
+ #: ../admin/album.php:302
614
  msgid "[Maximize]"
615
  msgstr ""
616
 
617
+ #: ../admin/album.php:303
618
  msgid "Minimize the widget content"
619
  msgstr ""
620
 
621
+ #: ../admin/album.php:303
622
  msgid "[Minimize]"
623
  msgstr ""
624
 
625
+ #: ../admin/album.php:305
626
  msgid "After you create and select a album, you can drag and drop a gallery or another album into your new album below"
627
  msgstr ""
628
 
629
+ #: ../admin/album.php:331
630
  msgid "Select gallery"
631
  msgstr ""
632
 
633
+ #: ../admin/album.php:360
634
  msgid "Album ID"
635
  msgstr ""
636
 
637
+ #: ../admin/album.php:373
638
  msgid "No album selected!"
639
  msgstr ""
640
 
641
+ #: ../admin/album.php:393
642
  msgid "Album name:"
643
  msgstr ""
644
 
645
+ #: ../admin/album.php:399
646
  msgid "Album description:"
647
  msgstr ""
648
 
649
+ #: ../admin/album.php:405
650
  msgid "Select a preview image:"
651
  msgstr ""
652
 
653
+ #: ../admin/album.php:407
654
  msgid "No picture"
655
  msgstr ""
656
 
657
+ #: ../admin/album.php:421
658
+ #: ../admin/manage-images.php:218
659
  msgid "Page Link to"
660
  msgstr ""
661
 
662
+ #: ../admin/album.php:423
663
+ #: ../admin/manage-images.php:221
664
  msgid "Not linked"
665
  msgstr ""
666
 
667
+ #: ../admin/album.php:433
668
+ #: ../admin/manage-galleries.php:227
669
+ #: ../admin/manage-galleries.php:256
670
+ #: ../admin/manage-galleries.php:286
671
+ #: ../admin/manage-images.php:488
672
+ #: ../admin/manage-images.php:524
673
+ #: ../admin/manage-images.php:553
674
+ #: ../admin/manage-images.php:583
675
  msgid "OK"
676
  msgstr ""
677
 
678
+ #: ../admin/album.php:435
679
+ #: ../admin/manage-galleries.php:229
680
+ #: ../admin/manage-galleries.php:258
681
+ #: ../admin/manage-galleries.php:288
682
+ #: ../admin/manage-images.php:490
683
+ #: ../admin/manage-images.php:526
684
+ #: ../admin/manage-images.php:555
685
+ #: ../admin/manage-images.php:585
686
  msgid "Cancel"
687
  msgstr ""
688
 
689
+ #: ../admin/album.php:519
690
  msgid "Name"
691
  msgstr ""
692
 
693
+ #: ../admin/album.php:520
694
+ #: ../admin/manage-galleries.php:156
695
+ #: ../admin/manage-images.php:216
696
  msgid "Title"
697
  msgstr ""
698
 
699
+ #: ../admin/album.php:521
700
  msgid "Page"
701
  msgstr ""
702
 
 
 
 
 
 
703
  #: ../admin/edit-thumbnail.php:106
704
  msgid "Select with the mouse the area for the new thumbnail"
705
  msgstr ""
724
  #: ../admin/functions.php:56
725
  #: ../admin/functions.php:70
726
  #: ../admin/functions.php:147
727
+ #: ../admin/functions.php:155
728
  msgid "Directory"
729
  msgstr ""
730
 
744
 
745
  #: ../admin/functions.php:65
746
  #: ../admin/functions.php:75
747
+ #: ../admin/functions.php:867
748
  msgid "Unable to create directory "
749
  msgstr ""
750
 
781
  msgid "doesn&#96;t exist!"
782
  msgstr ""
783
 
784
+ #: ../admin/functions.php:155
785
  msgid "contains no pictures"
786
  msgstr ""
787
 
788
+ #: ../admin/functions.php:173
789
  msgid "Database error. Could not add gallery!"
790
  msgstr ""
791
 
792
+ #: ../admin/functions.php:176
793
  msgid "successfully created!"
794
  msgstr ""
795
 
796
+ #: ../admin/functions.php:205
797
+ #: ../admin/functions.php:984
798
  #: ../admin/manage-galleries.php:127
799
+ #: ../admin/manage-images.php:299
800
+ #: ../admin/manage.php:215
801
+ #: ../admin/manage.php:291
802
  msgid "Create new thumbnails"
803
  msgstr ""
804
 
805
+ #: ../admin/functions.php:208
806
  msgid " picture(s) successfully added"
807
  msgstr ""
808
 
809
+ #: ../admin/functions.php:257
810
+ #: ../admin/functions.php:333
811
+ #: ../admin/functions.php:388
812
+ #: ../admin/functions.php:485
813
+ #: ../admin/functions.php:539
814
  msgid "Object didn't contain correct data"
815
  msgstr ""
816
 
817
+ #: ../admin/functions.php:265
818
  msgid " is not writeable "
819
  msgstr ""
820
 
821
+ #: ../admin/functions.php:343
822
+ #: ../admin/functions.php:391
823
+ #: ../admin/functions.php:491
824
+ #: ../admin/functions.php:542
825
  msgid " is not writeable"
826
  msgstr ""
827
 
828
+ #: ../admin/functions.php:545
829
+ msgid "File do not exists"
830
+ msgstr ""
831
+
832
+ #: ../admin/functions.php:549
833
+ msgid "Couldn't restore original image"
834
+ msgstr ""
835
+
836
+ #: ../admin/functions.php:654
837
  msgid "(Error : Couldn't not update data base)"
838
  msgstr ""
839
 
840
+ #: ../admin/functions.php:661
841
  msgid "(Error : Couldn't not update meta data)"
842
  msgstr ""
843
 
844
+ #: ../admin/functions.php:670
845
  msgid "(Error : Couldn't not find image)"
846
  msgstr ""
847
 
848
+ #: ../admin/functions.php:801
849
  msgid "No valid URL path "
850
  msgstr ""
851
 
852
+ #: ../admin/functions.php:817
853
  msgid "Import via cURL failed."
854
  msgstr ""
855
 
856
+ #: ../admin/functions.php:834
857
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
858
  msgstr ""
859
 
860
+ #: ../admin/functions.php:851
861
  msgid "Could not get a valid foldername"
862
  msgstr ""
863
 
864
+ #: ../admin/functions.php:862
865
  #, php-format
866
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
867
  msgstr ""
868
 
869
+ #: ../admin/functions.php:877
870
  msgid "Zip-File successfully unpacked"
871
  msgstr ""
872
 
873
+ #: ../admin/functions.php:916
874
+ #: ../admin/functions.php:1035
875
  msgid "Failure in database, no gallery path set !"
876
  msgstr ""
877
 
878
+ #: ../admin/functions.php:940
879
+ #: ../admin/functions.php:1029
880
  msgid "is no valid image file!"
881
  msgstr ""
882
 
883
+ #: ../admin/functions.php:954
 
884
  #: ../admin/functions.php:1171
885
+ #: ../admin/functions.php:1244
886
  #, php-format
887
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
888
  msgstr ""
889
 
890
+ #: ../admin/functions.php:961
891
+ #: ../admin/functions.php:1052
892
  msgid "Error, the file could not moved to : "
893
  msgstr ""
894
 
895
+ #: ../admin/functions.php:966
896
+ #: ../admin/functions.php:1056
897
  msgid "Error, the file permissions could not set"
898
  msgstr ""
899
 
900
+ #: ../admin/functions.php:989
901
  msgid " Image(s) successfully added"
902
  msgstr ""
903
 
904
+ #: ../admin/functions.php:1018
905
  msgid "Invalid upload. Error Code : "
906
  msgstr ""
907
 
908
+ #: ../admin/functions.php:1071
909
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
910
  msgstr ""
911
 
912
+ #: ../admin/functions.php:1111
913
  #, php-format
914
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
915
  msgstr ""
916
 
917
+ #: ../admin/functions.php:1112
918
  #, php-format
919
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
920
  msgstr ""
921
 
 
922
  #: ../admin/functions.php:1165
923
+ #: ../admin/functions.php:1238
924
  msgid "The destination gallery does not exist"
925
  msgstr ""
926
 
927
+ #: ../admin/functions.php:1196
928
  #, php-format
929
  msgid "Failed to move image %1$s to %2$s"
930
  msgstr ""
931
 
932
+ #: ../admin/functions.php:1214
933
  #, php-format
934
  msgid "Moved %1$s picture(s) to gallery : %2$s ."
935
  msgstr ""
936
 
937
+ #: ../admin/functions.php:1271
938
  #, php-format
939
  msgid "Failed to copy image %1$s to %2$s"
940
  msgstr ""
941
 
942
+ #: ../admin/functions.php:1283
943
  #, php-format
944
  msgid "Failed to copy database row for picture %s"
945
  msgstr ""
946
 
947
+ #: ../admin/functions.php:1291
948
  #, php-format
949
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s) &raquo; The file already existed in the destination gallery."
950
  msgstr ""
951
 
952
+ #: ../admin/functions.php:1294
953
  #, php-format
954
  msgid "Image %1$s (%2$s) copied as image %3$s (%4$s)"
955
  msgstr ""
956
 
957
+ #: ../admin/functions.php:1303
958
  #, php-format
959
  msgid "Copied %1$s picture(s) to gallery: %2$s ."
960
  msgstr ""
961
 
962
+ #: ../admin/functions.php:1413
963
+ msgid "The uploaded file exceeds the upload_max_filesize directive in php.ini"
964
+ msgstr ""
965
+
966
+ #: ../admin/functions.php:1416
967
+ msgid "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"
968
+ msgstr ""
969
+
970
+ #: ../admin/functions.php:1419
971
+ msgid "The uploaded file was only partially uploaded"
972
+ msgstr ""
973
+
974
+ #: ../admin/functions.php:1422
975
+ msgid "No file was uploaded"
976
+ msgstr ""
977
+
978
+ #: ../admin/functions.php:1425
979
+ msgid "Missing a temporary folder"
980
+ msgstr ""
981
+
982
+ #: ../admin/functions.php:1428
983
+ msgid "Failed to write file to disk"
984
+ msgstr ""
985
+
986
+ #: ../admin/functions.php:1431
987
+ msgid "File upload stopped by extension"
988
+ msgstr ""
989
+
990
+ #: ../admin/functions.php:1434
991
+ msgid "Unknown upload error"
992
+ msgstr ""
993
+
994
  #: ../admin/install.php:23
995
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
996
  msgstr ""
999
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
1000
  msgstr ""
1001
 
1002
+ #: ../admin/install.php:166
1003
  msgid "[Show as slideshow]"
1004
  msgstr ""
1005
 
1006
+ #: ../admin/install.php:167
1007
  msgid "[Show picture list]"
1008
  msgstr ""
1009
 
1010
  #: ../admin/manage-galleries.php:20
1011
+ #: ../admin/manage-images.php:54
1012
  msgid "&laquo;"
1013
  msgstr ""
1014
 
1015
  #: ../admin/manage-galleries.php:21
1016
+ #: ../admin/manage-images.php:55
1017
  msgid "&raquo;"
1018
  msgstr ""
1019
 
1020
  #: ../admin/manage-galleries.php:62
1021
+ #: ../admin/manage-images.php:139
1022
  msgid "No images selected"
1023
  msgstr ""
1024
 
1036
 
1037
  #: ../admin/manage-galleries.php:110
1038
  #: ../admin/manage-galleries.php:113
1039
+ #: ../admin/manage-images.php:186
1040
+ #: ../admin/manage-images.php:189
1041
  msgid "Search Images"
1042
  msgstr ""
1043
 
1044
  #: ../admin/manage-galleries.php:125
1045
+ #: ../admin/manage-images.php:297
1046
  msgid "No action"
1047
  msgstr ""
1048
 
1049
  #: ../admin/manage-galleries.php:126
1050
+ #: ../admin/manage-images.php:298
1051
+ #: ../admin/manage.php:163
1052
+ #: ../admin/manage.php:241
1053
  msgid "Set watermark"
1054
  msgstr ""
1055
 
1056
  #: ../admin/manage-galleries.php:128
1057
+ #: ../admin/manage-images.php:300
1058
+ #: ../admin/manage.php:199
1059
+ #: ../admin/manage.php:277
1060
  msgid "Resize images"
1061
  msgstr ""
1062
 
1063
  #: ../admin/manage-galleries.php:129
1064
+ #: ../admin/manage-images.php:303
1065
+ #: ../admin/manage.php:168
1066
+ #: ../admin/manage.php:261
1067
  msgid "Import metadata"
1068
  msgstr ""
1069
 
1070
+ #: ../admin/manage-galleries.php:130
1071
+ #: ../admin/manage-images.php:301
1072
+ #: ../admin/manage.php:158
1073
+ #: ../admin/manage.php:238
1074
+ msgid "Recover from backup"
1075
+ msgstr ""
1076
+
1077
+ #: ../admin/manage-galleries.php:132
1078
+ #: ../admin/manage-images.php:312
1079
  msgid "Apply"
1080
  msgstr ""
1081
 
1082
+ #: ../admin/manage-galleries.php:140
1083
+ #: ../admin/manage-images.php:288
1084
  #, php-format
1085
  msgid "Displaying %s&#8211;%s of %s"
1086
  msgstr ""
1087
 
1088
+ #: ../admin/manage-galleries.php:155
1089
+ #: ../admin/manage-images.php:607
1090
  msgid "ID"
1091
  msgstr ""
1092
 
1093
+ #: ../admin/manage-galleries.php:157
1094
+ #: ../admin/manage-images.php:227
1095
+ #: ../admin/manage-images.php:612
1096
  msgid "Description"
1097
  msgstr ""
1098
 
1099
+ #: ../admin/manage-galleries.php:158
1100
+ #: ../admin/manage-images.php:247
1101
  msgid "Author"
1102
  msgstr ""
1103
 
1104
+ #: ../admin/manage-galleries.php:159
1105
  msgid "Page ID"
1106
  msgstr ""
1107
 
1108
+ #: ../admin/manage-galleries.php:160
1109
  msgid "Quantity"
1110
  msgstr ""
1111
 
1112
+ #: ../admin/manage-galleries.php:161
1113
  msgid "Action"
1114
  msgstr ""
1115
 
1116
+ #: ../admin/manage-galleries.php:183
1117
  msgid "Edit"
1118
  msgstr ""
1119
 
1120
+ #: ../admin/manage-galleries.php:196
1121
  msgid "Delete this gallery ?"
1122
  msgstr ""
1123
 
1124
+ #: ../admin/manage-galleries.php:203
1125
+ #: ../admin/manage-images.php:464
1126
  msgid "No entries found"
1127
  msgstr ""
1128
 
1129
+ #: ../admin/manage-galleries.php:247
1130
+ #: ../admin/manage-images.php:544
1131
  msgid "Resize Images to"
1132
  msgstr ""
1133
 
1134
+ #: ../admin/manage-galleries.php:251
1135
+ #: ../admin/manage-images.php:548
1136
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1137
  msgstr ""
1138
 
1139
+ #: ../admin/manage-galleries.php:275
1140
+ #: ../admin/manage-images.php:572
1141
  msgid "Width x height (in pixel)"
1142
  msgstr ""
1143
 
1144
+ #: ../admin/manage-galleries.php:277
1145
+ #: ../admin/manage-images.php:574
1146
  msgid "These values are maximum values "
1147
  msgstr ""
1148
 
1149
+ #: ../admin/manage-galleries.php:280
1150
+ #: ../admin/manage-images.php:577
1151
  msgid "Set fix dimension"
1152
  msgstr ""
1153
 
1154
+ #: ../admin/manage-galleries.php:282
1155
+ #: ../admin/manage-images.php:579
1156
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1157
  msgstr ""
1158
 
1164
  msgid "Sorry, you have no access here"
1165
  msgstr ""
1166
 
1167
+ #: ../admin/manage-images.php:167
1168
  #, php-format
1169
  msgid ""
1170
  "You are about to start the bulk edit for %s images \n"
1172
  " 'Cancel' to stop, 'OK' to proceed."
1173
  msgstr ""
1174
 
1175
+ #: ../admin/manage-images.php:183
1176
  #, php-format
1177
  msgid "Search results for &#8220;%s&#8221;"
1178
  msgstr ""
1179
 
1180
+ #: ../admin/manage-images.php:212
 
1181
  msgid "Gallery settings"
1182
  msgstr ""
1183
 
1184
+ #: ../admin/manage-images.php:212
1185
  msgid "Click here for more settings"
1186
  msgstr ""
1187
 
1188
+ #: ../admin/manage-images.php:229
1189
  msgid "Preview image"
1190
  msgstr ""
1191
 
1192
+ #: ../admin/manage-images.php:232
1193
  msgid "No Picture"
1194
  msgstr ""
1195
 
1196
+ #: ../admin/manage-images.php:245
1197
  msgid "Path"
1198
  msgstr ""
1199
 
1200
+ #: ../admin/manage-images.php:262
1201
  msgid "Create new page"
1202
  msgstr ""
1203
 
1204
+ #: ../admin/manage-images.php:265
1205
  msgid "Main page (No parent)"
1206
  msgstr ""
1207
 
1208
+ #: ../admin/manage-images.php:268
1209
  msgid "Add page"
1210
  msgstr ""
1211
 
1212
+ #: ../admin/manage-images.php:275
1213
  msgid "Scan Folder for new images"
1214
  msgstr ""
1215
 
1216
+ #: ../admin/manage-images.php:276
1217
+ #: ../admin/manage-images.php:318
1218
+ #: ../admin/manage-images.php:470
 
 
 
 
 
 
 
1219
  msgid "Save Changes"
1220
  msgstr ""
1221
 
1222
+ #: ../admin/manage-images.php:302
1223
  msgid "Delete images"
1224
  msgstr ""
1225
 
1226
+ #: ../admin/manage-images.php:304
1227
  msgid "Rotate images clockwise"
1228
  msgstr ""
1229
 
1230
+ #: ../admin/manage-images.php:305
1231
  msgid "Rotate images counter-clockwise"
1232
  msgstr ""
1233
 
1234
+ #: ../admin/manage-images.php:306
1235
  msgid "Copy to..."
1236
  msgstr ""
1237
 
1238
+ #: ../admin/manage-images.php:307
1239
  msgid "Move to..."
1240
  msgstr ""
1241
 
1242
+ #: ../admin/manage-images.php:308
1243
  msgid "Add tags"
1244
  msgstr ""
1245
 
1246
+ #: ../admin/manage-images.php:309
1247
  msgid "Delete tags"
1248
  msgstr ""
1249
 
1250
+ #: ../admin/manage-images.php:310
1251
  msgid "Overwrite tags"
1252
  msgstr ""
1253
 
1254
+ #: ../admin/manage-images.php:315
1255
  msgid "Sort gallery"
1256
  msgstr ""
1257
 
1258
+ #: ../admin/manage-images.php:390
1259
  msgid "pixel"
1260
  msgstr ""
1261
 
1262
+ #: ../admin/manage-images.php:398
1263
  #, php-format
1264
  msgid "View \"%s\""
1265
  msgstr ""
1266
 
1267
+ #: ../admin/manage-images.php:398
1268
  msgid "View"
1269
  msgstr ""
1270
 
1271
+ #: ../admin/manage-images.php:399
1272
  msgid "Show Meta data"
1273
  msgstr ""
1274
 
1275
+ #: ../admin/manage-images.php:399
1276
  msgid "Meta"
1277
  msgstr ""
1278
 
1279
+ #: ../admin/manage-images.php:400
1280
  msgid "Customize thumbnail"
1281
  msgstr ""
1282
 
1283
+ #: ../admin/manage-images.php:400
1284
  msgid "Edit thumb"
1285
  msgstr ""
1286
 
1287
+ #: ../admin/manage-images.php:401
1288
  msgid "Rotate"
1289
  msgstr ""
1290
 
1291
+ #: ../admin/manage-images.php:403
1292
+ msgid "Recover"
1293
+ msgstr ""
1294
+
1295
+ #: ../admin/manage-images.php:403
1296
+ #, php-format
1297
+ msgid "Recover \"%s\" ?"
1298
+ msgstr ""
1299
+
1300
+ #: ../admin/manage-images.php:404
1301
  #, php-format
1302
+ msgid "Delete \"%s\" ?"
1303
  msgstr ""
1304
 
1305
+ #: ../admin/manage-images.php:484
1306
  msgid "Enter the tags"
1307
  msgstr ""
1308
 
1309
+ #: ../admin/manage-images.php:508
1310
  msgid "Select the destination gallery:"
1311
  msgstr ""
1312
 
1313
+ #: ../admin/manage-images.php:608
 
1314
  msgid "Thumbnail"
1315
  msgstr ""
1316
 
1317
+ #: ../admin/manage-images.php:610
1318
  #: ../admin/manage-sort.php:74
1319
  msgid "Filename"
1320
  msgstr ""
1321
 
1322
+ #: ../admin/manage-images.php:612
1323
  msgid "Alt &amp; Title Text"
1324
  msgstr ""
1325
 
1326
+ #: ../admin/manage-images.php:613
1327
  msgid "Tags (comma separated list)"
1328
  msgstr ""
1329
 
1330
+ #: ../admin/manage-images.php:615
1331
  msgid "exclude"
1332
  msgstr ""
1333
 
1356
  msgstr ""
1357
 
1358
  #: ../admin/manage-sort.php:73
 
1359
  msgid "Image ID"
1360
  msgstr ""
1361
 
1362
  #: ../admin/manage-sort.php:75
 
1363
  msgid "Alt/Title text"
1364
  msgstr ""
1365
 
1368
  msgstr ""
1369
 
1370
  #: ../admin/manage-sort.php:77
 
1371
  msgid "Ascending"
1372
  msgstr ""
1373
 
1374
  #: ../admin/manage-sort.php:78
 
1375
  msgid "Descending"
1376
  msgstr ""
1377
 
1378
+ #: ../admin/manage.php:86
1379
+ #: ../admin/manage.php:107
1380
  msgid "deleted successfully"
1381
  msgstr ""
1382
 
1383
+ #: ../admin/manage.php:107
1384
  msgid "Picture"
1385
  msgstr ""
1386
 
1387
+ #: ../admin/manage.php:122
1388
+ #: ../admin/manage.php:131
1389
  msgid "Operation successful. Please clear your browser cache."
1390
  msgstr ""
1391
 
1392
+ #: ../admin/manage.php:232
1393
+ #: ../admin/manage.php:235
1394
  msgid "Rotate images"
1395
  msgstr ""
1396
 
1397
+ #: ../admin/manage.php:257
1398
  msgid "Pictures deleted successfully "
1399
  msgstr ""
1400
 
1401
+ #: ../admin/manage.php:353
1402
  msgid "Tags changed"
1403
  msgstr ""
1404
 
1405
+ #: ../admin/manage.php:386
1406
  msgid "Update successful"
1407
  msgstr ""
1408
 
1409
+ #: ../admin/manage.php:421
1410
  msgid "New gallery page ID"
1411
  msgstr ""
1412
 
1413
+ #: ../admin/manage.php:421
1414
  msgid "created"
1415
  msgstr ""
1416
 
1417
+ #: ../admin/media-upload.php:165
1418
+ #: ../admin/tinymce/window.php:43
1419
  msgid "No gallery"
1420
  msgstr ""
1421
 
1422
+ #: ../admin/media-upload.php:177
1423
  msgid "Select &#187;"
1424
  msgstr ""
1425
 
1426
+ #: ../admin/media-upload.php:208
1427
  msgid "Show"
1428
  msgstr ""
1429
 
1430
+ #: ../admin/media-upload.php:209
1431
  msgid "Hide"
1432
  msgstr ""
1433
 
1434
+ #: ../admin/media-upload.php:214
1435
  msgid "Image ID:"
1436
  msgstr ""
1437
 
1438
+ #: ../admin/media-upload.php:273
1439
+ msgid "Save all changes"
1440
  msgstr ""
1441
 
1442
+ #: ../admin/overview.php:14
1443
+ msgid "NextGEN Gallery Overview"
 
1444
  msgstr ""
1445
 
1446
+ #: ../admin/overview.php:86
1447
+ msgid "Welcome to NextGEN Gallery !"
1448
  msgstr ""
1449
 
1450
+ #: ../admin/overview.php:88
1451
+ msgid "Translation"
1452
  msgstr ""
1453
 
1454
+ #: ../admin/overview.php:89
1455
+ msgid "Latest News"
1456
  msgstr ""
1457
 
1458
+ #: ../admin/overview.php:90
1459
+ msgid "Recent donators"
 
1460
  msgstr ""
1461
 
1462
+ #: ../admin/overview.php:91
1463
+ msgid "Server Settings"
1464
  msgstr ""
1465
 
1466
+ #: ../admin/overview.php:92
1467
+ msgid "Related plugins"
1468
  msgstr ""
1469
 
1470
+ #: ../admin/overview.php:93
1471
+ msgid "Graphic Library"
1472
  msgstr ""
1473
 
1474
+ #: ../admin/overview.php:148
1475
+ #: ../admin/overview.php:197
1476
+ #: ../admin/overview.php:346
1477
+ #: ../admin/overview.php:658
1478
+ msgid "Loading&#8230;"
1479
  msgstr ""
1480
 
1481
+ #: ../admin/overview.php:148
1482
+ #: ../admin/overview.php:197
1483
+ #: ../admin/overview.php:346
1484
+ #: ../admin/overview.php:658
1485
+ msgid "This widget requires JavaScript."
1486
  msgstr ""
1487
 
1488
+ #: ../admin/overview.php:161
1489
  msgid "Thanks to all donators..."
1490
  msgstr ""
1491
 
1492
+ #: ../admin/overview.php:183
1493
  msgid "View all"
1494
  msgstr ""
1495
 
1496
+ #: ../admin/overview.php:215
1497
+ msgid "Untitled"
1498
+ msgstr ""
1499
+
1500
+ #: ../admin/overview.php:251
1501
  #, php-format
1502
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1503
  msgstr ""
1504
 
1505
+ #: ../admin/overview.php:272
1506
  msgid "At a Glance"
1507
  msgstr ""
1508
 
1509
+ #: ../admin/overview.php:277
1510
  msgid "Image"
1511
  msgid_plural "Images"
1512
  msgstr[0] ""
1513
  msgstr[1] ""
1514
 
1515
+ #: ../admin/overview.php:298
 
 
 
 
 
 
1516
  msgid "Upload pictures"
1517
  msgstr ""
1518
 
1519
+ #: ../admin/overview.php:299
1520
  msgid "Here you can control your images, galleries and albums."
1521
  msgstr ""
1522
 
1523
+ #: ../admin/overview.php:303
1524
  msgid "Gallery Administrator"
1525
  msgstr ""
1526
 
1527
+ #: ../admin/overview.php:303
1528
  msgid "Gallery Editor"
1529
  msgstr ""
1530
 
1531
+ #: ../admin/overview.php:304
1532
  #, php-format
1533
  msgid "You currently have %s rights."
1534
  msgstr ""
1535
 
1536
+ #: ../admin/overview.php:332
1537
+ msgid "Translation file successful updated. Please reload page."
 
 
 
 
 
 
 
 
1538
  msgstr ""
1539
 
1540
+ #: ../admin/overview.php:334
1541
+ msgid "Reload page"
1542
  msgstr ""
1543
 
1544
+ #: ../admin/overview.php:339
1545
+ msgid "Translation file couldn't be updated"
1546
  msgstr ""
1547
 
1548
+ #: ../admin/overview.php:376
1549
+ msgid "Download"
1550
  msgstr ""
1551
 
1552
+ #: ../admin/overview.php:405
1553
  msgid "No GD support"
1554
  msgstr ""
1555
 
1556
+ #: ../admin/overview.php:417
1557
+ #: ../admin/overview.php:463
1558
+ #: ../admin/overview.php:466
1559
+ #: ../admin/overview.php:469
1560
  msgid "Yes"
1561
  msgstr ""
1562
 
1563
+ #: ../admin/overview.php:419
1564
+ #: ../admin/overview.php:464
1565
+ #: ../admin/overview.php:467
1566
+ #: ../admin/overview.php:470
1567
  msgid "No"
1568
  msgstr ""
1569
 
1570
+ #: ../admin/overview.php:437
1571
  msgid "Not set"
1572
  msgstr ""
1573
 
1574
+ #: ../admin/overview.php:439
1575
+ #: ../admin/overview.php:442
1576
  msgid "On"
1577
  msgstr ""
1578
 
1579
+ #: ../admin/overview.php:440
1580
+ #: ../admin/overview.php:443
1581
  msgid "Off"
1582
  msgstr ""
1583
 
1584
+ #: ../admin/overview.php:446
1585
+ #: ../admin/overview.php:449
1586
+ #: ../admin/overview.php:452
1587
+ #: ../admin/overview.php:455
1588
+ #: ../admin/overview.php:458
1589
+ #: ../admin/overview.php:461
1590
  msgid "N/A"
1591
  msgstr ""
1592
 
1593
+ #: ../admin/overview.php:460
1594
  msgid " MByte"
1595
  msgstr ""
1596
 
1597
+ #: ../admin/overview.php:473
1598
  msgid "Operating System"
1599
  msgstr ""
1600
 
1601
+ #: ../admin/overview.php:474
1602
  msgid "Server"
1603
  msgstr ""
1604
 
1605
+ #: ../admin/overview.php:475
1606
  msgid "Memory usage"
1607
  msgstr ""
1608
 
1609
+ #: ../admin/overview.php:476
1610
  msgid "MYSQL Version"
1611
  msgstr ""
1612
 
1613
+ #: ../admin/overview.php:477
1614
  msgid "SQL Mode"
1615
  msgstr ""
1616
 
1617
+ #: ../admin/overview.php:478
1618
  msgid "PHP Version"
1619
  msgstr ""
1620
 
1621
+ #: ../admin/overview.php:479
1622
  msgid "PHP Safe Mode"
1623
  msgstr ""
1624
 
1625
+ #: ../admin/overview.php:480
1626
  msgid "PHP Allow URL fopen"
1627
  msgstr ""
1628
 
1629
+ #: ../admin/overview.php:481
1630
  msgid "PHP Memory Limit"
1631
  msgstr ""
1632
 
1633
+ #: ../admin/overview.php:482
1634
  msgid "PHP Max Upload Size"
1635
  msgstr ""
1636
 
1637
+ #: ../admin/overview.php:483
1638
  msgid "PHP Max Post Size"
1639
  msgstr ""
1640
 
1641
+ #: ../admin/overview.php:484
1642
+ msgid "PCRE Backtracking Limit"
1643
  msgstr ""
1644
 
1645
+ #: ../admin/overview.php:485
1646
  msgid "PHP Max Script Execute Time"
1647
  msgstr ""
1648
 
1649
+ #: ../admin/overview.php:486
1650
  msgid "PHP Exif support"
1651
  msgstr ""
1652
 
1653
+ #: ../admin/overview.php:487
1654
  msgid "PHP IPTC support"
1655
  msgstr ""
1656
 
1657
+ #: ../admin/overview.php:488
1658
  msgid "PHP XML support"
1659
  msgstr ""
1660
 
1661
+ #: ../admin/overview.php:500
1662
  msgid "NextGEN Gallery contains some functions which are only available under PHP 5.2. You are using the old PHP 4 version, upgrade now! It's no longer supported by the PHP group. Many shared hosting providers offer both PHP 4 and PHP 5, running simultaneously. Ask your provider if they can do this."
1663
  msgstr ""
1664
 
1665
+ #: ../admin/overview.php:559
1666
  msgid "Storage Space"
1667
  msgstr ""
1668
 
1669
+ #: ../admin/overview.php:562
1670
  msgid "Upload Space Used:"
1671
  msgstr ""
1672
 
1673
+ #: ../admin/overview.php:568
1674
  msgid "Upload Space Remaining:"
1675
  msgstr ""
1676
 
1677
+ #: ../admin/overview.php:713
1678
  msgid "Install"
1679
  msgstr ""
1680
 
1758
  msgid "Flip horizontally"
1759
  msgstr ""
1760
 
1761
+ #: ../admin/settings.php:91
1762
  msgid "Cache cleared"
1763
  msgstr ""
1764
 
1765
+ #: ../admin/settings.php:201
1766
+ #: ../admin/settings.php:220
1767
  msgid "General Options"
1768
  msgstr ""
1769
 
1770
+ #: ../admin/settings.php:202
1771
+ #: ../admin/settings.php:406
1772
  msgid "Thumbnails"
1773
  msgstr ""
1774
 
1775
+ #: ../admin/settings.php:203
1776
  msgid "Images"
1777
  msgstr ""
1778
 
1779
+ #: ../admin/settings.php:205
1780
+ #: ../admin/settings.php:458
1781
  msgid "Effects"
1782
  msgstr ""
1783
 
1784
+ #: ../admin/settings.php:206
1785
+ #: ../admin/settings.php:500
1786
+ #: ../admin/tinymce/window.php:119
1787
  msgid "Watermark"
1788
  msgstr ""
1789
 
1790
+ #: ../admin/settings.php:207
1791
+ #: ../admin/settings.php:407
1792
+ #: ../admin/settings.php:607
1793
+ #: ../admin/tinymce/window.php:58
1794
  msgid "Slideshow"
1795
  msgstr ""
1796
 
1797
+ #: ../admin/settings.php:226
1798
  #: ../admin/wpmu.php:47
1799
  msgid "Gallery path"
1800
  msgstr ""
1801
 
1802
+ #: ../admin/settings.php:228
1803
  msgid "This is the default path for all galleries"
1804
  msgstr ""
1805
 
1806
+ #: ../admin/settings.php:231
1807
  msgid "Delete image files"
1808
  msgstr ""
1809
 
1810
+ #: ../admin/settings.php:233
1811
  msgid "Delete files, when removing a gallery in the database"
1812
  msgstr ""
1813
 
1814
+ #: ../admin/settings.php:236
1815
  msgid "Activate permalinks"
1816
  msgstr ""
1817
 
1818
+ #: ../admin/settings.php:238
1819
  msgid "When you activate this option, you need to update your permalink structure one time."
1820
  msgstr ""
1821
 
1822
+ #: ../admin/settings.php:241
1823
  msgid "Select graphic library"
1824
  msgstr ""
1825
 
1826
+ #: ../admin/settings.php:242
1827
  msgid "GD Library"
1828
  msgstr ""
1829
 
1830
+ #: ../admin/settings.php:243
1831
  msgid "ImageMagick (Experimental). Path to the library :"
1832
  msgstr ""
1833
 
1834
+ #: ../admin/settings.php:248
1835
  msgid "Activate Media RSS feed"
1836
  msgstr ""
1837
 
1838
+ #: ../admin/settings.php:250
1839
  msgid "A RSS feed will be added to you blog header. Useful for CoolIris/PicLens"
1840
  msgstr ""
1841
 
1842
+ #: ../admin/settings.php:253
1843
  msgid "Activate PicLens/CoolIris support"
1844
  msgstr ""
1845
 
1846
+ #: ../admin/settings.php:255
1847
  msgid "When you activate this option, some javascript is added to your site footer. Make sure that wp_footer is called in your theme."
1848
  msgstr ""
1849
 
1850
+ #: ../admin/settings.php:258
1851
  msgid "Tags / Categories"
1852
  msgstr ""
1853
 
1854
+ #: ../admin/settings.php:261
1855
  msgid "Activate related images"
1856
  msgstr ""
1857
 
1858
+ #: ../admin/settings.php:263
1859
  msgid "This option will append related images to every post"
1860
  msgstr ""
1861
 
1862
+ #: ../admin/settings.php:267
1863
  msgid "Match with"
1864
  msgstr ""
1865
 
1866
+ #: ../admin/settings.php:268
1867
  msgid "Categories"
1868
  msgstr ""
1869
 
1870
+ #: ../admin/settings.php:273
1871
  msgid "Max. number of images"
1872
  msgstr ""
1873
 
1874
+ #: ../admin/settings.php:275
1875
  msgid "0 will show all images"
1876
  msgstr ""
1877
 
1878
+ #: ../admin/settings.php:279
1879
+ #: ../admin/settings.php:310
1880
+ #: ../admin/settings.php:363
1881
+ #: ../admin/settings.php:448
1882
+ #: ../admin/settings.php:483
1883
+ #: ../admin/settings.php:721
1884
  msgid "More settings"
1885
  msgstr ""
1886
 
1887
+ #: ../admin/settings.php:289
1888
  msgid "Thumbnail settings"
1889
  msgstr ""
1890
 
1891
+ #: ../admin/settings.php:293
1892
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1893
  msgstr ""
1894
 
1895
+ #: ../admin/settings.php:306
1896
  msgid "Thumbnail quality"
1897
  msgstr ""
1898
 
1899
+ #: ../admin/settings.php:320
1900
  msgid "Image settings"
1901
  msgstr ""
1902
 
1903
+ #: ../admin/settings.php:326
1904
  msgid "Resize Images"
1905
  msgstr ""
1906
 
1907
+ #: ../admin/settings.php:332
1908
  msgid "Image quality"
1909
  msgstr ""
1910
 
1911
+ #: ../admin/settings.php:337
1912
+ msgid "Backup original images"
1913
+ msgstr ""
1914
+
1915
+ #: ../admin/settings.php:340
1916
+ msgid "Creates a backup for inserted images"
1917
+ msgstr ""
1918
+
1919
+ #: ../admin/settings.php:343
1920
+ msgid "Automatically resize"
1921
+ msgstr ""
1922
+
1923
+ #: ../admin/settings.php:346
1924
+ msgid "Automatically resize images on upload."
1925
+ msgstr ""
1926
+
1927
+ #: ../admin/settings.php:349
1928
  msgid "Single picture"
1929
  msgstr ""
1930
 
1931
+ #: ../admin/settings.php:352
1932
  msgid "Cache single pictures"
1933
  msgstr ""
1934
 
1935
+ #: ../admin/settings.php:355
1936
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1937
  msgstr ""
1938
 
1939
+ #: ../admin/settings.php:358
1940
  msgid "Clear cache folder"
1941
  msgstr ""
1942
 
1943
+ #: ../admin/settings.php:360
1944
  msgid "Proceed now"
1945
  msgstr ""
1946
 
1947
+ #: ../admin/settings.php:380
1948
  msgid "Deactivate gallery page link"
1949
  msgstr ""
1950
 
1951
+ #: ../admin/settings.php:382
1952
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1953
  msgstr ""
1954
 
1955
+ #: ../admin/settings.php:386
1956
  msgid "Number of images per page"
1957
  msgstr ""
1958
 
1959
+ #: ../admin/settings.php:388
1960
  msgid "0 will disable pagination, all images on one page"
1961
  msgstr ""
1962
 
1963
+ #: ../admin/settings.php:392
1964
  msgid "Number of columns"
1965
  msgstr ""
1966
 
1967
+ #: ../admin/settings.php:394
1968
  msgid "0 will display as much as possible based on the width of your theme. Setting normally only required for captions below the images"
1969
  msgstr ""
1970
 
1971
+ #: ../admin/settings.php:398
1972
  msgid "Integrate slideshow"
1973
  msgstr ""
1974
 
1975
+ #: ../admin/settings.php:405
1976
  msgid "Show first"
1977
  msgstr ""
1978
 
1979
+ #: ../admin/settings.php:411
1980
  msgid "Show ImageBrowser"
1981
  msgstr ""
1982
 
1983
+ #: ../admin/settings.php:413
1984
  msgid "The gallery will open the ImageBrowser instead the effect."
1985
  msgstr ""
1986
 
1987
+ #: ../admin/settings.php:417
1988
  msgid "Add hidden images"
1989
  msgstr ""
1990
 
1991
+ #: ../admin/settings.php:419
1992
  msgid "If pagination is used, this option will still show all images in the modal window (Thickbox, Lightbox etc.). Note : This increase the page load"
1993
  msgstr ""
1994
 
1995
+ #: ../admin/settings.php:423
1996
  msgid "Enable AJAX pagination"
1997
  msgstr ""
1998
 
1999
+ #: ../admin/settings.php:425
2000
  msgid "Browse images without reload the page. Note : Work only in combination with Shutter effect"
2001
  msgstr ""
2002
 
2003
+ #: ../admin/settings.php:429
2004
  msgid "Sort options"
2005
  msgstr ""
2006
 
2007
+ #: ../admin/settings.php:432
2008
  msgid "Sort thumbnails"
2009
  msgstr ""
2010
 
2011
+ #: ../admin/settings.php:434
2012
  msgid "Custom order"
2013
  msgstr ""
2014
 
2015
+ #: ../admin/settings.php:436
2016
  msgid "File name"
2017
  msgstr ""
2018
 
2019
+ #: ../admin/settings.php:437
2020
  msgid "Alt / Title text"
2021
  msgstr ""
2022
 
2023
+ #: ../admin/settings.php:438
2024
  msgid "Date / Time"
2025
  msgstr ""
2026
 
2027
+ #: ../admin/settings.php:442
2028
  msgid "Sort direction"
2029
  msgstr ""
2030
 
2031
+ #: ../admin/settings.php:462
2032
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Shutter and Thickbox effect will automatic added to your theme."
2033
  msgstr ""
2034
 
2035
+ #: ../admin/settings.php:463
2036
  msgid "With the placeholder"
2037
  msgstr ""
2038
 
2039
+ #: ../admin/settings.php:463
2040
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
2041
  msgstr ""
2042
 
2043
+ #: ../admin/settings.php:466
2044
  msgid "JavaScript Thumbnail effect"
2045
  msgstr ""
2046
 
2047
+ #: ../admin/settings.php:469
2048
+ msgid "None"
2049
+ msgstr ""
2050
+
2051
+ #: ../admin/settings.php:470
2052
  msgid "Thickbox"
2053
  msgstr ""
2054
 
2055
+ #: ../admin/settings.php:471
2056
  msgid "Lightbox"
2057
  msgstr ""
2058
 
2059
+ #: ../admin/settings.php:472
2060
  msgid "Highslide"
2061
  msgstr ""
2062
 
2063
+ #: ../admin/settings.php:473
2064
  msgid "Shutter"
2065
  msgstr ""
2066
 
2067
+ #: ../admin/settings.php:474
2068
  msgid "Custom"
2069
  msgstr ""
2070
 
2071
+ #: ../admin/settings.php:479
2072
  msgid "Link Code line"
2073
  msgstr ""
2074
 
2075
+ #: ../admin/settings.php:501
2076
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
2077
  msgstr ""
2078
 
2079
+ #: ../admin/settings.php:506
2080
  msgid "Preview"
2081
  msgstr ""
2082
 
2083
+ #: ../admin/settings.php:508
2084
+ #: ../admin/settings.php:513
2085
  msgid "Position"
2086
  msgstr ""
2087
 
2088
+ #: ../admin/settings.php:533
2089
  msgid "Offset"
2090
  msgstr ""
2091
 
2092
+ #: ../admin/settings.php:549
2093
  msgid "Use image as watermark"
2094
  msgstr ""
2095
 
2096
+ #: ../admin/settings.php:552
2097
  msgid "URL to file"
2098
  msgstr ""
2099
 
2100
+ #: ../admin/settings.php:554
2101
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
2102
  msgstr ""
2103
 
2104
+ #: ../admin/settings.php:557
2105
  msgid "Use text as watermark"
2106
  msgstr ""
2107
 
2108
+ #: ../admin/settings.php:560
2109
  msgid "Font"
2110
  msgstr ""
2111
 
2112
+ #: ../admin/settings.php:569
2113
  msgid "This function will not work, cause you need the FreeType library"
2114
  msgstr ""
2115
 
2116
+ #: ../admin/settings.php:571
2117
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
2118
  msgstr ""
2119
 
2120
+ #: ../admin/settings.php:576
2121
+ msgid "Size"
2122
+ msgstr ""
2123
+
2124
+ #: ../admin/settings.php:580
2125
  msgid "Color"
2126
  msgstr ""
2127
 
2128
+ #: ../admin/settings.php:582
2129
  msgid "(hex w/o #)"
2130
  msgstr ""
2131
 
2132
+ #: ../admin/settings.php:585
2133
  msgid "Text"
2134
  msgstr ""
2135
 
2136
+ #: ../admin/settings.php:589
2137
  msgid "Opaque"
2138
  msgstr ""
2139
 
2140
+ #: ../admin/settings.php:612
2141
  msgid "The path to imagerotator.swf is not defined, the slideshow will not work."
2142
  msgstr ""
2143
 
2144
+ #: ../admin/settings.php:613
2145
  msgid "If you would like to use the JW Image Rotatator, please download the player <a href=\"http://www.longtailvideo.com/players/jw-image-rotator/\" target=\"_blank\" >here</a> and upload it to your Upload folder (Default is wp-content/uploads)."
2146
  msgstr ""
2147
 
2148
+ #: ../admin/settings.php:618
2149
  msgid "The settings are used in the JW Image Rotator Version"
2150
  msgstr ""
2151
 
2152
+ #: ../admin/settings.php:619
2153
  msgid "See more information for the Flash Player on the web page"
2154
  msgstr ""
2155
 
2156
+ #: ../admin/settings.php:623
2157
  msgid "Path to the Imagerotator (URL)"
2158
  msgstr ""
2159
 
2160
+ #: ../admin/settings.php:626
2161
  msgid "Search now"
2162
  msgstr ""
2163
 
2164
+ #: ../admin/settings.php:627
2165
  msgid "Press the button to search automatic for the imagerotator, if you uploaded it to wp-content/uploads or a subfolder"
2166
  msgstr ""
2167
 
2168
+ #: ../admin/settings.php:631
2169
  msgid "Default size (W x H)"
2170
  msgstr ""
2171
 
2172
+ #: ../admin/settings.php:636
2173
  msgid "Shuffle mode"
2174
  msgstr ""
2175
 
2176
+ #: ../admin/settings.php:640
2177
  msgid "Show next image on click"
2178
  msgstr ""
2179
 
2180
+ #: ../admin/settings.php:644
2181
  msgid "Show navigation bar"
2182
  msgstr ""
2183
 
2184
+ #: ../admin/settings.php:648
2185
  msgid "Show loading icon"
2186
  msgstr ""
2187
 
2188
+ #: ../admin/settings.php:652
2189
  msgid "Use watermark logo"
2190
  msgstr ""
2191
 
2192
+ #: ../admin/settings.php:654
2193
  msgid "You can change the logo at the watermark settings"
2194
  msgstr ""
2195
 
2196
+ #: ../admin/settings.php:657
2197
  msgid "Stretch image"
2198
  msgstr ""
2199
 
2200
+ #: ../admin/settings.php:660
2201
  msgid "true"
2202
  msgstr ""
2203
 
2204
+ #: ../admin/settings.php:661
2205
  msgid "false"
2206
  msgstr ""
2207
 
2208
+ #: ../admin/settings.php:662
2209
  msgid "fit"
2210
  msgstr ""
2211
 
2212
+ #: ../admin/settings.php:663
2213
  msgid "none"
2214
  msgstr ""
2215
 
2216
+ #: ../admin/settings.php:668
2217
  msgid "Duration time"
2218
  msgstr ""
2219
 
2220
+ #: ../admin/settings.php:669
2221
  msgid "sec."
2222
  msgstr ""
2223
 
2224
+ #: ../admin/settings.php:672
2225
  msgid "Transition / Fade effect"
2226
  msgstr ""
2227
 
2228
+ #: ../admin/settings.php:675
2229
  msgid "fade"
2230
  msgstr ""
2231
 
2232
+ #: ../admin/settings.php:676
2233
  msgid "bgfade"
2234
  msgstr ""
2235
 
2236
+ #: ../admin/settings.php:677
2237
  msgid "slowfade"
2238
  msgstr ""
2239
 
2240
+ #: ../admin/settings.php:678
2241
  msgid "circles"
2242
  msgstr ""
2243
 
2244
+ #: ../admin/settings.php:679
2245
  msgid "bubbles"
2246
  msgstr ""
2247
 
2248
+ #: ../admin/settings.php:680
2249
  msgid "blocks"
2250
  msgstr ""
2251
 
2252
+ #: ../admin/settings.php:681
2253
  msgid "fluids"
2254
  msgstr ""
2255
 
2256
+ #: ../admin/settings.php:682
2257
  msgid "flash"
2258
  msgstr ""
2259
 
2260
+ #: ../admin/settings.php:683
2261
  msgid "lines"
2262
  msgstr ""
2263
 
2264
+ #: ../admin/settings.php:684
2265
  msgid "random"
2266
  msgstr ""
2267
 
2268
+ #: ../admin/settings.php:688
2269
  msgid "Use slow zooming effect"
2270
  msgstr ""
2271
 
2272
+ #: ../admin/settings.php:692
2273
  msgid "Background Color"
2274
  msgstr ""
2275
 
2276
+ #: ../admin/settings.php:697
2277
  msgid "Texts / Buttons Color"
2278
  msgstr ""
2279
 
2280
+ #: ../admin/settings.php:702
2281
  msgid "Rollover / Active Color"
2282
  msgstr ""
2283
 
2284
+ #: ../admin/settings.php:707
2285
  msgid "Screen Color"
2286
  msgstr ""
2287
 
2288
+ #: ../admin/settings.php:712
2289
  msgid "Background music (URL)"
2290
  msgstr ""
2291
 
2292
+ #: ../admin/settings.php:716
2293
  msgid "Try XHTML validation (with CDATA)"
2294
  msgstr ""
2295
 
2296
+ #: ../admin/settings.php:718
2297
  msgid "Important : Could causes problem at some browser. Please recheck your page."
2298
  msgstr ""
2299
 
2360
  "Choose [Cancel] to Stop, [OK] to Uninstall.\\n"
2361
  msgstr ""
2362
 
2363
+ #: ../admin/showmeta.php:29
2364
  msgid "Meta Data"
2365
  msgstr ""
2366
 
 
 
 
 
 
 
 
2367
  #: ../admin/showmeta.php:34
2368
  #: ../admin/showmeta.php:60
2369
  #: ../admin/showmeta.php:85
2370
  #: ../admin/showmeta.php:109
2371
+ msgid "Tag"
2372
+ msgstr ""
2373
+
2374
+ #: ../admin/showmeta.php:35
2375
+ #: ../admin/showmeta.php:61
2376
+ #: ../admin/showmeta.php:86
2377
+ #: ../admin/showmeta.php:110
2378
  msgid "Value"
2379
  msgstr ""
2380
 
2381
+ #: ../admin/showmeta.php:49
2382
  msgid "No meta data saved"
2383
  msgstr ""
2384
 
2385
+ #: ../admin/showmeta.php:55
2386
  msgid "EXIF Data"
2387
  msgstr ""
2388
 
2389
+ #: ../admin/showmeta.php:74
2390
  msgid "No exif data"
2391
  msgstr ""
2392
 
2393
+ #: ../admin/showmeta.php:81
2394
  msgid "IPTC Data"
2395
  msgstr ""
2396
 
2397
+ #: ../admin/showmeta.php:105
2398
  msgid "XMP Data"
2399
  msgstr ""
2400
 
2410
  msgid "CSS file successfully updated"
2411
  msgstr ""
2412
 
2413
+ #: ../admin/style.php:88
2414
  msgid "Style Editor"
2415
  msgstr ""
2416
 
2417
+ #: ../admin/style.php:92
2418
  msgid "Activate and use style sheet:"
2419
  msgstr ""
2420
 
2421
+ #: ../admin/style.php:112
2422
  msgid "Activate"
2423
  msgstr ""
2424
 
2425
+ #: ../admin/style.php:122
2426
  #, php-format
2427
  msgid "Editing <strong>%s</strong>"
2428
  msgstr ""
2429
 
2430
+ #: ../admin/style.php:124
2431
  #, php-format
2432
  msgid "Browsing <strong>%s</strong>"
2433
  msgstr ""
2434
 
2435
+ #: ../admin/style.php:134
2436
  msgid "Version"
2437
  msgstr ""
2438
 
2439
+ #: ../admin/style.php:137
2440
  msgid "Tip : Copy your stylesheet (nggallery.css) to your theme folder, so it will be not lost during a upgrade"
2441
  msgstr ""
2442
 
2443
+ #: ../admin/style.php:139
2444
  msgid "Your theme contain a NextGEN Gallery stylesheet (nggallery.css), this file will be used"
2445
  msgstr ""
2446
 
2447
+ #: ../admin/style.php:141
2448
  msgid "Tip No. 2: Use the color picker below to help you find the right color scheme for your gallery!"
2449
  msgstr ""
2450
 
2451
+ #: ../admin/style.php:157
2452
  msgid "Update File"
2453
  msgstr ""
2454
 
2455
+ #: ../admin/style.php:160
2456
  msgid "If this file were writable you could edit it."
2457
  msgstr ""
2458
 
2459
+ #: ../admin/style.php:165
2460
  msgid "Oops, no such file exists! Double check the name and try again, merci."
2461
  msgstr ""
2462
 
2568
  msgid "Upgrade database structure..."
2569
  msgstr ""
2570
 
2571
+ #: ../admin/upgrade.php:101
2572
+ #: ../admin/upgrade.php:111
2573
+ #: ../admin/upgrade.php:118
2574
+ #: ../admin/upgrade.php:129
2575
+ #: ../admin/upgrade.php:143
2576
  msgid "finished"
2577
  msgstr ""
2578
 
2579
+ #: ../admin/upgrade.php:109
2580
  msgid "Update file structure..."
2581
  msgstr ""
2582
 
2583
+ #: ../admin/upgrade.php:116
2584
  msgid "Import date and time information..."
2585
  msgstr ""
2586
 
2587
+ #: ../admin/upgrade.php:124
2588
  msgid "Move imagerotator to new location..."
2589
  msgstr ""
2590
 
2591
+ #: ../admin/upgrade.php:135
2592
  msgid "Update settings..."
2593
  msgstr ""
2594
 
2595
+ #: ../admin/upgrade.php:149
2596
+ msgid "Updated widget structure. If you used NextGEN Widgets, you need to setup them again..."
2597
+ msgstr ""
2598
+
2599
+ #: ../admin/upgrade.php:214
2600
  msgid "Some folders/files could not renamed, please recheck the permission and rescan the folder in the manage gallery section."
2601
  msgstr ""
2602
 
2603
+ #: ../admin/upgrade.php:216
2604
  msgid "Rename failed"
2605
  msgstr ""
2606
 
2607
+ #: ../admin/upgrade.php:311
2608
+ #: ../admin/upgrade.php:330
2609
  msgid "Upgrade NextGEN Gallery"
2610
  msgstr ""
2611
 
2612
+ #: ../admin/upgrade.php:312
2613
  msgid "The script detect that you upgrade from a older version."
2614
  msgstr ""
2615
 
2616
+ #: ../admin/upgrade.php:313
2617
  msgid "Your database tables for NextGEN Gallery is out-of-date, and must be upgraded before you can continue."
2618
  msgstr ""
2619
 
2620
+ #: ../admin/upgrade.php:314
2621
  msgid "If you would like to downgrade later, please make first a complete backup of your database and the images."
2622
  msgstr ""
2623
 
2624
+ #: ../admin/upgrade.php:315
2625
  msgid "The upgrade process may take a while, so please be patient."
2626
  msgstr ""
2627
 
2628
+ #: ../admin/upgrade.php:316
2629
  msgid "Start upgrade now"
2630
  msgstr ""
2631
 
2632
+ #: ../admin/upgrade.php:332
2633
  msgid "Upgrade sucessful"
2634
  msgstr ""
2635
 
2636
+ #: ../admin/upgrade.php:333
2637
  msgid "Continue"
2638
  msgstr ""
2639
 
2746
  msgid "No float"
2747
  msgstr ""
2748
 
2749
+ #: ../admin/tinymce/window.php:129
2750
+ msgid "Left"
2751
+ msgstr ""
2752
+
2753
+ #: ../admin/tinymce/window.php:130
2754
+ msgid "Center"
2755
+ msgstr ""
2756
+
2757
+ #: ../admin/tinymce/window.php:131
2758
+ msgid "Right"
2759
+ msgstr ""
2760
+
2761
  #: ../admin/tinymce/window.php:147
2762
  msgid "Insert"
2763
  msgstr ""
2767
  msgid "Note : Based on your server memory limit you should not upload larger images then <strong>%d x %d</strong> pixel"
2768
  msgstr ""
2769
 
2770
+ #: ../lib/locale.php:120
2771
+ msgid "Invalid URL Provided."
2772
+ msgstr ""
2773
+
2774
+ #: ../lib/locale.php:124
2775
+ #: ../lib/locale.php:128
2776
+ msgid "Could not create Temporary file."
2777
+ msgstr ""
2778
+
2779
+ #: ../lib/meta.php:124
2780
  msgid " mm"
2781
  msgstr ""
2782
 
2783
+ #: ../lib/meta.php:130
2784
  msgid " sec"
2785
  msgstr ""
2786
 
2787
+ #: ../lib/meta.php:134
2788
  msgid "Fired"
2789
  msgstr ""
2790
 
2791
+ #: ../lib/meta.php:134
2792
  msgid "Not fired"
2793
  msgstr ""
2794
 
2795
+ #: ../lib/meta.php:423
2796
  msgid "Aperture"
2797
  msgstr ""
2798
 
2799
+ #: ../lib/meta.php:424
2800
+ #: ../lib/meta.php:449
2801
  msgid "Credit"
2802
  msgstr ""
2803
 
2804
+ #: ../lib/meta.php:425
2805
  msgid "Camera"
2806
  msgstr ""
2807
 
2808
+ #: ../lib/meta.php:426
2809
  msgid "Caption"
2810
  msgstr ""
2811
 
2812
+ #: ../lib/meta.php:428
2813
  msgid "Copyright"
2814
  msgstr ""
2815
 
2816
+ #: ../lib/meta.php:429
2817
  msgid "Focal length"
2818
  msgstr ""
2819
 
2820
+ #: ../lib/meta.php:430
2821
  msgid "ISO"
2822
  msgstr ""
2823
 
2824
+ #: ../lib/meta.php:431
2825
  msgid "Shutter speed"
2826
  msgstr ""
2827
 
2828
+ #: ../lib/meta.php:435
2829
  msgid "Subject"
2830
  msgstr ""
2831
 
2832
+ #: ../lib/meta.php:436
2833
  msgid "Make"
2834
  msgstr ""
2835
 
2836
+ #: ../lib/meta.php:437
2837
  msgid "Edit Status"
2838
  msgstr ""
2839
 
2840
+ #: ../lib/meta.php:438
2841
  msgid "Category"
2842
  msgstr ""
2843
 
2844
+ #: ../lib/meta.php:439
2845
  msgid "Keywords"
2846
  msgstr ""
2847
 
2848
+ #: ../lib/meta.php:440
2849
  msgid "Date Created"
2850
  msgstr ""
2851
 
2852
+ #: ../lib/meta.php:441
2853
  msgid "Time Created"
2854
  msgstr ""
2855
 
2856
+ #: ../lib/meta.php:442
2857
  msgid "Author Position"
2858
  msgstr ""
2859
 
2860
+ #: ../lib/meta.php:443
2861
  msgid "City"
2862
  msgstr ""
2863
 
2864
+ #: ../lib/meta.php:444
2865
  msgid "Location"
2866
  msgstr ""
2867
 
2868
+ #: ../lib/meta.php:445
2869
  msgid "Province/State"
2870
  msgstr ""
2871
 
2872
+ #: ../lib/meta.php:446
2873
  msgid "Country code"
2874
  msgstr ""
2875
 
2876
+ #: ../lib/meta.php:447
2877
  msgid "Country"
2878
  msgstr ""
2879
 
2880
+ #: ../lib/meta.php:448
2881
  msgid "Headline"
2882
  msgstr ""
2883
 
2884
+ #: ../lib/meta.php:450
2885
  msgid "Source"
2886
  msgstr ""
2887
 
2888
+ #: ../lib/meta.php:451
2889
  msgid "Copyright Notice"
2890
  msgstr ""
2891
 
2892
+ #: ../lib/meta.php:452
2893
  msgid "Contact"
2894
  msgstr ""
2895
 
2896
+ #: ../lib/meta.php:453
2897
  msgid "Last modified"
2898
  msgstr ""
2899
 
2900
+ #: ../lib/meta.php:454
2901
  msgid "Program tool"
2902
  msgstr ""
2903
 
2904
+ #: ../lib/meta.php:455
2905
  msgid "Format"
2906
  msgstr ""
2907
 
2908
+ #: ../lib/meta.php:456
2909
  msgid "Image Width"
2910
  msgstr ""
2911
 
2912
+ #: ../lib/meta.php:457
2913
  msgid "Image Height"
2914
  msgstr ""
2915
 
2916
+ #: ../lib/meta.php:458
2917
  msgid "Flash"
2918
  msgstr ""
2919
 
2920
+ #: ../lib/ngg-db.php:315
2921
+ #: ../lib/ngg-db.php:316
2922
  msgid "Album overview"
2923
  msgstr ""
2924
 
2925
+ #: ../lib/shortcodes.php:296
2926
  msgid "[Pictures not found]"
2927
  msgstr ""
2928
 
3045
  msgstr ""
3046
 
3047
  #: ../view/album-compact.php:32
3048
+ #: ../view/album-extend.php:30
3049
  msgid "Photos"
3050
  msgstr ""
3051
 
3052
  #: ../view/gallery-caption.php:32
 
 
 
3053
  msgid "[View with PicLens]"
3054
  msgstr ""
3055
 
3148
  msgid "Width:"
3149
  msgstr ""
3150
 
3151
+ #: ../widgets/widgets.php:160
3152
  msgid "Add recent or random images from the galleries"
3153
  msgstr ""
3154
 
3155
+ #: ../widgets/widgets.php:161
3156
  msgid "NextGEN Widget"
3157
  msgstr ""
3158
 
3159
+ #: ../widgets/widgets.php:200
3160
  msgid "Title :"
3161
  msgstr ""
3162
 
3163
+ #: ../widgets/widgets.php:206
3164
  msgid "Show :"
3165
  msgstr ""
3166
 
3167
+ #: ../widgets/widgets.php:212
3168
  msgid "Original images"
3169
  msgstr ""
3170
 
3171
+ #: ../widgets/widgets.php:221
3172
  msgid "recent added "
3173
  msgstr ""
3174
 
3175
+ #: ../widgets/widgets.php:227
3176
  msgid "Enable IE8 Web Slices"
3177
  msgstr ""
3178
 
3179
+ #: ../widgets/widgets.php:232
3180
  msgid "Width x Height :"
3181
  msgstr ""
3182
 
3183
+ #: ../widgets/widgets.php:238
3184
  msgid "Select :"
3185
  msgstr ""
3186
 
3187
+ #: ../widgets/widgets.php:240
3188
  msgid "All galleries"
3189
  msgstr ""
3190
 
3191
+ #: ../widgets/widgets.php:241
3192
  msgid "Only which are not listed"
3193
  msgstr ""
3194
 
3195
+ #: ../widgets/widgets.php:242
3196
  msgid "Only which are listed"
3197
  msgstr ""
3198
 
3199
+ #: ../widgets/widgets.php:248
3200
  msgid "Gallery ID :"
3201
  msgstr ""
3202
 
3203
+ #: ../widgets/widgets.php:250
3204
  msgid "Gallery IDs, separated by commas."
3205
  msgstr ""
3206
 
lib/core.php CHANGED
@@ -405,6 +405,60 @@ class nggGallery {
405
  return $filepart;
406
  }
407
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  }
409
 
410
  ?>
405
  return $filepart;
406
  }
407
 
408
+ /**
409
+ * Check for extended capabilites. Must previously registers with add_ngg_capabilites()
410
+ *
411
+ * @since 1.5.0
412
+ * @param string $capability
413
+ * @return bool $result of capability check
414
+ */
415
+ function current_user_can( $capability ) {
416
+
417
+ global $_ngg_capabilites;
418
+
419
+ if ( is_array($_ngg_capabilites) )
420
+ if ( in_array($capability , $_ngg_capabilites) )
421
+ return current_user_can( $capability );
422
+
423
+ return true;
424
+ }
425
+
426
+ /**
427
+ * Check for extended capabilites and echo disabled="disabled" for input form
428
+ *
429
+ * @since 1.5.0
430
+ * @param string $capability
431
+ * @return void
432
+ */
433
+ function current_user_can_form( $capability ) {
434
+
435
+ if ( !nggGallery::current_user_can( $capability ))
436
+ echo 'disabled="disabled"';
437
+ }
438
+
439
+ /**
440
+ * Register more capabilities for custom use and add it to the administrator
441
+ *
442
+ * @since 1.5.0
443
+ * @param string $capability
444
+ * @param bool $register the new capability automatic to the admin role
445
+ * @return void
446
+ */
447
+ function add_capabilites( $capability , $register = true ) {
448
+ global $_ngg_capabilites;
449
+
450
+ if ( !is_array($_ngg_capabilites) )
451
+ $_ngg_capabilites = array();
452
+
453
+ $_ngg_capabilites[] = $capability;
454
+
455
+ if ( $register ) {
456
+ $role = get_role('administrator');
457
+ if ( !empty($role) )
458
+ $role->add_cap( $capability );
459
+ }
460
+
461
+ }
462
  }
463
 
464
  ?>
lib/gd.thumbnail.inc.php CHANGED
@@ -825,7 +825,7 @@ class ngg_Thumbnail {
825
  return;
826
 
827
  // This function requires both the GD library and the FreeType library.
828
- if ( !function_exists(ImageTTFBBox) )
829
  return;
830
 
831
  $TextSize = @ImageTTFBBox($wmSize, 0, $wmFontPath, $this->watermarkText) or die;
825
  return;
826
 
827
  // This function requires both the GD library and the FreeType library.
828
+ if ( !function_exists('ImageTTFBBox') )
829
  return;
830
 
831
  $TextSize = @ImageTTFBBox($wmSize, 0, $wmFontPath, $this->watermarkText) or die;
lib/image.php CHANGED
@@ -69,6 +69,8 @@ class nggImage{
69
  $this->imagePath = WINABSPATH.$this->path . '/' . $this->filename;
70
  $this->thumbPath = WINABSPATH.$this->path . '/thumbs/thumbs_' . $this->filename;
71
  $this->meta_data = unserialize($this->meta_data);
 
 
72
 
73
  wp_cache_add($this->pid, $this, 'ngg_image');
74
 
@@ -114,8 +116,16 @@ class nggImage{
114
  return $this->href;
115
  }
116
 
 
 
 
 
 
 
 
 
117
  function cached_singlepic_file($width = '', $height = '', $mode = '' ) {
118
- // This function creates a cache for all singlepics to reduce the CPU load
119
  $ngg_options = get_option('ngg_options');
120
 
121
  include_once( nggGallery::graphic_library() );
@@ -138,8 +148,21 @@ class nggImage{
138
  $thumb = new ngg_Thumbnail($this->imagePath, TRUE);
139
  // echo $thumb->errmsg;
140
 
141
- if (!$thumb->error) {
142
- $thumb->resize($width , $height);
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
  if ($mode == 'watermark') {
145
  if ($ngg_options['wmType'] == 'image') {
69
  $this->imagePath = WINABSPATH.$this->path . '/' . $this->filename;
70
  $this->thumbPath = WINABSPATH.$this->path . '/thumbs/thumbs_' . $this->filename;
71
  $this->meta_data = unserialize($this->meta_data);
72
+ $this->imageHTML = $this->get_href_link();
73
+ $this->thumbHTML = $this->get_href_thumb_link();
74
 
75
  wp_cache_add($this->pid, $this, 'ngg_image');
76
 
116
  return $this->href;
117
  }
118
 
119
+ /**
120
+ * This function creates a cache for all singlepics to reduce the CPU load
121
+ *
122
+ * @param int $width
123
+ * @param int $height
124
+ * @param string $mode could be watermark | web20 | crop
125
+ * @return the url for the image or false if failed
126
+ */
127
  function cached_singlepic_file($width = '', $height = '', $mode = '' ) {
128
+
129
  $ngg_options = get_option('ngg_options');
130
 
131
  include_once( nggGallery::graphic_library() );
148
  $thumb = new ngg_Thumbnail($this->imagePath, TRUE);
149
  // echo $thumb->errmsg;
150
 
151
+ if (!$thumb->error) {
152
+ if ($mode == 'crop') {
153
+ // check for portrait format
154
+ if ($thumb->currentDimensions['height'] < $thumb->currentDimensions['width']) {
155
+ list ( $width, $ratio_h ) = wp_constrain_dimensions($thumb->currentDimensions['width'], $thumb->currentDimensions['height'], $width);
156
+ $thumb->resize($width, $ratio_h);
157
+ $ypos = ($thumb->currentDimensions['height'] - $height) / 2;
158
+ $thumb->crop(0, $ypos, $width, $height);
159
+ } else {
160
+ $thumb->resize($width, 0);
161
+ $ypos = ($thumb->currentDimensions['height'] - $height) / 2;
162
+ $thumb->crop(0, $ypos, $width, $height);
163
+ }
164
+ } else
165
+ $thumb->resize($width , $height);
166
 
167
  if ($mode == 'watermark') {
168
  if ($ngg_options['wmType'] == 'image') {
lib/locale.php ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( !class_exists('ngg_locale') ) :
3
+ /**
4
+ * Install locale files from WordPress.org plugin repository
5
+ *
6
+ * @version 1.0.0
7
+ * @author Alex Rabe
8
+ * @copyright 2010
9
+ * @package NextGEN Gallery
10
+ * @since 1.5.0
11
+ */
12
+
13
+ class ngg_locale {
14
+
15
+ /**
16
+ * Current locale
17
+ *
18
+ * @var string
19
+ */
20
+ var $locale = '';
21
+
22
+ /**
23
+ * Plugin domain name
24
+ *
25
+ * @var string
26
+ */
27
+ var $domain = 'nggallery';
28
+
29
+ /**
30
+ * URL to the translation files
31
+ *
32
+ * @var string
33
+ */
34
+ var $remote_locale_url = 'http://nextgen-gallery.googlecode.com/files/';
35
+
36
+ /**
37
+ * Plugin path to the langauage files
38
+ *
39
+ * @var string
40
+ */
41
+ var $plugin_locale_path = 'lang';
42
+
43
+ /**
44
+ * Server path to the locale file on the server
45
+ *
46
+ * @var string
47
+ */
48
+ var $mo_file = '';
49
+
50
+ /**
51
+ * URL to the locale file from the remote server
52
+ *
53
+ * @var string
54
+ */
55
+ var $mo_url = '';
56
+
57
+ /**
58
+ * Repsonse code for request
59
+ *
60
+ * @var array
61
+ */
62
+ var $repsonse = '';
63
+
64
+ /**
65
+ * PHP4 compatibility layer for calling the PHP5 constructor.
66
+ *
67
+ */
68
+ function install_locale() {
69
+ return $this->__construct();
70
+ }
71
+
72
+ /**
73
+ * Init the Database Abstraction layer for NextGEN Gallery
74
+ *
75
+ */
76
+ function __construct() {
77
+ $this->plugin_locale_path = NGGALLERY_ABSPATH . 'lang/';
78
+ $this->locale = get_locale();
79
+
80
+ $this->mo_file = trailingslashit($this->plugin_locale_path) . $this->domain . '-' . $this->locale . '.mo';
81
+ $this->mo_url = trailingslashit($this->remote_locale_url) . $this->domain . '-' . $this->locale . '.mo';
82
+ }
83
+
84
+ /**
85
+ * This functions checks if a translation is at wp.org available
86
+ * Please note, if a language file is already loaded it exits as well
87
+ *
88
+ * @return string result of check ( default | installed | not_exist | available )
89
+ */
90
+ function check() {
91
+
92
+ // we do not need to check for translation if you use english
93
+ if ( ($this->locale == 'en_US') )
94
+ return 'default';
95
+
96
+ $this->response = wp_remote_get($this->mo_url, array('timeout' => 300));
97
+
98
+ // if a language file exist, do not load it again
99
+ if ( is_readable( $this->mo_file ) )
100
+ return 'installed';
101
+
102
+ // if no translation file exists exit the check
103
+ if ( is_wp_error($this->response) || $this->response['response']['code'] != '200' )
104
+ return 'not_exist';
105
+
106
+ return 'available';
107
+ }
108
+
109
+ /**
110
+ * Downloads a locale to the plugin folder using the WordPress HTTP Class.
111
+ *
112
+ * @author taken from WP core
113
+ * @return mixed WP_Error on failure, true on success.
114
+ */
115
+ function download_locale() {
116
+
117
+ $url = $this->mo_url;
118
+
119
+ if ( ! $url )
120
+ return new WP_Error('http_no_url', __('Invalid URL Provided.'));
121
+
122
+ $filename = $this->mo_file;
123
+ if ( ! $filename )
124
+ return new WP_Error('http_no_file', __('Could not create Temporary file.'));
125
+
126
+ $handle = @fopen($filename, 'wb');
127
+ if ( ! $handle )
128
+ return new WP_Error('http_no_file', __('Could not create Temporary file.'));
129
+
130
+ $response = wp_remote_get($url, array('timeout' => 300));
131
+
132
+ if ( is_wp_error($response) ) {
133
+ fclose($handle);
134
+ unlink($filename);
135
+ return $response;
136
+ }
137
+
138
+ if ( $response['response']['code'] != '200' ){
139
+ fclose($handle);
140
+ unlink($filename);
141
+ return new WP_Error('http_404', trim($response['response']['message']));
142
+ }
143
+
144
+ fwrite($handle, $response['body']);
145
+ fclose($handle);
146
+
147
+ return true;
148
+ }
149
+
150
+ }
151
+ endif;
152
+ ?>
lib/meta.php CHANGED
@@ -76,7 +76,7 @@ class nggMeta{
76
 
77
  $meta = $this->image->meta_data;
78
 
79
- //check if we already import the meat data to the database
80
  if (!is_array($meta) || ($meta['saved'] != true))
81
  return false;
82
 
@@ -104,65 +104,74 @@ class nggMeta{
104
  */
105
  function get_EXIF($object = false) {
106
 
107
- if (!$this->exif_data)
108
  return false;
109
 
110
  if (!is_array($this->exif_array)){
111
-
112
  $meta= array();
113
-
114
- // taken from WP core
115
- $exif = $this->exif_data['EXIF'];
116
- if (!empty($exif['FNumber']))
117
- $meta['aperture'] = 'F ' . round( $this->exif_frac2dec( $exif['FNumber'] ), 2 );
118
- if (!empty($exif['Model']))
119
- $meta['camera'] = trim( $exif['Model'] );
120
- if (!empty($exif['DateTimeDigitized']))
121
- $meta['created_timestamp'] = date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $this->exif_date2ts($exif['DateTimeDigitized']));
122
- if (!empty($exif['FocalLength']))
123
- $meta['focal_length'] = $this->exif_frac2dec( $exif['FocalLength'] ) . __(' mm','nggallery');
124
- if (!empty($exif['ISOSpeedRatings']))
125
- $meta['iso'] = $exif['ISOSpeedRatings'];
126
- if (!empty($exif['ExposureTime'])) {
127
- $meta['shutter_speed'] = $this->exif_frac2dec ($exif['ExposureTime']);
128
- $meta['shutter_speed'] =($meta['shutter_speed'] > 0.0 and $meta['shutter_speed'] < 1.0) ? ( '1/' . round( 1 / $meta['shutter_speed'], -1) ) : ($meta['shutter_speed']);
129
- $meta['shutter_speed'] .= __(' sec','nggallery');
130
- }
131
- //Bit 0 indicates the flash firing status
132
- if (!empty($exif['Flash']))
133
- $meta['flash'] = ( $exif['Flash'] & 1 ) ? __('Fired', 'nggallery') : __('Not fired',' nggallery');
134
-
 
 
135
  // additional information
136
- $exif = $this->exif_data['IFD0'];
137
- if (!empty($exif['Model']))
138
- $meta['camera'] = $exif['Model'];
139
- if (!empty($exif['Make']))
140
- $meta['make'] = $exif['Make'];
141
- if (!empty($exif['ImageDescription']))
142
- $meta['title'] = utf8_encode($exif['ImageDescription']);
143
- if (!empty($exif['Orientation']))
144
- $meta['Orientation'] = $exif['Orientation'];
145
-
 
 
 
146
  // this is done by Windows
147
- $exif = $this->exif_data['WINXP'];
 
148
 
149
- if (!empty($exif['Title']) && empty($meta['title']))
150
- $meta['title'] = utf8_encode($exif['Title']);
151
- if (!empty($exif['Author']))
152
- $meta['author'] = utf8_encode($exif['Author']);
153
- if (!empty($exif['Keywords']))
154
- $meta['tags'] = utf8_encode($exif['Keywords']);
155
- if (!empty($exif['Subject']))
156
- $meta['subject'] = utf8_encode($exif['Subject']);
157
- if (!empty($exif['Comments']))
158
- $meta['caption'] = utf8_encode($exif['Comments']);
 
159
 
160
  $this->exif_array = $meta;
161
  }
162
 
163
  // return one element if requested
164
- if ($object)
165
- return $this->exif_array[$object];
 
 
166
 
167
  return $this->exif_array;
168
 
@@ -348,7 +357,7 @@ class nggMeta{
348
 
349
  foreach ($xmpTags as $key => $value) {
350
  // if the kex exist
351
- if ($xmlarray[$key]) {
352
  switch ($key) {
353
  case 'xap:CreateDate':
354
  case 'xap:ModifyDate':
@@ -448,8 +457,9 @@ class nggMeta{
448
  'height' => __('Image Height','nggallery'),
449
  'flash' => __('Flash','nggallery')
450
  );
451
-
452
- if ($tagnames[$key]) $key = $tagnames[$key];
 
453
 
454
  return($key);
455
 
76
 
77
  $meta = $this->image->meta_data;
78
 
79
+ //check if we already import the meta data to the database
80
  if (!is_array($meta) || ($meta['saved'] != true))
81
  return false;
82
 
104
  */
105
  function get_EXIF($object = false) {
106
 
107
+ if ( !$this->exif_data )
108
  return false;
109
 
110
  if (!is_array($this->exif_array)){
111
+
112
  $meta= array();
113
+
114
+ if ( isset($this->exif_data['EXIF']) ) {
115
+ $exif = $this->exif_data['EXIF'];
116
+
117
+ if (!empty($exif['FNumber']))
118
+ $meta['aperture'] = 'F ' . round( $this->exif_frac2dec( $exif['FNumber'] ), 2 );
119
+ if (!empty($exif['Model']))
120
+ $meta['camera'] = trim( $exif['Model'] );
121
+ if (!empty($exif['DateTimeDigitized']))
122
+ $meta['created_timestamp'] = date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $this->exif_date2ts($exif['DateTimeDigitized']));
123
+ if (!empty($exif['FocalLength']))
124
+ $meta['focal_length'] = $this->exif_frac2dec( $exif['FocalLength'] ) . __(' mm','nggallery');
125
+ if (!empty($exif['ISOSpeedRatings']))
126
+ $meta['iso'] = $exif['ISOSpeedRatings'];
127
+ if (!empty($exif['ExposureTime'])) {
128
+ $meta['shutter_speed'] = $this->exif_frac2dec ($exif['ExposureTime']);
129
+ $meta['shutter_speed'] =($meta['shutter_speed'] > 0.0 and $meta['shutter_speed'] < 1.0) ? ( '1/' . round( 1 / $meta['shutter_speed'], -1) ) : ($meta['shutter_speed']);
130
+ $meta['shutter_speed'] .= __(' sec','nggallery');
131
+ }
132
+ //Bit 0 indicates the flash firing status
133
+ if (!empty($exif['Flash']))
134
+ $meta['flash'] = ( $exif['Flash'] & 1 ) ? __('Fired', 'nggallery') : __('Not fired',' nggallery');
135
+ }
136
+
137
  // additional information
138
+ if ( isset($this->exif_data['IFD0']) ) {
139
+ $exif = $this->exif_data['IFD0'];
140
+
141
+ if (!empty($exif['Model']))
142
+ $meta['camera'] = $exif['Model'];
143
+ if (!empty($exif['Make']))
144
+ $meta['make'] = $exif['Make'];
145
+ if (!empty($exif['ImageDescription']))
146
+ $meta['title'] = utf8_encode($exif['ImageDescription']);
147
+ if (!empty($exif['Orientation']))
148
+ $meta['Orientation'] = $exif['Orientation'];
149
+ }
150
+
151
  // this is done by Windows
152
+ if ( isset($this->exif_data['WINXP']) ) {
153
+ $exif = $this->exif_data['WINXP'];
154
 
155
+ if (!empty($exif['Title']) && empty($meta['title']))
156
+ $meta['title'] = utf8_encode($exif['Title']);
157
+ if (!empty($exif['Author']))
158
+ $meta['author'] = utf8_encode($exif['Author']);
159
+ if (!empty($exif['Keywords']))
160
+ $meta['tags'] = utf8_encode($exif['Keywords']);
161
+ if (!empty($exif['Subject']))
162
+ $meta['subject'] = utf8_encode($exif['Subject']);
163
+ if (!empty($exif['Comments']))
164
+ $meta['caption'] = utf8_encode($exif['Comments']);
165
+ }
166
 
167
  $this->exif_array = $meta;
168
  }
169
 
170
  // return one element if requested
171
+ if ( $object == true ) {
172
+ $value = isset($this->exif_array[$object]) ? $this->exif_array[$object] : false;
173
+ return $value;
174
+ }
175
 
176
  return $this->exif_array;
177
 
357
 
358
  foreach ($xmpTags as $key => $value) {
359
  // if the kex exist
360
+ if ( isset($xmlarray[$key]) ) {
361
  switch ($key) {
362
  case 'xap:CreateDate':
363
  case 'xap:ModifyDate':
457
  'height' => __('Image Height','nggallery'),
458
  'flash' => __('Flash','nggallery')
459
  );
460
+
461
+ if ( isset($tagnames[$key]) )
462
+ $key = $tagnames[$key];
463
 
464
  return($key);
465
 
lib/ngg-db.php CHANGED
@@ -96,7 +96,7 @@ class nggdb {
96
  return array();
97
 
98
  foreach ($this->albums as $key => $value) {
99
- $this->albums[$key]->galleries = (array) unserialize($this->albums[$key]->sortorder);
100
  $this->albums[$key]->name = stripslashes( $this->albums[$key]->name );
101
  $this->albums[$key]->albumdesc = stripslashes( $this->albums[$key]->albumdesc );
102
  wp_cache_add($key, $this->albums[$key], 'ngg_album');
@@ -184,6 +184,7 @@ class nggdb {
184
  // Build the object from the query result
185
  if ($gallery) {
186
  $gallery->abspath = WINABSPATH . $gallery->path;
 
187
  wp_cache_add($id, $gallery, 'ngg_gallery');
188
 
189
  return $gallery;
@@ -666,6 +667,7 @@ class nggdb {
666
 
667
  $n = '%';
668
  $searchand = '';
 
669
 
670
  foreach( (array) $search_terms as $term) {
671
  $term = addslashes_gpc($term);
@@ -768,6 +770,6 @@ if ( ! isset($GLOBALS['nggdb']) ) {
768
  * @since 1.1.0
769
  */
770
  unset($GLOBALS['nggdb']);
771
- $GLOBALS['nggdb'] =& new nggdb();
772
  }
773
  ?>
96
  return array();
97
 
98
  foreach ($this->albums as $key => $value) {
99
+ $this->albums[$key]->galleries = empty ($this->albums[$key]->sortorder) ? array() : (array) unserialize($this->albums[$key]->sortorder) ;
100
  $this->albums[$key]->name = stripslashes( $this->albums[$key]->name );
101
  $this->albums[$key]->albumdesc = stripslashes( $this->albums[$key]->albumdesc );
102
  wp_cache_add($key, $this->albums[$key], 'ngg_album');
184
  // Build the object from the query result
185
  if ($gallery) {
186
  $gallery->abspath = WINABSPATH . $gallery->path;
187
+ //TODO:Possible failure , $id could be a number or name
188
  wp_cache_add($id, $gallery, 'ngg_gallery');
189
 
190
  return $gallery;
667
 
668
  $n = '%';
669
  $searchand = '';
670
+ $search = '';
671
 
672
  foreach( (array) $search_terms as $term) {
673
  $term = addslashes_gpc($term);
770
  * @since 1.1.0
771
  */
772
  unset($GLOBALS['nggdb']);
773
+ $GLOBALS['nggdb'] = new nggdb() ;
774
  }
775
  ?>
lib/post-thumbnail.php ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * nggPostThumbnail - Class for adding the post thumbnail feature
5
+ *
6
+ * @package NextGEN Gallery
7
+ * @author Alex Rabe
8
+ * @copyright 2010
9
+ * @version 1.0.0
10
+ * @access internal
11
+ */
12
+ class nggPostThumbnail {
13
+
14
+ /**
15
+ * PHP4 compatibility layer for calling the PHP5 constructor.
16
+ *
17
+ */
18
+ function nggPostThumbnail() {
19
+ return $this->__construct();
20
+ }
21
+
22
+ /**
23
+ * Main constructor - Add filter and action hooks
24
+ *
25
+ */
26
+ function __construct() {
27
+
28
+ add_filter( 'admin_post_thumbnail_html', array( &$this, 'admin_post_thumbnail') );
29
+ add_action( 'wp_ajax_ngg_set_post_thumbnail', array( &$this, 'ajax_set_post_thumbnail') );
30
+ // Adding filter for the new post_thumbnail
31
+ add_filter( 'post_thumbnail_html', array( &$this, 'ngg_post_thumbnail'), 10, 5 );
32
+ return;
33
+ }
34
+
35
+ /**
36
+ * Filter for the post meta box. look for a NGG image if the ID is "ngg-<imageID>"
37
+ *
38
+ * @param string $content
39
+ * @return string html output
40
+ */
41
+ function admin_post_thumbnail( $content ) {
42
+ global $post;
43
+
44
+ if ( !is_object($post) )
45
+ return $content;
46
+
47
+ $thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true );
48
+
49
+ // in the case it's a ngg image it return ngg-<imageID>
50
+ if ( strpos($thumbnail_id, 'ngg-') === false)
51
+ return $content;
52
+
53
+ // cut off the 'ngg-'
54
+ $thumbnail_id = substr( $thumbnail_id, 4);
55
+
56
+ return $this->_wp_post_thumbnail_html( $thumbnail_id );
57
+ }
58
+
59
+ /**
60
+ * Filter for the post content
61
+ *
62
+ * @param string $html
63
+ * @param int $post_id
64
+ * @param int $post_thumbnail_id
65
+ * @param string|array $size Optional. Image size. Defaults to 'thumbnail'.
66
+ * @param string|array $attr Optional. Query string or array of attributes.
67
+ * @return string html output
68
+ */
69
+ function ngg_post_thumbnail( $html, $post_id, $post_thumbnail_id, $size = 'post-thumbnail', $attr = '' ) {
70
+
71
+ global $post, $_wp_additional_image_sizes;
72
+
73
+ // in the case it's a ngg image it return ngg-<imageID>
74
+ if ( strpos($post_thumbnail_id, 'ngg-') === false)
75
+ return $html;
76
+
77
+ // cut off the 'ngg-'
78
+ $post_thumbnail_id = substr( $post_thumbnail_id, 4);
79
+
80
+ // get the options
81
+ $ngg_options = nggGallery::get_option('ngg_options');
82
+
83
+ // get the image data
84
+ $image = nggdb::find_image($post_thumbnail_id);
85
+
86
+ if (!$image)
87
+ return $html;
88
+
89
+ $img_src = false;
90
+
91
+ $class = 'wp-post-image ngg-image-' . $image->pid . ' ';
92
+
93
+ // look up for the post thumbnial size and use them if defined
94
+ if ($size == 'post-thumbnail') {
95
+ if ( is_array($_wp_additional_image_sizes) && isset($_wp_additional_image_sizes['post-thumbnail']) ) {
96
+ $size = array();
97
+ $size[0] = $_wp_additional_image_sizes['post-thumbnail']['width'];
98
+ $size[1] = $_wp_additional_image_sizes['post-thumbnail']['height'];
99
+ $size[2] = 'crop';
100
+ }
101
+ }
102
+
103
+ if ( is_array($size) )
104
+ $class .= isset($attr['class']) ? esc_attr($attr['class']) : '';
105
+
106
+ // render a new image or show the thumbnail if we didn't get size parameters
107
+ if ( is_array($size) ) {
108
+
109
+ $width = absint( $size[0] );
110
+ $height = absint( $size[1] );
111
+ $mode = isset($size[2]) ? $size[2] : '';
112
+
113
+ // check fo cached picture
114
+ if ( ($ngg_options['imgCacheSinglePic']) && ($post->post_status == 'publish') )
115
+ $img_src = $image->cached_singlepic_file( $width, $height, $mode );
116
+
117
+ // if we didn't use a cached image then we take the on-the-fly mode
118
+ if ($img_src == false)
119
+ $img_src = get_option ('siteurl') . '/' . 'index.php?callback=image&amp;pid=' . $image->pid . '&amp;width=' . $width . '&amp;height=' . $height . '&amp;mode=crop';
120
+
121
+ } else {
122
+ $img_src = $image->thumbURL;
123
+ }
124
+
125
+ $html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($image->alttext) . '" title="' . esc_attr($image->title).'" class="'.$class.'" />';
126
+
127
+ return $html;
128
+ }
129
+
130
+ /**
131
+ * nggPostThumbnail::ajax_set_post_thumbnail()
132
+ *
133
+ * @return void
134
+ */
135
+ function ajax_set_post_thumbnail() {
136
+
137
+ // check for correct capability
138
+ if ( !is_user_logged_in() )
139
+ die( '-1' );
140
+
141
+ $post_id = intval( $_POST['post_id'] );
142
+ if ( !current_user_can( 'edit_post', $post_id ) )
143
+ die( '-1' );
144
+
145
+ $thumbnail_id = intval( $_POST['thumbnail_id'] );
146
+
147
+ // delete the image
148
+ if ( $thumbnail_id == '-1' ) {
149
+ delete_post_meta( $post_id, '_thumbnail_id' );
150
+ die( $this->_wp_post_thumbnail_html() );
151
+ }
152
+
153
+ // for NGG we look for the image id
154
+ if ( $thumbnail_id && nggdb::find_image($thumbnail_id) ) {
155
+ // to know that we have a NGG image we add "ngg-" before the id
156
+ update_post_meta( $post_id, '_thumbnail_id', 'ngg-' . $thumbnail_id );
157
+ die( $this->_wp_post_thumbnail_html( $thumbnail_id ) );
158
+ }
159
+ die( '0' );
160
+ }
161
+
162
+ /**
163
+ * Output HTML for the post thumbnail meta-box.
164
+ *
165
+ * @see wp-admin\includes\post.php
166
+ * @param int $thumbnail_id ID of the image used for thumbnail
167
+ * @return string html output
168
+ */
169
+ function _wp_post_thumbnail_html( $thumbnail_id = NULL ) {
170
+
171
+ global $_wp_additional_image_sizes;
172
+
173
+ $content = '<p class="hide-if-no-js"><a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . esc_html__( 'Set thumbnail' ) . '</a></p>';
174
+
175
+ $image = nggdb::find_image($thumbnail_id);
176
+ $img_src = false;
177
+
178
+ // get the options
179
+ $ngg_options = nggGallery::get_option('ngg_options');
180
+
181
+ if ( $image ) {
182
+ if ( is_array($_wp_additional_image_sizes) && isset($_wp_additional_image_sizes['post-thumbnail']) ){
183
+ // Use post thumbnail settings if defined
184
+ $width = absint( $_wp_additional_image_sizes['post-thumbnail']['width'] );
185
+ $height = absint( $_wp_additional_image_sizes['post-thumbnail']['height'] );
186
+ // check fo cached picture
187
+ if ( ($ngg_options['imgCacheSinglePic']) )
188
+ $img_src = $image->cached_singlepic_file( $width, $height, 'crop' );
189
+ }
190
+
191
+ // if we didn't use a cached image then we take the on-the-fly mode
192
+ if ( $img_src == false )
193
+ $img_src = get_option ('siteurl') . '/' . 'index.php?callback=image&amp;pid=' . $image->pid . '&amp;width=' . $width . '&amp;height=' . $height . '&amp;mode=crop';
194
+
195
+ $thumbnail_html = '<img width="266" src="'. $img_src . '" alt="'.$image->alttext.'" title="'.$image->alttext.'" />';
196
+
197
+ if ( !empty( $thumbnail_html ) ) {
198
+ $content = '<a href="#" id="set-post-thumbnail" onclick="jQuery(\'#add_image\').click();return false;">' . $thumbnail_html . '</a>';
199
+ $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail();return false;">' . esc_html__( 'Remove thumbnail' ) . '</a></p>';
200
+ }
201
+ }
202
+
203
+ return $content;
204
+ }
205
+
206
+ }
207
+
208
+ $nggPostThumbnail = new nggPostThumbnail();
209
+ ?>
lib/rewrite.php CHANGED
@@ -153,7 +153,7 @@ class nggRewrite {
153
  $query_vars[] = 'album';
154
  $query_vars[] = 'gallerytag';
155
  $query_vars[] = 'show';
156
- $query_vars[] = 'slideshow';
157
 
158
  return $query_vars;
159
  }
@@ -200,10 +200,6 @@ class nggRewrite {
200
  if ( !empty($tag) )
201
  $new_title .= esc_attr($tag) . $sep;
202
 
203
- // for all sub pages we add the canonical tag
204
- if ( !empty($new_title) )
205
- add_action('wp_head', array(&$this, 'add_canonical_meta'));
206
-
207
  //prepend the data
208
  $title = $new_title . $title;
209
 
@@ -211,9 +207,10 @@ class nggRewrite {
211
  }
212
 
213
  /**
214
- * Canonical support for a better SEO (Dupilcat content)
215
  * See : http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
216
  *
 
217
  * @return string $meta
218
  */
219
  function add_canonical_meta()
@@ -232,7 +229,7 @@ class nggRewrite {
232
  function RewriteRules($wp_rewrite) {
233
  $rewrite_rules = array (
234
  // XML request
235
- $this->slug.'/slideshow/([0-9]+)/?$' => 'index.php?slideshow=true&gid=$matches[1]',
236
 
237
  // rewrite rules for pages
238
  $this->slug.'/page-([0-9]+)/?$' => 'index.php?page_id=$matches[1]',
153
  $query_vars[] = 'album';
154
  $query_vars[] = 'gallerytag';
155
  $query_vars[] = 'show';
156
+ $query_vars[] = 'callback';
157
 
158
  return $query_vars;
159
  }
200
  if ( !empty($tag) )
201
  $new_title .= esc_attr($tag) . $sep;
202
 
 
 
 
 
203
  //prepend the data
204
  $title = $new_title . $title;
205
 
207
  }
208
 
209
  /**
210
+ * Canonical support for a better SEO (Dupilcat content), not longer nedded for Wp 2.9
211
  * See : http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
212
  *
213
+ * @deprecated
214
  * @return string $meta
215
  */
216
  function add_canonical_meta()
229
  function RewriteRules($wp_rewrite) {
230
  $rewrite_rules = array (
231
  // XML request
232
+ $this->slug.'/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]',
233
 
234
  // rewrite rules for pages
235
  $this->slug.'/page-([0-9]+)/?$' => 'index.php?page_id=$matches[1]',
lib/shortcodes.php CHANGED
@@ -11,6 +11,9 @@ class NextGEN_shortcodes {
11
 
12
  // register the new shortcodes
13
  function NextGEN_shortcodes() {
 
 
 
14
 
15
  // convert the old shortcode
16
  add_filter('the_content', array(&$this, 'convert_shortcode'));
@@ -208,6 +211,10 @@ class NextGEN_shortcodes {
208
  'images' => false
209
  ), $atts ));
210
 
 
 
 
 
211
  $out = nggShowGallery( $id, $template, $images );
212
 
213
  return $out;
@@ -237,11 +244,11 @@ class NextGEN_shortcodes {
237
  'h' => ''
238
  ), $atts ));
239
 
240
- $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE gid = '$id' ");
241
- if(!$galleryID) $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE name = '$id' ");
242
 
243
- if( $galleryID )
244
- $out = nggShowSlideshow($galleryID, $w, $h);
245
  else
246
  $out = __('[Gallery not found]','nggallery');
247
 
11
 
12
  // register the new shortcodes
13
  function NextGEN_shortcodes() {
14
+
15
+ //Long posts should require a higher limit, see http://core.trac.wordpress.org/ticket/8553
16
+ @ini_set('pcre.backtrack_limit', 500000);
17
 
18
  // convert the old shortcode
19
  add_filter('the_content', array(&$this, 'convert_shortcode'));
211
  'images' => false
212
  ), $atts ));
213
 
214
+ // backward compat for user which uses the name instead, still deprecated
215
+ if( !is_numeric($id) )
216
+ $id = $wpdb->get_var( $wpdb->prepare ("SELECT gid FROM $wpdb->nggallery WHERE name = '%s' "), $id );
217
+
218
  $out = nggShowGallery( $id, $template, $images );
219
 
220
  return $out;
244
  'h' => ''
245
  ), $atts ));
246
 
247
+ if( !is_numeric($id) )
248
+ $id = $wpdb->get_var( $wpdb->prepare ("SELECT gid FROM $wpdb->nggallery WHERE name = '%s' "), $id );
249
 
250
+ if( !empty( $id ) )
251
+ $out = nggShowSlideshow($id, $w, $h);
252
  else
253
  $out = __('[Gallery not found]','nggallery');
254
 
ngg-config.php CHANGED
@@ -30,6 +30,4 @@ if ( !defined('WP_LOAD_PATH') ) {
30
  }
31
 
32
  // let's load WordPress
33
- require_once( WP_LOAD_PATH . 'wp-load.php');
34
-
35
- ?>
30
  }
31
 
32
  // let's load WordPress
33
+ require_once( WP_LOAD_PATH . 'wp-load.php');
 
 
nggallery.php CHANGED
@@ -4,11 +4,11 @@ Plugin Name: NextGEN Gallery
4
  Plugin URI: http://alexrabe.de/?page_id=80
5
  Description: A NextGENeration Photo gallery for the Web 2.0.
6
  Author: Alex Rabe
7
- Version: 1.4.3
8
 
9
  Author URI: http://alexrabe.de/
10
 
11
- Copyright 2007-2009 by Alex Rabe & NextGEN DEV-Team
12
 
13
  The NextGEN button is taken from the Fugue Icons of http://www.pinvoke.com/.
14
 
@@ -44,10 +44,10 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
44
  if (!class_exists('nggLoader')) {
45
  class nggLoader {
46
 
47
- var $version = '1.4.3';
48
- var $dbversion = '1.4.0';
49
- var $minium_WP = '2.8';
50
- var $minium_WPMU = '2.8';
51
  var $updateURL = 'http://nextgen.boelinger.com/version.php';
52
  var $donators = 'http://nextgen.boelinger.com/donators.php';
53
  var $options = '';
@@ -59,6 +59,10 @@ class nggLoader {
59
  // Load the language file
60
  $this->load_textdomain();
61
 
 
 
 
 
62
  // Stop the plugin if we missed the requirements
63
  if ( ( !$this->required_version() ) || ( !$this->check_memory_limit() ) )
64
  return;
@@ -82,7 +86,7 @@ class nggLoader {
82
  // Start this plugin once all other plugins are fully loaded
83
  add_action( 'plugins_loaded', array(&$this, 'start_plugin') );
84
 
85
- // Register_taxonomy must be used during wo init
86
  add_action( 'init', array(&$this, 'register_taxonomy') );
87
 
88
  // Add a message for PHP4 Users, can disable the update message later on
@@ -101,7 +105,7 @@ class nggLoader {
101
  // Content Filters
102
  add_filter('ngg_gallery_name', 'sanitize_title');
103
 
104
- // Load the admin panel or the frontend functions
105
  if ( is_admin() ) {
106
 
107
  // Pass the init check or show a message
@@ -119,10 +123,7 @@ class nggLoader {
119
  add_action('wp_head', array('nggMediaRss', 'add_piclens_javascript'));
120
 
121
  // Look for XML request, before page is render
122
- add_action('parse_request', array(&$this, 'check_xml_request') );
123
-
124
- // Why is this not core ?
125
- add_action('wp_head', 'wp_print_styles');
126
 
127
  // Add the script and style files
128
  add_action('wp_print_scripts', array(&$this, 'load_scripts') );
@@ -134,12 +135,31 @@ class nggLoader {
134
  }
135
  }
136
 
137
- function check_xml_request( $wp ) {
 
 
 
138
 
139
- if (array_key_exists('slideshow', $wp->query_vars) && $wp->query_vars['slideshow'] == 'true') {
140
  require_once (dirname (__FILE__) . '/xml/imagerotator.php');
141
  exit();
142
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
  }
145
 
@@ -172,7 +192,7 @@ class nggLoader {
172
  function check_memory_limit() {
173
 
174
  $memory_limit = (int) substr( ini_get('memory_limit'), 0, -1);
175
- //This works only with enough memory, 8MB is silly, wordpress requires already 7.9999
176
  if ( ($memory_limit != 0) && ($memory_limit < 12 ) ) {
177
  add_action(
178
  'admin_notices',
@@ -227,8 +247,8 @@ class nggLoader {
227
  // define URL
228
  define('NGGFOLDER', plugin_basename( dirname(__FILE__)) );
229
 
230
- define('NGGALLERY_ABSPATH', str_replace("\\","/", WP_PLUGIN_DIR . '/' . plugin_basename( dirname(__FILE__) ) . '/' ));
231
- define('NGGALLERY_URLPATH', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
232
 
233
  // look for imagerotator
234
  define('NGGALLERY_IREXIST', !empty( $this->options['irURL'] ));
@@ -250,6 +270,7 @@ class nggLoader {
250
  require_once (dirname (__FILE__) . '/lib/core.php'); // 94.840
251
  require_once (dirname (__FILE__) . '/lib/ngg-db.php'); // 132.400
252
  require_once (dirname (__FILE__) . '/lib/image.php'); // 59.424
 
253
  require_once (dirname (__FILE__) . '/widgets/widgets.php'); // 298.792
254
 
255
  //Just needed if you access remote to WordPress
@@ -315,8 +336,9 @@ class nggLoader {
315
  // Load AJAX navigation script, works only with shutter script as we need to add the listener
316
  if ( $this->options['galAjaxNav'] ) {
317
  if ( ($this->options['thumbEffect'] == "shutter") || function_exists('srel_makeshutter') ) {
318
- wp_enqueue_script ( 'ngg_script', NGGALLERY_URLPATH . 'js/ngg.js', array('jquery'));
319
  wp_localize_script( 'ngg_script', 'ngg_ajax', array('path' => NGGALLERY_URLPATH,
 
320
  'loading' => __('loading', 'nggallery'),
321
  ) );
322
  }
@@ -335,7 +357,7 @@ class nggLoader {
335
  if ( nggGallery::get_theme_css_file() )
336
  wp_enqueue_style('NextGEN', nggGallery::get_theme_css_file() , false, '1.0.0', 'screen');
337
  else if ($this->options['activateCSS'])
338
- wp_enqueue_style('NextGEN', NGGALLERY_URLPATH.'css/'.$this->options['CSSfile'], false, '1.0.0', 'screen');
339
 
340
  // activate Thickbox
341
  if ($this->options['thumbEffect'] == 'thickbox')
@@ -428,4 +450,4 @@ class nggLoader {
428
  global $ngg;
429
  $ngg = new nggLoader();
430
  }
431
- ?>
4
  Plugin URI: http://alexrabe.de/?page_id=80
5
  Description: A NextGENeration Photo gallery for the Web 2.0.
6
  Author: Alex Rabe
7
+ Version: 1.5.0
8
 
9
  Author URI: http://alexrabe.de/
10
 
11
+ Copyright 2007-2010 by Alex Rabe & NextGEN DEV-Team
12
 
13
  The NextGEN button is taken from the Fugue Icons of http://www.pinvoke.com/.
14
 
44
  if (!class_exists('nggLoader')) {
45
  class nggLoader {
46
 
47
+ var $version = '1.5.0';
48
+ var $dbversion = '1.5.0';
49
+ var $minium_WP = '2.9';
50
+ var $minium_WPMU = '2.9';
51
  var $updateURL = 'http://nextgen.boelinger.com/version.php';
52
  var $donators = 'http://nextgen.boelinger.com/donators.php';
53
  var $options = '';
59
  // Load the language file
60
  $this->load_textdomain();
61
 
62
+ // All credits to the tranlator
63
+ $this->translator = '<p class="hint">'. __('<strong>Translation by : </strong><a target="_blank" href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/">See here</a>', 'nggallery') . '</p>';
64
+ $this->translator .= '<p class="hint">'. __('<strong>This translation is not yet updated for Version 1.5.0</strong>. If you would like to help with translation, download the current po from the plugin folder and read <a href="http://alexrabe.de/wordpress-plugins/wordtube/translation-of-plugins/">here</a> how you can translate the plugin.', 'nggallery') . '</p>';
65
+
66
  // Stop the plugin if we missed the requirements
67
  if ( ( !$this->required_version() ) || ( !$this->check_memory_limit() ) )
68
  return;
86
  // Start this plugin once all other plugins are fully loaded
87
  add_action( 'plugins_loaded', array(&$this, 'start_plugin') );
88
 
89
+ // Register_taxonomy must be used during the init
90
  add_action( 'init', array(&$this, 'register_taxonomy') );
91
 
92
  // Add a message for PHP4 Users, can disable the update message later on
105
  // Content Filters
106
  add_filter('ngg_gallery_name', 'sanitize_title');
107
 
108
+ // Check if we are in the admin area
109
  if ( is_admin() ) {
110
 
111
  // Pass the init check or show a message
123
  add_action('wp_head', array('nggMediaRss', 'add_piclens_javascript'));
124
 
125
  // Look for XML request, before page is render
126
+ add_action('parse_request', array(&$this, 'check_request') );
 
 
 
127
 
128
  // Add the script and style files
129
  add_action('wp_print_scripts', array(&$this, 'load_scripts') );
135
  }
136
  }
137
 
138
+ function check_request( $wp ) {
139
+
140
+ if ( !array_key_exists('callback', $wp->query_vars) )
141
+ return;
142
 
143
+ if ( $wp->query_vars['callback'] == 'imagerotator') {
144
  require_once (dirname (__FILE__) . '/xml/imagerotator.php');
145
  exit();
146
  }
147
+
148
+ if ( $wp->query_vars['callback'] == 'json') {
149
+ require_once (dirname (__FILE__) . '/xml/json.php');
150
+ exit();
151
+ }
152
+
153
+ if ( $wp->query_vars['callback'] == 'image') {
154
+ require_once (dirname (__FILE__) . '/nggshow.php');
155
+ exit();
156
+ }
157
+
158
+ //TODO:see trac #12400 could be an option for WP3.0
159
+ if ( $wp->query_vars['callback'] == 'ngg-ajax') {
160
+ require_once (dirname (__FILE__) . '/xml/ajax.php');
161
+ exit();
162
+ }
163
 
164
  }
165
 
192
  function check_memory_limit() {
193
 
194
  $memory_limit = (int) substr( ini_get('memory_limit'), 0, -1);
195
+ //This works only with enough memory, 12MB is silly, wordpress requires already 16MB :-)
196
  if ( ($memory_limit != 0) && ($memory_limit < 12 ) ) {
197
  add_action(
198
  'admin_notices',
247
  // define URL
248
  define('NGGFOLDER', plugin_basename( dirname(__FILE__)) );
249
 
250
+ define('NGGALLERY_ABSPATH', trailingslashit( str_replace("\\","/", WP_PLUGIN_DIR . '/' . plugin_basename( dirname(__FILE__) ) ) ) );
251
+ define('NGGALLERY_URLPATH', trailingslashit( WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) ) );
252
 
253
  // look for imagerotator
254
  define('NGGALLERY_IREXIST', !empty( $this->options['irURL'] ));
270
  require_once (dirname (__FILE__) . '/lib/core.php'); // 94.840
271
  require_once (dirname (__FILE__) . '/lib/ngg-db.php'); // 132.400
272
  require_once (dirname (__FILE__) . '/lib/image.php'); // 59.424
273
+ require_once (dirname (__FILE__) . '/lib/post-thumbnail.php'); // n.a.
274
  require_once (dirname (__FILE__) . '/widgets/widgets.php'); // 298.792
275
 
276
  //Just needed if you access remote to WordPress
336
  // Load AJAX navigation script, works only with shutter script as we need to add the listener
337
  if ( $this->options['galAjaxNav'] ) {
338
  if ( ($this->options['thumbEffect'] == "shutter") || function_exists('srel_makeshutter') ) {
339
+ wp_enqueue_script ( 'ngg_script', NGGALLERY_URLPATH . 'js/ngg.js', array('jquery'), '2.0');
340
  wp_localize_script( 'ngg_script', 'ngg_ajax', array('path' => NGGALLERY_URLPATH,
341
+ 'callback' => get_option ('siteurl') . '/' . 'index.php?callback=ngg-ajax',
342
  'loading' => __('loading', 'nggallery'),
343
  ) );
344
  }
357
  if ( nggGallery::get_theme_css_file() )
358
  wp_enqueue_style('NextGEN', nggGallery::get_theme_css_file() , false, '1.0.0', 'screen');
359
  else if ($this->options['activateCSS'])
360
+ wp_enqueue_style('NextGEN', NGGALLERY_URLPATH . 'css/' . $this->options['CSSfile'], false, '1.0.0', 'screen');
361
 
362
  // activate Thickbox
363
  if ($this->options['thumbEffect'] == 'thickbox')
450
  global $ngg;
451
  $ngg = new nggLoader();
452
  }
453
+ ?>
nggfunctions.php CHANGED
@@ -37,12 +37,12 @@ function nggShowSlideshow($galleryID, $width, $height) {
37
  $swfobject->message = '<p>'. __('The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..', 'nggallery').'</p>';
38
  $swfobject->add_params('wmode', 'opaque');
39
  $swfobject->add_params('allowfullscreen', 'true');
40
- $swfobject->add_params('bgcolor', $ngg_options['irScreencolor'], '000000', 'string', '#');
41
  $swfobject->add_attributes('styleclass', 'slideshow');
42
  $swfobject->add_attributes('name', 'so' . $galleryID);
43
 
44
  // adding the flash parameter
45
- $swfobject->add_flashvars( 'file', urlencode (get_option ('siteurl') . '/' . 'index.php?slideshow=true&gid=' . $galleryID ) );
46
  $swfobject->add_flashvars( 'shuffle', $ngg_options['irShuffle'], 'true', 'bool');
47
  $swfobject->add_flashvars( 'linkfromdisplay', $ngg_options['irLinkfromdisplay'], 'false', 'bool');
48
  $swfobject->add_flashvars( 'shownavigation', $ngg_options['irShownavigation'], 'true', 'bool');
@@ -364,8 +364,6 @@ function nggShowAlbum($albumID, $template = 'extend') {
364
  if( !$album )
365
  return __('[Album not found]','nggallery');
366
 
367
- $mode = ltrim($mode, ',');
368
-
369
  if ( is_array($album->gallery_ids) )
370
  $out = nggCreateAlbum( $album->gallery_ids, $template, $album );
371
 
@@ -436,7 +434,7 @@ function nggCreateAlbum( $galleriesID, $template = 'extend', $album = 0) {
436
  if ($subalbum->previewpic > 0)
437
  $image = $nggdb->find_image( $subalbum->previewpic );
438
  $galleries[$key]->previewpic = $subalbum->previewpic;
439
- $galleries[$key]->previewurl = ($image->thumbURL) ? $image->thumbURL : '';
440
  $galleries[$key]->previewname = $subalbum->name;
441
 
442
  //link to the subalbum
@@ -708,19 +706,19 @@ function nggSinglePicture($imageID, $width = 250, $height = 250, $mode = '', $fl
708
 
709
  // if we didn't use a cached image then we take the on-the-fly mode
710
  if (!$picture->thumbnailURL)
711
- $picture->thumbnailURL = NGGALLERY_URLPATH . 'nggshow.php?pid=' . $imageID . '&amp;width=' . $width . '&amp;height=' . $height . '&amp;mode=' . $mode;
712
 
713
  // add more variables for render output
714
  $picture->imageURL = ( empty($link) ) ? $picture->imageURL : $link;
715
  $picture->href_link = $picture->get_href_link();
716
- $picture->alttext = html_entity_decode( stripslashes($picture->alttext) );
717
- $picture->linktitle = htmlspecialchars( stripslashes($picture->description) );
718
- $picture->description = html_entity_decode( stripslashes($picture->description) );
719
  $picture->classname = 'ngg-singlepic'. $float;
720
  $picture->thumbcode = $picture->get_thumbcode( 'singlepic' . $imageID);
721
  $picture->height = (int) $height;
722
  $picture->width = (int) $width;
723
- $picture->caption = $caption;
724
 
725
  // filter to add custom content for the output
726
  $picture = apply_filters('ngg_image_object', $picture, $imageID);
37
  $swfobject->message = '<p>'. __('The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..', 'nggallery').'</p>';
38
  $swfobject->add_params('wmode', 'opaque');
39
  $swfobject->add_params('allowfullscreen', 'true');
40
+ $swfobject->add_params('bgcolor', $ngg_options['irScreencolor'], 'FFFFFF', 'string', '#');
41
  $swfobject->add_attributes('styleclass', 'slideshow');
42
  $swfobject->add_attributes('name', 'so' . $galleryID);
43
 
44
  // adding the flash parameter
45
+ $swfobject->add_flashvars( 'file', urlencode (get_option ('siteurl') . '/' . 'index.php?callback=imagerotator&gid=' . $galleryID ) );
46
  $swfobject->add_flashvars( 'shuffle', $ngg_options['irShuffle'], 'true', 'bool');
47
  $swfobject->add_flashvars( 'linkfromdisplay', $ngg_options['irLinkfromdisplay'], 'false', 'bool');
48
  $swfobject->add_flashvars( 'shownavigation', $ngg_options['irShownavigation'], 'true', 'bool');
364
  if( !$album )
365
  return __('[Album not found]','nggallery');
366
 
 
 
367
  if ( is_array($album->gallery_ids) )
368
  $out = nggCreateAlbum( $album->gallery_ids, $template, $album );
369
 
434
  if ($subalbum->previewpic > 0)
435
  $image = $nggdb->find_image( $subalbum->previewpic );
436
  $galleries[$key]->previewpic = $subalbum->previewpic;
437
+ $galleries[$key]->previewurl = isset($image->thumbURL) ? $image->thumbURL : '';
438
  $galleries[$key]->previewname = $subalbum->name;
439
 
440
  //link to the subalbum
706
 
707
  // if we didn't use a cached image then we take the on-the-fly mode
708
  if (!$picture->thumbnailURL)
709
+ $picture->thumbnailURL = get_option ('siteurl') . '/' . 'index.php?callback=image&amp;pid=' . $imageID . '&amp;width=' . $width . '&amp;height=' . $height . '&amp;mode=' . $mode;
710
 
711
  // add more variables for render output
712
  $picture->imageURL = ( empty($link) ) ? $picture->imageURL : $link;
713
  $picture->href_link = $picture->get_href_link();
714
+ $picture->alttext = html_entity_decode( stripslashes(nggGallery::i18n($picture->alttext)) );
715
+ $picture->linktitle = htmlspecialchars( stripslashes(nggGallery::i18n($picture->description)) );
716
+ $picture->description = html_entity_decode( stripslashes(nggGallery::i18n($picture->description)) );
717
  $picture->classname = 'ngg-singlepic'. $float;
718
  $picture->thumbcode = $picture->get_thumbcode( 'singlepic' . $imageID);
719
  $picture->height = (int) $height;
720
  $picture->width = (int) $width;
721
+ $picture->caption = nggGallery::i18n($caption);
722
 
723
  // filter to add custom content for the output
724
  $picture = apply_filters('ngg_image_object', $picture, $imageID);
nggshow.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
  // Load wp-config
3
- require_once( dirname(__FILE__) . '/ngg-config.php');
 
4
 
5
  // reference thumbnail class
6
  include_once( nggGallery::graphic_library() );
@@ -10,11 +11,18 @@ include_once('lib/core.php');
10
  $ngg_options = get_option('ngg_options');
11
 
12
  // Some parameters from the URL
 
 
 
13
  $pictureID = (int) $_GET['pid'];
14
- $mode = isset($_GET['mode']) ? esc_attr($_GET['mode']) : '';
15
 
16
  // let's get the image data
17
  $picture = nggdb::find_image( $pictureID );
 
 
 
 
18
  $thumb = new ngg_Thumbnail( $picture->imagePath );
19
 
20
  // Resize if necessary
@@ -25,7 +33,21 @@ if ( !empty($_GET['width']) || !empty($_GET['height']) ) {
25
  // limit the maxium size, prevent server memory overload
26
  if ($w > 1280) $w = 1280;
27
  if ($h > 1280) $h = 1280;
28
- $thumb->resize( $w, $h );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
30
 
31
  // Apply effects according to the mode parameter
1
  <?php
2
  // Load wp-config
3
+ if ( !defined('ABSPATH') )
4
+ require_once( dirname(__FILE__) . '/ngg-config.php');
5
 
6
  // reference thumbnail class
7
  include_once( nggGallery::graphic_library() );
11
  $ngg_options = get_option('ngg_options');
12
 
13
  // Some parameters from the URL
14
+ if ( !isset($_GET['pid']) )
15
+ exit;
16
+
17
  $pictureID = (int) $_GET['pid'];
18
+ $mode = isset($_GET['mode']) ? $_GET['mode'] : '';
19
 
20
  // let's get the image data
21
  $picture = nggdb::find_image( $pictureID );
22
+
23
+ if ( !is_object($picture) )
24
+ exit;
25
+
26
  $thumb = new ngg_Thumbnail( $picture->imagePath );
27
 
28
  // Resize if necessary
33
  // limit the maxium size, prevent server memory overload
34
  if ($w > 1280) $w = 1280;
35
  if ($h > 1280) $h = 1280;
36
+ // Crop mode for post thumbnail
37
+ if ($mode == 'crop') {
38
+ // check for portrait format
39
+ if ($thumb->currentDimensions['height'] < $thumb->currentDimensions['width']) {
40
+ list ( $w, $ratio_h ) = wp_constrain_dimensions($thumb->currentDimensions['width'], $thumb->currentDimensions['height'], $w);
41
+ $thumb->resize($w, $ratio_h);
42
+ $ypos = ($thumb->currentDimensions['height'] - $h) / 2;
43
+ $thumb->crop(0, $ypos, $w, $h);
44
+ } else {
45
+ $thumb->resize($w, 0);
46
+ $ypos = ($thumb->currentDimensions['height'] - $h) / 2;
47
+ $thumb->crop(0, $ypos, $w, $h);
48
+ }
49
+ } else
50
+ $thumb->resize( $w, $h );
51
  }
52
 
53
  // Apply effects according to the mode parameter
nggwidget.php DELETED
@@ -1,6 +0,0 @@
1
- <?php
2
- /*
3
- NEVER,NEVER upgrade a plugin by overwriting the existing folders
4
- The widgets are now located in the widgets folder
5
- */
6
- ?>
 
 
 
 
 
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Alex Rabe
3
  Donate link: http://alexrabe.de/donation/
4
  Tags: nextgen gallery,photos,flash,slideshow,images,gallery,media,admin,post,photo-albums,pictures,widgets,photo,picture,image,nextgen-gallery
5
- Requires at least: 2.8
6
- Tested up to: 2.9
7
  Stable tag: trunk
8
 
9
  NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
@@ -17,7 +17,7 @@ Important Links:
17
 
18
  * <a href="http://nextgen-gallery.com/" title="Demonstration page">Demonstration</a>
19
  * <a href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/" title="Translation and Language files">Language files</a>
20
- * <a href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/changelog/" title="NextGEN Gallery Changelog">Changelog</a>
21
  * <a href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/faq/" title="NextGEN Gallery FAQ">NextGEN Gallery FAQ</a>
22
  * <a href="http://wordpress.org/tags/nextgen-gallery?forum_id=10" title="Wordpress Support Forum">Support Forum</a>
23
 
@@ -37,6 +37,7 @@ Important Links:
37
  * TinyMCE : Button integration for easy adding the gallery tags
38
  * Sidebar Widget : Show a slideshow, random or recent picture at your sidebar
39
  * Language support : Translated in more than 30 languages
 
40
  * Upload tab integration : You have access to all pictures via the upload tab
41
  * Tag support for images : Append related images to your post, create a image tag-cloud
42
  * Meta data support : Import EXIF, IPTC or XMP meta data
@@ -45,7 +46,7 @@ Important Links:
45
 
46
  == Credits ==
47
 
48
- Copyright 2007-2009 by Alex Rabe & NextGEN DEV-Team
49
 
50
  The NextGEN button is taken from the Fugue Icons of http://www.pinvoke.com/.
51
 
@@ -140,6 +141,24 @@ To show the most recent added mages : **[recent max=x ]**
140
 
141
  == Changelog ==
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  = V1.4.3 - 16.11.2009 =
144
  * Bugfix : Urlencode XML file path for sildeshow
145
 
2
  Contributors: Alex Rabe
3
  Donate link: http://alexrabe.de/donation/
4
  Tags: nextgen gallery,photos,flash,slideshow,images,gallery,media,admin,post,photo-albums,pictures,widgets,photo,picture,image,nextgen-gallery
5
+ Requires at least: 2.9
6
+ Tested up to: 2.9.2
7
  Stable tag: trunk
8
 
9
  NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
17
 
18
  * <a href="http://nextgen-gallery.com/" title="Demonstration page">Demonstration</a>
19
  * <a href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/languages/" title="Translation and Language files">Language files</a>
20
+ * <a href="http://wordpress.org/extend/plugins/nextgen-gallery/changelog/" title="NextGEN Gallery Changelog">Changelog</a>
21
  * <a href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/faq/" title="NextGEN Gallery FAQ">NextGEN Gallery FAQ</a>
22
  * <a href="http://wordpress.org/tags/nextgen-gallery?forum_id=10" title="Wordpress Support Forum">Support Forum</a>
23
 
37
  * TinyMCE : Button integration for easy adding the gallery tags
38
  * Sidebar Widget : Show a slideshow, random or recent picture at your sidebar
39
  * Language support : Translated in more than 30 languages
40
+ * Auto translation file downloader : Donwload with one click the translation file
41
  * Upload tab integration : You have access to all pictures via the upload tab
42
  * Tag support for images : Append related images to your post, create a image tag-cloud
43
  * Meta data support : Import EXIF, IPTC or XMP meta data
46
 
47
  == Credits ==
48
 
49
+ Copyright 2007-2010 by Alex Rabe & NextGEN DEV-Team
50
 
51
  The NextGEN button is taken from the Fugue Icons of http://www.pinvoke.com/.
52
 
141
 
142
  == Changelog ==
143
 
144
+ = V1.5.0 - 18.03.2010 =
145
+ * NEW : Support for Post thumbnail feature
146
+ * NEW : Backup and Recover function for images (THX to Simone Fumagalli)
147
+ * NEW : Resize images after upload (THX to Simone Fumagalli)
148
+ * NEW : Added a JSON class for fetching galleries in a RESTful way (see xml/json.php)
149
+ * NEW : Adding various new capabilities for user roles
150
+ * NEW : Auto downloader for translation file
151
+ * Changed : Rename query var from slideshow to callback for compat reason with other plugin
152
+ * Changed : Convert widget function to new WP structure
153
+ * Changed : Include lookup for tags into the backend search
154
+ * Changed : Restructure addgallery and settings page to enable custom tabs
155
+ * Bugfix : Select album preview from gallery preview pics instead random list
156
+ * Bugfix : Keep fix dimension in edit thumbnail operation
157
+ * Bugfix : Import meta data didn't work correct for existing images
158
+ * Bugfix : Fix onload bug for Chrome 4 in Shutter script
159
+ * Bugfix : Remove various PHP notices for a better world
160
+ * Removed : Canonical link is now part of Wordpress 2.9
161
+
162
  = V1.4.3 - 16.11.2009 =
163
  * Bugfix : Urlencode XML file path for sildeshow
164
 
shutter/shutter-reloaded.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  Shutter Reloaded for NextGEN Gallery
3
  http://www.laptoptips.ca/javascripts/shutter-reloaded/
4
- Version: 1.3.0
5
  Copyright (C) 2007-2008 Andrew Ozz
6
  Released under the GPL, http://www.gnu.org/copyleft/gpl.html
7
 
@@ -127,8 +127,11 @@ shutterReloaded = {
127
 
128
  NavBar = '<div id="shTitle"><div id="shPrev">' + prevlink + '</div><div id="shNext">' + nextlink + '</div><div id="shName">' + shutterLinks[ln].title + '</div>' + imgNum + '</div>';
129
 
130
- D.innerHTML = '<div id="shWrap"><img src="'+shutterLinks[ln].link+'" id="shTopImg" title="' + t.msgClose + '" onload="shutterReloaded.showImg();" onclick="shutterReloaded.hideShutter();" />' + NavBar +'</div>';
131
-
 
 
 
132
  window.setTimeout(function(){shutterReloaded.loading();},2000);
133
  },
134
 
1
  /*
2
  Shutter Reloaded for NextGEN Gallery
3
  http://www.laptoptips.ca/javascripts/shutter-reloaded/
4
+ Version: 1.3.1
5
  Copyright (C) 2007-2008 Andrew Ozz
6
  Released under the GPL, http://www.gnu.org/copyleft/gpl.html
7
 
127
 
128
  NavBar = '<div id="shTitle"><div id="shPrev">' + prevlink + '</div><div id="shNext">' + nextlink + '</div><div id="shName">' + shutterLinks[ln].title + '</div>' + imgNum + '</div>';
129
 
130
+ D.innerHTML = '<div id="shWrap"><img src="" id="shTopImg" title="' + t.msgClose + '" onload="shutterReloaded.showImg();" onclick="shutterReloaded.hideShutter();" />' + NavBar +'</div>';
131
+
132
+ //Google Chrome 4.0.249.78 bug for onload attribute
133
+ document.getElementById('shTopImg').src = shutterLinks[ln].link;
134
+
135
  window.setTimeout(function(){shutterReloaded.loading();},2000);
136
  },
137
 
widgets/media-rss-widget.php CHANGED
@@ -8,206 +8,31 @@
8
  // Stop direct call
9
  if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
10
 
11
- // The Widget class
12
- if (!class_exists("nggMediaRssWidget")) {
13
-
14
- class nggMediaRssWidget {
15
 
16
  var $options;
17
-
18
  /**
19
  * Constructor
20
  */
21
- function nggMediaRssWidget() {
22
-
23
- $this->load_options();
24
- add_action('widgets_init', array(&$this, 'register_widget'));
25
- }
26
-
27
- /**
28
- * Function to register the Widget functions
29
- */
30
- function register_widget() {
31
- $name = __('NextGEN Media RSS', 'nggallery');
32
- $control_ops = array(
33
- 'width' => 250, 'height' => 350,
34
- 'id_base' => 'ngg-mrssw');
35
- $widget_ops = array(
36
- 'classname' => 'ngg_mrssw',
37
- 'description' => __('Widget that displays Media RSS links for NextGEN Gallery.',
38
- 'nggallery'));
39
-
40
- if (!is_array($this->options)) {
41
- $this->options = array();
42
- }
43
-
44
- $registered = false;
45
- foreach (array_keys($this->options) as $o) {
46
- // Old widgets can have null values for some reason
47
- //--
48
- if ( !isset($this->options[$o]['show_global_mrss']) )
49
- continue;
50
-
51
- // $id should look like {$id_base}-{$o}
52
- //--
53
- $id = "ngg-mrssw-$o";
54
- $registered = true;
55
- wp_register_sidebar_widget(
56
- $id, $name,
57
- array(&$this, 'render_widget'),
58
- $widget_ops, array( 'number' => $o ) );
59
- wp_register_widget_control(
60
- $id, $name,
61
- array(&$this, 'render_control_panel'),
62
- $control_ops, array( 'number' => $o ) );
63
- }
64
 
65
- // If there are none, we register the widget's existance with a generic template
66
- //--
67
- if (!$registered) {
68
- wp_register_sidebar_widget(
69
- 'ngg-mrssw-1', $name,
70
- array(&$this, 'render_widget'),
71
- $widget_ops, array( 'number' => -1 ) );
72
- wp_register_widget_control(
73
- 'ngg-mrssw-1', $name,
74
- array(&$this, 'render_control_panel'),
75
- $control_ops, array( 'number' => -1 ) );
76
- }
77
- }
78
-
79
- /**
80
- * Function to render the widget control panel
81
- */
82
- function render_control_panel( $widget_args = 1 ) {
83
- global $wp_registered_widgets;
84
- static $updated = false;
85
-
86
- // Get the widget ID
87
- if (is_numeric($widget_args)) {
88
- $widget_args = array('number' => $widget_args);
89
- }
90
- $widget_args = wp_parse_args($widget_args, array('number' => -1));
91
- extract($widget_args, EXTR_SKIP);
92
-
93
- if (!$updated && !empty($_POST['sidebar'])) {
94
- $sidebar = (string) $_POST['sidebar'];
95
 
96
- $sidebars_widgets = wp_get_sidebars_widgets();
97
- if ( isset($sidebars_widgets[$sidebar]) )
98
- $this_sidebar = &$sidebars_widgets[$sidebar];
99
- else
100
- $this_sidebar = array();
101
-
102
- foreach ( $this_sidebar as $_widget_id ) {
103
- // Remove all widgets of this type from the sidebar. We'll add the new data in a second. This makes sure we don't get any duplicate data
104
- // since widget ids aren't necessarily persistent across multiple updates
105
- if ( 'ngg_mrssw' == $wp_registered_widgets[$_widget_id]['classname']
106
- && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) {
107
-
108
- $widget_number = $wp_registered_widgets[$_widget_id]['params'][0]['number'];
109
- if (!in_array( "ngg-mrssw-$widget_number", $_POST['widget-id'])) // the widget has been removed.
110
- unset($this->options[$widget_number]);
111
- }
112
- }
113
-
114
- foreach ( (array) $_POST['widget_ngg_mrssw'] as $widget_number => $widget_ngg_mrssw ) {
115
- if ( !isset($widget_ngg_mrssw['show_global_mrss']) && isset($this->options[$widget_number]) ) // user clicked cancel
116
- continue;
117
-
118
- $this->options[$widget_number]['show_global_mrss'] = $widget_ngg_mrssw['show_global_mrss'];
119
- $this->options[$widget_number]['widget_title'] = stripslashes($widget_ngg_mrssw['widget_title']);
120
- $this->options[$widget_number]['show_icon'] = $widget_ngg_mrssw['show_icon'];
121
- $this->options[$widget_number]['mrss_text'] = stripslashes($widget_ngg_mrssw['mrss_text']);
122
- $this->options[$widget_number]['mrss_title'] = strip_tags(stripslashes($widget_ngg_mrssw['mrss_title']));
123
- // remove from pre V1.4.0 options
124
- unset ( $this->options[$widget_number]['mrss_icon_url'] );
125
- }
126
-
127
- $this->save_options();
128
- $updated = true;
129
- }
130
-
131
- if ( -1 == $number ) {
132
- $widget_title = '';
133
- $show_global_mrss = true;
134
- $show_icon = true;
135
- $mrss_text = __('Media RSS', 'nggallery');
136
- $mrss_title = __('Link to the main image feed', 'nggallery');
137
- $number = '%i%';
138
- } else {
139
- $widget_title = esc_attr($this->options[$number]['widget_title']);
140
- $show_global_mrss = $this->options[$number]['show_global_mrss'];
141
- $show_icon = $this->options[$number]['show_icon'];
142
- $mrss_text = stripslashes($this->options[$number]['mrss_text']);
143
- $mrss_title = strip_tags(stripslashes($this->options[$number]['mrss_title']));
144
- }
145
-
146
- // The widget control
147
- ?>
148
-
149
- <input type="hidden" id="ngg_mrssw-submit-<?php echo $number; ?>" name="widget_ngg_mrssw[<?php echo $number; ?>][submit]" value="1" />
150
- <p>
151
- <label><?php _e('Title:', 'nggallery'); ?><br />
152
- <input class="widefat" id="ngg_mrssw-widget_title-<?php echo $number; ?>" name="widget_ngg_mrssw[<?php echo $number; ?>][widget_title]" type="text" value="<?php echo $widget_title; ?>" />
153
- </label>
154
- </p>
155
-
156
- <p>
157
- <label>
158
- <input id="ngg_mrssw-show_icon-<?php echo $number; ?>" name="widget_ngg_mrssw[<?php echo $number; ?>][show_icon]" type="checkbox" value="1" <?php $this->render_checked($show_icon); ?> />
159
- <?php _e('Show Media RSS icon', 'nggallery'); ?>
160
- </label>
161
- </p>
162
-
163
- <p>
164
- <label>
165
- <input id="ngg_mrssw-show_global_mrss-<?php echo $number; ?>" name="widget_ngg_mrssw[<?php echo $number; ?>][show_global_mrss]" type="checkbox" value="1" <?php $this->render_checked($show_global_mrss); ?> /> <?php _e('Show the global Media RSS link', 'nggallery'); ?>
166
- </label>
167
- </p>
168
-
169
- <p>
170
- <label><?php _e('Text for the global Media RSS link:', 'nggallery'); ?><br />
171
- <input class="widefat" id="ngg_mrssw-mrss_text-<?php echo $number; ?>" name="widget_ngg_mrssw[<?php echo $number; ?>][mrss_text]" type="text" value="<?php echo $mrss_text; ?>" /></label>
172
- </label>
173
- </p>
174
-
175
- <p>
176
- <label><?php _e('Tooltip text for the global Media RSS link:', 'nggallery'); ?><br />
177
- <input class="widefat" id="ngg_mrssw-mrss_title-<?php echo $number; ?>" name="widget_ngg_mrssw[<?php echo $number; ?>][mrss_title]" type="text" value="<?php echo $mrss_title; ?>" /></label>
178
- </label>
179
- </p>
180
-
181
- <?php
182
- }
183
-
184
- /**
185
- * Function to render the widget
186
- */
187
- function render_widget($args, $widget_args=1) {
188
  global $ngg_mrssw_plugin;
189
  $ngg_options = nggGallery::get_option('ngg_options');
190
 
191
- // Get the options
192
- extract($args, EXTR_SKIP);
193
- if (is_numeric($widget_args)) {
194
- $widget_args = array('number' => $widget_args);
195
- }
196
- $widget_args = wp_parse_args($widget_args, array('number' => -1));
197
- extract($widget_args, EXTR_SKIP);
198
-
199
- $title = empty($this->options[$number]['widget_title'])
200
- ? __('Media RSS', 'nggallery')
201
- : $this->options[$number]['widget_title'];
202
- $show_global_mrss = $this->options[$number]['show_global_mrss'];
203
- $show_icon = $this->options[$number]['show_icon'];
204
- // Compat reason for settings pre V1.4.X
205
- $show_icon = (empty( $this->options[$number]['mrss_icon_url']) ) ? $show_icon : true;
206
- $mrss_text = stripslashes($this->options[$number]['mrss_text']);
207
- $mrss_title = strip_tags(stripslashes($this->options[$number]['mrss_title']));
208
 
209
- echo '<!-- NextGen Gallery Media RSS -->';
210
-
211
  echo $before_widget;
212
  echo $before_title . $title . $after_title;
213
  echo "<ul class='ngg-media-rss-widget'>\n";
@@ -220,11 +45,73 @@ class nggMediaRssWidget {
220
  }
221
  echo "</ul>\n";
222
  echo $after_widget;
223
-
224
- echo '<!-- /NextGen Gallery Media RSS -->';
 
 
 
 
 
 
 
 
 
 
 
225
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
 
227
- /**
228
  * Get a link to a Media RSS
229
  */
230
  function get_mrss_link($mrss_url, $show_icon = true, $title, $text, $use_piclens) {
@@ -246,53 +133,9 @@ class nggMediaRssWidget {
246
  return $out;
247
  }
248
 
249
- /**
250
- * Load the options from database (set default values in case options are not set)
251
- */
252
- function load_options() {
253
- $this->options = get_option('ngg_mrss_widget');
254
-
255
- if ( !is_array($this->options) ) {
256
- $this->options = array(
257
- -1 => array(
258
- 'show_global_mrss' => true,
259
- 'show_icon' => true,
260
- 'mrss_text' => __('Media RSS', 'nggallery'),
261
- 'mrss_title' => __('Link to the main image feed', 'nggallery')
262
- )
263
- );
264
- }
265
- }
266
-
267
- /**
268
- * Save options to database
269
- */
270
- function save_options() {
271
- update_option('ngg_mrss_widget', $this->options);
272
- }
273
-
274
- /**
275
- * Helper function to output the checked attribute of a checkbox
276
- */
277
- function render_checked($var) {
278
- if ($var==1 || $var==true) {
279
- echo 'checked="checked"';
280
- }
281
- }
282
-
283
- /**
284
- * Helper function to output the selected attribute of an option
285
- */
286
- function render_selected($var) {
287
- if ($var==1 || $var==true) {
288
- echo 'selected="selected"';
289
- }
290
- }
291
  } // class nggMediaRssWidget
292
 
293
- } // if (!class_exists("nggMediaRssWidget"))
294
-
295
  // let's start it
296
- $ngg_mrss_widget = new nggMediaRssWidget();
297
 
298
  ?>
8
  // Stop direct call
9
  if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
10
 
11
+ class nggMediaRssWidget extends WP_Widget {
 
 
 
12
 
13
  var $options;
14
+
15
  /**
16
  * Constructor
17
  */
18
+ function nggMediaRssWidget() {
19
+ $widget_ops = array('classname' => 'ngg_mrssw', 'description' => __( 'Widget that displays Media RSS links for NextGEN Gallery.', 'nggallery') );
20
+ $this->WP_Widget('ngg-mrssw', __('NextGEN Media RSS', 'nggallery'), $widget_ops);
21
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
+ function widget( $args, $instance ) {
24
+ extract( $args );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  global $ngg_mrssw_plugin;
27
  $ngg_options = nggGallery::get_option('ngg_options');
28
 
29
+ $title = apply_filters('widget_title', empty( $instance['title'] ) ? __('Media RSS', 'nggallery') : $instance['title']);
30
+
31
+ $show_global_mrss = $instance['show_global_mrss'];
32
+ $show_icon = $instance['show_icon'];
33
+ $mrss_text = stripslashes($instance['mrss_text']);
34
+ $mrss_title = strip_tags(stripslashes($instance['mrss_title']));
 
 
 
 
 
 
 
 
 
 
 
35
 
 
 
36
  echo $before_widget;
37
  echo $before_title . $title . $after_title;
38
  echo "<ul class='ngg-media-rss-widget'>\n";
45
  }
46
  echo "</ul>\n";
47
  echo $after_widget;
48
+
49
+ }
50
+
51
+ function update( $new_instance, $old_instance ) {
52
+ $instance = $old_instance;
53
+
54
+ $instance['title'] = strip_tags($new_instance['title']);
55
+ $instance['show_global_mrss'] = $new_instance['show_global_mrss'];
56
+ $instance['show_icon'] = $new_instance['show_icon'];
57
+ $instance['mrss_text'] = $new_instance['mrss_text'];
58
+ $instance['mrss_title'] = $new_instance['mrss_title'];
59
+
60
+ return $instance;
61
  }
62
+
63
+ function form( $instance ) {
64
+
65
+ //Defaults
66
+ $instance = wp_parse_args( (array) $instance, array(
67
+ 'title' => 'Media RSS',
68
+ 'show_global_mrss' => true,
69
+ 'mrss_text' => __('Media RSS', 'nggallery'),
70
+ 'mrss_title' => __('Link to the main image feed', 'nggallery'),
71
+ 'show_icon' => true ) );
72
+
73
+ $title = esc_attr( $instance['title'] );
74
+ $mrss_text = esc_attr( $instance['mrss_text'] );
75
+ $mrss_title = esc_attr( $instance['mrss_title'] );
76
+
77
+ // The widget form
78
+ ?>
79
+ <p>
80
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title :','nggallery'); ?><br />
81
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title');?>" type="text" value="<?php echo $title; ?>" />
82
+ </label>
83
+ </p>
84
+
85
+ <p>
86
+ <label for="<?php echo $this->get_field_id('show_icon'); ?>">
87
+ <input id="<?php echo $this->get_field_id('show_icon'); ?>" name="<?php echo $this->get_field_name('show_icon'); ?>" type="checkbox" value="1" <?php checked(true , $instance['show_icon']); ?> />
88
+ <?php _e('Show Media RSS icon', 'nggallery'); ?>
89
+ </label>
90
+ </p>
91
+
92
+ <p>
93
+ <label for="<?php echo $this->get_field_id('show_global_mrss'); ?>">
94
+ <input id="<?php echo $this->get_field_id('show_global_mrss'); ?>" name="<?php echo $this->get_field_name('show_global_mrss'); ?>" type="checkbox" value="1" <?php checked(true , $instance['show_global_mrss']); ?> /> <?php _e('Show the Media RSS link', 'nggallery'); ?>
95
+ </label>
96
+ </p>
97
+
98
+ <p>
99
+ <label for="<?php echo $this->get_field_id('mrss_text'); ?>"><?php _e('Text for Media RSS link:', 'nggallery'); ?><br />
100
+ <input class="widefat" id="<?php echo $this->get_field_id('mrss_text'); ?>" name="<?php echo $this->get_field_name('mrss_text'); ?>" type="text" value="<?php echo $mrss_text; ?>" /></label>
101
+ </label>
102
+ </p>
103
+
104
+ <p>
105
+ <label for="<?php echo $this->get_field_id('mrss_title'); ?>"><?php _e('Tooltip text for Media RSS link:', 'nggallery'); ?><br />
106
+ <input class="widefat" id="<?php echo $this->get_field_id('mrss_title'); ?>" name="<?php echo $this->get_field_name('mrss_title'); ?>" type="text" value="<?php echo $mrss_title; ?>" /></label>
107
+ </label>
108
+ </p>
109
+
110
+ <?php
111
+
112
+ }
113
 
114
+ /**
115
  * Get a link to a Media RSS
116
  */
117
  function get_mrss_link($mrss_url, $show_icon = true, $title, $text, $use_piclens) {
133
  return $out;
134
  }
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  } // class nggMediaRssWidget
137
 
 
 
138
  // let's start it
139
+ add_action('widgets_init', create_function('', 'return register_widget("nggMediaRssWidget");'));
140
 
141
  ?>
widgets/widgets.php CHANGED
@@ -39,9 +39,9 @@ class nggSlideshowWidget extends WP_Widget {
39
  if ( $title)
40
  echo $before_title . $title . $after_title;
41
  ?>
42
- <ul>
43
  <?php echo $out; ?>
44
- </ul>
45
  <?php
46
  echo $after_widget;
47
  }
@@ -65,11 +65,11 @@ class nggSlideshowWidget extends WP_Widget {
65
  $swfobject->classname = 'ngg-widget-slideshow';
66
  $swfobject->message = __('<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see the slideshow.', 'nggallery');
67
  $swfobject->add_params('wmode', 'opaque');
68
- $swfobject->add_params('bgcolor', $ngg_options['irScreencolor'], '000000', 'string', '#');
69
  $swfobject->add_attributes('styleclass', 'slideshow-widget');
70
 
71
  // adding the flash parameter
72
- $swfobject->add_flashvars( 'file', urlencode( get_option ('siteurl') . '/' . 'index.php?slideshow=true&gid=' . $galleryID ) );
73
  $swfobject->add_flashvars( 'shownavigation', 'false', 'true', 'bool');
74
  $swfobject->add_flashvars( 'shuffle', $ngg_options['irShuffle'], 'true', 'bool');
75
  $swfobject->add_flashvars( 'showicons', $ngg_options['irShowicons'], 'true', 'bool');
@@ -145,215 +145,132 @@ class nggSlideshowWidget extends WP_Widget {
145
  add_action('widgets_init', create_function('', 'return register_widget("nggSlideshowWidget");'));
146
 
147
  /**
148
- * nggWidget - The widget control for NextGEN Gallery ( require WP2.5 or higher)
149
  *
150
  * @package NextGEN Gallery
151
  * @author Alex Rabe
152
- * @copyright 2008
153
- * @version 1.10
 
154
  * @access public
155
  */
156
- if (!class_exists('nggWidget')) {
157
- class nggWidget {
158
-
159
- function nggWidget() {
160
-
161
- // Run our code later in case this loads prior to any required plugins.
162
- add_action('widgets_init', array(&$this, 'ngg_widget_register'));
163
-
164
  }
165
-
166
- function ngg_widget_register() {
167
-
168
- if ( !$options = get_option('ngg_widget') )
169
- $options = array();
170
-
171
- $widget_ops = array('classname' => 'ngg_images', 'description' => __( 'Add recent or random images from the galleries','nggallery' ));
172
- $control_ops = array('width' => 250, 'height' => 200, 'id_base' => 'ngg-images');
173
- $name = __('NextGEN Widget','nggallery');
174
- $id = false;
175
-
176
- foreach ( array_keys($options) as $o ) {
177
- // Old widgets can have null values for some reason
178
- if ( !isset($options[$o]['title']) )
179
- continue;
180
-
181
- $id = "ngg-images-$o"; // Never never never translate an id
182
- wp_register_sidebar_widget($id, $name, array(&$this, 'ngg_widget_output'), $widget_ops, array( 'number' => $o ) );
183
- wp_register_widget_control($id, $name, array(&$this, 'ngg_widget_control'), $control_ops, array( 'number' => $o ));
184
- }
185
-
186
- // If there are none, we register the widget's existance with a generic template
187
- if ( !$id ) {
188
- wp_register_sidebar_widget( 'ngg-images-1', $name, array(&$this, 'ngg_widget_output'), $widget_ops, array( 'number' => -1 ) );
189
- wp_register_widget_control( 'ngg-images-1', $name, array(&$this, 'ngg_widget_control'), $control_ops, array( 'number' => -1 ) );
190
- }
191
-
192
- }
193
 
194
- function ngg_widget_control($widget_args = 1) {
195
-
196
- global $wp_registered_widgets;
197
- static $updated = false;
198
 
199
- // Get the widget ID
200
- if (is_numeric($widget_args))
201
- $widget_args = array('number' => $widget_args);
 
 
 
 
 
 
202
 
203
- $widget_args = wp_parse_args($widget_args, array('number' => -1));
204
- extract($widget_args, EXTR_SKIP);
205
-
206
- $options = get_option('ngg_widget');
207
- if ( !is_array($options) )
208
- $options = array();
209
-
210
- if (!$updated && !empty($_POST['sidebar'])) {
211
- $sidebar = (string) $_POST['sidebar'];
212
-
213
- $sidebars_widgets = wp_get_sidebars_widgets();
214
- if ( isset($sidebars_widgets[$sidebar]) )
215
- $this_sidebar = &$sidebars_widgets[$sidebar];
216
- else
217
- $this_sidebar = array();
218
-
219
- foreach ( $this_sidebar as $_widget_id ) {
220
- // Remove all widgets of this type from the sidebar. We'll add the new data in a second. This makes sure we don't get any duplicate data
221
- // since widget ids aren't necessarily persistent across multiple updates
222
- if ( 'ngg_images' == $wp_registered_widgets[$_widget_id]['classname']
223
- && isset($wp_registered_widgets[$_widget_id]['params'][0]['number']) ) {
224
-
225
- $widget_number = $wp_registered_widgets[$_widget_id]['params'][0]['number'];
226
- if (!in_array( "ngg-images-$widget_number", $_POST['widget-id'])) // the widget has been removed.
227
- unset($options[$widget_number]);
228
- }
229
- }
230
-
231
- foreach ( (array) $_POST['widget_ngg_images'] as $widget_number => $widget_ngg_images ) {
232
- if ( !isset($widget_ngg_images['width']) && isset($options[$widget_number]) ) // user clicked cancel
233
- continue;
234
-
235
- $widget_ngg_images = stripslashes_deep( $widget_ngg_images );
236
- $options[$widget_number]['title'] = $widget_ngg_images['title'];
237
- $options[$widget_number]['items'] = (int) $widget_ngg_images['items'];
238
- $options[$widget_number]['type'] = $widget_ngg_images['type'];
239
- $options[$widget_number]['show'] = $widget_ngg_images['show'];
240
- $options[$widget_number]['width'] = (int) $widget_ngg_images['width'];
241
- $options[$widget_number]['height'] = (int) $widget_ngg_images['height'];
242
- $options[$widget_number]['exclude'] = $widget_ngg_images['exclude'];
243
- $options[$widget_number]['list'] = $widget_ngg_images['list'];
244
- $options[$widget_number]['webslice']= (bool) $widget_ngg_images['webslice'];
245
-
246
- }
247
 
248
- update_option('ngg_widget', $options);
249
- $updated = true;
250
- }
251
 
252
- if ( -1 == $number ) {
253
- // Init parameters check
254
- $title = 'Gallery';
255
- $items = 4;
256
- $type = 'random';
257
- $show= 'thumbnail';
258
- $width = 75;
259
- $height = 50;
260
- $exclude = 'all';
261
- $list = '';
262
- $number = '%i%';
263
- $webslice = true;
264
- } else {
265
- extract( (array) $options[$number] );
266
- }
267
 
268
- // The form has inputs with names like widget-many[$number][something] so that all data for that instance of
269
- // the widget are stored in one $_POST variable: $_POST['widget-many'][$number]
270
  ?>
271
 
272
  <p>
273
- <label for="ngg_images-title-<?php echo $number; ?>"><?php _e('Title :','nggallery'); ?>
274
- <input id="ngg_images-title-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][title] ?>" type="text" class="widefat" value="<?php echo $title; ?>" />
275
  </label>
276
  </p>
277
 
278
  <p>
279
- <label for="ngg_images-items-<?php echo $number; ?>"><?php _e('Show :','nggallery'); ?><br />
280
- <select id="ngg_images-items-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][items]">
281
- <?php for ( $i = 1; $i <= 10; ++$i ) echo "<option value='$i' ".($items==$i ? "selected='selected'" : '').">$i</option>"; ?>
282
  </select>
283
- <select id="ngg_images-show-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][show]" >
284
- <option <?php selected("thumbnail" , $show); ?> value="thumbnail"><?php _e('Thumbnails','nggallery'); ?></option>
285
- <option <?php selected("original" , $show); ?> value="original"><?php _e('Original images','nggallery'); ?></option>
286
  </select>
287
- </label>
288
  </p>
289
 
290
  <p>
291
- <label for="widget_ngg_images<?php echo $number; ?>">&nbsp;
292
- <input name="widget_ngg_images[<?php echo $number; ?>][type]" type="radio" value="random" <?php checked("random" , $type); ?> /> <?php _e('random','nggallery'); ?>
293
- <input name="widget_ngg_images[<?php echo $number; ?>][type]" type="radio" value="recent" <?php checked("recent" , $type); ?> /> <?php _e('recent added ','nggallery'); ?>
 
 
294
  </label>
295
  </p>
296
 
297
  <p>
298
- <label for="ngg_webslice<?php echo $number; ?>">&nbsp;
299
- <input id="ngg_webslice<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][webslice]" type="checkbox" value="1" <?php checked(true , $webslice); ?> /> <?php _e('Enable IE8 Web Slices','nggallery'); ?>
300
  </label>
301
  </p>
302
 
303
  <p>
304
- <label for="ngg_images-width-<?php echo $number; ?>"><?php _e('Width x Height :','nggallery'); ?><br />
305
- <input style="width: 50px; padding:3px;" id="ngg_images-width-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][width]" type="text" value="<?php echo $width; ?>" /> x
306
- <input style="width: 50px; padding:3px;" id="ngg_images-height-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][height]" type="text" value="<?php echo $height; ?>" /> (px)
307
- </label>
308
  </p>
309
 
310
  <p>
311
- <label for="ngg_images-exclude-<?php echo $number; ?>"><?php _e('Select :','nggallery'); ?>
312
- <select id="ngg_images-exclude-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][exclude]" class="widefat">
313
- <option <?php selected("all" , $exclude); ?> value="all" ><?php _e('All galleries','nggallery'); ?></option>
314
- <option <?php selected("denied" , $exclude); ?> value="denied" ><?php _e('Only which are not listed','nggallery'); ?></option>
315
- <option <?php selected("allow" , $exclude); ?> value="allow" ><?php _e('Only which are listed','nggallery'); ?></option>
316
  </select>
317
  </label>
318
  </p>
319
 
320
  <p>
321
- <label for="ngg_images-list-<?php echo $number; ?>"><?php _e('Gallery ID :','nggallery'); ?>
322
- <input id="ngg_images-list-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][list]" type="text" class="widefat" value="<?php echo $list; ?>" />
323
- <br/><small><?php _e('Gallery IDs, separated by commas.','nggallery'); ?></small>
324
  </label>
325
  </p>
326
-
327
- <input type="hidden" id="ngg_images-submit-<?php echo $number; ?>" name="widget_ngg_images[<?php echo $number; ?>][submit]" value="1" />
328
 
329
  <?php
330
 
331
  }
332
 
333
- function ngg_widget_output($args, $widget_args = 1 , $options = false) {
 
 
 
 
334
 
335
  global $wpdb;
336
 
337
- extract($args, EXTR_SKIP);
338
- if ( is_numeric($widget_args) )
339
- $widget_args = array( 'number' => $widget_args );
340
-
341
- $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) );
342
- extract($widget_args, EXTR_SKIP);
343
-
344
- // We could get this also as parameter
345
- if (!$options)
346
- $options = get_option('ngg_widget');
347
-
348
- $title = $options[$number]['title'];
349
- $items = $options[$number]['items'];
350
- $exclude = $options[$number]['exclude'];
351
- $list = $options[$number]['list'];
352
- $webslice = $options[$number]['webslice'];
353
 
354
  $count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE exclude != 1 ");
355
- if ($count < $options[$number]['items'])
356
- $options[$number]['items'] = $count;
357
 
358
  $exclude_list = '';
359
 
@@ -370,16 +287,16 @@ function ngg_widget_control($widget_args = 1) {
370
  $exclude_list = "AND t.gid IN ($list)";
371
  }
372
 
373
- if ( $options[$number]['type'] == 'random' )
374
  $imageList = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 $exclude_list ORDER by rand() limit {$items}");
375
  else
376
  $imageList = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 $exclude_list ORDER by pid DESC limit 0,$items");
377
 
 
378
  if ( $webslice ) {
379
- //TODO: If you change the title, it will not show up in widget admin panel
380
- $before_title = "\n" . '<div class="hslice" id="ngg-webslice" >' . "\n";
381
- $before_title .= '<h2 class="widgettitle entry-title">';
382
- $after_title = '</h2>';
383
  $after_widget = '</div>'."\n" . $after_widget;
384
  }
385
 
@@ -392,7 +309,7 @@ function ngg_widget_control($widget_args = 1) {
392
  $image = new nggImage($image);
393
 
394
  // get the effect code
395
- $thumbcode = $image->get_thumbcode("sidebar_".$number);
396
 
397
  // enable i18n support for alttext and description
398
  $alttext = htmlspecialchars( stripslashes( nggGallery::i18n($image->alttext) ));
@@ -401,12 +318,12 @@ function ngg_widget_control($widget_args = 1) {
401
  //TODO:For mixed portrait/landscape it's better to use only the height setting, if widht is 0 or vice versa
402
  $out = '<a href="' . $image->imageURL . '" title="' . $description . '" ' . $thumbcode .'>';
403
  // Typo fix for the next updates (happend until 1.0.2)
404
- $options[$number]['show'] = ( $options[$number]['show'] == 'orginal' ) ? 'original' : $options[$number]['show'];
405
 
406
- if ( $options[$number]['show'] == 'original' )
407
- $out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&amp;width='.$options[$number]['width'].'&amp;height='.$options[$number]['height']. '" title="'.$alttext.'" alt="'.$alttext.'" />';
408
  else
409
- $out .= '<img src="'.$image->thumbURL.'" width="'.$options[$number]['width'].'" height="'.$options[$number]['height'].'" title="'.$alttext.'" alt="'.$alttext.'" />';
410
 
411
  echo $out . '</a>'."\n";
412
 
@@ -419,9 +336,9 @@ function ngg_widget_control($widget_args = 1) {
419
  }
420
 
421
  }// end widget class
422
- }
423
- // let's show it
424
- $nggWidget = new nggWidget;
425
 
426
  /**
427
  * nggSlideshowWidget($galleryID, $width, $height)
@@ -446,16 +363,18 @@ function nggSlideshowWidget($galleryID, $width = '', $height = '') {
446
  */
447
  function nggDisplayRandomImages($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail') {
448
 
449
- $options[1] = array('title'=>'',
450
- 'items'=>$number,
451
- 'show'=>$show ,
452
- 'type'=>'random',
453
- 'width'=>$width,
454
- 'height'=>$height,
455
- 'exclude'=>$exclude,
456
- 'list'=>$list );
457
-
458
- nggWidget::ngg_widget_output($args = array(), 1, $options);
 
 
459
  }
460
 
461
  /**
@@ -466,16 +385,18 @@ function nggDisplayRandomImages($number, $width = '75', $height = '50', $exclude
466
  */
467
  function nggDisplayRecentImages($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail') {
468
 
469
- $options[1] = array('title'=>'',
470
- 'items'=>$number,
471
- 'show'=>$show ,
472
- 'type'=>'recent',
473
- 'width'=>$width,
474
- 'height'=>$height,
475
- 'exclude'=>$exclude,
476
- 'list'=>$list );
477
-
478
- nggWidget::ngg_widget_output($args = array(), 1, $options);
 
 
479
  }
480
 
481
  ?>
39
  if ( $title)
40
  echo $before_title . $title . $after_title;
41
  ?>
42
+ <div class="ngg_slideshow widget">
43
  <?php echo $out; ?>
44
+ </div>
45
  <?php
46
  echo $after_widget;
47
  }
65
  $swfobject->classname = 'ngg-widget-slideshow';
66
  $swfobject->message = __('<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see the slideshow.', 'nggallery');
67
  $swfobject->add_params('wmode', 'opaque');
68
+ $swfobject->add_params('bgcolor', $ngg_options['irScreencolor'], 'FFFFFF', 'string', '#');
69
  $swfobject->add_attributes('styleclass', 'slideshow-widget');
70
 
71
  // adding the flash parameter
72
+ $swfobject->add_flashvars( 'file', urlencode( get_option ('siteurl') . '/' . 'index.php?callback=imagerotator&gid=' . $galleryID ) );
73
  $swfobject->add_flashvars( 'shownavigation', 'false', 'true', 'bool');
74
  $swfobject->add_flashvars( 'shuffle', $ngg_options['irShuffle'], 'true', 'bool');
75
  $swfobject->add_flashvars( 'showicons', $ngg_options['irShowicons'], 'true', 'bool');
145
  add_action('widgets_init', create_function('', 'return register_widget("nggSlideshowWidget");'));
146
 
147
  /**
148
+ * nggWidget - The widget control for NextGEN Gallery ( require WP2.7 or higher)
149
  *
150
  * @package NextGEN Gallery
151
  * @author Alex Rabe
152
+ * @copyright 2009
153
+ * @version 2.00
154
+ * @since 1.4.4
155
  * @access public
156
  */
157
+ class nggWidget extends WP_Widget {
158
+
159
+ function nggWidget() {
160
+ $widget_ops = array('classname' => 'ngg_images', 'description' => __( 'Add recent or random images from the galleries', 'nggallery') );
161
+ $this->WP_Widget('ngg-images', __('NextGEN Widget', 'nggallery'), $widget_ops);
 
 
 
162
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
+ function update( $new_instance, $old_instance ) {
165
+ $instance = $old_instance;
 
 
166
 
167
+ $instance['title'] = strip_tags($new_instance['title']);
168
+ $instance['items'] = (int) $new_instance['items'];
169
+ $instance['type'] = $new_instance['type'];
170
+ $instance['show'] = $new_instance['show'];
171
+ $instance['width'] = (int) $new_instance['width'];
172
+ $instance['height'] = (int) $new_instance['height'];
173
+ $instance['exclude'] = $new_instance['exclude'];
174
+ $instance['list'] = $new_instance['list'];
175
+ $instance['webslice']= (bool) $new_instance['webslice'];
176
 
177
+ return $instance;
178
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
+ function form( $instance ) {
 
 
181
 
182
+ //Defaults
183
+ $instance = wp_parse_args( (array) $instance, array(
184
+ 'title' => 'Gallery',
185
+ 'items' => '4',
186
+ 'type' => 'random',
187
+ 'show' => 'thumbnail',
188
+ 'height' => '50',
189
+ 'width' => '75',
190
+ 'exclude' => 'all',
191
+ 'list' => '',
192
+ 'webslice' => true ) );
193
+ $title = esc_attr( $instance['title'] );
194
+ $height = esc_attr( $instance['height'] );
195
+ $width = esc_attr( $instance['width'] );
 
196
 
 
 
197
  ?>
198
 
199
  <p>
200
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title :','nggallery'); ?>
201
+ <input id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title');?>" type="text" class="widefat" value="<?php echo $title; ?>" />
202
  </label>
203
  </p>
204
 
205
  <p>
206
+ <?php _e('Show :','nggallery'); ?><br />
207
+ <select id="<?php echo $this->get_field_id('items'); ?>" name="<?php echo $this->get_field_name('items'); ?>">
208
+ <?php for ( $i = 1; $i <= 10; ++$i ) echo "<option value='$i' ".($instance['items']==$i ? "selected='selected'" : '').">$i</option>"; ?>
209
  </select>
210
+ <select id="<?php echo $this->get_field_id('show'); ?>" name="<?php echo $this->get_field_name('show'); ?>" >
211
+ <option <?php selected("thumbnail" , $instance['show']); ?> value="thumbnail"><?php _e('Thumbnails','nggallery'); ?></option>
212
+ <option <?php selected("original" , $instance['show']); ?> value="original"><?php _e('Original images','nggallery'); ?></option>
213
  </select>
 
214
  </p>
215
 
216
  <p>
217
+ <label for="<?php echo $this->get_field_id('type'); ?>_random">
218
+ <input id="<?php echo $this->get_field_id('type'); ?>_random" name="<?php echo $this->get_field_name('type'); ?>" type="radio" value="random" <?php checked("random" , $instance['type']); ?> /> <?php _e('random','nggallery'); ?>
219
+ </label>
220
+ <label for="<?php echo $this->get_field_id('type'); ?>_recent">
221
+ <input id="<?php echo $this->get_field_id('type'); ?>_recent" name="<?php echo $this->get_field_name('type'); ?>" type="radio" value="recent" <?php checked("recent" , $instance['type']); ?> /> <?php _e('recent added ','nggallery'); ?>
222
  </label>
223
  </p>
224
 
225
  <p>
226
+ <label for="<?php echo $this->get_field_id('webslice'); ?>">
227
+ <input id="<?php echo $this->get_field_id('webslice'); ?>" name="<?php echo $this->get_field_name('webslice'); ?>" type="checkbox" value="1" <?php checked(true , $instance['webslice']); ?> /> <?php _e('Enable IE8 Web Slices','nggallery'); ?>
228
  </label>
229
  </p>
230
 
231
  <p>
232
+ <?php _e('Width x Height :','nggallery'); ?><br />
233
+ <input style="width: 50px; padding:3px;" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" type="text" value="<?php echo $width; ?>" /> x
234
+ <input style="width: 50px; padding:3px;" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" value="<?php echo $height; ?>" /> (px)
 
235
  </p>
236
 
237
  <p>
238
+ <label for="<?php echo $this->get_field_id('exclude'); ?>"><?php _e('Select :','nggallery'); ?>
239
+ <select id="<?php echo $this->get_field_id('exclude'); ?>" name="<?php echo $this->get_field_name('exclude'); ?>" class="widefat">
240
+ <option <?php selected("all" , $instance['exclude']); ?> value="all" ><?php _e('All galleries','nggallery'); ?></option>
241
+ <option <?php selected("denied" , $instance['exclude']); ?> value="denied" ><?php _e('Only which are not listed','nggallery'); ?></option>
242
+ <option <?php selected("allow" , $instance['exclude']); ?> value="allow" ><?php _e('Only which are listed','nggallery'); ?></option>
243
  </select>
244
  </label>
245
  </p>
246
 
247
  <p>
248
+ <label for="<?php echo $this->get_field_id('list'); ?>"><?php _e('Gallery ID :','nggallery'); ?>
249
+ <input id="<?php echo $this->get_field_id('list'); ?>" name="<?php echo $this->get_field_name('list'); ?>" type="text" class="widefat" value="<?php echo $instance['list']; ?>" />
250
+ <br /><small><?php _e('Gallery IDs, separated by commas.','nggallery'); ?></small>
251
  </label>
252
  </p>
 
 
253
 
254
  <?php
255
 
256
  }
257
 
258
+ function widget( $args, $instance ) {
259
+ extract( $args );
260
+
261
+ if ( $instance['title'] !== false)
262
+ $title = apply_filters('widget_title', empty( $instance['title'] ) ? __('Gallery', 'nggallery') : $instance['title']);
263
 
264
  global $wpdb;
265
 
266
+ $items = $instance['items'];
267
+ $exclude = $instance['exclude'];
268
+ $list = $instance['list'];
269
+ $webslice = $instance['webslice'];
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
  $count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE exclude != 1 ");
272
+ if ($count < $instance['items'])
273
+ $instance['items'] = $count;
274
 
275
  $exclude_list = '';
276
 
287
  $exclude_list = "AND t.gid IN ($list)";
288
  }
289
 
290
+ if ( $instance['type'] == 'random' )
291
  $imageList = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 $exclude_list ORDER by rand() limit {$items}");
292
  else
293
  $imageList = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE tt.exclude != 1 $exclude_list ORDER by pid DESC limit 0,$items");
294
 
295
+ // IE8 webslice support if needed
296
  if ( $webslice ) {
297
+ $before_widget .= "\n" . '<div class="hslice" id="ngg-webslice" >' . "\n";
298
+ //the headline needs to have the class enty-title
299
+ $before_title = str_replace( 'class="' , 'class="entry-title ', $before_title);
 
300
  $after_widget = '</div>'."\n" . $after_widget;
301
  }
302
 
309
  $image = new nggImage($image);
310
 
311
  // get the effect code
312
+ $thumbcode = $image->get_thumbcode( $widget_id );
313
 
314
  // enable i18n support for alttext and description
315
  $alttext = htmlspecialchars( stripslashes( nggGallery::i18n($image->alttext) ));
318
  //TODO:For mixed portrait/landscape it's better to use only the height setting, if widht is 0 or vice versa
319
  $out = '<a href="' . $image->imageURL . '" title="' . $description . '" ' . $thumbcode .'>';
320
  // Typo fix for the next updates (happend until 1.0.2)
321
+ $instance['show'] = ( $instance['show'] == 'orginal' ) ? 'original' : $instance['show'];
322
 
323
+ if ( $instance['show'] == 'original' )
324
+ $out .= '<img src="' . get_option ('siteurl') . '/' . 'index.php?callback=image&amp;pid='.$image->pid.'&amp;width='.$instance['width'].'&amp;height='.$instance['height']. '" title="'.$alttext.'" alt="'.$alttext.'" />';
325
  else
326
+ $out .= '<img src="'.$image->thumbURL.'" width="'.$instance['width'].'" height="'.$instance['height'].'" title="'.$alttext.'" alt="'.$alttext.'" />';
327
 
328
  echo $out . '</a>'."\n";
329
 
336
  }
337
 
338
  }// end widget class
339
+
340
+ // register it
341
+ add_action('widgets_init', create_function('', 'return register_widget("nggWidget");'));
342
 
343
  /**
344
  * nggSlideshowWidget($galleryID, $width, $height)
363
  */
364
  function nggDisplayRandomImages($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail') {
365
 
366
+ $options = array( 'title' => false,
367
+ 'items' => $number,
368
+ 'show' => $show ,
369
+ 'type' => 'random',
370
+ 'width' => $width,
371
+ 'height' => $height,
372
+ 'exclude' => $exclude,
373
+ 'list' => $list,
374
+ 'webslice' => false );
375
+
376
+ $ngg_widget = new nggWidget();
377
+ $ngg_widget->widget($args = array( 'widget_id'=> 'sidebar_1' ), $options);
378
  }
379
 
380
  /**
385
  */
386
  function nggDisplayRecentImages($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail') {
387
 
388
+ $options = array( 'title' => false,
389
+ 'items' => $number,
390
+ 'show' => $show ,
391
+ 'type' => 'recent',
392
+ 'width' => $width,
393
+ 'height' => $height,
394
+ 'exclude' => $exclude,
395
+ 'list' => $list,
396
+ 'webslice' => false );
397
+
398
+ $ngg_widget = new nggWidget();
399
+ $ngg_widget->widget($args = array( 'widget_id'=> 'sidebar_1' ), $options);
400
  }
401
 
402
  ?>
nggajax.php → xml/ajax.php RENAMED
@@ -1,6 +1,5 @@
1
  <?php
2
- require_once('ngg-config.php');
3
-
4
  // check if we have all needed parameter
5
  if ((!isset($_GET['galleryid']) || !is_numeric($_GET['galleryid'])) || (!isset($_GET['p']) || !is_numeric($_GET['p'])) || !isset($_GET['type']))
6
  die('Insufficient parameters.');
1
  <?php
2
+ // see http://codex.wordpress.org/AJAX_in_Plugins
 
3
  // check if we have all needed parameter
4
  if ((!isset($_GET['galleryid']) || !is_numeric($_GET['galleryid'])) || (!isset($_GET['p']) || !is_numeric($_GET['p'])) || !isset($_GET['type']))
5
  die('Insufficient parameters.');
xml/json.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * REST Application Programming Interface PHP class for the WordPress plugin NextGEN Gallery
4
+ * Should emulate some kind of Flickr JSON callback : ?format=json&api_key=1234567890&method=search&term=myterm
5
+
6
+ *
7
+ * @author Alex Rabe
8
+ * @copyright Copyright 2010
9
+ * @since 1.5.0
10
+ * @require PHP 5.2.0 or higher
11
+ *
12
+ */
13
+
14
+ class nggAPI {
15
+
16
+ /**
17
+ * $_GET Variables
18
+ *
19
+ * @since 1.5.0
20
+ * @access private
21
+ * @var string
22
+ */
23
+ var $format = false; // $_GET['format'] : Return a XML oder JSON output
24
+ var $api_key = false; // $_GET['api_key'] : Protect the access via a random key (required if user is not logged into backend)
25
+ var $method = false; // $_GET['method'] : search | gallery | image |tag
26
+ var $term = false; // $_GET['term'] : The search term (required for method search | tag)
27
+ var $id = false; // $_GET['id'] : gallery or image id (required for method gallery | image)
28
+ var $limit = false; // $_GET['limit'] : maxium of images which we request
29
+
30
+ /**
31
+ * Contain the final output
32
+ *
33
+ * @since 1.5.0
34
+ * @access private
35
+ * @var string
36
+ */
37
+ var $output = '';
38
+
39
+ /**
40
+ * Holds the requested innformation as array
41
+ *
42
+ * @since 1.5.0
43
+ * @access private
44
+ * @var array
45
+ */
46
+ var $result = '';
47
+
48
+ /**
49
+ * Init the variables
50
+ *
51
+ */
52
+ function __construct() {
53
+
54
+ // Enable the JSON API when you add define('NGG_JSON_ENABLE',true); in the wp-config.php file
55
+ if ( !defined('NGG_JSON_ENABLED') )
56
+ wp_die('JSON API not enabled. Add <strong>define(\'NGG_JSON_ENABLE\', true);</strong> to your wp-config.php file');
57
+
58
+ if ( !function_exists('json_encode') )
59
+ wp_die('Json_encode not available. You need to use PHP 5.2');
60
+
61
+ // Read the parameter on init
62
+ $this->format = strtolower( $_GET['format'] );
63
+ $this->api_key = $_GET['api_key'];
64
+ $this->method = strtolower( $_GET['method'] );
65
+ $this->term = strtolower( $_GET['term'] );
66
+ $this->id = (int) $_GET['id'];
67
+ $this->limit = (int) $_GET['limit'];
68
+ $this->result = array();
69
+
70
+ $this->start_process();
71
+ $this->render_output();
72
+ }
73
+
74
+ function start_process() {
75
+
76
+ if ( !$this->valid_access() )
77
+ return;
78
+
79
+ switch ( $this->method ) {
80
+ case 'search' :
81
+ //search for some images
82
+ $this->result['images'] = array_merge( (array) nggdb::search_for_images( $this->term ), (array) nggTags::find_images_for_tags( $this->term , 'ASC' ));
83
+ break;
84
+ case 'gallery' :
85
+ //search for some a gallery
86
+ $this->result['images'][] = nggdb::get_gallery( $this->id, 'pid', 'ASC' );
87
+ break;
88
+ case 'image' :
89
+ //search for some image
90
+ $this->result['images'][] = nggdb::find_image( $this->id );
91
+ break;
92
+ case 'tag' :
93
+ //search for images based on tags
94
+ $this->result['images'][] = nggTags::find_images_for_tags( $this->term , 'ASC' );
95
+ break;
96
+ case 'recent' :
97
+ //search for images based on tags
98
+ $this->result['images'] = nggdb::find_last_images( 0 , $this->limit );
99
+ break;
100
+ default :
101
+ $this->result = array ('stat' => 'fail', 'code' => '98', 'message' => 'Method not known.');
102
+ return false;
103
+ break;
104
+ }
105
+
106
+ // result should be fine
107
+ $this->result['stat'] = 'ok';
108
+ }
109
+
110
+ function valid_access() {
111
+
112
+ // if we are logged in, then we can go on
113
+ if ( is_user_logged_in() )
114
+ return true;
115
+
116
+ //TODO:Implement an API KEY check later
117
+ if ($this->api_key != false)
118
+ return true;
119
+
120
+ $this->result = array ('stat' => 'fail', 'code' => '99', 'message' => 'Insufficient permissions. Method requires read privileges; none granted.');
121
+ return false;
122
+ }
123
+
124
+ function render_output() {
125
+
126
+ if ($this->format == 'json') {
127
+ header('Content-Type: text/plain; charset=' . get_option('blog_charset'), true);
128
+ $this->output = json_encode($this->result);
129
+ } else {
130
+ header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
131
+ //TODO:Implement XML Output
132
+ $this->output = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n";
133
+ $this->output .= "<rsp stat=' " . $this->result['stat'] . "'><err code='00' msg='Currently not supported' /></rsp>\n";
134
+ }
135
+
136
+ }
137
+
138
+ /**
139
+ * PHP5 style destructor and will run when the class is finished.
140
+ *
141
+ * @return output
142
+ */
143
+ function __destruct() {
144
+ echo $this->output;
145
+ }
146
+
147
+ }
148
+
149
+ // let's use it
150
+ $nggAPI = new nggAPI;
xml/media-rss.php CHANGED
@@ -28,27 +28,19 @@ require_once(dirname(__FILE__) . "/../ngg-config.php");
28
  require_once(dirname(__FILE__) . "/../lib/media-rss.php");
29
 
30
  // Check we have the required GET parameters
31
- $mode = $_GET["mode"];
32
- if (!isset($mode) || $mode == '')
33
- $mode = last_pictures;
34
 
35
  // Act according to the required mode
36
  $rss = '';
37
- if ($mode=='last_pictures') {
38
 
39
  // Get additional parameters
40
- $page = (int) $_GET["page"];
41
- if (!isset($page) || $page == '') {
42
- $page = 0;
43
- }
44
-
45
- $show = (int) $_GET["show"];
46
- if (!isset($show) || $show == '' || $show == 0) {
47
- $show = 10;
48
- }
49
 
50
- $rss = nggMediaRss::get_last_pictures_mrss($page, $show);
51
- } else if ( $mode=='gallery' ) {
 
52
 
53
  // Get all galleries
54
  $galleries = $nggdb->find_all_galleries();
@@ -60,10 +52,10 @@ if ($mode=='last_pictures') {
60
  }
61
 
62
  // Get additional parameters
63
- $gid = (int) $_GET['gid'];
64
 
65
  //if no gid is present, take the first gallery
66
- if (!isset($gid) || $gid == '' || $gid == 0) {
67
  $first = current($galleries);
68
  $gid = $first->gid;
69
  }
@@ -79,7 +71,7 @@ if ($mode=='last_pictures') {
79
  }
80
 
81
  // show other galleries if needed
82
- $prev_next = ( $_GET['prev_next'] == 'true' ) ? true : false;
83
  $prev_gallery = $next_gallery = null;
84
 
85
  // Get previous and next galleries if required
@@ -99,13 +91,13 @@ if ($mode=='last_pictures') {
99
 
100
  $rss = nggMediaRss::get_gallery_mrss($gallery, $prev_gallery, $next_gallery);
101
 
102
- } else if ($mode=='album') {
103
 
104
  // Get additional parameters
105
- $aid = (int) $_GET["aid"];
106
- if (!isset($aid) || $aid=='' || $aid==0) {
107
  header('content-type:text/plain;charset=utf-8');
108
- _e("No album ID has been provided as parameter","nggallery");
109
  exit;
110
  }
111
 
@@ -113,14 +105,14 @@ if ($mode=='last_pictures') {
113
  $album = nggdb::find_album($aid);
114
  if (!isset($album) || $album==null ) {
115
  header('content-type:text/plain;charset=utf-8');
116
- echo sprintf(__("The album ID=%s does not exist.","nggallery"), $aid);
117
  exit;
118
  }
119
 
120
  $rss = nggMediaRss::get_album_mrss($album);
121
  } else {
122
  header('content-type:text/plain;charset=utf-8');
123
- echo sprintf(__("Invalid MediaRSS command (%s).","nggallery"), $mode);
124
  exit;
125
  }
126
 
28
  require_once(dirname(__FILE__) . "/../lib/media-rss.php");
29
 
30
  // Check we have the required GET parameters
31
+ $mode = isset ($_GET['mode']) ? $_GET['mode'] : 'last_pictures';
 
 
32
 
33
  // Act according to the required mode
34
  $rss = '';
35
+ if ( $mode == 'last_pictures' ) {
36
 
37
  // Get additional parameters
38
+ $page = isset ($_GET['page']) ? (int) $_GET['page'] : 0;
39
+ $show = isset ($_GET['show']) ? (int) $_GET['show'] : 10;
 
 
 
 
 
 
 
40
 
41
+ $rss = nggMediaRss::get_last_pictures_mrss($page, $show);
42
+
43
+ } else if ( $mode == 'gallery' ) {
44
 
45
  // Get all galleries
46
  $galleries = $nggdb->find_all_galleries();
52
  }
53
 
54
  // Get additional parameters
55
+ $gid = isset ($_GET['gid']) ? (int) $_GET['gid'] : 0;
56
 
57
  //if no gid is present, take the first gallery
58
+ if ( $gid == 0 ) {
59
  $first = current($galleries);
60
  $gid = $first->gid;
61
  }
71
  }
72
 
73
  // show other galleries if needed
74
+ $prev_next = ( isset($_GET['prev_next']) && $_GET['prev_next'] == 'true' ) ? true : false;
75
  $prev_gallery = $next_gallery = null;
76
 
77
  // Get previous and next galleries if required
91
 
92
  $rss = nggMediaRss::get_gallery_mrss($gallery, $prev_gallery, $next_gallery);
93
 
94
+ } else if ( $mode == 'album' ) {
95
 
96
  // Get additional parameters
97
+ $aid = isset ($_GET['aid']) ? (int) $_GET['aid'] : 0;
98
+ if ( $aid == 0 ) {
99
  header('content-type:text/plain;charset=utf-8');
100
+ _e("No album ID has been provided as parameter", "nggallery");
101
  exit;
102
  }
103
 
105
  $album = nggdb::find_album($aid);
106
  if (!isset($album) || $album==null ) {
107
  header('content-type:text/plain;charset=utf-8');
108
+ echo sprintf(__("The album ID=%s does not exist.", "nggallery"), $aid);
109
  exit;
110
  }
111
 
112
  $rss = nggMediaRss::get_album_mrss($album);
113
  } else {
114
  header('content-type:text/plain;charset=utf-8');
115
+ echo sprintf(__("Invalid MediaRSS command (%s).", "nggallery"), $mode);
116
  exit;
117
  }
118