Permalink
Browse files

build: cleanup and remove translations

  • Loading branch information...
1 parent e523374 commit 5fddddbe21a2fc69ba254f6bdf6e6c9afc88a8f2 @hbons committed Jul 26, 2012
View
@@ -1,7 +0,0 @@
-[main]
-host = https://www.transifex.net
-
-[sparkleshare.UI]
-file_filter = SparkleShare/Common/Translations/<lang>.po
-source_file = SparkleShare/Common/Translations/sparkleshare.pot
-source_lang = en
@@ -14,11 +14,15 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
+
using System;
using System.Reflection;
-[assembly: AssemblyTitle("SparkleLib")]
-[assembly: AssemblyVersion("0.9.0.0")]
+[assembly:AssemblyTitle ("SparkleLib")]
+[assembly:AssemblyVersion ("@VERSION@")]
+[assembly:AssemblyCopyright ("Copyright (c) 2010 Hylke Bons and others")]
+[assembly:AssemblyTrademark ("SparkleShare is a trademark of SparkleShare Ltd.")]
+
namespace SparkleLib {
public class Defines {
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -12,6 +12,7 @@
<AssemblyName>SparkleLib.Git</AssemblyName>
<FileAlignment>512</FileAlignment>
<ReleaseVersion />
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -53,7 +54,6 @@
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
- <Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
@@ -25,7 +25,8 @@ public static class SparkleBackend {
public static string Version {
get {
- return Assembly.GetExecutingAssembly ().GetName ().Version.ToString ();
+ string version = "" + Assembly.GetExecutingAssembly ().GetName ().Version;
+ return version.Substring (0, version.Length - 2);
}
}
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -32,7 +32,6 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
- <Reference Include="Mono.Posix" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
@@ -29,13 +29,6 @@ public class SparkleAbout : Window {
private Label updates;
- // Short alias for the translations
- public static string _ (string s)
- {
- return Catalog.GetString (s);
- }
-
-
public SparkleAbout () : base ("")
{
DeleteEvent += delegate (object o, DeleteEventArgs args) {
@@ -48,7 +41,7 @@ public SparkleAbout () : base ("")
BorderWidth = 0;
IconName = "folder-sparkleshare";
WindowPosition = WindowPosition.Center;
- Title = _("About SparkleShare");
+ Title = "About SparkleShare";
AppPaintable = true;
string image_path = new string [] { SparkleUI.AssetsPath, "pixmaps", "about.png" }.Combine ();
@@ -42,13 +42,6 @@ public class SparkleEventLog : Window {
private SparkleSpinner spinner;
- // Short alias for the translations
- public static string _ (string s)
- {
- return Catalog.GetString (s);
- }
-
-
public SparkleEventLog () : base ("")
{
SetSizeRequest (480, (int) (Gdk.Screen.Default.Height * 0.8));
@@ -61,7 +54,7 @@ public SparkleEventLog () : base ("")
Resizable = true;
BorderWidth = 0;
- Title = _("Recent Changes");
+ Title = "Recent Changes";
IconName = "folder-sparkleshare";
DeleteEvent += delegate (object o, DeleteEventArgs args) {
@@ -202,7 +195,7 @@ public void UpdateChooser (string [] folders)
ListStore store = new ListStore (typeof (string));
- store.AppendValues (_("Summary"));
+ store.AppendValues ("Summary");
store.AppendValues ("---");
this.combo_box.Model = store;
Oops, something went wrong.

0 comments on commit 5fddddb

Please sign in to comment.