[longomatch/redesign2: 124/140] Format subcategories in a cleaner way
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign2: 124/140] Format subcategories in a cleaner way
- Date: Tue, 24 May 2011 22:06:31 +0000 (UTC)
commit fb2bde0d901a2aab2f3b3070df2b8cc06cab504f
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]