r252685 - in collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon: . locales locales/fr/LC_MESSAGES profiles/default

"Leonardo J. Caballero G." <svn-changes-z4DKO/[email protected]> Wed, 6 Nov 2013 18:19:02 +0000 (UTC)
Newsgroups gmane.comp.web.zope.plone.collective.cvs
Message-ID <[email protected]>
Author: macagua
Date: Wed Nov  6 18:19:02 2013
New Revision: 252685

Added:
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/plone-manual.pot
Modified:
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/configure.zcml
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/interfaces.py
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/collective.contentrules.comingsoon.pot
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/collective.contentrules.comingsoon.po
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/plone.po
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/plone.pot
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/update.sh
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/controlpanel.xml
   collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/registry.xml
Log:
Added more improvements about i18n

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/configure.zcml
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/configure.zcml	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/configure.zcml	Wed Nov  6 18:19:02 2013
@@ -5,7 +5,7 @@
     xmlns:i18n="http://namespaces.zope.org/i18n"
     xmlns:browser="http://namespaces.zope.org/browser"
     xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
-    i18n_domain="collective.contentrules.comingsoon">
+    i18n_domain="plone">
 
   <include package="five.grok" />
   <include package="plone.api" />
@@ -23,9 +23,9 @@
 
   <genericsetup:registerProfile
       name="default"
-      title="collective.contentrules.comingsoon"
+      title="Coming soon Content Rules"
       directory="profiles/default"
-      description="Installs the collective.contentrules package"
+      description="Installs Coming soon Content Rules package"
       provides="Products.GenericSetup.interfaces.EXTENSION"
       />
 

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/interfaces.py
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/interfaces.py	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/interfaces.py	Wed Nov  6 18:19:02 2013
@@ -44,7 +44,7 @@
         title=_("Delays"),
         value_type=DictRow(title=_(u'Per content types delays'),
                            schema=IDelayTableRowSchema),
