@@ -32,20 +32,20 @@ public partial class ConfigWindow
32
32
33
33
private readonly string [ ] CompileMacros =
34
34
{
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" ) } "
42
42
} ;
43
43
44
44
private readonly string [ ] CommandMacros =
45
45
{
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" ) } "
49
49
} ;
50
50
51
51
public ConfigWindow ( )
@@ -295,8 +295,8 @@ private void AddSMDirButton_Click(object sender, RoutedEventArgs e)
295
295
}
296
296
catch ( UnauthorizedAccessException )
297
297
{
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" ) ,
300
300
MessageDialogStyle . Affirmative , Program . MainWindow . MetroDialogOptions ) ;
301
301
}
302
302
@@ -655,9 +655,10 @@ private void Language_Translate()
655
655
RConPWBlock . Text = Translate ( "RconPw" ) ;
656
656
RConComBlock . Text = Translate ( "RconCom" ) ;
657
657
Rcon_MenuC . Text = Translate ( "RConCMDLineCom" ) ;
658
+ BackupConfigsButton . Content = Translate ( "BackupConfigs" ) ;
659
+ LoadConfigsButton . Content = Translate ( "LoadConfigs" ) ;
658
660
}
659
661
660
-
661
662
private class SimpleCommand : ICommand
662
663
{
663
664
public Predicate < object > CanExecutePredicate { get ; set ; }
0 commit comments