Working on localization

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@207 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2010-12-28 11:51:16 +00:00
parent 1cf971d634
commit 8977b2d873
3 changed files with 12 additions and 6 deletions

View File

@ -7378,7 +7378,7 @@ namespace Nikse.SubtitleEdit.Forms
List<SeNetworkService.SeUpdate> updates = null; List<SeNetworkService.SeUpdate> updates = null;
try try
{ {
updates = (List<SeNetworkService.SeUpdate>)_networkSession.GetUpdates(out message); updates = _networkSession.GetUpdates(out message);
} }
catch (Exception exception) catch (Exception exception)
{ {

View File

@ -5,7 +5,7 @@ using Nikse.SubtitleEdit.Logic.Networking;
namespace Nikse.SubtitleEdit.Forms namespace Nikse.SubtitleEdit.Forms
{ {
public partial class NetworkChat : Form public sealed partial class NetworkChat : Form
{ {
Logic.Networking.NikseWebServiceSession _networkSession; Logic.Networking.NikseWebServiceSession _networkSession;
@ -13,7 +13,10 @@ namespace Nikse.SubtitleEdit.Forms
{ {
InitializeComponent(); InitializeComponent();
buttonSendChat.Text = Configuration.Settings.Language.NetworkChat.Send; buttonSendChat.Text = Configuration.Settings.Language.NetworkChat.Send;
listViewUsers.Columns[0].Text = Configuration.Settings.Language.General.UserName;
listViewUsers.Columns[1].Text = Configuration.Settings.Language.General.IP;
listViewChat.Columns[0].Text = Configuration.Settings.Language.General.UserName;
listViewChat.Columns[1].Text = Configuration.Settings.Language.General.Text;
} }
internal void Initialize(Nikse.SubtitleEdit.Logic.Networking.NikseWebServiceSession networkSession) internal void Initialize(Nikse.SubtitleEdit.Logic.Networking.NikseWebServiceSession networkSession)

View File

@ -140,12 +140,15 @@ namespace Nikse.SubtitleEdit.Logic.Networking
_timerWebService.Start(); _timerWebService.Start();
} }
public IEnumerable<SeNetworkService.SeUpdate> GetUpdates(out string message) public List<SeNetworkService.SeUpdate> GetUpdates(out string message)
{ {
List<SeNetworkService.SeUpdate> list = new List<SeNetworkService.SeUpdate>();
DateTime newUpdateTime; DateTime newUpdateTime;
var updates = _seWs.GetUpdates(SessionId, CurrentUser.UserName, _seWsLastUpdate, out message, out newUpdateTime); var updates = _seWs.GetUpdates(SessionId, CurrentUser.UserName, _seWsLastUpdate, out message, out newUpdateTime);
foreach (var update in updates)
list.Add(update);
_seWsLastUpdate = newUpdateTime; _seWsLastUpdate = newUpdateTime;
return updates; return list;
} }
private void ReloadFromWs() private void ReloadFromWs()