mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Working on localization
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@207 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
1cf971d634
commit
8977b2d873
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user