]> git.pld-linux.org Git - packages/cups.git/blob - cups-translate.patch
- up to 1.3.9
[packages/cups.git] / cups-translate.patch
1 --- cups-1.3.7/locale/translate.c~      2008-07-19 22:39:11.000000000 +0300
2 +++ cups-1.3.7/locale/translate.c       2008-07-19 22:39:54.082523396 +0300
3 @@ -293,16 +293,16 @@
4        *bufptr = '\0';
5  
6       /*
7 -      * Find the first textarea element - that will have the translation data...
8 +      * Find the div containing translation
9        */
10  
11 -      if ((bufptr = strstr(buffer, "<textarea")) == NULL)
12 +      if ((bufptr = strstr(buffer, "<div id=result_box")) == NULL)
13        {
14         /*
15          * No textarea, abort!
16         */
17  
18 -        puts("NO TEXTAREA!");
19 +        puts("NO div id=result_box!");
20         ret = 0;
21         break;
22        }
23 @@ -313,20 +313,20 @@
24          * textarea doesn't end, abort!
25         */
26  
27 -        puts("TEXTAREA SHORT DATA!");
28 +        puts("DIV SHORT DATA!");
29         ret = 0;
30         break;
31        }
32  
33        bufptr ++;
34  
35 -      if ((bufend = strstr(bufptr, "</textarea>")) == NULL)
36 +      if ((bufend = strstr(bufptr, "</div>")) == NULL)
37        {
38         /*
39          * textarea doesn't close, abort!
40         */
41  
42 -        puts("/TEXTAREA SHORT DATA!");
43 +        puts("/DIV SHORT DATA!");
44         ret = 0;
45         break;
46        }
This page took 0.027804 seconds and 3 git commands to generate.