[banshee] build: Prevent unused addin strings from getting translated
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] build: Prevent unused addin strings from getting translated
- Date: Wed, 16 Feb 2011 23:31:48 +0000 (UTC)
commit 25e3aa74046389fd1037d16146625a8ef579ef6a
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Feb 16 17:21:16 2011 -0600
build: Prevent unused addin strings from getting translated
build/AddinXmlStringExtractor.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/build/AddinXmlStringExtractor.cs b/build/AddinXmlStringExtractor.cs
index d10a8ac..9d837f5 100644
--- a/build/AddinXmlStringExtractor.cs
+++ b/build/AddinXmlStringExtractor.cs
@@ -1,4 +1,5 @@
using System;
+using System.Linq;
using System.Xml.XPath;
using System.Collections.Generic;
@@ -22,7 +23,13 @@ internal static class AddinXmlStringCatalog
var paths = new List<string> (args);
paths.Sort ();
+ var blacklist = new string [] { "GStreamer", "Gnome", "Osx", "Unix", "MeeGo", "Gio", "NowPlaying",
+ "Hal", "src/Core", "Banshee.Dap/", "RemoteAudio", "Sample", "SqlDebugConsole", "Template" };
+
foreach (var path in paths) {
+ if (blacklist.Any (path.Contains))
+ continue;
+
Console.WriteLine (" // {0}", path);
var xpath = new XPathDocument (path);
var nav = xpath.CreateNavigator ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]