source: trunk/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php @ 1709

Last change on this file since 1709 was 1709, checked in by vdigital, 17 years ago

Admin Advices now is p0w0 compliant (other themes as well coming).
Admin Advices random thumbnail is partly check (Name, Description, Author, creation date and metadata) well updated or not.
Tags relation will be checked asap for the thumbnail.
More : Thumbnail is directly linked to Modify picture Admin function to make it accurate.

File size: 20.1 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | branch        : BSF (Best So Far)
8// | file          : $RCSfile$
9// | last update   : $Date: 2006-12-21 22:38:20 +0100 (jeu., 4 jan. 2007) $
10// | last modifier : $Author: Vincent $
11// | revision      : $Revision: 1677 $
12// +-----------------------------------------------------------------------+
13// | This program is free software; you can redistribute it and/or modify  |
14// | it under the terms of the GNU General Public License as published by  |
15// | the Free Software Foundation                                          |
16// |                                                                       |
17// | This program is distributed in the hope that it will be useful, but   |
18// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
19// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
20// | General Public License for more details.                              |
21// |                                                                       |
22// | You should have received a copy of the GNU General Public License     |
23// | along with this program; if not, write to the Free Software           |
24// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
25// | USA.                                                                  |
26// +-----------------------------------------------------------------------+
27//$lang_info['language_name'] = 'English';
28//$lang_info['country'] = ''Great Britain';
29//$lang_info['charset'] = 'iso-8859-1';
30//$lang_info['direction'] = 'ltr';
31//$lang_info['code'] = 'en';
32global $lang;
33$lang['Metadata'] = 'Metadata';
34foreach ($conf as $key => $value)
35{
36  if ( is_string($value) )
37  {
38    $bool = ($value == 'false') ? false : $value;
39    $bool = ($value == 'true') ? true : $bool;
40    $conf[$key] = $bool; 
41  }
42}
43
44//
45//               Don't forget to update range for new advices
46//
47$cases = range(1,35);
48srand ((double) microtime() * 10000000);
49shuffle($cases);
50
51$cond = false;
52foreach ($cases as $id_adv)
53{
54  if ($cond) break;
55  $adv = array();
56  switch ($id_adv) {
57    Case 1 :
58      $adv[] = 'Current value: public. ';
59      $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';';
60      $adv[] = 'You will have more time to describe and check your pictures.';
61      $adv[] = 'Time to decide between private and public status.';
62      $adv[] = 'If you choose private, time to distribute authorization.';
63      $adv[] = 'Your new category will be well prepared.';
64      $cond = ($conf['newcat_default_status'] !== 'public');
65      $confk = 'newcat_default_status';
66      break; 
67     
68    Case 2 :
69      $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.';
70      $adv[] = 'This value could be too small for low band connections.';
71      $adv[] = 'Think about higher value like 4.';
72      $cond = ( $conf['slideshow_period'] < 4 );
73      $confk = 'slideshow_period';
74      break; 
75     
76    Case 3 :
77      $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. ';
78      $adv[] = 'Should never contains extensions which can be executed';
79      $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...';
80      $cond = ( in_array('php',$conf['file_ext']) );
81      $confk = 'file_ext';
82      break; 
83     
84    Case 4 :
85      $adv[] = 'Show IPTC Data from your picture:';
86      $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . 
87                   ' in ./tools/<br />' . 
88               ' 2 - Rename it as sample.jpg.<br />' . 
89               ' 3 - Run ./tools/metadata.php<br />' .
90               ' 4 - Analyse results to determine which IPTC fields could be' . 
91                   ' useful for your visitors.';
92      $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;';
93      $adv[] = 'Advanced users would take care of $lang values and impacts' . 
94        ' on templates.';
95      $cond = true;
96      $confk = 'show_iptc_mapping';
97      break; 
98 
99     Case 5 :
100      $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.';
101      $adv[] = 'This value is maybe too high for low connections, ' . 
102               'think about 25-50 depending on your thumbnail sizes.';
103      $cond = ( $conf['top_number'] > 50 );
104      $confk = 'top_number';
105      break; 
106 
107     Case 6 :
108      $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.';
109      $adv[] = 'One? It could be too low for random pictures, ' . 
110               'think about 5-10 depending on your thumbnail sizes.';
111      $cond = ( $conf['top_number'] < 2 ) ? true : false;
112      $confk = 'top_number';
113      break; 
114     
115     Case 7 :
116      $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.';
117      $adv[] = 'For normal flow processing, your value is probably too high. ' .
118                                 'Reasonable value is 60 (default).' ;
119      $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false;
120      $confk = 'anti-flood_time';
121      break; 
122     
123     Case 8 :
124      $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
125      $adv[] = 'Authorized values are ' .
126                                 "'date_creation' or 'date_available'" .
127               ', otherwise you can get unpredictable results.' ;
128      $cond = ( !in_array($conf['calendar_datefield'], 
129        array('date_creation','date_available')) );
130      $confk = 'calendar_datefield';
131      break; 
132     
133     Case 9 :
134      // If (iptc or exif) are used and date_creation is updated
135      // Then it's Ok, you can use date_creation by default for calendar
136      // else ... Advice
137            $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
138      $adv[] = "'date_creation'" . ' is NOT filled by ' . 
139      'any activated use metadata mapping fields.';
140      $adv[] = 'So activate metadata usage <strong>or</strong> change to ' . 
141      '$conf[\'calendar_datefield\'] = \'date_available\'';
142      $adv[] = 'Activate metadata usage as you want: <br />' .
143      '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . 
144      'each way will be correct.<br />' .
145      '2 - And respectively map:<br />' .
146      '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' .
147      '=> \'2#055\', ...<br />' .
148      'or/and:<br />' .
149      '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' .
150      '=> \'DateTimeOriginal\', ...<br />' .
151      '3 - Finally, a new task is up to you: Metadata synchronization.'  ;
152      $cond2 = ( $conf['use_exif'] and 
153                                  isset($conf['use_exif_mapping']['date_creation']) );
154      $cond3 = ( $conf['use_iptc'] and
155                                  isset($conf['use_iptc_mapping']['date_creation']) );
156      $cond = ( $conf['calendar_datefield'] == 'date_creation' );
157                        $cond = ( ($cond2 or $cond3) and $cond ) ? false : true;
158      $confk = 'calendar_datefield';
159      break; 
160     
161     Case 10 :
162      $adv[] = 'Current value: false.';
163      $adv[] = 'Not useful, private status is better, so code ' .
164               '$conf[\'newcat_default_visible\'] = true;'  ;
165      $cond = !$conf['newcat_default_visible'];
166      $confk = 'newcat_default_visible';
167      break; 
168     
169     Case 11 :
170      $adv[] = 'Current value: true.';
171      $adv[] = 'Any new subscriber has access to High Resolution pictures. ' .
172      'Is it what you want? No, so try ' . 
173                        '$conf[\'newuser_default_enabled_high\'] = false;' ;
174      $cond = $conf['newuser_default_enabled_high'];
175      $confk = 'newuser_default_enabled_high';
176      break; 
177     
178     Case 12 :
179      $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.';
180      $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';';
181      $cond = ( $conf['level_separator'] == ' / ' );
182      $confk = 'level_separator';
183      break; 
184     
185     Case 13 :
186      $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.';
187      $adv[] = 'Usual range is between 2 and 5. To be light, choose ' .
188      '$conf[\'paginate_pages_around\'] = 2; <br />' .
189      'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;';
190      $cond = (($conf['paginate_pages_around'] < 2) 
191                              or ($conf['paginate_pages_around'] > 12));
192      $confk = 'paginate_pages_around';
193      break; 
194
195     Case 14 :
196      $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.';
197      $adv[] = 'Should be a close value to your thumbnail width.' .
198      $adv[] = 'Usual range is between 96 and 150, ' . 
199                                                         'about $conf[\'tn_width\'] = 128;';
200      $cond = (($conf['tn_width'] < 66) 
201                              or ($conf['tn_width'] > 180));
202      $confk = 'tn_width';
203      break; 
204
205     Case 15 :
206      $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.';
207      $adv[] = 'Should be a close value to your thumbnail height.' .
208      $adv[] = 'Usual range is between 96 and 150, ' . 
209                                                         'about $conf[\'tn_height\'] = 128;';
210      $cond = (($conf['tn_height'] < 66) 
211                              or ($conf['tn_height'] > 180));
212      $confk = 'tn_height';
213      break; 
214
215     Case 16 :
216      $adv[] = 'Thumbnail height and width have to be equal.';
217      $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . 
218                                 ';<br />' .
219                                                         'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';';
220      $cond = ( $conf['tn_height'] !== $conf['tn_width'] );
221      $confk = 'tn_height';
222      break; 
223
224     Case 17 :
225      $adv[] = 'Current value: true.';
226      $adv[] = 'For security reason, please set ' .
227                                 '$conf[\'show_version\'] = false;';
228      $cond = $conf['show_version'];
229      $confk = 'show_version';
230      break; 
231
232     Case 18 :
233      $adv[] = 'Current value: true.';
234      $adv[] = 'For a lighter gallery just have a look to ' .
235               '$conf[\'show_thumbnail_caption\'] = false;';
236      $cond = $conf['show_thumbnail_caption'];
237      $confk = 'show_thumbnail_caption';
238      break; 
239
240     Case 19 :
241      $adv[] = 'Current value: true.';
242      $adv[] = 'For a lighter gallery just have a look to ' .
243               '$conf[\'show_picture_name_on_title\'] = false;';
244      $cond = $conf['show_picture_name_on_title'];
245      $confk = 'show_picture_name_on_title';
246      break; 
247
248     Case 20 :
249      $adv[] = 'Current value: true.';
250      $adv[] = 'If you do NOT have any category descriptions just have ' .
251               'a look to $conf[\'subcatify\'] = false;';
252      $cond = $conf['subcatify'];
253      $confk = 'subcatify';
254      break; 
255
256     Case 21 :
257      $adv[] = 'Current value: true.';
258      $adv[] = 'Leave $conf[\'allow_random_representative\'] = true; <br />' .
259               'but analyze if you can avoid for performance reasons.' ;
260      $cond = $conf['allow_random_representative'];
261      $confk = 'allow_random_representative';
262      break; 
263
264     Case 22 :
265      $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.';
266      $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.';
267      $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.';
268      $adv[] = 'Distant site may use a different prefix but ' . 
269                                 'create_listing_file.php must be modified.<br />' .
270                                 'You will get a warning message during synchronization in ' .
271                                 'that case.';
272      $adv[] = 'Try to keep the same prefix thru all your sites either ' .
273                                 'local or distants.';
274      $adv[] = 'Keep this parameter in your ./include/config_'.
275                                 '<strong>local.inc.php</strong>. <br />'.
276                                                         'See our wiki configuration page for more information about ' .
277                                                         './include/config_<strong>local.inc.php</strong>.';
278      $cond = ( $conf['prefix_thumbnail'] !== 'TN-' );
279      $confk = 'prefix_thumbnail';
280      break; 
281
282     Case 23 :
283      $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.';
284      $adv[] = 'Unless you have a low band connection, you can draw up ' .
285               '$conf[\'users_page\'] to a higher value ' . 
286                                                         'if you have more than 20 members.';
287      $cond = ( $conf['users_page'] < 21 );
288      $confk = 'users_page';
289      break; 
290
291     Case 24 :
292      $adv[] = 'Current value: true.';
293      $adv[] = 'Should be false, only few webmasters have to set ' .
294               '$conf[\'mail_options\'] = true; <br />' .
295                                                         'A specific advice you can get from an advanced ' . 
296                                                         'user on our forum in some mailing issues.' ;
297      $cond = $conf['mail_options'];
298      $confk = 'mail_options';
299      break; 
300
301     Case 25 :
302      $adv[] = 'Current value: true.';
303      $adv[] = 'Should be false, only PWG dev Team have to set ' .
304               '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ;
305      $cond = $conf['check_upgrade_feed'];
306      $confk = 'check_upgrade_feed';
307      break; 
308
309     Case 26 :
310      $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 
311             . 'items.';
312      $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.';
313      $cond = ( count($conf['rate_items']) < 4 );
314      $confk = 'rate_items';
315      break; 
316
317     Case 27 :
318      $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) 
319             . 'items.';
320      $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.';
321      $adv[] = 'Check your best rated pictures prior to remove some values.' .
322                                 '<br />Reduce excessive rating and change your ' .
323               '$conf[\'rate_items\'].';
324      $cond = ( count($conf['rate_items']) > 6 );
325      $confk = 'rate_items';
326      break; 
327                         
328     Case 28 :
329      $adv[] = 'Current value: true.';
330      $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;'
331                               . '<br />Some Professional photographers choose false ' .
332                                                   'their reasons are not really professional.' ;
333                        $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' .
334               '<strong>use</strong>_iptc (have a look on metadata page ' .
335                                                         'on our wiki.';
336      $cond = $conf['show_iptc'];
337      $confk = 'show_iptc';
338      break; 
339                         
340     Case 29 :
341      $adv[] = 'Current value: true.';
342      $adv[] = 'Documentalists and professionnal photographers would ' .
343                                 'set it true, but beginners should leave it ' . 
344                                                         'as $conf[\'use_iptc\'] = false;';
345      $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
346               '<br />Mentionned fields would be rewrited with IPTC values ' .
347                                                         ' even those ones are NOT empty.';
348                        $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' .
349               '<strong>use</strong>_iptc (have a look on metadata page ' .
350                                                         'on our wiki.';
351      $cond = $conf['use_iptc'];
352      $confk = 'use_iptc';
353      break; 
354                         
355     Case 30 :
356      $adv[] = 'How to deal with IPTC:';
357      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
358               '<br />2 - Rename it as sample.jpg.' .
359               '<br />3 - Run ./tools/metadata.php' .
360               '<br />4 - Analyse results to determine which IPTC fields ' . 
361                                                         'could be used to override database fields.';
362      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
363      $adv[] = 'Advanced users make documentation efforts prior ' .
364                                 'to upload their pictures.<br />' .
365                                                         'IPTC fields have to be described in ' .
366                                                         '$conf[\'use_iptc_mapping\']';
367                        $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
368               '<strong>use</strong>_iptc_mapping must be totally different.';
369      $cond = true;
370      $confk = 'use_iptc';
371      break;   
372                       
373     Case 31 :
374      $adv[] = 'How to deal with IPTC:';
375      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
376               '<br />2 - Rename it as sample.jpg.' .
377               '<br />3 - Run ./tools/metadata.php' .
378               '<br />4 - Analyse results to determine which IPTC fields ' . 
379                                                         'could be used to override database fields.';
380      $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
381      $adv[] = 'Advanced users make documentation efforts prior ' .
382                                 'to upload their pictures.';
383      $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
384               '<br />Mentionned fields would be rewrited with IPTC values ' .
385                                                         ' even those ones are NOT empty.';
386                        $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
387               '<strong>use</strong>_iptc_mapping must be totally different.';
388      $cond = true;
389      $confk = 'use_iptc_mapping';
390      break;                               
391                       
392     Case 32 :
393      $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' )
394             . '.';
395      $adv[] = 'Should be true, some information from your camera ' .
396                                 'can be displayed.';
397      $adv[] = 'Think about EXIF information could be different depending ' . 
398                                 'on camera models.<br />' .
399               'If you change your camera these fields could be ' .
400                                                         'partly different.';
401                        $adv[] = 'Many professional photographers choose false, ' .
402                                                   'their reasons are to protect their knowledge.' ;
403                        $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' .
404               '<strong>use</strong>_exif (have a look on metadata page ' .
405                                                         'on our wiki.';
406      $cond = true;
407      $confk = 'show_exif';
408      break;   
409                       
410     Case 33 :
411      $adv[] = 'How to deal with EXIF:';
412      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
413               '<br />2 - Rename it as sample.jpg.' .
414               '<br />3 - Run ./tools/metadata.php' .
415               '<br />4 - Analyse results to determine which EXIF fields ' . 
416                                                         'could be used to override database fields.';
417      $adv[] = 'Beginners would prefer to let default values.';
418      $adv[] = 'Advanced users would take care of $lang values and ' .
419                                 'impacts on templates.';
420                        $adv[] = 'In any case, <strong>show</strong>_exif_mapping and ' .
421               '<strong>use</strong>_exif_mapping must be totally different.';
422      $cond = true;
423      $confk = 'show_exif_mapping';
424      break;                               
425                         
426     Case 34 :
427      $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' )
428             . '.';
429      $adv[] = 'Documentalists and professionnal photographers would ' .
430                                 'set it true, but beginners should leave the default value.';
431      $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
432               '<br />Mentionned fields would be rewrited with EXIF values ' .
433                                                         ' even those ones are NOT empty.';
434                        $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' .
435               '<strong>use</strong>_exif (have a look on metadata page ' .
436                                                         'on our wiki.';
437      $cond = true;
438      $confk = 'use_exif';
439      break;                                                   
440                       
441     Case 35 :
442      $adv[] = 'How to deal with EXIF:';
443      $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
444               '<br />2 - Rename it as sample.jpg.' .
445               '<br />3 - Run ./tools/metadata.php' .
446               '<br />4 - Analyse results to determine which EXIF fields ' . 
447                                                         'could be used to override database fields.';
448      $adv[] = 'Beginners would prefer to let default values.';
449      $adv[] = 'Advanced users would carefully chose overrided fields ' .
450                                 'prior to synchronize.';
451      $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
452               '<br />Mentionned fields would be rewrited with IPTC values ' .
453                                                         ' even those ones are NOT empty.';
454                        $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
455               '<strong>use</strong>_iptc_mapping must be totally different.';
456      $cond = true;
457      $confk = 'use_exif_mapping';
458      break;                               
459  }
460}
461 
462?>
Note: See TracBrowser for help on using the repository browser.