[longomatch/redesign2: 11/17] Format subcategories in a cleaner way
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign2: 11/17] Format subcategories in a cleaner way
- Date: Wed, 27 Apr 2011 20:43:00 +0000 (UTC)
commit 00efe4fe23e3b66e704010da287fc329a7d436c1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Apr 27 22:15:27 2011 +0200
Format subcategories in a cleaner way
LongoMatch/Store/SubCategory.cs | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch/Store/SubCategory.cs b/LongoMatch/Store/SubCategory.cs
index a558c2c..cddf8bd 100644
--- a/LongoMatch/Store/SubCategory.cs
+++ b/LongoMatch/Store/SubCategory.cs
@@ -73,10 +73,8 @@ namespace LongoMatch.Store
protected string RenderDesc(string type, string values) {
string str;
- str = Catalog.GetString("Name: ");
- str += Name + " \n";
- str += Catalog.GetString("Type: " + type);
- str += "\n";
+ str = String.Format("{0}: {1} [{2}]\n",
+ Catalog.GetString("Name"), Name, type);
str += values;
return str;
}
@@ -93,7 +91,10 @@ namespace LongoMatch.Store
string tags = "";
foreach (string tag in this) {
- tags += tag + "";
+ if (tags == "")
+ tags += tag;
+ else
+ tags += " - " + tag;
}
return RenderDesc (Catalog.GetString("Tags list"),
Catalog.GetString("Tags:" +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]