You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2009/04/28 23:15:01 UTC

svn commit: r769539 - in /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5: tapestry-messages.js tapestry-messages_de.js tapestry.js

Author: hlship
Date: Tue Apr 28 21:14:51 2009
New Revision: 769539

URL: http://svn.apache.org/viewvc?rev=769539&view=rev
Log:
TAP5-601: Add German translation for client-side JavaScript messages

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages_de.js   (with props)
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages.js
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages.js?rev=769539&r1=769538&r2=769539&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages.js Tue Apr 28 21:14:51 2009
@@ -34,5 +34,7 @@
 
     notAnInteger : "Not an integer",
 
-    invalidCharacter : "Invalid character"
+    invalidCharacter : "Invalid character",
+
+    communicationFailed : "Communication with the server failed: "
 };
\ No newline at end of file

Added: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages_de.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages_de.js?rev=769539&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages_de.js (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages_de.js Tue Apr 28 21:14:51 2009
@@ -0,0 +1,40 @@
+// Copyright 2009 The Apache Software Foundation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+Tapestry.Messages = {
+
+    pageIsLoading : "Bitte warten während die Seite zu Ende lädt ...",
+
+    missingInitializer : "Die Funktion Tapestry.Initializer.#{name}() existiert nicht.",
+
+    missingValidator :      "Die Funktion Tapestry.Validator.#{name}() existiert nicht für das Feld '#{fieldName}'.",
+
+    ajaxFailure : "Ajax Fehler: Status #{status} für #{request.url}: ",
+
+    ajaxRequestUnsuccessful : "Die Serveranfrage schlug fehl. Es gibt womöglich ein Problem beim Zugriff auf den Server.",
+
+    clientException :     "Client exception beim Verarbeiten der Antwort: ",
+
+    missingZone :   "Ajax Zone '#{id}' konnte für ein dynamisches Update nicht gefunden werden.",
+
+    noZoneManager :   "Ajax Zone '#{id}' ist nicht mit einem Tapestry.ZoneManager Objekt verknüpft." ,
+
+    pathDoesNotStartWithSlash : "Der externe Pfad #{path} beginnt nicht mit einem führenden '/'.",
+
+    notAnInteger : "Kein ganzzahliger Wert",
+
+    invalidCharacter : "Ungültiges Zeichen",
+
+    communicationFailed : "Kommunikation mit dem Server ist fehlgeschlagen: "
+};

Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-messages_de.js
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=769539&r1=769538&r2=769539&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Tue Apr 28 21:14:51 2009
@@ -312,7 +312,7 @@
     {
         var message = response.getHeader("X-Tapestry-ErrorMessage");
 
-        Tapestry.error("Communication with the server failed: " + message);
+        Tapestry.error(Tapestry.Messages.communicationFailed + message);
 
         Tapestry.debug(Tapestry.Messages.ajaxFailure + message, response);
     },