]> git.pld-linux.org Git - packages/cups.git/commitdiff
- patch to match google translate site changes
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 19 Jul 2008 19:41:37 +0000 (19:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cups-translate.patch -> 1.1

cups-translate.patch [new file with mode: 0644]

diff --git a/cups-translate.patch b/cups-translate.patch
new file mode 100644 (file)
index 0000000..4607fd5
--- /dev/null
@@ -0,0 +1,46 @@
+--- cups-1.3.7/locale/translate.c~     2008-07-19 22:39:11.000000000 +0300
++++ cups-1.3.7/locale/translate.c      2008-07-19 22:39:54.082523396 +0300
+@@ -293,16 +293,16 @@
+       *bufptr = '\0';
+      /*
+-      * Find the first textarea element - that will have the translation data...
++      * Find the div containing translation
+       */
+-      if ((bufptr = strstr(buffer, "<textarea")) == NULL)
++      if ((bufptr = strstr(buffer, "<div id=result_box")) == NULL)
+       {
+        /*
+         * No textarea, abort!
+       */
+-        puts("NO TEXTAREA!");
++        puts("NO div id=result_box!");
+       ret = 0;
+       break;
+       }
+@@ -313,20 +313,20 @@
+         * textarea doesn't end, abort!
+       */
+-        puts("TEXTAREA SHORT DATA!");
++        puts("DIV SHORT DATA!");
+       ret = 0;
+       break;
+       }
+       bufptr ++;
+-      if ((bufend = strstr(bufptr, "</textarea>")) == NULL)
++      if ((bufend = strstr(bufptr, "</div>")) == NULL)
+       {
+        /*
+         * textarea doesn't close, abort!
+       */
+-        puts("/TEXTAREA SHORT DATA!");
++        puts("/DIV SHORT DATA!");
+       ret = 0;
+       break;
+       }
This page took 0.033936 seconds and 4 git commands to generate.