Skip to content

Commit

Permalink
feature 1616: rename "category" into "album" (4th commit; almost there)
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@6993 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rvelices committed Sep 21, 2010
1 parent b472955 commit 5ff1716
Show file tree
Hide file tree
Showing 73 changed files with 564 additions and 611 deletions.
2 changes: 1 addition & 1 deletion admin/cat_list.php
Expand Up @@ -190,7 +190,7 @@ function save_categories_order($categories)

array_push(
$page['infos'],
l10n('Categories automatically sorted')
l10n('Albums automatically sorted')
);
}
}
Expand Down
6 changes: 3 additions & 3 deletions admin/cat_options.php
Expand Up @@ -211,7 +211,7 @@
;';
$template->assign(
array(
'L_SECTION' => l10n('Select uploadable categories'),
'L_SECTION' => l10n('Select uploadable albums'),
'L_CAT_OPTIONS_TRUE' => l10n('Authorized'),
'L_CAT_OPTIONS_FALSE' => l10n('Forbidden'),
)
Expand All @@ -232,7 +232,7 @@
;';
$template->assign(
array(
'L_SECTION' => l10n('Authorize users to add comments on selected categories'),
'L_SECTION' => l10n('Authorize users to add comments on selected albums'),
'L_CAT_OPTIONS_TRUE' => l10n('Authorized'),
'L_CAT_OPTIONS_FALSE' => l10n('Forbidden'),
)
Expand Down Expand Up @@ -274,7 +274,7 @@
;';
$template->assign(
array(
'L_SECTION' => l10n('Manage authorizations for selected categories'),
'L_SECTION' => l10n('Manage authorizations for selected albums'),
'L_CAT_OPTIONS_TRUE' => l10n('Public'),
'L_CAT_OPTIONS_FALSE' => l10n('Private'),
)
Expand Down
2 changes: 1 addition & 1 deletion admin/element_set.php
Expand Up @@ -166,7 +166,7 @@
}
else if ('duplicates' == $_GET['cat'])
{
$page['title'] = l10n('Files with same name in more than one physical category');
$page['title'] = l10n('Files with same name in more than one physical album');
$template->assign(array('U_ACTIVE_MENU' => 5 ));

// we are searching related elements twice or more to physical categories
Expand Down
2 changes: 1 addition & 1 deletion admin/include/functions.php
Expand Up @@ -1062,7 +1062,7 @@ function move_categories($category_ids, $new_parent = -1)
{
array_push(
$page['errors'],
l10n('You cannot move a album in its own sub album')
l10n('You cannot move an album in its own sub album')
);
return;
}
Expand Down
6 changes: 3 additions & 3 deletions admin/include/functions_permalinks.php
Expand Up @@ -87,7 +87,7 @@ function delete_cat_permalink( $cat_id, $save )
{
$page['errors'][] =
sprintf(
l10n('Permalink %s has been previously used by category %s. Delete from the permalink history first'),
l10n('Permalink %s has been previously used by album %s. Delete from the permalink history first'),
$permalink, $old_cat_id
);
return false;
Expand Down Expand Up @@ -156,7 +156,7 @@ function set_cat_permalink( $cat_id, $permalink, $save )
{
$page['errors'][] =
sprintf(
l10n('Permalink %s is already used by category %s'),
l10n('Permalink %s is already used by album %s'),
$permalink, $existing_cat_id
);
return false;
Expand All @@ -169,7 +169,7 @@ function set_cat_permalink( $cat_id, $permalink, $save )
{
$page['errors'][] =
sprintf(
l10n('Permalink %s has been previously used by category %s. Delete from the permalink history first'),
l10n('Permalink %s has been previously used by album %s. Delete from the permalink history first'),
$permalink, $old_cat_id
);
return false;
Expand Down
2 changes: 1 addition & 1 deletion admin/maintenance.php
Expand Up @@ -161,7 +161,7 @@
array_push(
$advanced_features,
array(
'CAPTION' => l10n('Files with same name in more than one physical category'),
'CAPTION' => l10n('Files with same name in more than one physical album'),
'URL' => get_root_url().'admin.php?page=element_set&cat=duplicates'
)
);
Expand Down
6 changes: 3 additions & 3 deletions admin/photos_add_direct.php
Expand Up @@ -112,7 +112,7 @@
array_push(
$page['infos'],
sprintf(
l10n('Category "%s" has been added'),
l10n('Album "%s" has been added'),
'<em>'.$category_name.'</em>'
)
);
Expand Down Expand Up @@ -346,7 +346,7 @@
array_push(
$page['infos'],
sprintf(
l10n('Category "%s" now contains %d photos'),
l10n('Album "%s" now contains %d photos'),
'<em>'.$category_name.'</em>',
$count
)
Expand Down Expand Up @@ -457,7 +457,7 @@
}
}

// existing category
// existing album
$query = '
SELECT id,name,uppercats,global_rank
FROM '.CATEGORIES_TABLE.'
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/template/admin.tpl
Expand Up @@ -31,7 +31,7 @@ jQuery().ready(function(){ldelim}
</dd>
</dl>
<dl>
<dt class="rdion"><span>{'Categories'|@translate}&nbsp;</span></dt>
<dt class="rdion"><span>{'Albums'|@translate}&nbsp;</span></dt>
<dd>
<ul>
<li><a href="{$U_CATEGORIES}">{'Manage'|@translate}</a></li>
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/template/cat_list.tpl
Expand Up @@ -28,7 +28,7 @@
});
</script>

<h2>{'Categories management'|@translate}</h2>
<h2>{'Album list management'|@translate}</h2>

<h3>{$CATEGORIES_NAV}</h3>

Expand Down Expand Up @@ -70,7 +70,7 @@
{if cat_admin_access($category.ID)}
<li><a href="{$category.U_JUMPTO}" title="{'jump to album'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_jump-to.png" class="button" alt="{'jump to album'|@translate}"></a></li>
{/if}
<li><a href="{$category.U_EDIT}" title="{'edit category informations'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"></a></li>
<li><a href="{$category.U_EDIT}" title="{'edit album'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'edit'|@translate}"></a></li>
{if isset($category.U_MANAGE_ELEMENTS) }
<li><a href="{$category.U_MANAGE_ELEMENTS}" title="{'manage album elements'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_elements.png" class="button" alt="{'elements'|@translate}"></a></li>
{/if}
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/template/cat_modify.tpl
Expand Up @@ -3,7 +3,7 @@
{include file='include/resize.inc.tpl'}

<div class="titrePage">
<h2>{'Edit a category'|@translate}</h2>
<h2>{'Edit album'|@translate}</h2>
</div>

<h3>{$CATEGORIES_NAV}</h3>
Expand Down Expand Up @@ -183,7 +183,7 @@

<table>
<tr>
<td>{'Categories'|@translate}</td>
<td>{'Albums'|@translate}</td>
<td>
<select class="categoryList" name="destinations[]" multiple="multiple" size="5">
{html_options options=$category_destination_options }
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/template/configuration.tpl
Expand Up @@ -356,7 +356,7 @@

<li>
<label>
<span class="property">{'Categories'|@translate}</span>
<span class="property">{'Albums'|@translate}</span>
<input type="checkbox" name="picture_informations[categories]" {if ($display.picture_informations.categories)}checked="checked"{/if}>
</label>
</li>
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/template/group_perm.tpl
Expand Up @@ -5,4 +5,4 @@
{$DOUBLE_SELECT}
</form>

<p>{'Only private categories are listed'|@translate}</p>
<p>{'Only private albums are listed'|@translate}</p>
2 changes: 1 addition & 1 deletion admin/themes/default/template/history.tpl
Expand Up @@ -112,7 +112,7 @@
<th>{'Element'|@translate}</th>
<th>{'Element type'|@translate}</th>
<th>{'Section'|@translate}</th>
<th>{'Category'|@translate}</th>
<th>{'Album'|@translate}</th>
<th>{'Tags'|@translate}</th>
</tr>
{if !empty($search_results) }
Expand Down
6 changes: 3 additions & 3 deletions admin/themes/default/template/permalinks.tpl
Expand Up @@ -4,7 +4,7 @@

<form method="post" action="">
<fieldset><legend>{'Add/delete a permalink'|@translate}</legend>
<label>{'Category'|@translate}:
<label>{'Album'|@translate}:
<select name="cat_id">
<option value="0">------</option>
{html_options options=$categories selected=$categories_selected}
Expand All @@ -29,7 +29,7 @@
<table class="table2">
<tr class="throw">
<td>Id {$SORT_ID}</td>
<td>{'Category'|@translate} {$SORT_NAME}</td>
<td>{'Album'|@translate} {$SORT_NAME}</td>
<td>{'Permalink'|@translate} {$SORT_PERMALINK}</td>
</tr>
{foreach from=$permalinks item=permalink name="permalink_loop"}
Expand All @@ -45,7 +45,7 @@
<table class="table2">
<tr class="throw">
<td>Id {$SORT_OLD_CAT_ID}</td>
<td>{'Category'|@translate}</td>
<td>{'Album'|@translate}</td>
<td>{'Permalink'|@translate} {$SORT_OLD_PERMALINK}</td>
<td>{'Deleted on'|@translate} {$SORT_OLD_DATE_DELETED}</td>
<td>{'Last hit'|@translate} {$SORT_OLD_LAST_HIT}</td>
Expand Down
6 changes: 3 additions & 3 deletions admin/themes/default/template/photos_add_direct.tpl
Expand Up @@ -280,13 +280,13 @@ var sizeLimit = {$upload_max_filesize};

<form id="uploadForm" enctype="multipart/form-data" method="post" action="{$form_action}" class="properties">
<fieldset>
<legend>{'Drop into category'|@translate}</legend>
<legend>{'Drop into album'|@translate}</legend>
{if $upload_mode eq 'multiple'}
<input name="upload_id" value="{$upload_id}" type="hidden">
{/if}

<label><input type="radio" name="category_type" value="existing"> {'existing category'|@translate}</label>
<label><input type="radio" name="category_type" value="new" checked="checked"> {'create a new category'|@translate}</label>
<label><input type="radio" name="category_type" value="existing"> {'existing album'|@translate}</label>
<label><input type="radio" name="category_type" value="new" checked="checked"> {'create a new album'|@translate}</label>

<div id="category_type_existing" style="display:none" class="category_selection">
<select class="categoryDropDown" name="category">
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/template/picture_modify.tpl
Expand Up @@ -173,7 +173,7 @@

<form id="associations" method="post" action="{$F_ACTION}#associations">
<fieldset>
<legend>{'Association to categories'|@translate}</legend>
<legend>{'Linked albums'|@translate}</legend>

<table class="doubleSelect">
<tr>
Expand All @@ -200,7 +200,7 @@

<form id="representation" method="post" action="{$F_ACTION}#representation">
<fieldset>
<legend>{'Representation of categories'|@translate}</legend>
<legend>{'Representation of albums'|@translate}</legend>

<table class="doubleSelect">
<tr>
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/template/site_manager.tpl
Expand Up @@ -39,7 +39,7 @@
</tr>
{foreach from=$sites item=site name=site}
<tr style="text-align:left" class="{if $smarty.foreach.site.index is odd}row1{else}row2{/if}"><td>
<a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Categories'|@translate}, {$pwg->l10n_dec('%d image','%d images',$site.IMAGES)})
<a href="{$site.NAME}">{$site.NAME}</a><br>({$site.TYPE}, {$site.CATEGORIES} {'Albums'|@translate}, {$pwg->l10n_dec('%d image','%d images',$site.IMAGES)})
</td><td>
[<a href="{$site.U_SYNCHRONIZE}" title="{'update the database from files'|@translate}">{'synchronize'|@translate}</a>]
{if isset($site.U_DELETE)}
Expand Down
8 changes: 4 additions & 4 deletions admin/themes/default/template/site_update.tpl
Expand Up @@ -8,9 +8,9 @@
{if isset($update_result)}
<h3>{$L_RESULT_UPDATE}</h3>
<ul>
<li class="update_summary_new">{$update_result.NB_NEW_CATEGORIES} {'categories added in the database'|@translate}</li>
<li class="update_summary_new">{$update_result.NB_NEW_CATEGORIES} {'albums added in the database'|@translate}</li>
<li class="update_summary_new">{$update_result.NB_NEW_ELEMENTS} {'elements added in the database'|@translate}</li>
<li class="update_summary_del">{$update_result.NB_DEL_CATEGORIES} {'categories deleted in the database'|@translate}</li>
<li class="update_summary_del">{$update_result.NB_DEL_CATEGORIES} {'albums deleted in the database'|@translate}</li>
<li class="update_summary_del">{$update_result.NB_DEL_ELEMENTS} {'elements deleted in the database'|@translate}</li>
<li>{$update_result.NB_UPD_ELEMENTS} {'elements updated in the database'|@translate}</li>
<li class="update_summary_err">{$update_result.NB_ERRORS} {'errors during synchronization'|@translate}</li>
Expand Down Expand Up @@ -67,7 +67,7 @@

<li><label><input type="radio" name="sync" value="files" {if 'files'==$introduction.sync}checked="checked"{/if}> {'directories + files'|@translate}</label>
<ul style="padding-left:3em">
<li><label><input type="checkbox" name="display_info" value="1" {if $introduction.display_info}checked="checked"{/if}> {'display maximum informations (added categories and elements, deleted categories and elements)'|@translate}</label></li>
<li><label><input type="checkbox" name="display_info" value="1" {if $introduction.display_info}checked="checked"{/if}> {'display maximum informations (added albums and elements, deleted albums and elements)'|@translate}</label></li>
<li><label><input type="checkbox" name="add_to_caddie" value="1" {if $introduction.add_to_caddie}checked="checked"{/if}> {'add new elements to caddie'|@translate}</label></li>
<li><label>{'Who can see these photos?'|@translate} <select name="privacy_level">{html_options options=$introduction.privacy_level_options selected=$introduction.privacy_level_selected}</select></label></li>
</ul>
Expand All @@ -94,7 +94,7 @@
</fieldset>

<fieldset id="catSubset">
<legend>{'reduce to single existing categories'|@translate}</legend>
<legend>{'reduce to single existing albums'|@translate}</legend>
<ul>
<li>
<select class="categoryList" name="cat" size="10">
Expand Down
2 changes: 1 addition & 1 deletion admin/themes/default/template/upload.tpl
Expand Up @@ -7,7 +7,7 @@
<form action="{$F_ACTION}" method="post" id="waiting">
<table style="width:99%;" >
<tr class="throw">
<td style="width:20%;">{'Category'|@translate}</td>
<td style="width:20%;">{'Album'|@translate}</td>
<td style="width:20%;">{'Date'|@translate}</td>
<td style="width:20%;">{'File'|@translate}</td>
<td style="width:20%;">{'Thumbnail'|@translate}</td>
Expand Down
4 changes: 2 additions & 2 deletions admin/themes/default/template/user_perm.tpl
Expand Up @@ -2,7 +2,7 @@

{if isset($categories_because_of_groups) }
<fieldset>
<legend>{'Categories authorized thanks to group associations'|@translate}</legend>
<legend>{'Albums authorized thanks to group associations'|@translate}</legend>

<ul>
{foreach from=$categories_because_of_groups item=cat }
Expand All @@ -14,7 +14,7 @@


<fieldset>
<legend>{'Other private categories'|@translate}</legend>
<legend>{'Other private albums'|@translate}</legend>

<form method="post" action="{$F_ACTION}">
{$DOUBLE_SELECT}
Expand Down
4 changes: 2 additions & 2 deletions include/functions_html.inc.php
Expand Up @@ -520,11 +520,11 @@ function register_default_menubar_blocks( $menu_ref_arr )
if ($menu->get_id() != 'menubar')
return;
$menu->register_block( new RegisteredBlock( 'mbLinks', 'Links', 'piwigo'));
$menu->register_block( new RegisteredBlock( 'mbCategories', 'Categories', 'piwigo'));
$menu->register_block( new RegisteredBlock( 'mbCategories', 'Albums', 'piwigo'));
$menu->register_block( new RegisteredBlock( 'mbTags', 'Related tags', 'piwigo'));
$menu->register_block( new RegisteredBlock( 'mbSpecials', 'Specials', 'piwigo'));
$menu->register_block( new RegisteredBlock( 'mbMenu', 'Menu', 'piwigo'));
$menu->register_block( new RegisteredBlock( 'mbIdentification', 'Identification', 'piwigo') );
}

?>
?>

0 comments on commit 5ff1716

Please sign in to comment.