-        description=_("help_comingsoon_delay",
+        description=_("help_comingsoon_contenttypes_delay",
                       default=u"For each content type, type here delay "
                                "(in days) the coming soon "
                                "rule will be handled "

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/collective.contentrules.comingsoon.pot
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/collective.contentrules.comingsoon.pot	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/collective.contentrules.comingsoon.pot	Wed Nov  6 18:19:02 2013
@@ -4,7 +4,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2013-03-12 17:15+0000\n"
+"POT-Creation-Date: 2013-11-06 15:32+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"
@@ -17,19 +17,23 @@
 "Preferred-Encodings: utf-8 latin1\n"
 "Domain: collective.contentrules.comingsoon\n"
 
+#: ../profiles/default/controlpanel.xml
+msgid "Coming soon"
+msgstr ""
+
 #: ../controlpanel.py:11
 msgid "Coming soon content rule settings"
 msgstr ""
 
-#: ../interfaces.py:24
+#: ../interfaces.py:25
 msgid "Delay"
 msgstr ""
 
-#: ../interfaces.py:42
+#: ../interfaces.py:44
 msgid "Delays"
 msgstr ""
 
-#: ../interfaces.py:43
+#: ../interfaces.py:45
 msgid "Per content types delays"
 msgstr ""
 
@@ -42,13 +46,18 @@
 msgid "help_coming_soon_settings_editform"
 msgstr ""
 
+#. Default: "For each content type, type here delay (in days) the coming soon rule will be handled before which an event will start. For example, a delay of 1 signify the event will be handled the day before the event content start date"
+#: ../interfaces.py:47
+msgid "help_comingsoon_contenttypes_delay"
+msgstr ""
+
 #. Default: "Type here delay (in days) the coming soon rule will be handled before which an event will start. For example, a delay of 1 significates the event will be handled the day before the event content start date"
-#: ../interfaces.py:33
+#: ../interfaces.py:35
 msgid "help_comingsoon_delay"
 msgstr ""
 
 #. Default: "Rule handle delay"
-#: ../interfaces.py:31
+#: ../interfaces.py:33
 msgid "label_comingsoon_delay"
 msgstr ""
 

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/collective.contentrules.comingsoon.po
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/collective.contentrules.comingsoon.po	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/collective.contentrules.comingsoon.po	Wed Nov  6 18:19:02 2013
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: collective.contentrules.comingsoon\n"
-"POT-Creation-Date: 2013-03-12 17:15+0000\n"
+"POT-Creation-Date: 2013-11-06 15:32+0000\n"
 "PO-Revision-Date: 2013-03-12 18:16+0100\n"
 "Last-Translator: Cédric Messiant <[email protected]>\n"
 "Language-Team: Ecréall\n"
@@ -14,19 +14,23 @@
 "Preferred-Encodings: utf-8 latin1\n"
 "Domain: DOMAIN\n"
 
+#: ../profiles/default/controlpanel.xml
+msgid "Coming soon"
+msgstr ""
+
 #: ../controlpanel.py:11
 msgid "Coming soon content rule settings"
 msgstr "Paramètres des règles 'Coming soon'"
 
-#: ../interfaces.py:24
+#: ../interfaces.py:25
 msgid "Delay"
 msgstr "Délai"
 
-#: ../interfaces.py:42
+#: ../interfaces.py:44
 msgid "Delays"
 msgstr "Délais"
 
-#: ../interfaces.py:43
+#: ../interfaces.py:45
 msgid "Per content types delays"
 msgstr "Délais par types de contenus"
 
@@ -39,13 +43,18 @@
 msgid "help_coming_soon_settings_editform"
 msgstr "Vous pouvez saisir ici les options relatives aux règles 'Coming soon'"
 
+#. Default: "For each content type, type here delay (in days) the coming soon rule will be handled before which an event will start. For example, a delay of 1 signify the event will be handled the day before the event content start date"
+#: ../interfaces.py:47
+msgid "help_comingsoon_contenttypes_delay"
+msgstr ""
+
 #. Default: "Type here delay (in days) the coming soon rule will be handled before which an event will start. For example, a delay of 1 significates the event will be handled the day before the event content start date"
-#: ../interfaces.py:33
+#: ../interfaces.py:35
 msgid "help_comingsoon_delay"
 msgstr "Saisissez ici le délai (en jours) précédant le contenu Événement où la règle 'Coming soon' sera déclenchée. Par exemple, un délai de 1 signifie que la règle sera déclenchée la veille de la date de début de chaque contenu événement."
 
 #. Default: "Rule handle delay"
-#: ../interfaces.py:31
+#: ../interfaces.py:33
 msgid "label_comingsoon_delay"
 msgstr "Délai de déclenchement de la règle"
 

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/plone.po
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/plone.po	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/fr/LC_MESSAGES/plone.po	Wed Nov  6 18:19:02 2013
@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: YEAR-MO-DA HO:MI +ZONE\n"
+"POT-Creation-Date: 2013-11-06 15:32+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"
@@ -14,3 +14,35 @@
 "Preferred-Encodings: utf-8 latin1\n"
 "Domain: DOMAIN\n"
 
+#: ../configure.zcml
+msgid "Coming soon"
+msgstr ""
+
+#. Default: "Coming soon Content Rules"
+#: Default Profile title in configure.zcml
+msgid "Coming soon Content Rules"
+msgstr ""
+
+#: ../profiles/default/registry.xml
+msgid "Default delay"
+msgstr ""
+
+#. Default: "Installs Coming soon Content Rules package"
+#: Default Profile description in configure.zcml
+msgid "Installs Coming soon Content Rules package"
+msgstr ""
+
+#: ../profiles/default/registry.xml
+msgid "Per content types delays"
+msgstr ""
+
+#. Default: "Para cada tipo de contenido, ingrese aquí el retardo (en días) antes de la regla 'Acontecimiento próximo' será manejado antes de que comenzará un evento. Por ejemplo, un retardo de 1 significa que el evento será manejado el día antes de que la fecha de inicio del contenido evento"
+#: ../profiles/default/registry.xml
+msgid "help_comingsoon_contenttypes_delay"
+msgstr ""
+
+#. Default: "For each content type, type here delay (in days) the coming soon rule will be handled before which an event will start. For example, a delay of 1 signify the event will be handled the day before the event content start date"
+#: ../profiles/default/registry.xml
+msgid "help_comingsoon_delay"
+msgstr ""
+

Added: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/plone-manual.pot
==============================================================================
--- (empty file)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/plone-manual.pot	Wed Nov  6 18:19:02 2013
@@ -0,0 +1,29 @@
+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: "Coming soon Content Rules"
+#: Default Profile title in configure.zcml
+msgid "Coming soon Content Rules"
+msgstr ""
+
+#. Default: "Installs Coming soon Content Rules package"
+#: Default Profile description in configure.zcml
+msgid "Installs Coming soon Content Rules package"
+msgstr ""
+
+#: ../configure.zcml
+msgid "Coming soon"
+msgstr ""

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/plone.pot
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/plone.pot	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/plone.pot	Wed Nov  6 18:19:02 2013
@@ -0,0 +1,48 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2013-11-06 15:32+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"
+
+#: ../configure.zcml
+msgid "Coming soon"
+msgstr ""
+
+#. Default: "Coming soon Content Rules"
+#: Default Profile title in configure.zcml
+msgid "Coming soon Content Rules"
+msgstr ""
+
+#: ../profiles/default/registry.xml
+msgid "Default delay"
+msgstr ""
+
+#. Default: "Installs Coming soon Content Rules package"
+#: Default Profile description in configure.zcml
+msgid "Installs Coming soon Content Rules package"
+msgstr ""
+
+#: ../profiles/default/registry.xml
+msgid "Per content types delays"
+msgstr ""
+
+#. Default: "Para cada tipo de contenido, ingrese aquí el retardo (en días) antes de la regla 'Acontecimiento próximo' será manejado antes de que comenzará un evento. Por ejemplo, un retardo de 1 significa que el evento será manejado el día antes de que la fecha de inicio del contenido evento"
+#: ../profiles/default/registry.xml
+msgid "help_comingsoon_contenttypes_delay"
+msgstr ""
+
+#. Default: "For each content type, type here delay (in days) the coming soon rule will be handled before which an event will start. For example, a delay of 1 signify the event will be handled the day before the event content start date"
+#: ../profiles/default/registry.xml
+msgid "help_comingsoon_delay"
+msgstr ""
+

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/update.sh
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/update.sh	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/locales/update.sh	Wed Nov  6 18:19:02 2013
@@ -1,6 +1,26 @@
-domain=collective.contentrules.comingsoon
-i18ndude rebuild-pot --pot $domain.pot --create $domain ../
-i18ndude sync --pot $domain.pot */LC_MESSAGES/$domain.po
+domain='collective.contentrules.comingsoon'
 
-i18ndude rebuild-pot --pot plone.pot --create plone ../profiles
-i18ndude sync --pot plone.pot */*/plone.po
+# Synchronise the templates and scripts with the .pot file for collective.contentrules.comingsoon domain.
+i18ndude rebuild-pot --pot ./$domain.pot --create $domain ../
+i18ndude sync --pot ./$domain.pot ./*/LC_MESSAGES/$domain.po
+
+# Synchronise the collective.contentrules.comingsoon's pot file (Used for the workflows)
+i18ndude rebuild-pot --pot ./plone.pot --merge ./plone-manual.pot --create plone ../profiles
+i18ndude sync --pot plone.pot ./*/*/plone.po
+
+WARNINGS=`find . -name "*pt" | xargs i18ndude find-untranslated | grep -e '^-WARN' | wc -l`
+ERRORS=`find . -name "*pt" | xargs i18ndude find-untranslated | grep -e '^-ERROR' | wc -l`
+FATAL=`find . -name "*pt"  | xargs i18ndude find-untranslated | grep -e '^-FATAL' | wc -l`
+
+echo
+echo "There are $WARNINGS warnings \(possibly missing i18n markup\)"
+echo "There are $ERRORS errors \(almost definitely missing i18n markup\)"
+echo "There are $FATAL fatal errors \(template could not be parsed, eg. if it\'s not html\)"
+echo "For more details, run \'find . -name \"\*pt\" \| xargs i18ndude find-untranslated\' or"
+echo "Look the rebuild i18n log generate for this script called \'rebuild_i18n.log\' on locales dir"
+
+rm ./rebuild_i18n.log
+
+touch ./rebuild_i18n.log
+
+find ../ -name "*pt" | xargs i18ndude find-untranslated > ./rebuild_i18n.log

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/controlpanel.xml
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/controlpanel.xml	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/controlpanel.xml	Wed Nov  6 18:19:02 2013
@@ -2,7 +2,7 @@
 <object
     name="portal_controlpanel"
     xmlns:i18n="http://xml.zope.org/namespaces/i18n"
-    i18n:domain="bonduellequality"
+    i18n:domain="collective.contentrules.comingsoon"
     purge="False">
 
     <configlet

Modified: collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/registry.xml
==============================================================================
--- collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/registry.xml	(original)
+++ collective.contentrules.comingsoon/trunk/collective/contentrules/comingsoon/profiles/default/registry.xml	Wed Nov  6 18:19:02 2013
@@ -1,23 +1,22 @@
 <registry
-  xmlns:i18n="http://xml.zope.org/namespaces/i18n">
+  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+  i18n:domain="plone">
   <record field="delay"
           interface="collective.contentrules.comingsoon.interfaces.IComingSoonSettings"
-          name="collective.contentrules.comingsoon.interfaces.IComingSoonSettings.delay"
-          i18n:domain="collective.contentrules.comingsoon">
+          name="collective.contentrules.comingsoon.interfaces.IComingSoonSettings.delay">
      <field type="plone.registry.field.Int">
-         <title>Default delay</title>
-         <description>help_comingsoon_delay</description>
+         <title i18n:translate="">Default delay</title>
+         <description i18n:translate="help_comingsoon_delay">For each content type, type here delay (in days) the coming soon rule will be handled before which an event will start. For example, a delay of 1 signify the event will be handled the day before the event content start date</description>
          <min>0</min>
      </field>
      <value>1</value>
   </record>
   <record field="delays"
           interface="collective.contentrules.comingsoon.interfaces.IComingSoonSettings"
-          name="collective.contentrules.comingsoon.interfaces.IComingSoonSettings.delays"
-          i18n:domain="collective.contentrules.comingsoon">
+          name="collective.contentrules.comingsoon.interfaces.IComingSoonSettings.delays">
      <field type="plone.registry.field.List">
-         <title>Per content types delays</title>
-         <description>help_comingsoon_delays</description>
+         <title i18n:translate="">Per content types delays</title>
+         <description i18n:translate="help_comingsoon_contenttypes_delay">Para cada tipo de contenido, ingrese aquí el retardo (en días) antes de la regla 'Acontecimiento próximo' será manejado antes de que comenzará un evento. Por ejemplo, un retardo de 1 significa que el evento será manejado el día antes de que la fecha de inicio del contenido evento</description>
      </field>
   </record>
-</registry>
\ No newline at end of file
+</registry>

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Collective-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/collective-checkins