Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
300 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
# This space intentionally left blank. | ||
from zope.i18nmessageid import MessageFactory | ||
GSMessageFactory = MessageFactory('gs.search.topic') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<link id="gs-search-topic-link" | ||
rel="alternate" type="application/atom+xml" title="Topics" | ||
href="/s/search.atom" | ||
tal:attributes="title string:Topics on ${view/siteInfo/name}"/> | ||
<link id="gs-search-topic-link" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
i18n:domain="gs.search.topic" | ||
i18n:attributes="title;" | ||
rel="alternate" type="application/atom+xml" title="Topics" | ||
href="/s/search.atom" | ||
tal:attributes="title string:Topics on ${view/siteInfo/name}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2014-10-29 00:30+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: DOMAIN\n" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:19 | ||
msgid "Loading the topics…" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:13 | ||
msgid "Search" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics…" | ||
msgstr "" | ||
|
||
#: ./viewlet.py:22 | ||
msgid "Topics" | ||
msgstr "" | ||
|
||
#. Default: "Newer" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:33 | ||
msgid "newer" | ||
msgstr "" | ||
|
||
#. Default: "There are no visible topics on this site." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:24 | ||
msgid "no-visible" | ||
msgstr "" | ||
|
||
#. Default: "Older" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:52 | ||
msgid "older" | ||
msgstr "" | ||
|
||
#. Default: "No topics were found." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:21 | ||
msgid "search-failed" | ||
msgstr "" | ||
|
||
#. Default: "Web feed" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:46 | ||
msgid "web-feed" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2014-10-29 00:30+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: DOMAIN\n" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:19 | ||
msgid "Loading the topics…" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:13 | ||
msgid "Search" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics…" | ||
msgstr "" | ||
|
||
#: ./viewlet.py:22 | ||
msgid "Topics" | ||
msgstr "" | ||
|
||
#. Default: "Newer" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:33 | ||
msgid "newer" | ||
msgstr "" | ||
|
||
#. Default: "There are no visible topics on this site." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:24 | ||
msgid "no-visible" | ||
msgstr "" | ||
|
||
#. Default: "Older" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:52 | ||
msgid "older" | ||
msgstr "" | ||
|
||
#. Default: "No topics were found." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:21 | ||
msgid "search-failed" | ||
msgstr "" | ||
|
||
#. Default: "Web feed" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:46 | ||
msgid "web-feed" | ||
msgstr "" | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2014-10-29 00:30+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: DOMAIN\n" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:19 | ||
msgid "Loading the topics…" | ||
msgstr "Chargement…" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:13 | ||
msgid "Search" | ||
msgstr "Recherche" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics" | ||
msgstr "Recherche dans nos sujets" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics…" | ||
msgstr "Recherche dans sujets…" | ||
|
||
#: ./viewlet.py:22 | ||
msgid "Topics" | ||
msgstr "Des sujets" | ||
|
||
#. Default: "Newer" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:33 | ||
msgid "newer" | ||
msgstr "Récent" | ||
|
||
#. Default: "There are no visible topics on this site." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:24 | ||
msgid "no-visible" | ||
msgstr "Il n'y à pas des sujets visable" | ||
|
||
#. Default: "Older" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:52 | ||
msgid "older" | ||
msgstr "Vieux" | ||
|
||
#. Default: "No topics were found." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:21 | ||
msgid "search-failed" | ||
msgstr "Il n'y à pas des sujets." | ||
|
||
#. Default: "Web feed" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:46 | ||
msgid "web-feed" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# --- PLEASE EDIT THE LINES BELOW CORRECTLY --- | ||
# SOME DESCRIPTIVE TITLE. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2014-10-29 00:30+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <LL@li.org>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=1; plural=0\n" | ||
"Language-Code: en\n" | ||
"Language-Name: English\n" | ||
"Preferred-Encodings: utf-8 latin1\n" | ||
"Domain: gs.search.topic\n" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:19 | ||
msgid "Loading the topics…" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:13 | ||
msgid "Search" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics" | ||
msgstr "" | ||
|
||
#: ./browser/templates/site-topics-ajax-hole.pt:8 | ||
msgid "Search within topics…" | ||
msgstr "" | ||
|
||
#: ./viewlet.py:22 | ||
msgid "Topics" | ||
msgstr "" | ||
|
||
#. Default: "Newer" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:33 | ||
msgid "newer" | ||
msgstr "" | ||
|
||
#. Default: "There are no visible topics on this site." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:24 | ||
msgid "no-visible" | ||
msgstr "" | ||
|
||
#. Default: "Older" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:52 | ||
msgid "older" | ||
msgstr "" | ||
|
||
#. Default: "No topics were found." | ||
#: ./browser/templates/site-topics-ajax-hole.pt:21 | ||
msgid "search-failed" | ||
msgstr "" | ||
|
||
#. Default: "Web feed" | ||
#: ./browser/templates/site-topics-ajax-hole.pt:46 | ||
msgid "web-feed" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################ | ||
# | ||
# Copyright © 2014 OnlineGroups.net and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################ | ||
from __future__ import absolute_import, unicode_literals | ||
from gs.viewlet.viewlet import SiteViewlet | ||
from . import GSMessageFactory as _ | ||
|
||
|
||
class TopicSearchViewlet(SiteViewlet): | ||
'The viewlet for the "AJAX Hole"' | ||
title = _('Topics') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters