summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-23 18:01:31 +0200
committeremkael <emkael@tlen.pl>2017-08-23 18:01:31 +0200
commitddc074e5d1f21ed79efc81d5406eeeb6598445be (patch)
treee14a9c1727c2430d93842a37b15ebb8dbe28cc07 /Aktywator
parentdbac65d7fa0e69a27a8e19b9382981921273be4e (diff)
Not shortening teams' names
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Tournament.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs
index 87fa759..aa5f042 100644
--- a/Aktywator/Tournament.cs
+++ b/Aktywator/Tournament.cs
@@ -113,18 +113,23 @@ namespace Aktywator
virtual internal string shortenNameToBWS(string name)
{
+ name = Common.bezOgonkow(name);
if ("pauza".Equals(name.Trim()))
{
return " ";
}
else
{
- string[] nameParts = name.Trim().Split(' ');
- if (nameParts.Length > 0)
+ if (this._type != Tournament.TYPE_TEAMY)
{
- nameParts[0] = (nameParts[0].Length > 0) ? nameParts[0][0].ToString() : " ";
+ string[] nameParts = name.Trim().Split(' ');
+ if (nameParts.Length > 0)
+ {
+ nameParts[0] = (nameParts[0].Length > 0) ? nameParts[0][0].ToString() : " ";
+ }
+ return String.Join(" ", nameParts);
}
- return String.Join(" ", nameParts);
+ return name;
}
}