@@ -32,20 +32,20 @@ public partial class ConfigWindow
3232
3333 private readonly string [ ] CompileMacros =
3434 {
35- "{ editordir} - Directory of the SPCode binary ",
36- "{ scriptdir} - Directory of the compiling script ",
37- "{ copydir} - Directory where the .smx should be copied ",
38- "{ scriptfile} - Full directory and name of the script ",
39- "{ scriptname} - File name of the script ",
40- "{ pluginfile} - Full directory and name of the compiled script ",
41- "{ pluginname} - File name of the compiled script "
35+ $ "{{ editordir}} { Translate ( "macro_editordir" ) } ",
36+ $ "{{ scriptdir}} { Translate ( "macro_scriptdir" ) } ",
37+ $ "{{ copydir}} { Translate ( "macro_copydir" ) } ",
38+ $ "{{ scriptfile}} { Translate ( "macro_scriptfile" ) } ",
39+ $ "{{ scriptname}} { Translate ( "macro_scriptname" ) } ",
40+ $ "{{ pluginfile}} { Translate ( "macro_pluginfile" ) } ",
41+ $ "{{ pluginname}} { Translate ( "macro_pluginname" ) } "
4242 } ;
4343
4444 private readonly string [ ] CommandMacros =
4545 {
46- "{ plugins_reload} - Reloads all compiled plugins ",
47- "{ plugins_load} - Loads all compiled plugins ",
48- "{ plugins_unload} - Unloads all compiled plugins "
46+ $ "{{ plugins_reload}} { Translate ( "macro_plugins_reload" ) } ",
47+ $ "{{ plugins_load}} { Translate ( "macro_plugins_load" ) } ",
48+ $ "{{ plugins_unload}} { Translate ( "macro_plugins_unload" ) } "
4949 } ;
5050
5151 public ConfigWindow ( )
@@ -295,8 +295,8 @@ private void AddSMDirButton_Click(object sender, RoutedEventArgs e)
295295 }
296296 catch ( UnauthorizedAccessException )
297297 {
298- this . ShowMessageAsync ( "Access error" ,
299- "The directory you just specified could not be accessed properly by SPCode. You may have trouble using the includes from this directory." ,
298+ this . ShowMessageAsync ( Translate ( "PermissionAccessError" ) ,
299+ Translate ( "PermissionAcessErrorMessage" ) ,
300300 MessageDialogStyle . Affirmative , Program . MainWindow . MetroDialogOptions ) ;
301301 }
302302
@@ -655,9 +655,10 @@ private void Language_Translate()
655655 RConPWBlock . Text = Translate ( "RconPw" ) ;
656656 RConComBlock . Text = Translate ( "RconCom" ) ;
657657 Rcon_MenuC . Text = Translate ( "RConCMDLineCom" ) ;
658+ BackupConfigsButton . Content = Translate ( "BackupConfigs" ) ;
659+ LoadConfigsButton . Content = Translate ( "LoadConfigs" ) ;
658660 }
659661
660-
661662 private class SimpleCommand : ICommand
662663 {
663664 public Predicate < object > CanExecutePredicate { get ; set ; }
0 commit comments