diff options
author | mistic100 <mistic@piwigo.org> | 2011-07-01 13:19:35 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-07-01 13:19:35 +0000 |
commit | 9c0cfb008446eaa0f3fc3cffc71e5bebe5d02710 (patch) | |
tree | 51ca4ce3db4a304b134eaaafc4471564d20b8a0d | |
parent | c97377ea8700519ef7cbad77269ec533ddcad287 (diff) |
feature:2317 move order config to Admin->Config->Options
new GUI interface for simple paterns
in GUI, order_by and order_by_inside_category are merged (not un DB)
users can define special paterns with $conf['order_by_custom'] and $conf['order_by_inside_category_custom']
git-svn-id: http://piwigo.org/svn/trunk@11587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/configuration.php | 162 | ||||
-rw-r--r-- | admin/themes/default/template/configuration.tpl | 56 | ||||
-rw-r--r-- | admin/themes/default/theme.css | 13 | ||||
-rw-r--r-- | include/common.inc.php | 21 | ||||
-rw-r--r-- | include/config_default.inc.php | 28 | ||||
-rw-r--r-- | install/config.sql | 4 | ||||
-rw-r--r-- | install/db/108-database.php | 127 | ||||
-rw-r--r-- | language/cs_CZ/admin.lang.php | 4 | ||||
-rw-r--r-- | language/en_UK/admin.lang.php | 6 | ||||
-rw-r--r-- | language/fr_FR/admin.lang.php | 7 | ||||
-rw-r--r-- | language/he_IL/admin.lang.php | 4 | ||||
-rw-r--r-- | language/it_IT/admin.lang.php | 4 | ||||
-rw-r--r-- | language/ja_JP/admin.lang.php | 3 | ||||
-rw-r--r-- | language/lv_LV/admin.lang.php | 4 | ||||
-rw-r--r-- | language/pl_PL/admin.lang.php | 4 | ||||
-rw-r--r-- | language/ru_RU/admin.lang.php | 4 | ||||
-rw-r--r-- | language/sk_SK/admin.lang.php | 5 | ||||
-rw-r--r-- | language/sv_SE/admin.lang.php | 4 | ||||
-rw-r--r-- | language/tr_TR/admin.lang.php | 5 |
19 files changed, 281 insertions, 184 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index 76a4123a2..98e07c9bf 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -102,12 +102,21 @@ $display_info_checkboxes = array( 'privacy_level', ); -$order_options = array( - ' ORDER BY date_available DESC, file ASC, id ASC' => 'Post date DESC, File name ASC', - ' ORDER BY date_available ASC, file ASC, id ASC' => 'Post date ASC, File name ASC', - ' ORDER BY file DESC, date_available DESC, id ASC' => 'File name DESC, Post date DESC', - ' ORDER BY file ASC, date_available DESC, id ASC' => 'File name ASC, Post date DESC', - 'custom' => l10n('Custom'), +// image order management +$sort_fields = array( + '' => '', + 'rank' => l10n('Rank'), + 'file' => l10n('File name'), + 'date_creation' => l10n('Creation date'), + 'date_available' => l10n('Post date'), + 'average_rate' => l10n('Average rate'), + 'hit' => l10n('Most visited'), + 'id' => 'Id', + ); + +$sort_directions = array( + 'ASC' => l10n('ascending'), + 'DESC' => l10n('descending'), ); //------------------------------ verification and registration of modifications @@ -118,58 +127,32 @@ if (isset($_POST['submit'])) switch ($page['section']) { case 'main' : - { - $order_regex = '#^(([ \w\']{2,}) (ASC|DESC),{1}){1,}$#'; - // process 'order_by_perso' string - if ($_POST['order_by'] == 'custom' AND !empty($_POST['order_by_perso'])) + { + if ( !isset($conf['order_by_custom']) and !isset($conf['order_by_inside_category_custom']) ) { - $_POST['order_by_perso'] = stripslashes(trim($_POST['order_by_perso'])); - $_POST['order_by'] = str_ireplace( - array('order by ', 'asc', 'desc', '"'), - array(null, 'ASC', 'DESC', '\''), - $_POST['order_by_perso'] - ); - - if (preg_match($order_regex, $_POST['order_by'].',')) - { - $_POST['order_by'] = ' ORDER BY '.addslashes($_POST['order_by']); - } - else + if ( !empty($_POST['order_by_field']) ) { - array_push($page['errors'], l10n('Invalid order string').' « '.$_POST['order_by'].' »'); - } - } - else if ($_POST['order_by'] == 'custom') - { - array_push($page['errors'], l10n('Invalid order string')); - } - // process 'order_by_inside_category_perso' string - if ($_POST['order_by_inside_category'] == 'as_order_by') - { - $_POST['order_by_inside_category'] = $_POST['order_by']; - } - else if ($_POST['order_by_inside_category'] == 'custom' AND !empty($_POST['order_by_inside_category_perso'])) - { - $_POST['order_by_inside_category_perso'] = stripslashes(trim($_POST['order_by_inside_category_perso'])); - $_POST['order_by_inside_category'] = str_ireplace( - array('order by ', 'asc', 'desc', '"'), - array(null, 'ASC', 'DESC', '\''), - $_POST['order_by_inside_category_perso'] - ); - - if (preg_match($order_regex, $_POST['order_by_inside_category'].',')) - { - $_POST['order_by_inside_category'] = ' ORDER BY '.addslashes($_POST['order_by_inside_category']); - } - else - { - array_push($page['errors'], l10n('Invalid order string').' « '.$_POST['order_by_inside_category'].' »'); + $order_by = array(); + $order_by_inside_category = array(); + for ($i=0; $i<count($_POST['order_by_field']); $i++) + { + if ($_POST['order_by_field'][$i] == '') + { + array_push($page['errors'], l10n('No field selected')); + } + else + { + if ($_POST['order_by_field'][$i] != 'rank') + { + $order_by[] = $_POST['order_by_field'][$i].' '.$_POST['order_by_direction'][$i]; + } + $order_by_inside_category[] = $_POST['order_by_field'][$i].' '.$_POST['order_by_direction'][$i]; + } + } + $_POST['order_by'] = 'ORDER BY '.implode(', ', $order_by); + $_POST['order_by_inside_category'] = 'ORDER BY '.implode(', ', $order_by_inside_category); } } - else if ($_POST['order_by_inside_category'] == 'custom') - { - array_push($page['errors'], l10n('Invalid order string')); - } if (empty($_POST['gallery_locked']) and $conf['gallery_locked']) { @@ -294,35 +277,50 @@ $template->assign( switch ($page['section']) { case 'main' : - { - // process 'order_by' string - if (array_key_exists($conf['order_by'], $order_options)) + { + + function order_by_is_local() { - $order_by_selected = $conf['order_by']; - $order_by_perso = null; - } - else - { - $order_by_selected = 'custom'; - $order_by_perso = str_replace(' ORDER BY ', null, $conf['order_by']); + @include(PHPWG_ROOT_PATH. 'local/config/config.inc.php'); + if (isset($conf['local_dir_site'])) + { + @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php'); + } + + return isset($conf['order_by']) or isset($conf['order_by_inside_category']); } - // process 'order_by_inside_category' string - if ($conf['order_by_inside_category'] == $conf['order_by']) + + if (order_by_is_local()) { - $order_by_inside_category_selected = 'as_order_by'; - $order_by_inside_category_perso = null; + array_push($page['warnings'], l10n('You have specified <i>$conf[\'order_by\']</i> in your local configuration file, this parameter in deprecated, please remove it or rename it into <i>$conf[\'order_by_custom\']</i> !')); } - else if (array_key_exists($conf['order_by_inside_category'], $order_options)) + + if ( isset($conf['order_by_custom']) or isset($conf['order_by_inside_category_custom']) ) { - $order_by_inside_category_selected = $conf['order_by_inside_category']; - $order_by_inside_category_perso = null; + $order_by = array(array( + 'FIELD' => '', + 'DIRECTION' => 'ASC', + )); + + $template->assign('ORDER_BY_IS_CUSTOM', true); } else { - $order_by_inside_category_selected = 'custom'; - $order_by_inside_category_perso = str_replace(' ORDER BY ', null, $conf['order_by_inside_category']); + $out = array(); + $order_by = trim($conf['order_by_inside_category']); + $order_by = str_replace('ORDER BY ', null, $order_by); + $order_by = explode(', ', $order_by); + foreach ($order_by as $field) + { + $field= explode(' ', $field); + $out[] = array( + 'FIELD' => $field[0], + 'DIRECTION' => $field[1], + ); + } + $order_by = $out; } - + $template->assign( 'main', array( @@ -334,17 +332,11 @@ switch ($page['section']) 'monday' => $lang['day'][1], ), 'week_starts_on_options_selected' => $conf['week_starts_on'], - 'order_by_options' => $order_options, - 'order_by_selected' => $order_by_selected, - 'order_by_perso' => $order_by_perso, - 'order_by_inside_category_options' => - array_merge( - array('as_order_by'=>l10n('As default order')), - $order_options - ), - 'order_by_inside_category_selected' => $order_by_inside_category_selected, - 'order_by_inside_category_perso' => $order_by_inside_category_perso, - )); + 'order_by' => $order_by, + 'order_field_options' => $sort_fields, + 'order_direction_options' => $sort_directions, + ) + ); foreach ($main_checkboxes as $checkbox) { diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index ac40c6fbd..d2fb8910a 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -100,39 +100,47 @@ <span class="property"> {'Default photos order'|@translate} - {html_options name="order_by" options=$main.order_by_options selected=$main.order_by_selected} - <input type="text" name="order_by_perso" size="40" value="{$main.order_by_perso}" - {if $main.order_by_selected != 'custom'}style="display:none;"{/if}/> - </span> - </li> - <li> - - <span class="property"> - {'Default photos order inside album'|@translate} - {html_options name="order_by_inside_category" options=$main.order_by_inside_category_options selected=$main.order_by_inside_category_selected} - <input type="text" name="order_by_inside_category_perso" size="40" value="{$main.order_by_inside_category_perso}" - {if $main.order_by_inside_category_selected != 'custom'}style="display:none;"{/if}> + + {foreach from=$main.order_by item=order} + <span class="filter {if $ORDER_BY_IS_CUSTOM}transparent{/if}"> + <a class="removeFilter" title="{'remove this filter'|@translate}"><span>[x]</span></a> + <select name="order_by_field[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}> + {html_options options=$main.order_field_options selected=$order.FIELD } + </select> + <select name="order_by_direction[]" {if $ORDER_BY_IS_CUSTOM}disabled{/if}> + {html_options options=$main.order_direction_options selected=$order.DIRECTION } + </select> + </span> + {/foreach} + + {if !$ORDER_BY_IS_CUSTOM} + <a class="addFilter" title="{'Add a filter'|@translate}"><span>[+]</span></a> + {else} + <span class="order_by_is_custom">{'You can\'t define a default photo order because you have a custom setting in your local configuration.'|@translate}</span> + {/if} </span> </li> +{if !$ORDER_BY_IS_CUSTOM} {footer_script require='jquery'}{literal} jQuery(document).ready(function () { - $('select[name="order_by"]').change(function () { - if ($(this).val() == 'custom') { - $('input[name="order_by_perso"]').show(); - } else { - $('input[name="order_by_perso"]').hide(); - } + $('.addFilter').click(function() { + rel = $(this).attr('rel'); + $(this).prev('span.filter').clone().insertBefore($(this)); + $(this).prev('span.filter').children('select[name="order_by_field[]"]').val(''); + $(this).prev('span.filter').children('select[name="order_by_direction[]"]').val('ASC'); + + $(".removeFilter").click(function () { + $(this).parent('span.filter').remove(); + }); }); - $('select[name="order_by_inside_category"]').change(function () { - if ($(this).val() == 'custom') { - $('input[name="order_by_inside_category_perso"]').show(); - } else { - $('input[name="order_by_inside_category_perso"]').hide(); - } + + $(".removeFilter").click(function () { + $(this).parent('span.filter').remove(); }); }); {/literal}{/footer_script} +{/if} </ul> </fieldset> {/if} diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index 20bbfe6f4..72920e3ac 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -1047,4 +1047,15 @@ div.token-input-dropdown ul li {background-color: #fff;padding: 3px;margin: 0;li div.token-input-dropdown ul li.token-input-dropdown-item {background-color: #fff;} div.token-input-dropdown ul li.token-input-dropdown-item2 {background-color: #fff;} div.token-input-dropdown ul li em {font-weight: bold;font-style: normal;} -div.token-input-dropdown ul li.token-input-selected-dropdown-item {background-color: #3b5998;color: #fff;}
\ No newline at end of file +div.token-input-dropdown ul li.token-input-selected-dropdown-item {background-color: #3b5998;color: #fff;} + +#mainConfCheck a.addFilter {background: url(icon/plus.gif) no-repeat 0 4px;width:19px;height:19px;display:inline-block;} +#mainConfCheck a.addFilter:hover {background-position:0 5px;border:none;} +#mainConfCheck a.addFilter span {display:none;} +#mainConfCheck a.removeFilter {background: url(icon/remove_filter.png) no-repeat top left;width:7px;height:7px;display:inline-block;} +#mainConfCheck a.removeFilter:hover {background: url(icon/remove_filter_hover.png);border:none;} +#mainConfCheck a.removeFilter span {display:none;} +#mainConfCheck span.property span.filter:first-child a.removeFilter {display:none;} /* can't delete the first field */ +#mainConfCheck span.filter {margin-right:10px;} +#mainConfCheck .transparent {opacity:0.5;filter:alpha(opacity=50);} +#mainConfCheck .order_by_is_custom {display:block;font-weight:normal;font-style:italic;}
\ No newline at end of file diff --git a/include/common.inc.php b/include/common.inc.php index 6081220e6..f28a27eb6 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -106,6 +106,17 @@ if (isset($conf['local_dir_site'])) { @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php'); } + +// that's for migration from 2.2, will be deprecated in 2.4 +if (isset($conf['order_by'])) +{ + $conf['order_by_custom'] = $conf['order_by']; +} +if (isset($conf['order_by_inside_category'])) +{ + $conf['order_by_inside_category_custom'] = $conf['order_by_inside_category']; +} + include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php'); if(isset($conf['show_php_errors']) && !empty($conf['show_php_errors'])) @@ -143,6 +154,16 @@ if (!$conf['check_upgrade_feed']) load_plugins(); +// users can have defined a custom order pattern, incompatible with GUI form +if (isset($conf['order_by_custom'])) +{ + $conf['order_by'] = $conf['order_by_custom']; +} +if (isset($conf['order_by_inside_category_custom'])) +{ + $conf['order_by_inside_category'] = $conf['order_by_inside_category_custom']; +} + include(PHPWG_ROOT_PATH.'include/user.inc.php'); if (in_array( substr($user['language'],0,2), array('fr','it','de','es','pl','hu','ru','nl') ) ) diff --git a/include/config_default.inc.php b/include/config_default.inc.php index 5ee7c4406..f6f02be99 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -43,35 +43,15 @@ // | misc | // +-----------------------------------------------------------------------+ -// order_by : how to change the order of display for images in a category ? +// order_by_custom and order_by_inside_category_custom : for non common pattern +// you can define special ORDER configuration // -// There are several fields that can order the display : -// -// - date_available : the date of the adding to the gallery -// - file : the name of the file -// - id : element identifier -// - date_creation : date of element creation -// -// Once you've chosen which field(s) to use for ordering, you must chose the -// ascending or descending order for each field. examples : -// -// 1. $conf['order_by'] = " order by date_available desc, file asc"; -// will order pictures by date_available descending & by filename ascending -// -// 2. $conf['order_by'] = " order by file asc"; -// will only order pictures by file ascending without taking into account -// the date_available -$conf['order_by'] = ' ORDER BY date_available DESC, file ASC, id ASC'; +// $conf['order_by_custom'] = ' ORDER BY date_available DESC, file ASC, id ASC'; // order_by_inside_category : inside a category, images can also be ordered // by rank. A manually defined rank on each image for the category. // -// In addition to fields of #images table, you can use the -// #image_category.rank column -// -// $conf['order_by_inside_category'] = ' ORDER BY rank'; -// will sort images by the manually defined rank of images in this album. -$conf['order_by_inside_category'] = $conf['order_by']; +// $conf['order_by_inside_category_custom'] = $conf['order_by_custom']; // file_ext : file extensions (case sensitive) authorized $conf['file_ext'] = array('jpg','JPG','jpeg','JPEG', diff --git a/install/config.sql b/install/config.sql index 04d342e25..aeeacc085 100644 --- a/install/config.sql +++ b/install/config.sql @@ -52,8 +52,8 @@ INSERT INTO piwigo_config (param,value,comment) ); INSERT INTO piwigo_config (param,value,comment) VALUES ('week_starts_on','monday','Monday may not be the first day of the week'); INSERT INTO piwigo_config (param,value,comment) VALUES ('updates_ignored','a:3:{s:7:"plugins";a:0:{}s:6:"themes";a:0:{}s:9:"languages";a:0:{}}','Extensions ignored for update'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('order_by',' ORDER BY date_available DESC, file ASC, id ASC','default photo order'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('order_by_inside_category',' ORDER BY date_available DESC, file ASC, id ASC','default photo order inside category'); +INSERT INTO piwigo_config (param,value,comment) VALUES ('order_by','ORDER BY date_available DESC, file ASC, id ASC','default photo order'); +INSERT INTO piwigo_config (param,value,comment) VALUES ('order_by_inside_category','ORDER BY date_available DESC, file ASC, id ASC','default photo order inside category'); INSERT INTO piwigo_config (param,value) VALUES ('upload_form_websize_resize','true'); INSERT INTO piwigo_config (param,value) VALUES ('upload_form_websize_maxwidth','800'); INSERT INTO piwigo_config (param,value) VALUES ('upload_form_websize_maxheight','600'); diff --git a/install/db/108-database.php b/install/db/108-database.php new file mode 100644 index 000000000..b2f9aab48 --- /dev/null +++ b/install/db/108-database.php @@ -0,0 +1,127 @@ +<?php +// +-----------------------------------------------------------------------+ +// | Piwigo - a PHP based photo gallery | +// +-----------------------------------------------------------------------+ +// | Copyright(C) 2008-2011 Piwigo Team http://piwigo.org | +// | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | +// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +if (!defined('PHPWG_ROOT_PATH')) +{ + die('Hacking attempt!'); +} + +$upgrade_description = 'add order parameters to bdd #2'; + +$order_regex = '#^(( *)(id|file|name|date_available|date_creation|hit|average_rate|comment|author|filesize|width|height|high_filesize|high_width|high_height|rank) (ASC|DESC),{1}){1,}$#'; + +// local file is writable +if ( is_writable($local_file = PHPWG_ROOT_PATH. 'local/config/config.inc.php') ) +{ + $order_by = str_ireplace( + array('order by ', 'asc', 'desc'), + array(null, 'ASC', 'DESC'), + trim($conf['order_by_inside_category']) + ); + + // for a simple patern + if ( preg_match($order_regex, $order_by.',') ) + { + $order_by = 'ORDER BY '.$order_by; + // update database + $query = ' + UPDATE '.PREFIX_TABLE.'config + SET value = \''.preg_replace('# rank (ASC|DESC)(,?)#', null, $order_by).'\' + WHERE param = \'order_by\' + ;'; + pwg_query($query); + $query = ' + UPDATE '.PREFIX_TABLE.'config + SET value = \''.$order_by.'\' + WHERE param = \'order_by_inside_category\' + '; + pwg_query($query); + + // update local file (delete lines) + $local_config = file($local_file); + $new_local_config = array(); + foreach ($local_config as $line) + { + if (strpos($line, 'order_by') === false) + { + $new_local_config[] = $line; + } + } + var_dump($new_local_config); + file_put_contents( + $local_file, + implode("", $new_local_config) + ); + } + // for a complex patern + else + { + // update database with default param + $query = ' + UPDATE '.PREFIX_TABLE.'config + SET value = \'ORDER BY date_available DESC, file ASC, id ASC\' + WHERE param = \'order_by\' + ;'; + pwg_query($query); + $query = ' + UPDATE '.PREFIX_TABLE.'config + SET value = \'ORDER BY date_available DESC, file ASC, id ASC\' + WHERE param = \'order_by_inside_category\' + '; + pwg_query($query); + + // update local file (rename lines) + $local_config = file_get_contents($local_file); + $new_local_config = str_replace( + array("['order_by']", "['order_by_inside_category']"), + array("['order_by_custom']", "['order_by_inside_category_custom']"), + $local_config + ); + file_put_contents($local_file, $new_local_config); + } + +} +// local file is locked +else +{ + // update database with default param + $query = ' + UPDATE '.PREFIX_TABLE.'config + SET value = \'ORDER BY date_available DESC, file ASC, id ASC\' + WHERE param = \'order_by\' + ;'; + pwg_query($query); + $query = ' + UPDATE '.PREFIX_TABLE.'config + SET value = \'ORDER BY date_available DESC, file ASC, id ASC\' + WHERE param = \'order_by_inside_category\' + '; + pwg_query($query); +} + +echo +"\n" +. $upgrade_description +."\n" +; +?>
\ No newline at end of file diff --git a/language/cs_CZ/admin.lang.php b/language/cs_CZ/admin.lang.php index 9426022e9..dbc73bbe7 100644 --- a/language/cs_CZ/admin.lang.php +++ b/language/cs_CZ/admin.lang.php @@ -793,14 +793,10 @@ $lang['No results'] = 'Žádný výsledek'; $lang['Searching...'] = 'Hledám...'; $lang['Type in a search term'] = 'Zadejte hledaný výraz'; $lang['Activate icon "new" next to albums and pictures'] = 'Aktivovat ikonu "nové" vedle alb a obrázků'; -$lang['As default order'] = 'Jako výchozí pořadí'; $lang['Compact'] = 'Kompaktní'; $lang['Complete'] = 'Kompletní'; -$lang['Custom'] = 'Běžný'; $lang['Deactivate all'] = 'Deaktivovat vše'; $lang['Default photos order'] = 'Výchozí pořadí fotografií'; -$lang['Default photos order inside album'] = 'Výchozí pořadí fotografií uvnitř album'; -$lang['Invalid order string'] = 'Neplatný řetězec výběru'; $lang['Restore'] = 'Obnovit'; $lang['Restore default configuration. You will lost your plugin settings!'] = 'Obnovit výchozí konfiguraci. Přijdete o nastavení v pluginech!'; $lang['Show menubar'] = 'Zobrazit menu'; diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 75e4d76a7..0849adf35 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -151,7 +151,6 @@ $lang['Apply to sub-albums'] = "Apply to sub-albums"; $lang['Are you sure to install this upgrade? You must verify if this version does not need uninstallation.'] = "Are you sure you want to install this upgrade? You must verify if this version does not need prior uninstallation."; $lang['Are you sure you want to delete this plugin?'] = "Are you sure you want to delete this plugin?"; $lang['Are you sure you want to install this plugin?'] = "Are you sure you want to install this plugin?"; -$lang['As default order'] = "As default order"; $lang['Associate to album'] = "Associate to album"; $lang['associate to group'] = "associate to group"; $lang['Associated'] = "Associated"; @@ -204,7 +203,6 @@ $lang['Create the "%s" directory at the root of your Piwigo installation'] = 'Cr $lang['Create this site'] = "Create this site"; $lang['created'] = "created"; $lang['Current name'] = "Current name"; -$lang['Custom'] = "Custom"; $lang['Database synchronization with files'] = "Database synchronization with files"; $lang['Database'] = "Database"; $lang['Date'] = "Date"; @@ -213,7 +211,6 @@ $lang['Deactivate'] = "Deactivate"; $lang['Deactivate all'] = "Deactivate all"; $lang['Default display'] = "Default display"; $lang['Default photos order'] = "Default photos order"; -$lang['Default photos order inside album'] = "Default photos order inside album"; $lang['Default user cannot be deleted'] = "Default user cannot be deleted"; $lang['Default user does not exist'] = "The default user does not exist"; $lang['default values'] = "default values"; @@ -363,7 +360,6 @@ $lang['Install'] = "Install"; $lang['Installed Languages'] = 'Installed Languages'; $lang['Installed Themes'] = "Installed Themes"; $lang['Instructions to use Piwigo'] = "Instructions to use Piwigo"; -$lang['Invalid order string'] = 'Invalid order string'; $lang['Invert'] = 'Invert'; $lang['IP'] = "IP"; $lang['JPEG files or ZIP archives with JPEG files inside please.'] = 'JPEG files or ZIP archives with JPEG files inside please.'; @@ -774,7 +770,9 @@ $lang['You are running on development sources, no check possible.'] = "You are r $lang['You are running the latest version of Piwigo.'] = "You are running Piwigo latest version."; $lang['You cannot delete your account'] = "You cannot delete your account"; $lang['You cannot move an album in its own sub album'] = "You cannot move an album in its own sub album"; +$lang['You can\'t define a default photo order because you have a custom setting in your local configuration.'] = 'You can\'t define a default photo order because you have a custom setting in your local configuration.'; $lang['You have %d orphan tags: %s.'] = 'You have %d orphan tags: %s.'; +$lang['You have specified <i>$conf[\'order_by\']</i> in your local configuration file, this parameter in deprecated, please remove it or rename it into <i>$conf[\'order_by_custom\']</i> !'] = 'You have specified <i>$conf[\'order_by\']</i> in your local configuration file, this parameter in deprecated, please remove it or rename it into <i>$conf[\'order_by_custom\']</i> !'; $lang['You have subscribed to receiving notifications by mail.'] = "You have subscribed to receive notifications by mail."; $lang['You have unsubscribed from receiving notifications by mail.'] = "You have unsubscribed from being notified by mail."; $lang['You might go to plugin list to install and activate it.'] = "Go to the plugins list to install and activate it."; diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 4f6a09411..83ec8eccc 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -848,9 +848,8 @@ $lang['Type in a search term'] = 'Entrez un terme de recherche'; $lang['Searching...'] = 'Recherche...'; $lang['new'] = 'nouveau'; $lang['Default photos order'] = "Ordre par défaut des photos"; -$lang['Default photos order inside album'] = "Ordre par défaut des photos dans un album"; -$lang['Invalid order string'] = 'Chaîne SQL incorrecte'; -$lang['As default order'] = "Comme l'ordre par défaut"; -$lang['Custom'] = "Personnalisé"; $lang['Activate icon "new" next to albums and pictures'] = 'Afficher l\'icône "nouveau" à côté des albums et des photos'; +$lang['You can\'t define a default photo order because you have a custom setting in your local configuration.'] = 'Vous ne pouvez définir l\'ordre par défaut des photos car vous avez un paramètre personnalisé dans votre configuration locale.'; +$lang['You have specified <i>$conf[\'order_by\']</i> in your local configuration file, this parameter in deprecated, please remove it or rename it into <i>$conf[\'order_by_custom\']</i> !'] = 'Vous avez spécifié <i>$conf[\'order_by\']</i> dans votre fichier de configuration, ce paramètre est obsolète, veuillez le supprimer ou le renommer en <i>$conf[\'order_by_custom\']</i> !'; + ?>
\ No newline at end of file diff --git a/language/he_IL/admin.lang.php b/language/he_IL/admin.lang.php index 386454db6..e76d1734a 100644 --- a/language/he_IL/admin.lang.php +++ b/language/he_IL/admin.lang.php @@ -803,14 +803,10 @@ $lang['Follow Orientation'] = 'עקוב אחר ההדרכה'; $lang['If you want to regenerate thumbnails, please go to the <a href="%s">Batch Manager</a>.'] = 'אם ברצונך לחדש את התמונות הממוזערות נווט בבקשה ל <a href="%s">מנהל אצווה</a>.'; $lang['Graphics Library'] = 'ספריית גרפיקה'; $lang['Activate icon "new" next to albums and pictures'] = 'הפעל כפתו "חדש" ליד אלבומים'; -$lang['As default order'] = 'כסדר ברירת מחדל'; $lang['Compact'] = 'קומפקטי'; $lang['Complete'] = 'סיים'; -$lang['Custom'] = 'מותאם אישית'; $lang['Deactivate all'] = 'בטל פעולה להכל'; $lang['Default photos order'] = 'סדר ברירת מחדל לתמונות'; -$lang['Default photos order inside album'] = 'סדר ברירת מחדל לתמונות באלבום'; -$lang['Invalid order string'] = 'מחרוזת סדר לא חוקית'; $lang['Restore'] = 'שחזר'; $lang['Restore default configuration. You will lost your plugin settings!'] = 'שחזר להגדרות ברירת מחדל. הגדרות ההתקן יאבדו!'; $lang['Show menubar'] = 'הצג תפריט'; diff --git a/language/it_IT/admin.lang.php b/language/it_IT/admin.lang.php index 12266b871..434c4c0f8 100644 --- a/language/it_IT/admin.lang.php +++ b/language/it_IT/admin.lang.php @@ -848,9 +848,5 @@ $lang['Type in a search term'] = 'Inserire un Entrez un termine di ricerca'; $lang['Searching...'] = 'Ricerca ...'; $lang['new'] = 'nuovo'; $lang['Default photos order'] = 'Ordinamento di default delle foto'; -$lang['Default photos order inside album'] = 'Ordinamento di default delle foto in un album'; -$lang['Invalid order string'] = 'Stringa SQL non corretta'; -$lang['As default order'] = 'Come ordinamento di default'; -$lang['Custom'] = 'Personalizzare'; $lang['Activate icon "new" next to albums and pictures'] = 'Visualizzare l\'icona "nuovo" a fianco degli album e delle foto'; ?>
\ No newline at end of file diff --git a/language/ja_JP/admin.lang.php b/language/ja_JP/admin.lang.php index f250df784..28e698491 100644 --- a/language/ja_JP/admin.lang.php +++ b/language/ja_JP/admin.lang.php @@ -726,11 +726,8 @@ $lang['Choose an action'] = 'アックションを選択して下さい'; $lang['Compact'] = 'コンパクト'; $lang['Complete'] = '完了'; $lang['Activate icon "new" next to albums and pictures'] = 'アルバムと写真のとなりに、\'起動アイコン "新" があります'; -$lang['As default order'] = 'デフォルト順として'; -$lang['Custom'] = 'カスタム'; $lang['Deactivate all'] = '全て非活性する'; $lang['Default photos order'] = 'デフォルト写真順番'; -$lang['Default photos order inside album'] = 'デフォルト写真順はアルバム中'; $lang['Delete orphan tags'] = '捨てられたタグを削除する'; $lang['delete photo'] = '写真を削除する'; $lang['duplicates'] = '複写'; diff --git a/language/lv_LV/admin.lang.php b/language/lv_LV/admin.lang.php index 89382cd3e..c8734164b 100644 --- a/language/lv_LV/admin.lang.php +++ b/language/lv_LV/admin.lang.php @@ -790,14 +790,10 @@ $lang['new'] = 'jauns'; $lang['No results'] = 'Nav rezultātu'; $lang['Searching...'] = 'Meklē...'; $lang['Type in a search term'] = 'Ierakstiet meklējamo vārdu'; -$lang['As default order'] = 'Kā pēc noklusējuma'; $lang['Compact'] = 'Kompaktēt'; $lang['Complete'] = 'Pabeigt'; -$lang['Custom'] = 'Pielāgots'; $lang['Deactivate all'] = 'Deaktivēt visu'; $lang['Default photos order'] = 'Foto kārtojums pēc noklusējuma'; -$lang['Default photos order inside album'] = 'Foto kārtojums pēc noklusējuma albumā'; -$lang['Invalid order string'] = 'Kļūdaina kārtojuma rinda'; $lang['Restore'] = 'Atjaunot'; $lang['Restore default configuration. You will lost your plugin settings!'] = 'Atjaunot noklusējuma konfigurāciju. Jūs zaudēsit savus spraudņa iestatījumus!'; $lang['Show menubar'] = 'Rādīt izvēles joslu'; diff --git a/language/pl_PL/admin.lang.php b/language/pl_PL/admin.lang.php index ac00b5a3d..802c11834 100644 --- a/language/pl_PL/admin.lang.php +++ b/language/pl_PL/admin.lang.php @@ -790,14 +790,10 @@ $lang['No results'] = 'Brak wyników'; $lang['Searching...'] = 'Wyszukiwanie...'; $lang['Type in a search term'] = 'Wpisz frazę do wyszukania'; $lang['Activate icon "new" next to albums and pictures'] = 'Aktywuj ikonę "nowe" obok albumów i zdjęć'; -$lang['As default order'] = 'Jako sortowanie domyślne'; $lang['Compact'] = 'Minimalne'; $lang['Complete'] = 'Pełne'; -$lang['Custom'] = 'Własne'; $lang['Deactivate all'] = 'Deaktywuj wszystko'; $lang['Default photos order'] = 'Domślne sortowanie zdjęć'; -$lang['Default photos order inside album'] = 'Domyślne sortowanie zdjęć w albumie'; -$lang['Invalid order string'] = 'Niepoprawny ciąg sortowania'; $lang['Restore'] = 'Przywróć'; $lang['Restore default configuration. You will lost your plugin settings!'] = 'Przywróć domyślną konfigurację. Stracisz ustawienia wtyczek!'; $lang['Show menubar'] = 'Pokazuj belkę z menu'; diff --git a/language/ru_RU/admin.lang.php b/language/ru_RU/admin.lang.php index e239c0264..7e8dafd0c 100644 --- a/language/ru_RU/admin.lang.php +++ b/language/ru_RU/admin.lang.php @@ -789,14 +789,10 @@ $lang['Searching...'] = 'Выполняется поиск...'; $lang['Type in a search term'] = 'Определите критерий поиска'; $lang['display'] = 'показать'; $lang['Activate icon "new" next to albums and pictures'] = 'Активировать иконку "new" рядом с альбомами и фотографиями'; -$lang['As default order'] = 'Порядок по умолчанию'; $lang['Compact'] = 'Компактный'; $lang['Complete'] = 'Полный'; -$lang['Custom'] = 'Пользовательский'; $lang['Deactivate all'] = 'Деактивировать все'; $lang['Default photos order'] = 'Порядок фотографий по умолчанию'; -$lang['Default photos order inside album'] = 'Порядок фотографий в альбоме по умолчанию'; -$lang['Invalid order string'] = 'Недопустимое значение сортировки'; $lang['Restore'] = 'Восстановить'; $lang['Restore default configuration. You will lost your plugin settings!'] = 'Восстановление конфигурации по умолчанию. Ваши настройки плагинов будут потеряны!'; $lang['Show menubar'] = 'Показать меню'; diff --git a/language/sk_SK/admin.lang.php b/language/sk_SK/admin.lang.php index cbc9c5cf7..100223667 100644 --- a/language/sk_SK/admin.lang.php +++ b/language/sk_SK/admin.lang.php @@ -840,11 +840,6 @@ $lang['Follow Orientation'] = 'Nasledovať orientáciu'; $lang['If you want to regenerate thumbnails, please go to the <a href="%s">Batch Manager</a>.'] = 'Ak chcete obnoviť náhľady, prosím choďte na <a href="%s">Správcu dávky</a>.'; $lang['Graphics Library'] = 'Grafická knižnica'; $lang['Activate icon "new" next to albums and pictures'] = 'Aktivovať ikonu "new" pre ďalšie albumy a fotky'; -$lang['As default order'] = 'Ako predvolené zoradenie'; -$lang['Custom'] = 'Voliteľné'; $lang['Default photos order'] = 'Predvolené zoradenie fotiek'; -$lang['Default photos order inside album'] = 'Predvolené zoradenie fotografií vo vnútri albumu'; -$lang['Invalid order string'] = 'Neplatný zoraďovací sled'; - ?>
\ No newline at end of file diff --git a/language/sv_SE/admin.lang.php b/language/sv_SE/admin.lang.php index 67226255d..e2c3e20f0 100644 --- a/language/sv_SE/admin.lang.php +++ b/language/sv_SE/admin.lang.php @@ -797,14 +797,10 @@ $lang['No results'] = 'Inga poster hittades'; $lang['Searching...'] = 'Söker...'; $lang['Type in a search term'] = 'Ange nytt sökord'; $lang['Activate icon "new" next to albums and pictures'] = 'Aktivera ikonen "ny" intill album och bilder'; -$lang['As default order'] = 'Standardordning'; $lang['Compact'] = 'Kompakt'; $lang['Complete'] = 'Komplett'; -$lang['Custom'] = 'Anpassad'; $lang['Deactivate all'] = 'Avaktivera allt'; $lang['Default photos order'] = 'Standardordning för bilder'; -$lang['Default photos order inside album'] = 'Standardordning för bilder i ett album'; -$lang['Invalid order string'] = 'Fel ordningssträng'; $lang['Restore'] = 'Återställ'; $lang['Restore default configuration. You will lost your plugin settings!'] = 'Återställ standardkonfiguration. Du kommer att förlora inställingarna för din plugins!'; $lang['Show menubar'] = 'Visa verktygsfält'; diff --git a/language/tr_TR/admin.lang.php b/language/tr_TR/admin.lang.php index f2ed4c12e..d81922f60 100644 --- a/language/tr_TR/admin.lang.php +++ b/language/tr_TR/admin.lang.php @@ -830,9 +830,6 @@ $lang['Follow Orientation'] = 'Oryantasyonu takip edin'; $lang['If you want to regenerate thumbnails, please go to the <a href="%s">Batch Manager</a>.'] = 'Eğer küçük resimleri yenilemek istiyorsanız, <a href="%s">Küçük Resimleri Tekrar Oluştur</a> gidin.'; $lang['Graphics Library'] = 'Grafik Arşivi'; $lang['Activate icon "new" next to albums and pictures'] = 'Resimlerin yanındaki "yeni" simgesini etkinleştir'; -$lang['As default order'] = 'Varsayılan düzen olarak'; -$lang['Custom'] = 'özel'; $lang['Default photos order'] = 'Varsayılan resim düzeni'; -$lang['Default photos order inside album'] = 'Albüm içindeki varsayılan resim düzeni'; -$lang['Invalid order string'] = 'Geçersiz düzen'; + ?>
\ No newline at end of file |