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

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

Remove all colors from admin_advices.tpl
One text correction in admin_advices/en_UK.iso-8859-1/lang.adv.php
The full French version of lang.adv.php

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