Changeset 5941


Ignore:
Timestamp:
Apr 8, 2014, 8:12:28 PM (8 years ago)
Author:
krauss
Message:

Added the command line parameter -NoTemplateReplacement.
When given, the replacement strings in templates are not replaced. This is useful for editing internationalized templates.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypCore/CrypCore.csproj

    r5248 r5941  
    7979  </ItemGroup>
    8080  <ItemGroup>
     81    <Compile Include="Globals.cs" />
    8182    <Compile Include="Properties\Resources.de.Designer.cs">
    8283      <DependentUpon>Resources.de.resx</DependentUpon>
  • trunk/CrypPlugins/WorkspaceManager/WorkspaceManagerClass.cs

    r5878 r5941  
    200200                var persistance = new ModelPersistance();
    201201                persistance.OnGuiLogNotificationOccured += OnGuiLogNotificationOccured;
    202                 WorkspaceModel = persistance.loadModel(fileName);
     202                WorkspaceModel = persistance.loadModel(fileName,Cryptool.Core.Globals.templateReplacement);
    203203                WorkspaceModel.OnGuiLogNotificationOccured += this.GuiLogNotificationOccured;
    204204                var dispatcherOp = WorkspaceSpaceEditorView.Load(WorkspaceModel);
  • trunk/CrypWin/MainWindow.xaml.cs

    r5781 r5941  
    8181    public partial class MainWindow : DevComponents.WpfRibbon.RibbonWindow
    8282    {
    83 
    8483        #region private variables
    8584        private List<NotificationLevel> listFilter = new List<NotificationLevel>();
     
    301300                    docGenerator.Generate(DirectoryHelper.BaseDirectory, new LaTeXGenerator("de", noIcons, showAuthors));
    302301                    docGenerator.Generate(DirectoryHelper.BaseDirectory, new LaTeXGenerator("en", noIcons, showAuthors));
     302                    //docGenerator.Generate(DirectoryHelper.BaseDirectory, new LaTeXGenerator(noIcons, showAuthors));
    303303                    generatingDocWindow.Close();                   
    304304                }
     
    333333                }
    334334                Environment.Exit(0);
     335            }
     336
     337            // Do not replace the place holders in templates.
     338            if (IsCommandParameterGiven("-NoTemplateReplacement"))
     339            {
     340                Cryptool.Core.Globals.templateReplacement = false;
    335341            }
    336342
Note: See TracChangeset for help on using the changeset viewer.