From b54ac8b25995ab10032405ef96da827fceb9f5bc Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen Date: Tue, 7 Jun 2011 14:39:35 -0600 Subject: [PATCH] fixing upstream issue 200 --- SparkleLib/SparkleConfig.cs | 6 +++++- po/ja.po | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SparkleLib/SparkleConfig.cs b/SparkleLib/SparkleConfig.cs index 614d1fb9..0bbbdab4 100644 --- a/SparkleLib/SparkleConfig.cs +++ b/SparkleLib/SparkleConfig.cs @@ -62,7 +62,11 @@ namespace SparkleLib { SparkleBackend.Platform == PlatformID.MacOSX) { user_name = new UnixUserInfo (UnixEnvironment.UserName).RealName; - user_name = user_name.TrimEnd (",".ToCharArray()); + if (string.IsNullOrEmpty (user_name)) { + user_name = UnixEnvironment.UserName; + } else { + user_name = user_name.TrimEnd (",".ToCharArray()); + } } else { user_name = Environment.UserName; diff --git a/po/ja.po b/po/ja.po index 9ec158ec..74784962 100644 --- a/po/ja.po +++ b/po/ja.po @@ -289,7 +289,7 @@ msgstr "フォルダ'{0}'の同期中..." #: ../SparkleShare/SparkleIntro.cs:568 msgid "This may take a while.\n" -msgstr "しばらくお待ちください。" +msgstr "しばらくお待ちください。\n" #: ../SparkleShare/SparkleIntro.cs:569 msgid "Are you sure it’s not coffee o'clock?"