[longomatch/redesign3: 123/143] Format subcategories in a cleaner way
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign3: 123/143] Format subcategories in a cleaner way
- Date: Mon, 15 Aug 2011 22:55:32 +0000 (UTC)
commit 284d712884582ac3340822eef349baec8b699de8
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]