Changeset 2590


Ignore:
Timestamp:
Feb 5, 2011, 1:20:19 PM (11 years ago)
Author:
Sven Rech
Message:

added all the stuff I made for the internationalization docu (just a few externalizations)

Location:
trunk/CrypPlugins
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/RSA/RSA.cs

    r2334 r2590  
    2727using System.Collections;
    2828using System.Numerics;
     29using RSA.Properties;
    2930
    3031namespace Cryptool.Plugins.RSA
    3132{
    3233    [Author("Dennis Nolte, Raoul Falk, Sven Rech, Nils Kopal", null, "Uni Duisburg-Essen", "http://www.uni-due.de")]
    33     [PluginInfo(false, "RSA", "RSA En/Decryption", "RSA/DetailedDescription/Description.xaml", "RSA/iconrsa.png", "RSA/Images/encrypt.png", "RSA/Images/decrypt.png")]
     34    [PluginInfo("RSA.Properties.Resources", false, "RSAcaption", "RSAtooltip", "RSA/DetailedDescription/Description.xaml", "RSA/iconrsa.png", "RSA/Images/encrypt.png", "RSA/Images/decrypt.png")]
    3435    [EncryptionType(EncryptionType.Asymmetric)]
    35     /// <summary>
    36     /// This plugin does a RSA encryption/decryption on a Message M / Ciphertext C
    37     /// It also encrypts/decrypts text with RSA
    38     /// </summary>
     36     //<summary>
     37     //This plugin does a RSA encryption/decryption on a Message M / Ciphertext C
     38     //It also encrypts/decrypts text with RSA
     39     //</summary>
    3940    class RSA : IEncryption
    4041    {
     
    211212                TimeSpan duration = stopTime - startTime;
    212213
    213                 GuiLogMessage("finished RSA on texts in " + duration, NotificationLevel.Info);
     214                GuiLogMessage(string.Format(Resources.Finished_RSA_on_texts_in__0__seconds_, duration.TotalSeconds), NotificationLevel.Info);
    214215
    215216            }//end if           
     
    327328        /// Gets/Sets a text input for encryption/decryption
    328329        /// </summary>
    329         [PropertyInfo(Direction.InputData, "Text input", "Enter your text here", "")]
     330        [PropertyInfo(Direction.InputData, "inputTextName", "inputTextDescription", "")]
    330331        public byte[] InputText
    331332        {
  • trunk/CrypPlugins/RSA/RSA.csproj

    r2310 r2590  
    8080  <ItemGroup>
    8181    <Compile Include="Properties\AssemblyInfo.cs" />
     82    <Compile Include="Properties\Resources.Designer.cs">
     83      <AutoGen>True</AutoGen>
     84      <DesignTime>True</DesignTime>
     85      <DependentUpon>Resources.resx</DependentUpon>
     86    </Compile>
    8287    <Compile Include="RSA.cs" />
    8388    <Compile Include="RSAKeyGenerator.cs" />
     
    132137    </BootstrapperPackage>
    133138  </ItemGroup>
     139  <ItemGroup>
     140    <EmbeddedResource Include="Properties\Resources.resx">
     141      <Generator>ResXFileCodeGenerator</Generator>
     142      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     143      <SubType>Designer</SubType>
     144    </EmbeddedResource>
     145  </ItemGroup>
    134146  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    135147  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • trunk/CrypPlugins/RSA/RSAKeyGenerator.cs

    r2334 r2590  
    3333    [PluginInfo(true, "RSAKeyGenerator", "RSA Key Generator", "RSA/DetailedDescription/Description.xaml", "RSA/iconkey.png")]
    3434    [EncryptionType(EncryptionType.Asymmetric)]
    35     ///<summary>
    36     /// This plugin is a generator plugin which helps the user to generate pairs of private/public keys
    37     /// for the RSA algorithm
    38     ///
    39     /// there are several modes:
    40     ///
    41     /// 1. manual
    42     ///     in this mode the p and q or the n and e and d are given by the user, the d also may be generated
    43     ///     
    44     /// 2. generated
    45     ///     in this mode all will be generated by microsoft classes
    46     ///     
    47     /// 3. certificate
    48     ///     in this mode a x509 certificate will be loaded (the user can give a password for loading)
    49     /// </summary>   
     35    /**
     36    <summary>
     37     This plugin is a generator plugin which helps the user to generate pairs of private/public keys
     38     for the RSA algorithm
     39     
     40     there are several modes:
     41     
     42     1. manual
     43         in this mode the p and q or the n and e and d are given by the user, the d also may be generated
     44         
     45     2. generated
     46         in this mode all will be generated by microsoft classes
     47         
     48     3. certificate
     49         in this mode a x509 certificate will be loaded (the user can give a password for loading)
     50    </summary>   
     51     **/
    5052    class RSAKeyGenerator : IEncryption
    5153    {
  • trunk/CrypPlugins/SDES/SDES.csproj

    r2310 r2590  
    8686  </ItemGroup>
    8787  <ItemGroup>
     88    <Compile Include="Properties\Resources.Designer.cs">
     89      <AutoGen>True</AutoGen>
     90      <DesignTime>True</DesignTime>
     91      <DependentUpon>Resources.resx</DependentUpon>
     92    </Compile>
    8893    <Compile Include="SDES.cs" />
    8994    <Compile Include="SDESSettings.cs" />
     
    166171    </Page>
    167172  </ItemGroup>
     173  <ItemGroup>
     174    <EmbeddedResource Include="Properties\Resources.resx">
     175      <Generator>ResXFileCodeGenerator</Generator>
     176      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     177    </EmbeddedResource>
     178  </ItemGroup>
    168179  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    169180  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • trunk/CrypPlugins/SDES/SDESPresentation.xaml

    r743 r2590  
    37083708                        </Line.RenderTransform>
    37093709                </Line>
    3710                 <TextBlock Width="117.812" Height="29.237" Canvas.Left="112.482" Text="Encryption" TextWrapping="Wrap" FontSize="24"/>
     3710                <TextBlock Width="117.812" Height="29.237" Canvas.Left="112.482" Text="{Loc Encryption}" TextWrapping="Wrap" FontSize="24"/>
    37113711                <TextBlock Width="117.812" Height="29.237" Canvas.Left="604.483" FontSize="24" TextWrapping="Wrap" Canvas.Top="1446.763"><Run Text="De"/><Run Text="cryption"/></TextBlock>
    37123712                <TextBlock Width="167.145" Height="29.237" Canvas.Left="339.785" FontSize="24" Text="Key Generation" TextWrapping="Wrap"/>
  • trunk/CrypPlugins/SDES/SDESPresentation.xaml.cs

    r731 r2590  
    1818    /// Interaktionslogik für SDSPresentation.xaml
    1919    /// </summary>
     20    [Cryptool.PluginBase.Attributes.Localization("Cryptool.Plugins.Cryptography.Encryption.Properties.Resources")]
    2021    public partial class SDESPresentation : UserControl
    2122    {
Note: See TracChangeset for help on using the changeset viewer.