[longomatch] Fix names of teams and make them translatable
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix names of teams and make them translatable
- Date: Mon, 27 Apr 2015 22:22:53 +0000 (UTC)
commit 8cab640c01f2dc82a1b6a4643b29c97ea20feab4
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Apr 27 11:35:39 2015 +0200
Fix names of teams and make them translatable
LongoMatch.Services/TemplatesService.cs | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Services/TemplatesService.cs b/LongoMatch.Services/TemplatesService.cs
index 0e7c2b7..31c0a3a 100644
--- a/LongoMatch.Services/TemplatesService.cs
+++ b/LongoMatch.Services/TemplatesService.cs
@@ -91,7 +91,7 @@ namespace LongoMatch.Services
public class TemplatesProvider<T>: ITemplateProvider<T> where T: ITemplate
{
readonly MethodInfo methodDefaultTemplate;
- List<T> systemTemplates;
+ protected List<T> systemTemplates;
IStorage storage;
public TemplatesProvider (IStorage storage)
@@ -250,8 +250,10 @@ namespace LongoMatch.Services
{
public TeamTemplatesProvider (IStorage storage) : base (storage)
{
- Create ("Home team", 20);
- Create ("Away team", 20);
+ Create (Catalog.GetString ("Home team"), 20);
+ systemTemplates.Last ().TeamName = Catalog.GetString ("Home");
+ Create (Catalog.GetString ("Away team"), 20);
+ systemTemplates.Last ().TeamName = Catalog.GetString ("Away");
}
}
@@ -262,7 +264,7 @@ namespace LongoMatch.Services
// Create the default template, it will be added to the list
// of system templates to make it always available on the app
// and also read-only
- Create ("Default dashboard", 20);
+ Create (Catalog.GetString ("Default dashboard"), 20);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]