Skip to content

Commit 66613f9

Browse files
committed
Localize prompt
1 parent bb2bb9e commit 66613f9

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

RetailCoder.VBE/UI/RubberduckUI.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/RubberduckUI.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,4 +1629,7 @@ All our stargazers, likers & followers, for the warm fuzzies
16291629
<data name="SourceControl_CreateNewRemoteRepo_NoOpenRepo" xml:space="preserve">
16301630
<value>No open repository to push to specified remote location.</value>
16311631
</data>
1632+
<data name="SourceControl_ExternalModifications" xml:space="preserve">
1633+
<value>Some source files were modified out of the editor; should Rubberduck reload them?</value>
1634+
</data>
16321635
</root>

RetailCoder.VBE/UI/SourceControl/SourceControlViewViewModel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private void _fileSystemWatcher_Changed(object sender, FileSystemEventArgs e)
198198
}
199199

200200
Logger.Trace("File system watcher detected file changed");
201-
if (_messageBox.Show("file changed", RubberduckUI.SourceControlPanel_Caption,
201+
if (_messageBox.Show(RubberduckUI.SourceControl_ExternalModifications, RubberduckUI.SourceControlPanel_Caption,
202202
MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) == DialogResult.OK)
203203
{
204204
Provider.ReloadComponent(e.Name);
@@ -220,7 +220,7 @@ private void _fileSystemWatcher_Renamed(object sender, RenamedEventArgs e)
220220
}
221221

222222
Logger.Trace("File system watcher detected file renamed");
223-
if (_messageBox.Show("file changed", RubberduckUI.SourceControlPanel_Caption,
223+
if (_messageBox.Show(RubberduckUI.SourceControl_ExternalModifications, RubberduckUI.SourceControlPanel_Caption,
224224
MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) == DialogResult.OK)
225225
{
226226
Provider.RemoveFile(e.OldFullPath, true);
@@ -243,7 +243,7 @@ private void _fileSystemWatcher_Deleted(object sender, FileSystemEventArgs e)
243243
}
244244

245245
Logger.Trace("File system watcher detected file deleted");
246-
if (_messageBox.Show("file changed", RubberduckUI.SourceControlPanel_Caption,
246+
if (_messageBox.Show(RubberduckUI.SourceControl_ExternalModifications, RubberduckUI.SourceControlPanel_Caption,
247247
MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) == DialogResult.OK)
248248
{
249249
Provider.RemoveFile(e.FullPath, true);
@@ -265,7 +265,7 @@ private void _fileSystemWatcher_Created(object sender, FileSystemEventArgs e)
265265
}
266266

267267
Logger.Trace("File system watcher detected file created");
268-
if (_messageBox.Show("file changed", RubberduckUI.SourceControlPanel_Caption,
268+
if (_messageBox.Show(RubberduckUI.SourceControl_ExternalModifications, RubberduckUI.SourceControlPanel_Caption,
269269
MessageBoxButtons.OKCancel, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1) == DialogResult.OK)
270270
{
271271
Provider.AddFile(e.FullPath);

0 commit comments

Comments
 (0)