Changeset 21439


Ignore:
Timestamp:
Mar 10, 2013, 4:46:59 PM (11 years ago)
Author:
mistic100
Message:

fix translation errors

Location:
extensions/Subscribe_to_comments
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/include/subscribe_to_comments.inc.php

    r21340 r21439  
    184184      if (pwg_db_num_rows($result))
    185185      {
     186        list($stc_id) = pwg_db_fetch_row($result);
    186187        $template->assign(array(
    187           'SUBSCRIBED_ALL_IMAGES' => true,
    188           'MANAGE_LINK' => make_stc_url('manage', $user['email']),
     188          'SUBSCRIBED' => 'all-images',
     189          'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)),
    189190          ));
    190191        $subscribed = true;
     
    210211        list($stc_id) = pwg_db_fetch_row($result);
    211212        $template->assign(array(
    212           'SUBSCRIBED_ALBUM_IMAGES' => true,
     213          'SUBSCRIBED' => 'album-images',
    213214          'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)),
    214215          ));
     
    235236        list($stc_id) = pwg_db_fetch_row($result);
    236237        $template->assign(array(
    237           'SUBSCRIBED_IMAGE' => true,
     238          'SUBSCRIBED' => 'image',
    238239          'UNSUB_LINK' => add_url_params($picture['current']['url'], array('stc_unsubscribe'=>$stc_id)),
    239240          ));
     
    298299  if ( !is_a_guest() and !empty($user['email']) )
    299300  {
     301    $element_url = make_index_url(array(
     302      'section' => 'categories',
     303      'category' => $page['category'],
     304      ));
     305         
    300306    $subscribed = false;
    301307   
     
    315321      if (pwg_db_num_rows($result))
    316322      {
     323        list($stc_id) = pwg_db_fetch_row($result);
    317324        $template->assign(array(
    318           'SUBSCRIBED_ALL_ALBUMS' => true,
    319           'MANAGE_LINK' => make_stc_url('manage', $user['email']),
     325          'SUBSCRIBED' => 'all-albums',
     326          'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)),
    320327          ));
    321328        $subscribed = true;
     
    340347      {
    341348        list($stc_id) = pwg_db_fetch_row($result);
    342         $element_url = make_index_url(array(
    343           'section' => 'categories',
    344           'category' => $page['category'],
    345           ));
    346        
    347349        $template->assign(array(
    348           'SUBSCRIBED_ALBUM' => true,
     350          'SUBSCRIBED' => 'album',
    349351          'UNSUB_LINK' => add_url_params($element_url, array('stc_unsubscribe'=>$stc_id)),
    350352          ));
  • extensions/Subscribe_to_comments/include/subscribtions_page.inc.php

    r21340 r21439  
    3434 
    3535  // bulk action
    36   else if (isset($_POST['apply_bulk']))
     36  else if (isset($_POST['apply_bulk']) and !empty($_POST['selected']))
    3737  {
    3838    foreach ($_POST['selected'] as $id)
  • extensions/Subscribe_to_comments/template/form_comment.tpl

    r21340 r21439  
    1 {if !$SUBSCRIBED_ALL_IMAGES && !$SUBSCRIBED_ALL_ALBUMS && !$SUBSCRIBED_ALBUM && !$SUBSCRIBED_ALBUM_IMAGES && !$SUBSCRIBED_IMAGE}
     1{if !$SUBSCRIBED}
    22
    33<p>
  • extensions/Subscribe_to_comments/template/form_standalone.tpl

    r21340 r21439  
    1414<form method="post" action="{$comment_add.F_ACTION}" id="stc_standalone">
    1515  <fieldset>{strip}
    16   {if $SUBSCRIBED_ALL_IMAGES}
    17     {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of the gallery'|@translate}
    18     <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
     16  {if $SUBSCRIBED}
     17    {if $SUBSCRIBED=='all-images'}
     18      {assign var=str value='all pictures of the gallery'|@translate}
     19    {elseif $SUBSCRIBED=='album-images'}
     20      {assign var=str value='all pictures of this album'|@translate}
     21    {elseif $SUBSCRIBED=='image'}
     22      {assign var=str value='this picture'|@translate}
     23    {elseif $SUBSCRIBED=='all-albums'}
     24      {assign var=str value='all albums of the gallery'|@translate}
     25    {elseif $SUBSCRIBED=='album'}
     26      {assign var=str value='this album'|@translate}
     27    {/if}
    1928   
    20   {elseif $SUBSCRIBED_ALBUM_IMAGES}
    21     {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of this album'|@translate}
     29    {'You are currently subscribed to comments on %s.'|@translate|sprintf:$str}
    2230    <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>
    23    
    24   {elseif $SUBSCRIBED_IMAGE}
    25     {'You are currently subscribed to comments on %s.'|@translate|sprintf:'this picture'|@translate}
    26     <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>
    27    
    28   {elseif $SUBSCRIBED_ALL_ALBUMS}
    29     {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all albums of the gallery'|@translate}
    30     <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
    31    
    32   {elseif $SUBSCRIBED_ALBUM}
    33     {'You are currently subscribed to comments on %s.'|@translate|sprintf:'this album'|@translate}
    34     <a href="{$UNSUB_LINK}">{'Unsubscribe'|@translate}</a>
    35    
    3631  {else}
    3732    <legend>{'Subscribe to mail notifications'|@translate}</legend>
  • extensions/Subscribe_to_comments/template/subscribtions_page.tpl

    r21340 r21439  
    3131        <td>
    3232          {if $sub.type == 'all-images'}
    33             <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of the gallery'|@translate}
     33            {assign var=str value='all pictures of the gallery'|@translate}
     34            <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png">
    3435          {else $sub.type == 'all-albums'}
    35             <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all albums of the gallery'|@translate}
     36            {assign var=str value='all albums of the gallery'|@translate}
     37            <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png">
    3638          {/if}
     39          {'You are currently subscribed to comments on %s.'|@translate|sprintf:$str}
    3740        </td>
    3841        <td style="white-space:nowrap;">
Note: See TracChangeset for help on using the changeset viewer.