Changeset 25005
- Timestamp:
- Oct 19, 2013, 1:04:11 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 43 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/album_notification.php
r19703 r25005 116 116 array_push( 117 117 $page['infos'], 118 sprintf(119 l10n('An information email was sent to group "%s"'),118 l10n( 119 'An information email was sent to group "%s"', 120 120 $group_name 121 121 ) -
trunk/admin/batch_manager_global.php
r24834 r25005 416 416 { 417 417 if ($_POST['regenerateSuccess'] != '0') 418 array_push($page['infos'], sprintf(l10n('%s photos have been regenerated'), $_POST['regenerateSuccess']));418 array_push($page['infos'], l10n('%s photos have been regenerated', $_POST['regenerateSuccess'])); 419 419 420 420 if ($_POST['regenerateError'] != '0') 421 array_push($page['warnings'], sprintf(l10n('%s photos can not be regenerated'), $_POST['regenerateError']));421 array_push($page['warnings'], l10n('%s photos can not be regenerated', $_POST['regenerateError'])); 422 422 423 423 } -
trunk/admin/cat_modify.php
r24834 r25005 269 269 if ($min_date == $max_date) 270 270 { 271 $intro = sprintf(272 l10n('This album contains %d photos, added on %s.'),271 $intro = l10n( 272 'This album contains %d photos, added on %s.', 273 273 $image_count, 274 274 format_date($min_date) … … 277 277 else 278 278 { 279 $intro = sprintf(280 l10n('This album contains %d photos, added between %s and %s.'),279 $intro = l10n( 280 'This album contains %d photos, added between %s and %s.', 281 281 $image_count, 282 282 format_date($min_date), … … 290 290 } 291 291 292 $intro.= '<br>'. sprintf(l10n('Numeric identifier : %d'), $category['id']);292 $intro.= '<br>'.l10n('Numeric identifier : %d', $category['id']); 293 293 294 294 $template->assign('INTRO', $intro); -
trunk/admin/group_list.php
r20740 r25005 73 73 pwg_query($query); 74 74 75 array_push( 76 $page['infos'], 77 sprintf(l10n('group "%s" added'), $_POST['groupname']) 78 ); 75 $page['infos'][] = l10n('group "%s" added', $_POST['groupname']); 79 76 } 80 77 } … … 154 151 pwg_query($query); 155 152 156 array_push( 157 $page['infos'], 158 sprintf(l10n('group "%s" deleted'), $groupname) 159 ); 153 $page['infos'][] = l10n('group "%s" deleted', $groupname); 160 154 } 161 155 } … … 237 231 mass_inserts(USER_GROUP_TABLE, array('user_id','group_id'), $usr_grp); 238 232 mass_inserts(GROUP_ACCESS_TABLE, array('group_id','cat_id'), $grp_access); 239 array_push( 240 $page['infos'], 241 sprintf(l10n('group "%s" added'), $_POST['merge']) 242 ); 233 234 $page['infos'][] = l10n('group "%s" added', $_POST['merge']); 243 235 } 244 236 … … 314 306 mass_inserts(USER_GROUP_TABLE, array('user_id','group_id'), $usr_grp); 315 307 316 array_push( 317 $page['infos'], 318 sprintf(l10n('group "%s" added'), $_POST['duplicate_'.$group.'']) 319 ); 308 $page['infos'][] = l10n('group "%s" added', $_POST['duplicate_'.$group.'']); 320 309 } 321 310 } … … 345 334 pwg_query($query); 346 335 347 array_push( 348 $page['infos'], 349 sprintf(l10n('group "%s" updated'), $groupname) 350 ); 336 $page['infos'][] = l10n('group "%s" updated', $groupname); 351 337 } 352 338 } -
trunk/admin/group_perm.php
r19703 r25005 132 132 array( 133 133 'TITLE' => 134 sprintf( 135 l10n('Manage permissions for group "%s"'), 136 get_groupname($page['group'] 137 ) 134 l10n( 135 'Manage permissions for group "%s"', 136 get_groupname($page['group']) 138 137 ), 139 138 'L_CAT_OPTIONS_TRUE'=>l10n('Authorized'), -
trunk/admin/history.php
r23185 r25005 534 534 'MEMBERS' => sprintf( 535 535 l10n_dec('%d member', '%d members', $summary['nb_members']).': %s', 536 implode( 537 ', ', 538 $member_strings 539 ) 536 implode(', ', $member_strings) 540 537 ), 541 538 'GUESTS' => l10n_dec( -
trunk/admin/intro.php
r20462 r25005 213 213 'DB_USERS' => l10n_dec('%d user', '%d users', $nb_users), 214 214 'DB_GROUPS' => l10n_dec('%d group', '%d groups', $nb_groups), 215 'DB_RATES' => ($nb_rates == 0) ? l10n('no rate') : sprintf(l10n('%d rates'), $nb_rates),215 'DB_RATES' => ($nb_rates == 0) ? l10n('no rate') : l10n('%d rates', $nb_rates), 216 216 'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade', 217 217 'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo', … … 244 244 array( 245 245 'URL' => PHPWG_ROOT_PATH.'admin.php?page=comments', 246 'INFO' => sprintf(l10n('%d waiting for validation'), $nb_comments)246 'INFO' => l10n('%d waiting for validation', $nb_comments) 247 247 ) 248 248 ); … … 262 262 array( 263 263 'DB_DATE' => 264 sprintf( 265 l10n('first photo added on %s'), 266 format_date($first_date) 267 ) 264 l10n('first photo added on %s', format_date($first_date)) 268 265 ) 269 266 ); -
trunk/admin/languages_new.php
r13962 r25005 43 43 if (!is_writable($languages_dir)) 44 44 { 45 array_push( 46 $page['errors'], 47 sprintf( 48 l10n('Add write access to the "%s" directory'), 49 'language' 50 ) 51 ); 45 $page['errors'][] = l10n('Add write access to the "%s" directory', 'language'); 52 46 } 53 47 … … 100 94 array_push( 101 95 $page['errors'], 102 sprintf(l10n('An error occured during extraction (%s).'), htmlspecialchars($_GET['installstatus']))96 l10n('An error occured during extraction (%s).', htmlspecialchars($_GET['installstatus'])) 103 97 ); 104 98 } -
trunk/admin/notification_by_mail.php
r19703 r25005 174 174 ( 175 175 $page['infos'], 176 sprintf(177 l10n('User %s [%s] added.'),176 l10n( 177 'User %s [%s] added.', 178 178 stripslashes($nbm_user['username']), 179 179 get_email_address_as_display_text($nbm_user['mail_address']) -
trunk/admin/picture_modify.php
r24946 r25005 307 307 308 308 $intro_vars = array( 309 'file' => sprintf(l10n('Original file : %s'), $row['file']),310 'add_date' => sprintf(l10n('Posted %s on %s'), time_since($row['date_available'], 'year'), format_date($row['date_available'], false, false)),311 'added_by' => sprintf(l10n('Added by %s'), $row['added_by']),309 'file' => l10n('Original file : %s', $row['file']), 310 'add_date' => l10n('Posted %s on %s', time_since($row['date_available'], 'year'), format_date($row['date_available'], false, false)), 311 'added_by' => l10n('Added by %s', $row['added_by']), 312 312 'size' => $row['width'].'×'.$row['height'].' pixels, '.sprintf('%.2f', $row['filesize']/1024).'MB', 313 'stats' => sprintf(l10n('Visited %d times'), $row['hit']),314 'id' => sprintf(l10n('Numeric identifier : %d'), $row['id']),313 'stats' => l10n('Visited %d times', $row['hit']), 314 'id' => l10n('Numeric identifier : %d', $row['id']), 315 315 ); 316 316 -
trunk/admin/plugins_new.php
r19703 r25005 77 77 default: 78 78 array_push($page['errors'], 79 sprintf(l10n('An error occured during extraction (%s).'), htmlspecialchars($_GET['installstatus'])),79 l10n('An error occured during extraction (%s).', htmlspecialchars($_GET['installstatus'])), 80 80 l10n('Please check "plugins" folder and sub-folders permissions (CHMOD).')); 81 81 } -
trunk/admin/tags.php
r24834 r25005 72 72 array_push( 73 73 $page['errors'], 74 sprintf(75 l10n('Tag "%s" already exists'),74 l10n( 75 'Tag "%s" already exists', 76 76 $tag_name 77 77 ) … … 137 137 array_push( 138 138 $page['errors'], 139 sprintf(140 l10n('Tag "%s" already exists'),139 l10n( 140 'Tag "%s" already exists', 141 141 $tag_name 142 142 ) … … 191 191 array_push( 192 192 $page['infos'], 193 sprintf(194 l10n('Tag "%s" is now a duplicate of "%s"'),193 l10n( 194 'Tag "%s" is now a duplicate of "%s"', 195 195 stripslashes($tag_name), 196 196 $current_name_of[$tag_id] … … 301 301 array_push( 302 302 $page['infos'], 303 sprintf(304 l10n('Tags <em>%s</em> merged into tag <em>%s</em>'),303 l10n( 304 'Tags <em>%s</em> merged into tag <em>%s</em>', 305 305 implode(', ', $tags_deleted), 306 306 $name_of_tag[$destination_tag_id] … … 381 381 array_push( 382 382 $page['infos'], 383 sprintf(384 l10n('Tag "%s" was added'),383 l10n( 384 'Tag "%s" was added', 385 385 stripslashes($tag_name) 386 386 ) … … 391 391 array_push( 392 392 $page['errors'], 393 sprintf(394 l10n('Tag "%s" already exists'),393 l10n( 394 'Tag "%s" already exists', 395 395 stripslashes($tag_name) 396 396 ) -
trunk/admin/themes/default/template/batch_manager_global.tpl
r23526 r25005 678 678 679 679 <blockquote> 680 {'Width'|@translate} <span id="filter_dimension_width_info">{'between %d and %d pixels'|@translate |sprintf:$dimensions.selected.min_width:$dimensions.selected.max_width}</span>680 {'Width'|@translate} <span id="filter_dimension_width_info">{'between %d and %d pixels'|@translate:$dimensions.selected.min_width:$dimensions.selected.max_width}</span> 681 681 | <a class="dimensions-choice" data-type="width" data-min="{$dimensions.bounds.min_width}" data-max="{$dimensions.bounds.max_width}">{'Reset'|@translate}</a> 682 682 <div id="filter_dimension_width_slider"></div> 683 683 684 {'Height'|@translate} <span id="filter_dimension_height_info">{'between %d and %d pixels'|@translate |sprintf:$dimensions.selected.min_height:$dimensions.selected.max_height}</span>684 {'Height'|@translate} <span id="filter_dimension_height_info">{'between %d and %d pixels'|@translate:$dimensions.selected.min_height:$dimensions.selected.max_height}</span> 685 685 | <a class="dimensions-choice" data-type="height" data-min="{$dimensions.bounds.min_height}" data-max="{$dimensions.bounds.max_height}">{'Reset'|@translate}</a> 686 686 <div id="filter_dimension_height_slider"></div> 687 687 688 {'Ratio'|@translate} ({'Width'|@translate}/{'Height'|@translate}) <span id="filter_dimension_ratio_info">{'between %.2f and %.2f'|@translate |sprintf:$dimensions.selected.min_ratio:$dimensions.selected.max_ratio}</span>688 {'Ratio'|@translate} ({'Width'|@translate}/{'Height'|@translate}) <span id="filter_dimension_ratio_info">{'between %.2f and %.2f'|@translate:$dimensions.selected.min_ratio:$dimensions.selected.max_ratio}</span> 689 689 {if isset($dimensions.ratio_portrait)} 690 690 | <a class="dimensions-choice" data-type="ratio" data-min="{$dimensions.ratio_portrait.min}" data-max="{$dimensions.ratio_portrait.max}">{'Portrait'|@translate}</a> -
trunk/admin/themes/default/template/cat_perm.tpl
r23430 r25005 77 77 {if isset($nb_users_granted_indirect)} 78 78 <p> 79 {'%u users have automatic permission because they belong to a granted group.'|@translate |@sprintf:$nb_users_granted_indirect}79 {'%u users have automatic permission because they belong to a granted group.'|@translate:$nb_users_granted_indirect} 80 80 <a href="#" id="indirectPermissionsDetailsHide" style="display:none">{'hide details'|@translate}</a> 81 81 <a href="#" id="indirectPermissionsDetailsShow">{'show details'|@translate}</a> -
trunk/admin/themes/default/template/configuration.tpl
r23643 r25005 611 611 <label> 612 612 <input type="checkbox" name="menubar_filter_icon" {if ($display.menubar_filter_icon)}checked="checked"{/if}> 613 {'Activate icon "%s"'|@translate |@sprintf:('display only recently posted photos'|@translate|@ucfirst)}613 {'Activate icon "%s"'|@translate:('display only recently posted photos'|@translate|@ucfirst)} 614 614 </label> 615 615 </li> … … 625 625 <label> 626 626 <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}> 627 {'Activate icon "%s"'|@translate |@sprintf:('Sort order'|@translate)}627 {'Activate icon "%s"'|@translate:('Sort order'|@translate)} 628 628 </label> 629 629 </li> … … 632 632 <label> 633 633 <input type="checkbox" name="index_flat_icon" {if ($display.index_flat_icon)}checked="checked"{/if}> 634 {'Activate icon "%s"'|@translate |@sprintf:('display all photos in all sub-albums'|@translate|@ucfirst)}634 {'Activate icon "%s"'|@translate:('display all photos in all sub-albums'|@translate|@ucfirst)} 635 635 </label> 636 636 </li> … … 639 639 <label> 640 640 <input type="checkbox" name="index_posted_date_icon" {if ($display.index_posted_date_icon)}checked="checked"{/if}> 641 {'Activate icon "%s"'|@translate |@sprintf:('display a calendar by posted date'|@translate|@ucfirst)}641 {'Activate icon "%s"'|@translate:('display a calendar by posted date'|@translate|@ucfirst)} 642 642 </label> 643 643 </li> … … 646 646 <label> 647 647 <input type="checkbox" name="index_created_date_icon" {if ($display.index_created_date_icon)}checked="checked"{/if}> 648 {'Activate icon "%s"'|@translate |@sprintf:('display a calendar by creation date'|@translate|@ucfirst)}648 {'Activate icon "%s"'|@translate:('display a calendar by creation date'|@translate|@ucfirst)} 649 649 </label> 650 650 </li> … … 653 653 <label> 654 654 <input type="checkbox" name="index_slideshow_icon" {if ($display.index_slideshow_icon)}checked="checked"{/if}> 655 {'Activate icon "%s"'|@translate |@sprintf:('slideshow'|@translate|@ucfirst)}655 {'Activate icon "%s"'|@translate:('slideshow'|@translate|@ucfirst)} 656 656 </label> 657 657 </li> … … 672 672 <label> 673 673 <input type="checkbox" name="picture_slideshow_icon" {if ($display.picture_slideshow_icon)}checked="checked"{/if}> 674 {'Activate icon "%s"'|@translate |@sprintf:('slideshow'|@translate|@ucfirst)}674 {'Activate icon "%s"'|@translate:('slideshow'|@translate|@ucfirst)} 675 675 </label> 676 676 </li> … … 679 679 <label> 680 680 <input type="checkbox" name="picture_metadata_icon" {if ($display.picture_metadata_icon)}checked="checked"{/if}> 681 {'Activate icon "%s"'|@translate |@sprintf:('Show file metadata'|@translate)}681 {'Activate icon "%s"'|@translate:('Show file metadata'|@translate)} 682 682 </label> 683 683 </li> … … 686 686 <label> 687 687 <input type="checkbox" name="picture_download_icon" {if ($display.picture_download_icon)}checked="checked"{/if}> 688 {'Activate icon "%s"'|@translate |@sprintf:('Download this file'|@translate|@ucfirst)}688 {'Activate icon "%s"'|@translate:('Download this file'|@translate|@ucfirst)} 689 689 </label> 690 690 </li> … … 693 693 <label> 694 694 <input type="checkbox" name="picture_favorite_icon" {if ($display.picture_favorite_icon)}checked="checked"{/if}> 695 {'Activate icon "%s"'|@translate |@sprintf:('add this photo to your favorites'|@translate|@ucfirst)}695 {'Activate icon "%s"'|@translate:('add this photo to your favorites'|@translate|@ucfirst)} 696 696 </label> 697 697 </li> -
trunk/admin/themes/default/template/install.tpl
r23212 r25005 280 280 <label> 281 281 <input type="checkbox" name="newsletter_subscribe"{if $F_NEWSLETTER_SUBSCRIBE} checked="checked"{/if}> 282 <span class="cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate |@sprintf:$EMAIL}</span>282 <span class="cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate:$EMAIL}</span> 283 283 </label> 284 284 <br> -
trunk/admin/themes/default/template/intro.tpl
r24836 r25005 43 43 <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li> 44 44 {if isset($SUBSCRIBE_BASE_URL)} 45 <li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" class="externalLink cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate |@sprintf:$EMAIL}</a></li>45 <li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" class="externalLink cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate:$EMAIL}</a></li> 46 46 {/if} 47 47 </ul> -
trunk/admin/themes/default/template/photos_add_direct.tpl
r24980 r25005 291 291 <legend>{'Select files'|@translate}</legend> 292 292 293 {if isset($original_resize_maxheight)}<p class="uploadInfo">{'The picture dimensions will be reduced to %dx%d pixels.'|@translate |@sprintf:$original_resize_maxwidth:$original_resize_maxheight}</p>{/if}293 {if isset($original_resize_maxheight)}<p class="uploadInfo">{'The picture dimensions will be reduced to %dx%d pixels.'|@translate:$original_resize_maxwidth:$original_resize_maxheight}</p>{/if} 294 294 295 295 <p id="uploadWarningsSummary">{$upload_max_filesize_shorthand}B. {$upload_file_types}. {if isset($max_upload_resolution)}{$max_upload_resolution}Mpx{/if} <a class="icon-info-circled-1 showInfo" title="{'Learn more'|@translate}"></a></p> 296 296 297 297 <p id="uploadWarnings"> 298 {'Maximum file size: %sB.'|@translate |@sprintf:$upload_max_filesize_shorthand}299 {'Allowed file types: %s.'|@translate |@sprintf:$upload_file_types}298 {'Maximum file size: %sB.'|@translate:$upload_max_filesize_shorthand} 299 {'Allowed file types: %s.'|@translate:$upload_file_types} 300 300 {if isset($max_upload_resolution)} 301 {'Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).'|@translate |@sprintf:$max_upload_resolution:$max_upload_width:$max_upload_height}301 {'Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).'|@translate:$max_upload_resolution:$max_upload_width:$max_upload_height} 302 302 {/if} 303 303 </p> … … 311 311 </div> 312 312 313 <p id="uploadModeInfos">{'You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'|@translate |@sprintf:$switch_url}</p>313 <p id="uploadModeInfos">{'You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'|@translate:$switch_url}</p> 314 314 315 315 {elseif $upload_mode eq 'multiple'} … … 318 318 <div id="fileQueue" style="display:none"></div> 319 319 320 <p id="uploadModeInfos">{'You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'|@translate |@sprintf:$switch_url}</p>320 <p id="uploadModeInfos">{'You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'|@translate:$switch_url}</p> 321 321 322 322 {/if} … … 346 346 347 347 <div id="uploadProgress" style="display:none"> 348 {'Photo %s of %s'|@translate |@sprintf:'<span id="progressCurrent">1</span>':'<span id="progressMax">10</span>'}348 {'Photo %s of %s'|@translate:'<span id="progressCurrent">1</span>':'<span id="progressMax">10</span>'} 349 349 <br> 350 350 <div id="progressbar"></div> -
trunk/admin/themes/default/template/plugins_installed.tpl
r23426 r25005 163 163 164 164 {if not empty($author)} 165 | {'By %s'|@translate |@sprintf:$author}165 | {'By %s'|@translate:$author} 166 166 {/if} 167 167 … … 184 184 <div class="pluginMiniBoxNameCell"> 185 185 {$plugin.NAME} 186 <a class="icon-info-circled-1 showInfo" title="{if !empty($author)}{'By %s'|@translate |@sprintf:$author} | {/if}{'Version'|@translate} {$version}<br/>{$plugin.DESC|@escape:'html'}"></a>186 <a class="icon-info-circled-1 showInfo" title="{if !empty($author)}{'By %s'|@translate:$author} | {/if}{'Version'|@translate} {$version}<br/>{$plugin.DESC|@escape:'html'}"></a> 187 187 </div> 188 188 <div class="pluginActions"> -
trunk/admin/themes/default/template/plugins_new.tpl
r18630 r25005 78 78 <em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em> 79 79 {'Version'|@translate} {$plugin.VERSION} 80 | {'By %s'|@translate |@sprintf:$plugin.AUTHOR}80 | {'By %s'|@translate:$plugin.AUTHOR} 81 81 | <a class="externalLink" href="{$plugin.EXT_URL}">{'Visit plugin site'|@translate}</a> 82 82 </td> -
trunk/admin/themes/default/template/themes_installed.tpl
r23426 r25005 59 59 <div class="themeName"> 60 60 {$theme.NAME} {if $theme.IS_DEFAULT}<em>({'default'|@translate})</em>{/if} {if $theme.IS_MOBILE}<em>({'Mobile'|@translate})</em>{/if} 61 <a class="icon-info-circled-1 showInfo" title="{if !empty($author)}{'By %s'|@translate |@sprintf:$author} | {/if}{'Version'|@translate} {$version}<br/>{$theme.DESC|@escape:'html'}"></a>61 <a class="icon-info-circled-1 showInfo" title="{if !empty($author)}{'By %s'|@translate:$author} | {/if}{'Version'|@translate} {$version}<br/>{$theme.DESC|@escape:'html'}"></a> 62 62 </div> 63 63 <div class="themeShot"><a href="{$theme.SCREENSHOT}" class="preview-box" title="{$theme.NAME}"><img src="{$theme.SCREENSHOT}" alt=""></a></div> -
trunk/admin/themes/default/template/updates_ext.tpl
r22338 r25005 181 181 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$plugin.ID}" style="display:none;"> 182 182 {'New Version'|@translate} : {$plugin.NEW_VERSION} 183 | {'By %s'|@translate |@sprintf:$plugin.AUTHOR}183 | {'By %s'|@translate:$plugin.AUTHOR} 184 184 </td> 185 185 </tr> … … 223 223 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$theme.ID}" style="display:none;"> 224 224 {'New Version'|@translate} : {$theme.NEW_VERSION} 225 | {'By %s'|@translate |@sprintf:$theme.AUTHOR}225 | {'By %s'|@translate:$theme.AUTHOR} 226 226 </td> 227 227 </tr> … … 265 265 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$language.ID}" style="display:none;"> 266 266 {'New Version'|@translate} : {$language.NEW_VERSION} 267 | {'By %s'|@translate |@sprintf:$language.AUTHOR}267 | {'By %s'|@translate:$language.AUTHOR} 268 268 </td> 269 269 </tr> -
trunk/admin/themes/default/template/updates_pwg.tpl
r12261 r25005 42 42 <p> 43 43 <ul> 44 <li><a href="admin.php?page=updates&step=2&to={$MINOR_VERSION}"><strong>{'Update to Piwigo %s'|@translate |@sprintf:$MINOR_VERSION}</strong></a>: {'This is a minor update, with only bug corrections.'|@translate}</li>45 <li><a href="admin.php?page=updates&step=3&to={$MAJOR_VERSION}"><strong>{'Update to Piwigo %s'|@translate |@sprintf:$MAJOR_VERSION}</strong></a>: {'This is a major update, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li>44 <li><a href="admin.php?page=updates&step=2&to={$MINOR_VERSION}"><strong>{'Update to Piwigo %s'|@translate:$MINOR_VERSION}</strong></a>: {'This is a minor update, with only bug corrections.'|@translate}</li> 45 <li><a href="admin.php?page=updates&step=3&to={$MAJOR_VERSION}"><strong>{'Update to Piwigo %s'|@translate:$MAJOR_VERSION}</strong></a>: {'This is a major update, with <a href="%s">new exciting features</a>.'|@translate:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li> 46 46 </ul> 47 47 </p> 48 <p>{'You can update to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate |@sprintf:$MAJOR_VERSION:$MINOR_VERSION}</p>48 <p>{'You can update to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate:$MAJOR_VERSION:$MINOR_VERSION}</p> 49 49 {/if} 50 50 … … 55 55 </p> 56 56 <form action="" method="post"> 57 <p><input type="submit" name="submit" value="{'Update to Piwigo %s'|@translate |@sprintf:$UPGRADE_TO}"></p>57 <p><input type="submit" name="submit" value="{'Update to Piwigo %s'|@translate:$UPGRADE_TO}"></p> 58 58 <p class="autoupdate_bar" style="display:none;"> {'Update in progress...'|@translate}<br><img src="admin/themes/default/images/ajax-loader-bar.gif"></p> 59 59 <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> … … 64 64 <p> 65 65 {'A new version of Piwigo is available.'|@translate}<br> 66 {'This is a major update, with <a href="%s">new exciting features</a>.'|@translate |@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}66 {'This is a major update, with <a href="%s">new exciting features</a>.'|@translate:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate} 67 67 </p> 68 68 <form action="" method="post"> … … 77 77 {counter assign=i} 78 78 <fieldset> 79 <legend>{'Update to Piwigo %s'|@translate |@sprintf:$UPGRADE_TO}</legend>79 <legend>{'Update to Piwigo %s'|@translate:$UPGRADE_TO}</legend> 80 80 {if !empty($missing.plugins)} 81 81 <p><i>{'Following plugins may not be compatible with the new version of Piwigo:'|@translate}</i></p> … … 90 90 <p><label><input type="checkbox" name="understand"> {'I decide to update anyway'|@translate}</label></p> 91 91 {/if} 92 <p><input type="submit" name="submit" value="{'Update to Piwigo %s'|@translate |@sprintf:$UPGRADE_TO}" {if !empty($missing.plugins) or !empty($missing.themes)}disabled="disabled"{/if}>92 <p><input type="submit" name="submit" value="{'Update to Piwigo %s'|@translate:$UPGRADE_TO}" {if !empty($missing.plugins) or !empty($missing.themes)}disabled="disabled"{/if}> 93 93 </p> 94 94 <p class="autoupdate_bar" style="display:none;"> {'Update in progress...'|@translate}<br><img src="admin/themes/default/images/ajax-loader-bar.gif"></p> -
trunk/admin/themes/default/template/upgrade.tpl
r9596 r25005 162 162 </table> 163 163 164 <p>{'This page proposes to upgrade your database corresponding to your old version of Piwigo to the current version. The upgrade assistant thinks you are currently running a <strong>release %s</strong> (or equivalent).'|@translate |@sprintf:$introduction.CURRENT_RELEASE}</p>164 <p>{'This page proposes to upgrade your database corresponding to your old version of Piwigo to the current version. The upgrade assistant thinks you are currently running a <strong>release %s</strong> (or equivalent).'|@translate:$introduction.CURRENT_RELEASE}</p> 165 165 {if isset($login)} 166 166 <p>{'Only administrator can run upgrade: please sign in below.'|@translate}</p> … … 181 181 </fieldset> 182 182 <p style="text-align: center;"> 183 <input class="submit" type="submit" name="submit" value="{'Upgrade from version %s to %s'|@translate |@sprintf:$introduction.CURRENT_RELEASE:$RELEASE}">183 <input class="submit" type="submit" name="submit" value="{'Upgrade from version %s to %s'|@translate:$introduction.CURRENT_RELEASE:$RELEASE}"> 184 184 </p> 185 185 </form> 186 186 <!-- 187 187 <p style="text-align: center;"> 188 <a href="{$introduction.RUN_UPGRADE_URL}">{'Upgrade from version %s to %s'|@translate |@sprintf:$introduction.CURRENT_RELEASE:$RELEASE}</a>188 <a href="{$introduction.RUN_UPGRADE_URL}">{'Upgrade from version %s to %s'|@translate:$introduction.CURRENT_RELEASE:$RELEASE}</a> 189 189 </p> 190 190 --> … … 193 193 194 194 {if isset($upgrade)} 195 <h2>{'Upgrade from version %s to %s'|@translate |@sprintf:$upgrade.VERSION:$RELEASE}</h2>195 <h2>{'Upgrade from version %s to %s'|@translate:$upgrade.VERSION:$RELEASE}</h2> 196 196 197 197 <fieldset> -
trunk/admin/themes_installed.php
r23259 r25005 122 122 $tpl_theme['ACTIVABLE'] = false; 123 123 124 $tpl_theme['ACTIVABLE_TOOLTIP'] = sprintf(125 l10n('Impossible to activate this theme, the parent theme is missing: %s'),124 $tpl_theme['ACTIVABLE_TOOLTIP'] = l10n( 125 'Impossible to activate this theme, the parent theme is missing: %s', 126 126 $missing_parent 127 127 ); … … 137 137 $tpl_theme['DELETABLE'] = false; 138 138 139 $tpl_theme['DELETE_TOOLTIP'] = sprintf(140 l10n('Impossible to delete this theme. Other themes depends on it: %s'),139 $tpl_theme['DELETE_TOOLTIP'] = l10n( 140 'Impossible to delete this theme. Other themes depends on it: %s', 141 141 implode(', ', $children) 142 142 ); -
trunk/admin/themes_new.php
r19703 r25005 40 40 if (!is_writable($themes_dir)) 41 41 { 42 array_push( 43 $page['errors'], 44 sprintf( 45 l10n('Add write access to the "%s" directory'), 46 'themes' 47 ) 48 ); 42 $page['errors'][] = l10n('Add write access to the "%s" directory', 'themes'); 49 43 } 50 44 … … 103 97 array_push( 104 98 $page['errors'], 105 sprintf(l10n('An error occured during extraction (%s).'), htmlspecialchars($_GET['installstatus']))99 l10n('An error occured during extraction (%s).', htmlspecialchars($_GET['installstatus'])) 106 100 ); 107 101 } -
trunk/admin/user_list.php
r19703 r25005 215 215 array_push( 216 216 $page['infos'], 217 sprintf(218 l10n('user "%s" added'),217 l10n( 218 'user "%s" added', 219 219 $_POST['login'] 220 220 ) … … 235 235 array_push( 236 236 $page['infos'], 237 sprintf(238 l10n('user "%s" added'),237 l10n( 238 'user "%s" added', 239 239 stripslashes($_POST['login']) 240 240 ) -
trunk/admin/user_perm.php
r22950 r25005 86 86 array( 87 87 'TITLE' => 88 sprintf( 89 l10n('Manage permissions for user "%s"'), 90 get_username($page['user'] 91 ) 88 l10n( 89 'Manage permissions for user "%s"', 90 get_username($page['user']) 92 91 ), 93 92 'L_CAT_OPTIONS_TRUE'=>l10n('Authorized'), -
trunk/comments.php
r22142 r25005 79 79 1 => array('label' => l10n('today'), 80 80 'clause' => 'date > '.pwg_db_get_recent_period_expression(1)), 81 2 => array('label' => sprintf(l10n('last %d days'), 7),81 2 => array('label' => l10n('last %d days', 7), 82 82 'clause' => 'date > '.pwg_db_get_recent_period_expression(7)), 83 3 => array('label' => sprintf(l10n('last %d days'), 30),83 3 => array('label' => l10n('last %d days', 30), 84 84 'clause' => 'date > '.pwg_db_get_recent_period_expression(30)), 85 85 4 => array('label' => l10n('the beginning'), -
trunk/feed.php
r19703 r25005 123 123 { 124 124 $item = new FeedItem(); 125 $item->title = sprintf(l10n('New on %s'), format_date($dbnow) );125 $item->title = l10n('New on %s', format_date($dbnow) ); 126 126 $item->link = get_gallery_home_url(); 127 127 -
trunk/include/calendar_weekly.class.php
r19703 r25005 45 45 for ($i=1; $i<=53; $i++) 46 46 { 47 $week_no_labels[$i] = sprintf( l10n("Week %d"), $i);47 $week_no_labels[$i] = l10n('Week %d', $i); 48 48 //$week_no_labels[$i] = $i; 49 49 } -
trunk/include/category_cats.inc.php
r22879 r25005 353 353 else 354 354 { 355 $info = sprintf(356 l10n('from %s to %s'),355 $info = l10n( 356 'from %s to %s', 357 357 format_date($from), 358 358 format_date($to) -
trunk/include/functions.inc.php
r24988 r25005 607 607 if ($diff->invert) 608 608 { 609 $print = sprintf(l10n('%s ago'), $print);609 $print = l10n('%s ago', $print); 610 610 } 611 611 else 612 612 { 613 $print = sprintf(l10n('%s in the future'), $print);613 $print = l10n('%s in the future', $print); 614 614 } 615 615 } … … 1579 1579 if (!isset($cache['get_icon']['title'])) 1580 1580 { 1581 $cache['get_icon']['title'] = sprintf(1582 l10n('photos posted during the last %d days'),1581 $cache['get_icon']['title'] = l10n( 1582 'photos posted during the last %d days', 1583 1583 $user['recent_period'] 1584 1584 ); … … 1706 1706 $label .= ', '; 1707 1707 } 1708 $label .= l10n( sprintf('Level %d', $level) );1708 $label .= l10n( sprintf('Level %d', $level) ); 1709 1709 } 1710 1710 $options[$level] = $label; -
trunk/include/no_photo_yet.inc.php
r19703 r25005 77 77 array( 78 78 'step' => 2, 79 'intro' => sprintf(80 l10n('Hello %s, your Piwigo photo gallery is empty!'),79 'intro' => l10n( 80 'Hello %s, your Piwigo photo gallery is empty!', 81 81 $user['username'] 82 82 ), -
trunk/include/template.class.php
r24988 r25005 74 74 load_language('admin.lang'); 75 75 fatal_error( 76 sprintf(77 l10n('Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation'),76 l10n( 77 'Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation', 78 78 $conf['data_location'] 79 79 ), -
trunk/include/ws_functions.inc.php
r23060 r25005 3358 3358 { 3359 3359 case 'ok': 3360 return sprintf(l10n('%s has been successfully updated.'), $extension_name);3360 return l10n('%s has been successfully updated.', $extension_name); 3361 3361 3362 3362 case 'temp_path_error': … … 3370 3370 3371 3371 default: 3372 return new PwgError(null, sprintf(l10n('An error occured during extraction (%s).'), $upgrade_status));3372 return new PwgError(null, l10n('An error occured during extraction (%s).', $upgrade_status)); 3373 3373 } 3374 3374 } -
trunk/install.php
r22570 r25005 440 440 'EMAIL' => '<span class="adminEmail">'.$admin_mail.'</span>', 441 441 'F_NEWSLETTER_SUBSCRIBE' => $is_newsletter_subscribe, 442 'L_INSTALL_HELP' => sprintf(l10n('Need help ? Ask your question on <a href="%s">Piwigo message board</a>.'), PHPWG_URL.'/forum'),442 'L_INSTALL_HELP' => l10n('Need help ? Ask your question on <a href="%s">Piwigo message board</a>.', PHPWG_URL.'/forum'), 443 443 )); 444 444 -
trunk/password.php
r20609 r25005 85 85 array_push( 86 86 $page['errors'], 87 sprintf(88 l10n('User "%s" has no email address, password reset is not possible'),87 l10n( 88 'User "%s" has no email address, password reset is not possible', 89 89 $userdata['username'] 90 90 ) … … 109 109 110 110 $message = l10n('Someone requested that the password be reset for the following user account:') . "\r\n\r\n"; 111 $message.= sprintf(112 l10n('Username "%s" on gallery %s'),111 $message.= l10n( 112 'Username "%s" on gallery %s', 113 113 $userdata['username'], 114 114 get_gallery_home_url() -
trunk/picture.php
r23882 r25005 860 860 if (!empty($picture['current']['filesize'])) 861 861 { 862 $infos['INFO_FILESIZE'] = 863 sprintf(l10n('%d Kb'), $picture['current']['filesize']); 862 $infos['INFO_FILESIZE'] = l10n('%d Kb', $picture['current']['filesize']); 864 863 } 865 864 -
trunk/plugins/LocalFilesEditor/admin.php
r20715 r25005 93 93 { 94 94 @copy($edited_file, get_bak_file($edited_file)); 95 array_push($page['infos'], sprintf(l10n('locfiledit_saved_bak'), substr(get_bak_file($edited_file), 2)));95 array_push($page['infos'], l10n('locfiledit_saved_bak', substr(get_bak_file($edited_file), 2))); 96 96 } 97 97 -
trunk/search.php
r20609 r25005 109 109 $search['fields'][$type_date.'-after'] = array( 110 110 'date' => sprintf( 111 112 113 114 111 '%d-%02d-%02d', 112 $_POST['start_year'], 113 $_POST['start_month'] != 0 ? $_POST['start_month'] : '01', 114 $_POST['start_day'] != 0 ? $_POST['start_day'] : '01' 115 115 ), 116 116 'inc' => true, … … 122 122 $search['fields'][$type_date.'-before'] = array( 123 123 'date' => sprintf( 124 125 126 127 124 '%d-%02d-%02d', 125 $_POST['end_year'], 126 $_POST['end_month'] != 0 ? $_POST['end_month'] : '12', 127 $_POST['end_day'] != 0 ? $_POST['end_day'] : '31' 128 128 ), 129 129 'inc' => true, -
trunk/search_rules.php
r19703 r25005 78 78 if (isset($search['fields']['allwords'])) 79 79 { 80 $template->append( 'search_words', 81 sprintf( 82 l10n('searched words : %s'), 80 $template->append( 81 'search_words', 82 l10n( 83 'searched words : %s', 83 84 join(', ', $search['fields']['allwords']['words']) 84 85 ) … … 104 105 { 105 106 $template->append( 106 'search_words',107 sprintf(108 l10n('author(s) : %s'),109 107 'search_words', 108 l10n( 109 'author(s) : %s', 110 join(', ', $search['fields']['author']['words']) 110 111 ) 111 112 ); -
trunk/upgrade.php
r22570 r25005 235 235 $template->assign(array( 236 236 'RELEASE' => PHPWG_VERSION, 237 'L_UPGRADE_HELP' => sprintf(l10n('Need help ? Ask your question on <a href="%s">Piwigo message board</a>.'), PHPWG_URL.'/forum'),237 'L_UPGRADE_HELP' => l10n('Need help ? Ask your question on <a href="%s">Piwigo message board</a>.', PHPWG_URL.'/forum'), 238 238 ) 239 239 );
Note: See TracChangeset
for help on using the changeset viewer.