r252707 - in collective.topicitemsevent/trunk/collective/topicitemsevent: . browser locales locales/es locales/es/LC_MESSAGES
"Leonardo J. Caballero G." <svn-changes-z4DKO/[email protected]> Thu, 12 Dec 2013 21:51:38 +0000 (UTC)
| Newsgroups | gmane.comp.web.zope.plone.collective.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: macagua
Date: Thu Dec 12 21:51:37 2013
New Revision: 252707
Added:
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/collective.topicitemsevent-manual.pot
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/collective.topicitemsevent.pot
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/LC_MESSAGES/
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/LC_MESSAGES/collective.topicitemsevent.po
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/LC_MESSAGES/plone.po
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/plone-manual.pot
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/plone.pot
collective.topicitemsevent/trunk/collective/topicitemsevent/locales/update.sh (contents, props changed)
Modified:
collective.topicitemsevent/trunk/collective/topicitemsevent/__init__.py
collective.topicitemsevent/trunk/collective/topicitemsevent/browser/views.py
collective.topicitemsevent/trunk/collective/topicitemsevent/configure.zcml
Log:
Added i18n support and Spanish translation.
Modified: collective.topicitemsevent/trunk/collective/topicitemsevent/__init__.py
==============================================================================
--- collective.topicitemsevent/trunk/collective/topicitemsevent/__init__.py (original)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/__init__.py Thu Dec 12 21:51:37 2013
@@ -1,4 +1,7 @@
# -*- extra stuff goes here -*-
+from zope.i18nmessageid import MessageFactory
+TopicItemsEventMF = MessageFactory('collective.topicitemsevent')
+
def initialize(context):
"""Initializer called when used as a Zope 2 product."""
Modified: collective.topicitemsevent/trunk/collective/topicitemsevent/browser/views.py
==============================================================================
--- collective.topicitemsevent/trunk/collective/topicitemsevent/browser/views.py (original)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/browser/views.py Thu Dec 12 21:51:37 2013
@@ -4,6 +4,7 @@
from Products.Five import BrowserView
from Products.statusmessages.interfaces import IStatusMessage
+from collective.topicitemsevent import TopicItemsEventMF as _
from collective.topicitemsevent.event import TopicItemEvent
class FireEventsView(BrowserView):
@@ -16,7 +17,7 @@
brains = self.context.queryCatalog()
# Status message
- status_txt = 'Firing TopicItemEvent for: '
+ status_txt = _(u'Firing TopicItemEvent for: ')
for b in brains:
title = b.Title
url = b.getURL()
Modified: collective.topicitemsevent/trunk/collective/topicitemsevent/configure.zcml
==============================================================================
--- collective.topicitemsevent/trunk/collective/topicitemsevent/configure.zcml (original)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/configure.zcml Thu Dec 12 21:51:37 2013
@@ -12,6 +12,8 @@
<include package=".browser" />
+ <i18n:registerTranslations directory="locales" />
+
<!-- Make the object related events selectable -->
<interface
interface=".event.ITopicItemEvent"
Added: collective.topicitemsevent/trunk/collective/topicitemsevent/locales/collective.topicitemsevent-manual.pot
==============================================================================
--- (empty file)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/locales/collective.topicitemsevent-manual.pot Thu Dec 12 21:51:37 2013
@@ -0,0 +1,25 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\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"
+
+#. Default: "Topic Items-Event"
+#: Default Profile title in configure.zcml
+msgid "Topic Items-Event"
+msgstr ""
+
+#. Default: "Adds a View for a Topic that fires an Event for all items in the Topic"
+#: Default Profile description in configure.zcml
+msgid "Adds a View for a Topic that fires an Event for all items in the Topic"
+msgstr ""
Added: collective.topicitemsevent/trunk/collective/topicitemsevent/locales/collective.topicitemsevent.pot
==============================================================================
--- (empty file)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/locales/collective.topicitemsevent.pot Thu Dec 12 21:51:37 2013
@@ -0,0 +1,30 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2013-12-12 05:43+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\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"
+
+#. Default: "Adds a View for a Topic that fires an Event for all items in the Topic"
+#: Default Profile description in configure.zcml
+msgid "Adds a View for a Topic that fires an Event for all items in the Topic"
+msgstr ""
+
+#: ../browser/views.py:20
+msgid "Firing TopicItemEvent for: "
+msgstr ""
+
+#. Default: "Topic Items-Event"
+#: Default Profile title in configure.zcml
+msgid "Topic Items-Event"
+msgstr ""
+
Added: collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/LC_MESSAGES/collective.topicitemsevent.po
==============================================================================
--- (empty file)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/LC_MESSAGES/collective.topicitemsevent.po Thu Dec 12 21:51:37 2013
@@ -0,0 +1,36 @@
+# translation of collective.topicitemsevent.po to Spanish
+# Gettext Message File for collective.topicitemsevent
+# Leonardo J. Caballero G. <[email protected]>, 2013.
+msgid ""
+msgstr ""
+"Project-Id-Version: collective.topicitemsevent\n"
+"POT-Creation-Date: 2013-12-12 05:43+0000\n"
+"PO-Revision-Date: 2013-12-12 00:53-0430\n"
+"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n"
+"Language-Team: ES <[email protected]>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Language-Code: es\n"
+"Language-Name: Español\n"
+"Preferred-Encodings: utf-8 latin1\n"
+"Domain: collective.topicitemsevent\n"
+"Language: es\n"
+"X-Generator: Virtaal 0.7.1\n"
+"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n"
+
+#. Default: "Adds a View for a Topic that fires an Event for all items in the Topic"
+#: Default Profile description in configure.zcml
+msgid "Adds a View for a Topic that fires an Event for all items in the Topic"
+msgstr "Añade un Vista de una Colección que dispara un Evento para todos los elementos en una Colección."
+
+#: ../browser/views.py:20
+msgid "Firing TopicItemEvent for: "
+msgstr "Disparando del evento de la colección para el elemento : "
+
+#. Default: "Topic Items-Event"
+#: Default Profile title in configure.zcml
+msgid "Topic Items-Event"
+msgstr "Evento para elementos de una colección"
+
Added: collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/LC_MESSAGES/plone.po
==============================================================================
--- (empty file)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/locales/es/LC_MESSAGES/plone.po Thu Dec 12 21:51:37 2013
@@ -0,0 +1,27 @@
+# translation of collective.topicitemsevent.po to Spanish
+# Gettext Message File for collective.topicitemsevent
+# Leonardo J. Caballero G. <[email protected]>, 2013.
+msgid ""
+msgstr ""
+"Project-Id-Version: collective.topicitemsevent\n"
+"POT-Creation-Date: 2013-12-12 05:43+0000\n"
+"PO-Revision-Date: 2013-12-12 00:55-0430\n"
+"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n"
+"Language-Team: ES <[email protected]>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"Language-Code: es\n"
+"Language-Name: Español\n"
+"Preferred-Encodings: utf-8 latin1\n"
+"Domain: plone\n"
+"Language: es\n"
+"X-Generator: Virtaal 0.7.1\n"
+"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n"
+
+#. Default: "Topic Item Event"
+#: ../configure.zcml
+msgid "Topic Item Event"
+msgstr "Evento para elemento de una colección"
+
Added: collective.topicitemsevent/trunk/collective/topicitemsevent/locales/plone-manual.pot
==============================================================================
--- (empty file)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/locales/plone-manual.pot Thu Dec 12 21:51:37 2013
@@ -0,0 +1,20 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\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"
+
+#. Default: "Topic Item Event"
+#: ../configure.zcml
+msgid "Topic Item Event"
+msgstr ""
\ No newline at end of file
Added: collective.topicitemsevent/trunk/collective/topicitemsevent/locales/plone.pot
==============================================================================
--- (empty file)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/locales/plone.pot Thu Dec 12 21:51:37 2013
@@ -0,0 +1,21 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2013-12-12 05:43+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <[email protected]>\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"
+
+#. Default: "Topic Item Event"
+#: ../configure.zcml
+msgid "Topic Item Event"
+msgstr ""
+
Added: collective.topicitemsevent/trunk/collective/topicitemsevent/locales/update.sh
==============================================================================
--- (empty file)
+++ collective.topicitemsevent/trunk/collective/topicitemsevent/locales/update.sh Thu Dec 12 21:51:37 2013
@@ -0,0 +1,10 @@
+domain='collective.topicitemsevent'
+
+# Synchronise the templates and scripts with the .pot file for collective.topicitemsevent domain.
+i18ndude rebuild-pot --pot ./$domain.pot --merge ./$domain-manual.pot --create $domain ../
+i18ndude sync --pot ./$domain.pot ./*/LC_MESSAGES/$domain.po
+
+# Synchronise the plone's pot file (Used for the workflows)
+#i18ndude rebuild-pot --pot ./plone.pot --merge ./plone-manual.pot --create plone ../
+i18ndude merge -p ./plone.pot -m ./plone-manual.pot
+i18ndude sync --pot plone.pot ./*/*/plone.po
\ No newline at end of file
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Collective-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/collective-checkins