[pdfmod] Prevent a couple strings being marked for translation
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pdfmod] Prevent a couple strings being marked for translation
- Date: Sun, 2 Aug 2009 20:30:18 +0000 (UTC)
commit 72bd1379d02d0ef55aeab7fba303d6cd4eb3be3e
Author: Gabriel Burt <gabriel burt gmail com>
Date: Sun Aug 2 13:26:24 2009 -0700
Prevent a couple strings being marked for translation
data/pdfmod.desktop.in | 2 +-
src/PdfMod/PdfMod.Actions/ExportImagesAction.cs | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/pdfmod.desktop.in b/data/pdfmod.desktop.in
index 31d6059..d2136b7 100644
--- a/data/pdfmod.desktop.in
+++ b/data/pdfmod.desktop.in
@@ -1,5 +1,5 @@
[Desktop Entry]
-_Name=PDF Mod
+Name=PDF Mod
_Comment=Remove, extract, and rotate pages in PDF documents
_GenericName=PDF Modifier
DocPath=pdfmod
diff --git a/src/PdfMod/PdfMod.Actions/ExportImagesAction.cs b/src/PdfMod/PdfMod.Actions/ExportImagesAction.cs
index f21113f..febd346 100644
--- a/src/PdfMod/PdfMod.Actions/ExportImagesAction.cs
+++ b/src/PdfMod/PdfMod.Actions/ExportImagesAction.cs
@@ -82,7 +82,9 @@ namespace PdfMod.Actions
continue;
var x_object = reference.Value as PdfDictionary;
- if (x_object != null && x_object.Elements.GetString ("/Subtype") == "/Image") {
+ // Put this in a variable to pass to GetString so that it's not pulled out as a translation string
+ var subtype = "/Subtype";
+ if (x_object != null && x_object.Elements.GetString (subtype) == "/Image") {
yield return new ImageInfo () { Page = page, ImageObject = x_object, PageIndex = i++ };
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]