 +        case need_id:
 +          ret=sscanf(str,"%d\n",&id);
 +          if (ret!=1) {
-+            fprintf(stderr,"WARNING - Syntax error: %s\n",str);
-+            fclose(f);
++            fprintf(stderr,_("WARNING - Syntax error: %s\n"),str);
 +            free_lyrics(lyrics);
 +            return NULL;
 +          }
 +          if (id!=last_seen_id+1) {
-+            fprintf(stderr,"WARNING - non consecutive ids: %s - pretending not to have noticed\n",str);
++            fprintf(stderr,_("WARNING - non consecutive ids: %s - pretending not to have noticed\n"),str);
 +          }
 +          last_seen_id=id;
 +          need=need_timing;

+#include <kate/oggkate.h>
+#endif
+
+#include "srt.h"
+
+/*
+static void report_unknown_subtitle_encoding(const char *name)
+{
+  fprintf(stderr, "Unknown character encoding: %s\n",name);
+  fprintf(stderr, "Valid character encodings are:\n");
+  fprintf(stderr, "  " SUPPORTED_ENCODINGS "\n");
+}
+*/
+
+static char *fgets2(char *s,size_t sz,FILE *f)
+{
+    char *ret = fgets(s, sz, f);

                 fprintf(stderr, _("WARNING: Unknown option specified, ignoring->\n"));
                 break;
--- /dev/null	2008-04-05 19:24:09.000000000 +0100
+++ oggenc/lyrics.h	2008-07-14 18:58:35.000000000 +0100
@@ -0,0 +1,31 @@
+#ifndef __LYRICS_H
+#define __LYRICS_H
+
+#include <stddef.h>
+
