Changeset 5500


Ignore:
Timestamp:
Mar 31, 2010, 4:34:21 PM (14 years ago)
Author:
plg
Message:

feature 1559: remove "standard deviation" in rating.

Location:
trunk
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/picture_rate.inc.php

    r5196 r5500  
    3434SELECT COUNT(rate) AS count
    3535     , ROUND(AVG(rate),2) AS average
    36      , ROUND(STD(rate),2) AS std
    3736  FROM '.RATE_TABLE.'
    3837  WHERE element_id = '.$picture['current']['id'].'
     
    4241  else
    4342  { // avg rate null -> no rate -> no need to query db
    44     $row = array( 'count'=>0, 'average'=>NULL, 'std'=>NULL );
     43    $row = array( 'count'=>0, 'average'=>NULL );
    4544  }
    4645  $template->assign('rate_summary', $row);
  • trunk/language/ar_SA/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (قيمت %d مرة, standard deviation = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (قيمت %d مرة)';
    3232$lang['%d Kb'] = '%d كيلوبايت';
    3333$lang['%d category updated'] = '%d تصنيف محدث';
  • trunk/language/cs_CZ/common.lang.php

    r5430 r5500  
    3333$lang_info['zero_plural'] = true;
    3434
    35 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (hodnoceno %d krát, standardní odchylka = %.2f)';
     35$lang['%.2f (rated %d times)'] = '%.2f (hodnoceno %d krát)';
    3636$lang['%d Kb'] = '%d Kb';
    3737$lang['%d category updated'] = '%d kategorie aktualizována';
  • trunk/language/da_DK/common.lang.php

    r5492 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (bedømt %d gange, standard afvigelse = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (bedømt %d gange)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d kategori opdateret';
  • trunk/language/de_DE/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (beachtet %d mal, Standardabweichung  = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (beachtet %d mal)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d Kategorie wurde aktualisiert';
  • trunk/language/en_UK/common.lang.php

    r5373 r5500  
    2929
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = "%.2f (rated %d times, standard deviation = %.2f)";
     31$lang['%.2f (rated %d times)'] = "%.2f (rated %d times)";
    3232$lang['%d Kb'] = "%d Kb";
    3333$lang['%d category updated'] = "%d category updated";
  • trunk/language/es_AR/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (marcado %d veces, desviación tipo = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (marcado %d veces)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d categoría actualizada';
  • trunk/language/es_ES/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (noté %d fois, écart type = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (noté %d fois)';
    3232$lang['%d Kb'] = '%d Ko';
    3333$lang['%d category updated'] = '%d Categoría actualizada';
  • trunk/language/fr_FR/common.lang.php

    r5440 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (notée %d fois, écart-type = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (notée %d fois)';
    3232$lang['%d Kb'] = '%d Ko';
    3333$lang['%d category updated'] = '%d catégorie mise à jour';
  • trunk/language/hr_HR/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (ocijenjeno %d puta, standardno odstupanje = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (ocijenjeno %d puta)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d skupina obnovljena';
  • trunk/language/hu_HU/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (értékelve %d alkalommal, szórás = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (értékelve %d alkalommal)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d kategória frissítés';
  • trunk/language/it_IT/common.lang.php

    r5459 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (votata %d volte, media = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (votata %d volte)';
    3232$lang['%d Kb'] = '%d Ko';
    3333$lang['%d category updated'] = '%d categoria aggiornata';
  • trunk/language/ja_JP/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (評価 %d 回、標準偏差 = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (評価 %d 回)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d 件のカテゴリが更新されました。';
  • trunk/language/nl_NL/common.lang.php

    r5466 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (waardering %d aantal x, standaard deviation = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (waardering %d aantal x)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d categorie bijgewerkt';
  • trunk/language/pl_PL/common.lang.php

    r5430 r5500  
    2929$lang_info['code'] = 'pl';
    3030$lang_info['zero_plural'] = true;
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (oceniane %d razy, standard deviation = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (oceniane %d razy)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d kategoria zaktualizowana';
  • trunk/language/pt_BR/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (avaliada %d vezes, margem de erro = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (avaliada %d vezes)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d categoria atualizada';
  • trunk/language/pt_PT/common.lang.php

    r5437 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (avaliada %d vezes, margem de erro = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (avaliada %d vezes)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d categoria atualizada';
  • trunk/language/ru_RU/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (%d оценок, разброс = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (%d оценок)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d категория дополнена';
  • trunk/language/sr_RS/common.lang.php

    r5461 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (ocenjeno %d puta, standardno odstupanje = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (ocenjeno %d puta)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d kategorija obnovljena';
  • trunk/language/vi_VN/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = true;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (rated %d times, standard deviation = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (rated %d times)';
    3232$lang['%d Kb'] = '%d Kb';
    3333$lang['%d category updated'] = '%d đề mục đã được cập nhật';
  • trunk/language/zh_CN/common.lang.php

    r5430 r5500  
    2929$lang_info['zero_plural'] = false;
    3030
    31 $lang['%.2f (rated %d times, standard deviation = %.2f)'] = '%.2f (标注 %d 次, 标准差 = %.2f)';
     31$lang['%.2f (rated %d times)'] = '%.2f (标注 %d 次)';
    3232$lang['%d Kb'] = '%d KB';
    3333$lang['%d category updated'] = '%d 类已更新';
  • trunk/themes/default/template/picture.tpl

    r5451 r5500  
    187187                <td class="value" id="ratingSummary">
    188188                {if $rate_summary.count}
    189                         {assign var='rate_text' value='%.2f (rated %d times, standard deviation = %.2f)'|@translate }
    190                         {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count, $rate_summary.std) }
     189                        {assign var='rate_text' value='%.2f (rated %d times)'|@translate }
     190                        {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) }
    191191                {else}
    192192                        {'no rate'|@translate}
     
    216216                        makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
    217217                        updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
    218                         ratingSummaryText: "{'%.2f (rated %d times, standard deviation = %.2f)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
     218                        ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    219219                        </script>
    220220                        </div>
Note: See TracChangeset for help on using the changeset viewer.