Changeset 1491 in products


Ignore:
Timestamp:
Dec 30, 2009 5:39:52 PM (10 years ago)
Author:
liebster
Message:

Added find number of keywords

Location:
quintagroup.seoptimizer/trunk/quintagroup/seoptimizer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/keywords.py

    r1477 r1491  
    7575                keyword_on_page =  len(re.findall(u'\\b%s\\b' % keyword, page_text, re.I|re.U)) 
    7676                if keyword not in added.keys() and not keyword_on_page: 
    77                     missing.append(keyword) 
     77                    missing.append(keyword+u' - 0') 
    7878                    added[keyword] = 1 
    7979                if keyword not in finded.keys() and keyword_on_page: 
    8080                    finding.append(keyword+u' - '+repr(keyword_on_page)) 
    8181                    finded[keyword] = 1 
    82         # return list of missing keywords 
    83         if missing: 
    84             msg = ts.utranslate(None, _('missing_keywords', default=u'Next keywords did not appear on the page:\n${missing}', mapping={'missing':'\n'.join(missing)}), context=self.context) 
     82        # return list of missing and fount keywords 
     83        if missing or finding: 
     84            msg = ts.utranslate(None, _('number_keywords', default=u'Number of keywords at page:\n${found}\n${missing}', 
     85                                mapping={'missing':'\n'.join(missing), 'found': '\n'.join(finding)}), context=self.context) 
    8586        else: 
    86             msg = ts.utranslate(None, _('finded_keywords', default=u'All keywords found on the page!\nMore detailed:\n${found}', mapping={'found': '\n'.join(finding)}), context=self.context) 
     87            msg = '' 
    8788        return msg 
    8889 
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/locales/quintagroup.seoptimizer.pot

    r1481 r1491  
    44msgid "" 
    55msgstr "" 
    6 "Project-Id-Version: quintagroup.seoptimizer\n" 
    7 "POT-Creation-Date: 2009-12-25 14:41+0000\n" 
     6"Project-Id-Version: PACKAGE VERSION\n" 
     7"POT-Creation-Date: 2009-12-30 17:33+0000\n" 
    88"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" 
    9 "Last-Translator: Vitaliy Stepanov <liebster@quintagroup.com>\n" 
     9"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
    1010"Language-Team: LANGUAGE <LL@li.org>\n" 
    1111"MIME-Version: 1.0\n" 
     
    4444#: ./quintagroup.seoptimizer/quintagroup/seoptimizer/browser/templates/seo_controlpanel.pt:30 
    4545msgid "description_seo_dc_metatags" 
    46 msgstr "" 
    47  
    48 #. Default: "All keywords found on the page!\nMore detailed:\n${found}" 
    49 #: ./quintagroup.seoptimizer/quintagroup/seoptimizer/browser/keywords.py:86 
    50 msgid "finded_keywords" 
    5146msgstr "" 
    5247 
     
    181176msgstr "" 
    182177 
    183 #. Default: "Next keywords did not appear on the page:\n${missing}" 
     178#. Default: "Number of keywords at page:\n${found}\n${missing}" 
    184179#: ./quintagroup.seoptimizer/quintagroup/seoptimizer/browser/keywords.py:84 
    185 msgid "missing_keywords" 
     180msgid "number_keywords" 
    186181msgstr "" 
    187182 
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/locales/uk/LC_MESSAGES/quintagroup.seoptimizer.po

    r1481 r1491  
    55msgstr "" 
    66"Project-Id-Version: quintagroup.seoptimizer\n" 
    7 "POT-Creation-Date: 2009-12-25 14:41+0000\n" 
     7"POT-Creation-Date: 2009-12-30 17:33+0000\n" 
    88"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" 
    99"Last-Translator: Vitaliy Stepanov <liebster@quintagroup.com>\n" 
     
    4444#: ./quintagroup.seoptimizer/quintagroup/seoptimizer/browser/templates/seo_controlpanel.pt:30 
    4545msgid "description_seo_dc_metatags" 
    46 msgstr "" 
    47  
    48 #. Default: "All keywords found on the page!\nMore detailed:\n${found}" 
    49 #: ./quintagroup.seoptimizer/quintagroup/seoptimizer/browser/keywords.py:86 
    50 msgid "finded_keywords" 
    5146msgstr "" 
    5247 
     
    181176msgstr "" 
    182177 
    183 #. Default: "Next keywords did not appear on the page:\n${missing}" 
     178#. Default: "Number of keywords at page:\n${found}\n${missing}" 
    184179#: ./quintagroup.seoptimizer/quintagroup/seoptimizer/browser/keywords.py:84 
    185 msgid "missing_keywords" 
    186 msgstr "" 
     180msgid "number_keywords" 
     181msgstr "Кількість знайдених ключових слів на сторінці:\n${found}\n${missing}" 
    187182 
    188183#. Default: "Content SEO properties have been saved." 
Note: See TracChangeset for help on using the changeset viewer.