diff options
author | emkael <emkael@tlen.pl> | 2017-08-23 18:01:31 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-23 18:01:31 +0200 |
commit | ddc074e5d1f21ed79efc81d5406eeeb6598445be (patch) | |
tree | e14a9c1727c2430d93842a37b15ebb8dbe28cc07 /Aktywator | |
parent | dbac65d7fa0e69a27a8e19b9382981921273be4e (diff) |
Not shortening teams' names
Diffstat (limited to 'Aktywator')
-rw-r--r-- | Aktywator/Tournament.cs | 13 |
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; } } |