Changeset 373:f6fe14eb51bc


Ignore:
Timestamp:
08/05/11 17:12:15 (8 weeks ago)
Author:
Simon Descarpentries <sid1@…>
Branch:
default
Message:

Add a title attribute on comment scopes to indicate the number of comments in the scope.
Also ensure that the last c-count-x defined color class is set even if there are more than 25 comments in the scope.

Location:
src/cm
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • src/cm/locale/bg/LC_MESSAGES/djangojs.po

    r372 r373  
    77"Project-Id-Version: \n" 
    88"Report-Msgid-Bugs-To: \n" 
    9 "POT-Creation-Date: 2011-08-05 13:21+0200\n" 
     9"POT-Creation-Date: 2011-08-05 17:01+0200\n" 
    1010"PO-Revision-Date: 2010-03-10 21:26+0100\n" 
    1111"Last-Translator: RBE <qsdf>\n" 
     
    186186msgstr "НПв ПтгПвПр" 
    187187 
     188#: media/js/client/c_scopes.js:318 
     189msgid " comment" 
     190msgid_plural " comments" 
     191msgstr[0] " кПЌеМтар" 
     192msgstr[1] " кПЌеМтарО" 
     193 
    188194#: media/js/client/c_server_exchange.js:49 
    189195msgid "error:" 
  • src/cm/locale/en/LC_MESSAGES/djangojs.po

    r372 r373  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2011-08-05 13:21+0200\n" 
     11"POT-Creation-Date: 2011-08-05 17:01+0200\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    182182msgstr "" 
    183183 
     184#: media/js/client/c_scopes.js:318 
     185msgid " comment" 
     186msgid_plural " comments" 
     187msgstr[0] "" 
     188msgstr[1] "" 
     189 
    184190#: media/js/client/c_server_exchange.js:49 
    185191msgid "error:" 
  • src/cm/locale/es/LC_MESSAGES/djangojs.po

    r372 r373  
    11# COMT es translation 
    2 #  
     2# 
    33# Alejandro Martin Ortin <[email protected]>, 2010 
    44# Simon Descarpentries <[email protected]>, 2011 
     
    88"Project-Id-Version: COMT\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2011-08-05 13:21+0200\n" 
     10"POT-Creation-Date: 2011-08-05 17:01+0200\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: Simon Descarpentries <[email protected]>\n" 
     
    183183msgid "New reply" 
    184184msgstr "Respuesta nueva" 
     185 
     186#: media/js/client/c_scopes.js:318 
     187msgid " comment" 
     188msgid_plural " comments" 
     189msgstr[0] " comentario" 
     190msgstr[1] " comentarios" 
    185191 
    186192#: media/js/client/c_server_exchange.js:49 
  • src/cm/locale/fr/LC_MESSAGES/djangojs.po

    r372 r373  
    99"Project-Id-Version: djangojs\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2011-08-05 13:22+0200\n" 
     11"POT-Creation-Date: 2011-08-05 17:01+0200\n" 
    1212"PO-Revision-Date: 2010-01-20 21:59+0100\n" 
    1313"Last-Translator: renaud bernard <[email protected]>\n" 
     
    186186msgstr "Nouvelle réponse" 
    187187 
     188#: media/js/client/c_scopes.js:318 
     189msgid " comment" 
     190msgid_plural " comments" 
     191msgstr[0] " commentaire" 
     192msgstr[1] " commentaires" 
     193 
    188194#: media/js/client/c_server_exchange.js:49 
    189195msgid "error:" 
     
    212218#: media/js/client/c_sync.js:223 
    213219msgid "Are you sure you want to delete this comment?" 
    214 msgstr "Etes vous sûr de vouloir supprimer ce commentaire ?" 
     220msgstr "Êtes-vous sûr de vouloir supprimer ce commentaire ?" 
    215221 
    216222#: media/js/client/c_sync.js:227 
  • src/cm/locale/no/LC_MESSAGES/djangojs.po

    r372 r373  
    88"Project-Id-Version: COMT\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2011-08-05 13:21+0200\n" 
     10"POT-Creation-Date: 2011-08-05 17:01+0200\n" 
    1111"PO-Revision-Date: 2010-06-30 09:45+0200\n" 
    1212"Last-Translator: Kirill Miazine <[email protected]>\n" 
     
    184184msgid "New reply" 
    185185msgstr "Nytt svar" 
     186 
     187#: media/js/client/c_scopes.js:318 
     188msgid " comment" 
     189msgid_plural " comments" 
     190msgstr[0] " merknad" 
     191msgstr[1] " merknader" 
    186192 
    187193#: media/js/client/c_server_exchange.js:49 
  • src/cm/locale/pt_BR/LC_MESSAGES/djangojs.po

    r372 r373  
    77"Project-Id-Version: COMT\n" 
    88"Report-Msgid-Bugs-To: \n" 
    9 "POT-Creation-Date: 2011-08-05 13:21+0200\n" 
     9"POT-Creation-Date: 2011-08-05 17:01+0200\n" 
    1010"PO-Revision-Date: 2010-01-24 21:40-0300\n" 
    1111"Last-Translator: Paulo Rená da Silva Santarém <[email protected]>\n" 
     
    179179msgid "New reply" 
    180180msgstr "Nova resposta" 
     181 
     182#: media/js/client/c_scopes.js:318 
     183msgid " comment" 
     184msgid_plural " comments" 
     185msgstr[0] " comentário" 
     186msgstr[1] " comentários" 
    181187 
    182188#: media/js/client/c_server_exchange.js:49 
  • src/cm/media/js/client/c_scopes.js

    r341 r373  
    330330  elt['className'] = elt['className'].replace(re, " ") ; 
    331331  CY.DOM.addClass(elt, 'c-count-'+countIds+' ') ; 
     332  if (countIds > 0) { 
     333    elt.setAttribute ('title', countIds + ngettext(' comment', ' comments', countIds)); 
     334    if (countIds > 25) { 
     335      // ensure that we have the last color even if there are too many comments on the same place 
     336      CY.DOM.addClass(elt, 'c-count-25') ; 
     337    } 
     338  } 
    332339} ; 
    333340 
Note: See TracChangeset for help on using the changeset viewer.