[Checkins] SVN: lovely.flvplayer/trunk/src/lovely/flvplayer/ created translatable error message which gets postloaded

Manfred Schwendinger manfred.schwendiger at lovelysystems.com
Thu Jan 4 11:18:53 EST 2007


Log message for revision 71708:
  created translatable error message which gets postloaded

Changed:
  U   lovely.flvplayer/trunk/src/lovely/flvplayer/configure.zcml
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/i18n.py
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/locales/
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/lovely.flvplayer.mo
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/lovely.flvplayer.po
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/locales/lovely.flvplayer.pot
  A   lovely.flvplayer/trunk/src/lovely/flvplayer/noflashdetected.pt
  U   lovely.flvplayer/trunk/src/lovely/flvplayer/resources/flvplayer.js

-=-
Modified: lovely.flvplayer/trunk/src/lovely/flvplayer/configure.zcml
===================================================================
--- lovely.flvplayer/trunk/src/lovely/flvplayer/configure.zcml	2007-01-04 10:49:38 UTC (rev 71707)
+++ lovely.flvplayer/trunk/src/lovely/flvplayer/configure.zcml	2007-01-04 16:18:53 UTC (rev 71708)
@@ -2,7 +2,8 @@
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:zcml="http://namespaces.zope.org/zcml"
-   i18n_domain="zope"
+   xmlns:i18n="http://namespaces.zope.org/i18n"
+   i18n_domain="lovely.flvplayer">
    >
 
  <configure zcml:condition="have zc.resourcelibrary">
@@ -13,4 +14,14 @@
   </resourceLibrary>
  </configure>
  
+ <!-- Flashdetection View  -->
+   <browser:page
+       for="*"
+       name="noflashdetected.html"
+       template="noflashdetected.pt"
+       permission="zope.Public"
+       />
+        
+  <i18n:registerTranslations directory="locales" />
+ 
 </configure>
\ No newline at end of file

Added: lovely.flvplayer/trunk/src/lovely/flvplayer/i18n.py
===================================================================
--- lovely.flvplayer/trunk/src/lovely/flvplayer/i18n.py	2007-01-04 10:49:38 UTC (rev 71707)
+++ lovely.flvplayer/trunk/src/lovely/flvplayer/i18n.py	2007-01-04 16:18:53 UTC (rev 71708)
@@ -0,0 +1,19 @@
+##############################################################################
+#
+# Copyright (c) 2006 Lovely Systems 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.
+#
+##############################################################################
+"""
+$Id$
+"""
+
+import zope.i18nmessageid
+_ = MessageFactory = zope.i18nmessageid.MessageFactory('lovely.flvplayer')


Property changes on: lovely.flvplayer/trunk/src/lovely/flvplayer/i18n.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/lovely.flvplayer.mo
===================================================================
(Binary files differ)


Property changes on: lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/lovely.flvplayer.mo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/lovely.flvplayer.po
===================================================================
--- lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/lovely.flvplayer.po	2007-01-04 10:49:38 UTC (rev 71707)
+++ lovely.flvplayer/trunk/src/lovely/flvplayer/locales/de/LC_MESSAGES/lovely.flvplayer.po	2007-01-04 16:18:53 UTC (rev 71708)
@@ -0,0 +1,4 @@
+#. Default: "Flash Player detection failed. Please install the Flash Player Plugin. You can install the plugin <a href=\"http://www.adobe.com/go/getflashplayer\">here</a> for free."
+#: lib/python/lovely/flvplayer/noflashdetected.pt:1
+msgid "flash-detection-error"
+msgstr "Es konnte kein Flash Player festgestellt werden. Bitte installieren Sie den aktuellen Flash Player, den Sie <a href=\"http://www.adobe.com/go/getflashplayer\">hier</a> gratis erhalten."

Added: lovely.flvplayer/trunk/src/lovely/flvplayer/locales/lovely.flvplayer.pot
===================================================================
--- lovely.flvplayer/trunk/src/lovely/flvplayer/locales/lovely.flvplayer.pot	2007-01-04 10:49:38 UTC (rev 71707)
+++ lovely.flvplayer/trunk/src/lovely/flvplayer/locales/lovely.flvplayer.pot	2007-01-04 16:18:53 UTC (rev 71708)
@@ -0,0 +1,30 @@
+##############################################################################
+#
+# Copyright (c) 2003-2004 Zope Corporation 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.
+#
+##############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Thu Jan  4 12:56:50 2007\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: lib/python/lovely/flvplayer/noflashdetected.pt:1
+#. Default: "Flash Player detection failed. Please install the Flash Player Plugin. You can install the plugin <a href=\"http://www.adobe.com/go/getflashplayer\">here</a> for free."
+msgid "flash-detection-error"
+msgstr ""
+

Added: lovely.flvplayer/trunk/src/lovely/flvplayer/noflashdetected.pt
===================================================================
--- lovely.flvplayer/trunk/src/lovely/flvplayer/noflashdetected.pt	2007-01-04 10:49:38 UTC (rev 71707)
+++ lovely.flvplayer/trunk/src/lovely/flvplayer/noflashdetected.pt	2007-01-04 16:18:53 UTC (rev 71708)
@@ -0,0 +1,3 @@
+<div i18n:domain="lovely.flvplayer" class="flash-detection-error" i18n:translate="flash-detection-error">
+	Flash Player detection failed. Please install the Flash Player Plugin. You can install the plugin <a href="http://www.adobe.com/go/getflashplayer">here</a> for free.
+</div>

Modified: lovely.flvplayer/trunk/src/lovely/flvplayer/resources/flvplayer.js
===================================================================
--- lovely.flvplayer/trunk/src/lovely/flvplayer/resources/flvplayer.js	2007-01-04 10:49:38 UTC (rev 71707)
+++ lovely.flvplayer/trunk/src/lovely/flvplayer/resources/flvplayer.js	2007-01-04 16:18:53 UTC (rev 71708)
@@ -78,11 +78,21 @@
     
     var success = so.write(target_id);
     if (!success){
+    	
+ 		var ajaxUpdater = new Ajax.Updater(
+			target_id, 
+			'noflashdetected.html', 
+			{
+				method: 'get'
+			});
+			   
+			/*
         // flash plugin missing or too old
         var error_msg = "<div class=\"flash-detection-error\">Flash Player detection failed. ";
         error_msg += "Please install the Flash Player Plugin. You can install the plugin ";
         error_msg += "<a href=\"http://www.adobe.com/go/getflashplayer\">here</a> for free.</div>";
         document.getElementById(target_id).innerHTML = error_msg;    
+        */
     }
 }
 



More information about the Checkins mailing list