aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-12-31 14:06:27 +0000
committerplegall <plg@piwigo.org>2010-12-31 14:06:27 +0000
commitd7c3c65cd4d1475ae3bc8875114ffb7e54992b8d (patch)
treebfbafc06045b393e9609c65c8102c919dab91559
parent108344400b85d1c3d5c8b4674efbfc8daf19cc38 (diff)
Batch Manager:
* add l0n to the new Batch Manager where is was missing * change photo "name" to photo "title" * change the way we display "Select all" and "Select the whole set" git-svn-id: http://piwigo.org/svn/trunk@8408 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/batch_manager.php31
-rw-r--r--admin/batch_manager_global.php6
-rw-r--r--admin/themes/default/template/batch_manager_global.tpl77
-rw-r--r--language/en_UK/admin.lang.php32
-rw-r--r--language/fr_FR/admin.lang.php32
5 files changed, 105 insertions, 73 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php
index c055544ae..a608a9bf5 100644
--- a/admin/batch_manager.php
+++ b/admin/batch_manager.php
@@ -247,37 +247,6 @@ foreach ($filter_sets as $set)
}
$page['cat_elements_id'] = $current_set;
-// // To element_set_(global|unit).php, we must provide the elements id of the
-// // managed category in $page['cat_elements_id'] array.
-// $page['cat_elements_id'] = array();
-
-// else if ('duplicates' == $_GET['cat'])
-// {
-// $page['title'] = l10n('Files with same name in more than one physical category');
-// $template->assign(array('U_ACTIVE_MENU' => 5 ));
-//
-// // we are searching related elements twice or more to physical categories
-// // 1 - Retrieve Files
-// $query = '
-// SELECT DISTINCT(file)
-// FROM '.IMAGES_TABLE.'
-// GROUP BY file
-// HAVING COUNT(DISTINCT storage_category_id) > 1
-// ;';
-//
-// $duplicate_files = array_from_query($query, 'file');
-// $duplicate_files[]='Nofiles';
-// // 2 - Retrives related picture ids
-// $query = '
-// SELECT id, file
-// FROM '.IMAGES_TABLE.'
-// WHERE file IN (\''.implode("','", $duplicate_files).'\')
-// ORDER BY file, id
-// ;';
-//
-// $page['cat_elements_id'] = array_from_query($query, 'id');
-// }
-
// +-----------------------------------------------------------------------+
// | first element to display |
// +-----------------------------------------------------------------------+
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index c374e888d..1a6f1130a 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -191,8 +191,8 @@ DELETE
);
}
- // name
- if ('name' == $action)
+ // title
+ if ('title' == $action)
{
$datas = array();
foreach ($collection as $image_id)
@@ -201,7 +201,7 @@ DELETE
$datas,
array(
'id' => $image_id,
- 'name' => $_POST['name']
+ 'name' => $_POST['title']
)
);
}
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl
index 8f08d8414..c62092c19 100644
--- a/admin/themes/default/template/batch_manager_global.tpl
+++ b/admin/themes/default/template/batch_manager_global.tpl
@@ -174,10 +174,6 @@ $(document).ready(function() {
$(wrap2).addClass("thumbSelected");
});
- if (nb_thumbs_page < nb_thumbs_set) {
- $("#selectSetMessage").show();
- }
-
checkPermitAction();
return false;
@@ -198,7 +194,6 @@ $(document).ready(function() {
});
$("#selectInvert").click(function () {
- $("#selectSetMessage").hide();
$("input[name=setSelected]").attr('checked', false);
$(".thumbnails label").each(function() {
@@ -233,12 +228,12 @@ $(document).ready(function() {
}
});
- $("input[name=remove_name]").click(function () {
+ $("input[name=remove_title]").click(function () {
if ($(this).is(':checked')) {
- $("input[name=name]").hide();
+ $("input[name=title]").hide();
}
else {
- $("input[name=name]").show();
+ $("input[name=title]").show();
}
});
@@ -338,7 +333,7 @@ a.removeFilter:hover {background: url(admin/themes/default/icon/remove_filter_ho
<a href="{$U_UNIT_MODE}">Switch to unit mode</a>
</p>
-<h2>{'Batch manager'|@translate}</h2>
+<h2>{'Batch Manager'|@translate}</h2>
<form action="{$F_ACTION}" method="post">
@@ -347,16 +342,16 @@ a.removeFilter:hover {background: url(admin/themes/default/icon/remove_filter_ho
<ul id="filterList">
<li id="filter_prefilter" {if !isset($filter.prefilter)}style="display:none"{/if}>
- <a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
+ <a href="#" class="removeFilter" title="{'remove this filter'|@translate}"><span>[x]</span></a>
<input type="checkbox" name="filter_prefilter_use" class="useFilterCheckbox" {if isset($filter.prefilter)}checked="checked"{/if}>
- predefined filter
+ {'predefined filter'|@translate}
<select name="filter_prefilter">
- <option value="caddie" {if $filter.prefilter eq 'caddie'}selected="selected"{/if}>caddie</option>
- <option value="last import" {if $filter.prefilter eq 'last import'}selected="selected"{/if}>last import</option>
+ <option value="caddie" {if $filter.prefilter eq 'caddie'}selected="selected"{/if}>{'caddie'|@translate}</option>
+ <option value="last import" {if $filter.prefilter eq 'last import'}selected="selected"{/if}>{'last import'|@translate}</option>
{if $ENABLE_SYNCHRONIZATION}
- <option value="with no virtual album" {if $filter.prefilter eq 'with no virtual album'}selected="selected"{/if}>with no virtual album</option>
+ <option value="with no virtual album" {if $filter.prefilter eq 'with no virtual album'}selected="selected"{/if}>{'with no virtual album'|@translate}</option>
{/if}
- <option value="duplicates" {if $filter.prefilter eq 'duplicates'}selected="selected"{/if}>duplicates</option>
+ <option value="duplicates" {if $filter.prefilter eq 'duplicates'}selected="selected"{/if}>{'duplicates'|@translate}</option>
<!-- <option value="with no album">with no album</option> -->
<!-- <option value="with no tag">with no tag</option> -->
</select>
@@ -364,7 +359,7 @@ a.removeFilter:hover {background: url(admin/themes/default/icon/remove_filter_ho
<li id="filter_category" {if !isset($filter.category)}style="display:none"{/if}>
<a href="#" class="removeFilter" title="remove this filter"><span>[x]</span></a>
<input type="checkbox" name="filter_category_use" class="useFilterCheckbox" {if isset($filter.category)}checked="checked"{/if}>
- album
+ {'album'|@translate}
<select style="width:400px" name="filter_category" size="1">
{html_options options=$filter_category_options selected=$filter_category_options_selected}
</select>
@@ -382,18 +377,18 @@ a.removeFilter:hover {background: url(admin/themes/default/icon/remove_filter_ho
<p class="actionButtons" style="">
<select id="addFilter">
- <option value="-1">Add a filter</option>
+ <option value="-1">{'Add a filter'|@translate}</option>
<option disabled="disabled">------------------</option>
- <option value="filter_prefilter">predefined filter</option>
- <option value="filter_category">album</option>
+ <option value="filter_prefilter">{'predefined filter'|@translate}</option>
+ <option value="filter_category">{'album'|@translate}</option>
<option value="filter_level">{'Who can see these photos?'|@translate}</option>
</select>
<!-- <input id="removeFilters" class="submit" type="submit" value="Remove all filters" name="removeFilters"> -->
- <a id="removeFilters" href="">Remove all filters</a>
+ <a id="removeFilters" href="">{'Remove all filters'|@translate}</a>
</p>
<p class="actionButtons" id="applyFilterBlock">
- <input id="applyFilter" class="submit" type="submit" value="Refresh photo set" name="submitFilter">
+ <input id="applyFilter" class="submit" type="submit" value="{'Refresh photo set'|@translate}" name="submitFilter">
</p>
</fieldset>
@@ -405,8 +400,12 @@ a.removeFilter:hover {background: url(admin/themes/default/icon/remove_filter_ho
{if !empty($thumbnails)}
<p id="checkActions">
{'Select:'|@translate}
- <a href="#" id="selectAll">{'All'|@translate}</a>
- (<a href="#" id="selectSet">or the whole set</a>),
+{if $nb_thumbs_set > $nb_thumbs_page}
+ <a href="#" id="selectAll">{'The whole page'|@translate}</a>,
+ <a href="#" id="selectSet">{'The whole set'|@translate}</a>,
+{else}
+ <a href="#" id="selectAll">{'All'|@translate}</a>,
+{/if}
<a href="#" id="selectNone">{'None'|@translate}</a>,
<a href="#" id="selectInvert">{'Invert'|@translate}</a>
@@ -455,44 +454,44 @@ a.removeFilter:hover {background: url(admin/themes/default/icon/remove_filter_ho
&middot; <a href="{$U_DISPLAY}&amp;display=50">50</a>
&middot; <a href="{$U_DISPLAY}&amp;display=100">100</a>
&middot; <a href="{$U_DISPLAY}&amp;display=all">{'all'|@translate}</a>
- thumbnails per page
+ {'thumbnails per page'|@translate}
</div>
</div>
{/if}
{else}
- <div>No photo in the current set.</div>
+ <div>{'No photo in the current set.'|@translate}</div>
{/if}
</fieldset>
<fieldset id="action">
<legend>{'Action'|@translate}</legend>
- <div id="forbidAction"{if count($selection) != 0}style="display:none"{/if}>No photo selected, no action possible.</div>
+ <div id="forbidAction"{if count($selection) != 0}style="display:none"{/if}>{'No photo selected, no action possible.'|@translate}</div>
<div id="permitAction"{if count($selection) == 0}style="display:none"{/if}>
<select name="selectAction">
- <option value="-1">Choose an action</option>
+ <option value="-1">{'Choose an action'|@translate}</option>
<option disabled="disabled">------------------</option>
{if isset($show_delete_form) }
<option value="delete">{'Delete selected photos'|@translate}</option>
{/if}
- <option value="associate">{'associate to category'|@translate}</option>
+ <option value="associate">{'Associate to album'|@translate}</option>
{if !empty($dissociate_options)}
- <option value="dissociate">{'dissociate from category'|@translate}</option>
+ <option value="dissociate">{'Dissociate from album'|@translate}</option>
{/if}
<option value="add_tags">{'add tags'|@translate}</option>
{if !empty($DEL_TAG_SELECTION)}
<option value="del_tags">{'remove tags'|@translate}</option>
{/if}
<option value="author">{'Set author'|@translate}</option>
- <option value="name">{'Set title'|@translate}</option>
+ <option value="title">{'Set title'|@translate}</option>
<option value="date_creation">{'Set creation date'|@translate}</option>
<option value="level">{'Who can see these photos?'|@translate}</option>
{if ($IN_CADDIE)}
<option value="remove_from_caddie">{'Remove from caddie'|@translate}</option>
{else}
- <option value="add_to_caddie">{'Add to caddie'|@translate}</option>
+ <option value="add_to_caddie">{'add to caddie'|@translate}</option>
{/if}
</select>
@@ -529,21 +528,21 @@ a.removeFilter:hover {background: url(admin/themes/default/icon/remove_filter_ho
<!-- author -->
<div id="action_author" class="bulkAction">
- <label><input type="checkbox" name="remove_author"> remove author</label><br>
- {assign var='authorDefaultValue' value='Type here the author name'}
+ <label><input type="checkbox" name="remove_author"> {'remove author'|@translate}</label><br>
+ {assign var='authorDefaultValue' value='Type here the author name'|@translate}
<input type="text" class="large" name="author" value="{$authorDefaultValue}" onfocus="this.value=(this.value=='{$authorDefaultValue}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$authorDefaultValue}' : this.value;">
</div>
- <!-- name -->
- <div id="action_name" class="bulkAction">
- <label><input type="checkbox" name="remove_name"> remove name</label><br>
- {assign var='nameDefaultValue' value='Type here the name name'}
-<input type="text" class="large" name="name" value="{$nameDefaultValue}" onfocus="this.value=(this.value=='{$nameDefaultValue}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$nameDefaultValue}' : this.value;">
+ <!-- title -->
+ <div id="action_title" class="bulkAction">
+ <label><input type="checkbox" name="remove_title"> {'remove title'|@translate}</label><br>
+ {assign var='titleDefaultValue' value='Type here the title'|@translate}
+<input type="text" class="large" name="title" value="{$titleDefaultValue}" onfocus="this.value=(this.value=='{$titleDefaultValue}') ? '' : this.value;" onblur="this.value=(this.value=='') ? '{$titleDefaultValue}' : this.value;">
</div>
<!-- date_creation -->
<div id="action_date_creation" class="bulkAction">
- <label><input type="checkbox" name="remove_date_creation"> remove creation date</label><br>
+ <label><input type="checkbox" name="remove_date_creation"> {'remove creation date'|@translate}</label><br>
<div id="set_date_creation">
<select id="date_creation_day" name="date_creation_day">
<option value="0">--</option>
diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php
index bd2f35503..0faf4db61 100644
--- a/language/en_UK/admin.lang.php
+++ b/language/en_UK/admin.lang.php
@@ -769,4 +769,36 @@ $lang['Keep high definition'] = 'Keep high definition';
$lang['The high definition maximum width must be a number between %d and %d'] = 'The high definition maximum width must be a number between %d and %d';
$lang['The high definition maximum height must be a number between %d and %d'] = 'The high definition maximum height must be a number between %d and %d';
$lang['The high definition image quality must be a number between %d and %d'] = 'The high definition image quality must be a number between %d and %d';
+
+$lang['Batch Manager'] = 'Batch Manager';
+$lang['include child albums'] = 'include child albums';
+$lang['Selection'] = 'Selection';
+$lang['Action'] = 'Action';
+$lang['Set author'] = 'Set author';
+$lang['Set title'] = 'Set title';
+$lang['Set creation date'] = 'Set creation date';
+$lang['Apply action'] = 'Apply action';
+$lang['on the %d selected photos'] = 'on the %d selected photos';
+$lang['%d of %d photos selected'] = '%d of %d photos selected';
+$lang['No photo selected, %d photos in current set'] = 'No photo selected, %d photos in current set';
+$lang['All %d photos are selected'] = 'All %d photos are selected';
+$lang['remove this filter'] = 'remove this filter';
+$lang['predefined filter'] = 'predefined filter';
+$lang['last import'] = 'last import';
+$lang['with no virtual album'] = 'with no virtual album';
+$lang['duplicates'] = 'duplicates';
+$lang['Add a filter'] = 'Add a filter';
+$lang['Remove all filters'] = 'Remove all filters';
+$lang['Refresh photo set'] = 'Refresh photo set';
+$lang['The whole page'] = 'The whole page';
+$lang['The whole set'] = 'The whole set';
+$lang['thumbnails per page'] = 'thumbnails per page';
+$lang['No photo in the current set.'] = 'No photo in the current set.';
+$lang['No photo selected, no action possible.'] = 'No photo selected, no action possible.';
+$lang['Choose an action'] = 'Choose an action';
+$lang['remove author'] = 'remove author';
+$lang['Type here the author name'] = 'Type here the author name';
+$lang['remove title'] = 'remove title';
+$lang['Type here the title'] = 'Type here the title';
+$lang['remove creation date'] = 'remove creation date';
?>
diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php
index 4393ae3eb..8696f9661 100644
--- a/language/fr_FR/admin.lang.php
+++ b/language/fr_FR/admin.lang.php
@@ -774,4 +774,36 @@ $lang['Keep high definition'] = 'Conserver la haute définition';
$lang['The high definition maximum width must be a number between %d and %d'] = 'La largeur maximum pour la haute définition doit être un chiffre compris entre %d et %d';
$lang['The high definition maximum height must be a number between %d and %d'] = 'La hauteur maximum pour la haute définition doit être un chiffre compris entre %d et %d';
$lang['The high definition image quality must be a number between %d and %d'] = 'La qualité d\'image pour la haute définition doit être un chiffre compris entre %d et %d';
+
+$lang['Batch Manager'] = 'Gestion par lot';
+$lang['include child albums'] = 'inclure les sous albums';
+$lang['Selection'] = 'Sélection';
+$lang['Action'] = 'Action';
+$lang['Set author'] = 'Définir l\'auteur';
+$lang['Set title'] = 'Définir le titre';
+$lang['Set creation date'] = 'Définir la date de création';
+$lang['Apply action'] = 'Appliquer l\'action';
+$lang['on the %d selected photos'] = 'sur les %d photos sélectionnées';
+$lang['%d of %d photos selected'] = '%d photos sur %d sont sélectionnées';
+$lang['No photo selected, %d photos in current set'] = 'Aucune photo sélectionnée parmi les %d photos du lot';
+$lang['All %d photos are selected'] = 'Toute les %d photos du lot sont sélectionnées';
+$lang['remove this filter'] = 'supprimer ce filtre';
+$lang['predefined filter'] = 'filtre prédéfini';
+$lang['last import'] = 'dernier import';
+$lang['with no virtual album'] = 'sans album virtuel';
+$lang['duplicates'] = 'doublons';
+$lang['Add a filter'] = 'Ajouter un filtre';
+$lang['Remove all filters'] = 'Supprimer tous les filtres';
+$lang['Refresh photo set'] = 'Rafraîchir le lot de photos';
+$lang['The whole page'] = 'Toutes la page';
+$lang['The whole set'] = 'Tout le lot';
+$lang['thumbnails per page'] = 'miniatures par page';
+$lang['No photo in the current set.'] = 'Aucune photo dans le lot.';
+$lang['No photo selected, no action possible.'] = 'Aucune photo sélectionnée, aucune action possible.';
+$lang['Choose an action'] = 'Choisir une action';
+$lang['remove author'] = 'supprimer l\'auteur';
+$lang['Type here the author name'] = 'Entrez ici le nom de l\'auteur';
+$lang['remove title'] = 'supprimer le titre';
+$lang['Type here the title'] = 'Entrez ici le titre';
+$lang['remove creation date'] = 'supprimer la date de création';
?>