digitie / transmission-remote-dotnet

Automatically exported from code.google.com/p/transmission-remote-dotnet
GNU General Public License v3.0
1 stars 0 forks source link

UI Fixes: ETA sorting and Date formats (*Lowest Priority*) #226

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
ETA Sorting:
  When I click the ETA column to see what downloads are estimated to 
complete the first, the sort seems to put Paused (blank ETA) downloads as 
completed before the downloading ones.  Conceptually the same problem when 
sorted the other way.

Date Format:
  Seems most of the other Windows programs I run use mm/dd/YYYY format, yet 
transmission-remote-dotnet formats dates like normal timestamps, dd/mm/YYYY 
(which is much more "logical", but I digress).  Now that transmission-
remote-dotnet has some i18n support, how about some L10n for the date 
strings? :)

(See attached images of uTorrent's interface for what I expect.)

P.S. I'm submitting this out of love for the program :).

Original issue reported on code.google.com by tbea...@gmail.com on 5 Mar 2010 at 10:39

Attachments:

GoogleCodeExporter commented 8 years ago
r543 change the ETA sorting.

But the date format is the system builtin dateformat.

Original comment by elso.and...@gmail.com on 5 Mar 2010 at 2:23

GoogleCodeExporter commented 8 years ago
Globalization (i18n + L10n in MS speak)

I think it's a matter of getting the current culture from the system and then 
the 
ToString() method will have a different format.

Good example:
http://msdn.microsoft.com/en-us/library/5hh873ya.aspx

Better example from http://msdn.microsoft.com/en-us/library/k494fzbf.aspx:

using System;
using System.Globalization;
using System.Threading;

public class DateToStringExample
{
   public static void Main()
   {
      CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
      DateTime exampleDate = new DateTime(2008, 5, 1, 18, 32, 6);

      // Display the date using the current (en-US) culture.
      Console.WriteLine(exampleDate.ToString());

      // Change the current culture to fr-FR and display the date.
      Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fr-
FR");
      Console.WriteLine(exampleDate.ToString());

      // Change the current culture to ja-JP and display the date.
      Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("ja-
JP");
      Console.WriteLine(exampleDate.ToString());

      // Restore the original culture
      Thread.CurrentThread.CurrentCulture = currentCulture;
   }
}
// The example displays the following output to the console:
//       5/1/2008 6:32:06 PM
//       01/05/2008 18:32:06
//       2008/05/01 18:32:06

Original comment by tbea...@gmail.com on 7 Mar 2010 at 3:27

GoogleCodeExporter commented 8 years ago

Original comment by elso.and...@gmail.com on 14 Jun 2010 at 1:18