changeset 34851:4c5ef823ee0f

Enable translation of font file filter items.
author ib
date Mon, 21 May 2012 10:33:08 +0000
parents 470c696cc5cf
children 9b31dd16948d
files gui/ui/gtk/fileselect.c help/help_mp-de.h help/help_mp-en.h
diffstat 3 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/gtk/fileselect.c	Mon May 21 10:03:57 2012 +0000
+++ b/gui/ui/gtk/fileselect.c	Mon May 21 10:33:08 2012 +0000
@@ -132,13 +132,13 @@
 char * fsFontFileNames[][2] =
          {
 #ifdef CONFIG_FREETYPE
-	   { "True Type fonts (*.ttf)",					"*.ttf" },
-	   { "Type1 fonts (*.pfb)",					"*.pfb" },
-	   { "All fonts",						"*.ttf,*.pfb" },
+	   { MSGTR_Filter_TTF,       "*.ttf" },
+	   { MSGTR_Filter_Type1,     "*.pfb" },
+	   { MSGTR_Filter_AllFonts,  "*.ttf,*.pfb" },
 #else
-	   { "Font files (*.desc)",					"*.desc" },
+	   { MSGTR_Filter_FontFiles, "*.desc" },
 #endif
-	   { "All files",						"*" },
+	   { MSGTR_Filter_AllFiles,  "*" },
 	   { NULL,NULL }
 	 };
 int fsLastFontFilterSelected = -1;
--- a/help/help_mp-de.h	Mon May 21 10:03:57 2012 +0000
+++ b/help/help_mp-de.h	Mon May 21 10:33:08 2012 +0000
@@ -765,6 +765,10 @@
 #define MSGTR_NoFileLoaded "Keine Datei geladen."
 #define MSGTR_Filter_AllSubtitles "Alle Untertitel"
 #define MSGTR_Filter_AllFiles "Alle Dateien"
+#define MSGTR_Filter_TTF "TrueType-Schriften (*.ttf)"
+#define MSGTR_Filter_Type1 "Typ-1-Schriften (*.pfb)"
+#define MSGTR_Filter_AllFonts "Alle Schriften"
+#define MSGTR_Filter_FontFiles "Schriftbeschreibungen (*.desc)"
 
 // --- buttons ---
 #define MSGTR_Ok "Ok"
--- a/help/help_mp-en.h	Mon May 21 10:03:57 2012 +0000
+++ b/help/help_mp-en.h	Mon May 21 10:33:08 2012 +0000
@@ -559,6 +559,10 @@
 #define MSGTR_NoFileLoaded "No file loaded."
 #define MSGTR_Filter_AllSubtitles "All subtitles"
 #define MSGTR_Filter_AllFiles "All files"
+#define MSGTR_Filter_TTF "True Type fonts (*.ttf)"
+#define MSGTR_Filter_Type1 "Type1 fonts (*.pfb)"
+#define MSGTR_Filter_AllFonts "All fonts"
+#define MSGTR_Filter_FontFiles "Font files (*.desc)"
 
 // --- buttons ---
 #define MSGTR_Ok "OK"