Ignore:
Timestamp:
Jan 7, 2011, 2:25:21 PM (11 years ago)
Author:
Sven Rech
Message:

Prepared KeySearcher for Localization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/Presentation/Controls/P2PQuickWatchPresentation.xaml

    r2189 r2295  
    4444                                                        </TransformGroup>
    4545                                                </Grid.RenderTransform>
    46                                                 <Label x:Name="label" Content="Endgame mode" Height="28" HorizontalAlignment="Center" VerticalAlignment="Center" />
     46                                                <Label x:Name="label" Content="{Loc Endgame_Mode_}" Height="28" HorizontalAlignment="Center" VerticalAlignment="Center" />
    4747                                        </Grid>
    4848                                </Border>
     
    5959                                                </Grid.ColumnDefinitions>
    6060                        <Border BorderThickness="1" BorderBrush="Black" LayoutTransform="{StaticResource HeaderRotate}" Grid.Column="0" Background="#FF5C5CFF">
    61                             <Label Content="Static" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
    62                         </Border>
    63                         <Label Content="Total chunks:" VerticalAlignment="Center" Grid.Column="1" />
     61                            <Label Content="{Loc Static_}" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
     62                        </Border>
     63                        <Label Content="{Loc Total_Chunks_}" VerticalAlignment="Center" Grid.Column="1" />
    6464                        <Label Content="-" Name="TotalAmountOfChunks" Style="{StaticResource ValueRow1}" VerticalAlignment="Center" Grid.Column="1" />
    65                         <Label Content="Keys per chunk:" VerticalAlignment="Center" Grid.Column="2" />
     65                        <Label Content="{Loc Keys_Per_Chunk_}" VerticalAlignment="Center" Grid.Column="2" />
    6666                        <Label Content="-" Name="KeysPerChunk" Style="{StaticResource ValueRow2}" VerticalAlignment="Center" Grid.Column="2" />
    67                         <Label Content="Tested bits:" VerticalAlignment="Center" Grid.Column="3" />
     67                        <Label Content="{Loc Tested_Bits_}" VerticalAlignment="Center" Grid.Column="3" />
    6868                        <Label Content="-" Name="TestedBits" Style="{StaticResource ValueRow3}" VerticalAlignment="Center" Grid.Column="3" />
    6969                                        </Grid>
     
    8484                            <Label Content="Global" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
    8585                        </Border>
    86                                                 <Label Content="Participants:" Grid.Column="1" />
     86                        <Label Content="{Loc Participants_}" Grid.Column="1" />
    8787                        <Label Content="{Binding TotalAmountOfParticipants, FallbackValue=-}" Style="{StaticResource ValueRow1}" Grid.Column="1" />
    88                         <Label Content="Start:" Grid.Column="2" />
     88                        <Label Content="{Loc Start_}" Grid.Column="2" />
    8989                        <Label Content="{Binding StartDate, FallbackValue=-, Converter={StaticResource DateTimeConverter}}" Style="{StaticResource ValueRow2}" Grid.Column="2" />
    90                         <Label Content="End:" HorizontalAlignment="Left" Grid.Column="3" />
     90                        <Label Content="{Loc End_}" HorizontalAlignment="Left" Grid.Column="3" />
    9191                        <Label Content="{Binding EstimatedFinishDate, FallbackValue=-}" Style="{StaticResource ValueRow3}" Grid.Column="3" />
    92                         <Label Content="Elapsed:" Grid.Column="2" Grid.Row="2" />
     92                        <Label Content="{Loc Elapsed_}" Grid.Column="2" Grid.Row="2" />
    9393                        <Label Content="{Binding ElapsedTime, FallbackValue=-, Converter={StaticResource TimeSpanToStringConverter}}" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="2" />
    94                         <Label Content="Remaining:" Grid.Column="3" Grid.Row="2" />
     94                        <Label Content="{Loc Remaining_}" Grid.Column="3" Grid.Row="2" />
    9595                        <Label Content="{Binding RemainingTimeTotal, FallbackValue=-, Converter={StaticResource TimeSpanToStringConverter}}" Style="{StaticResource ValueRow3}" Grid.Column="3" Grid.Row="2" />
    9696                    </Grid>
     
    110110                                                </Grid.RowDefinitions>
    111111                        <Border BorderThickness="1" BorderBrush="Black" LayoutTransform="{StaticResource HeaderRotate}" Background="#FFE56B00" Grid.Column="0" Grid.RowSpan="3">
    112                             <Label Content="Local" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
    113                         </Border>
    114                                                 <Label Content="Finished chunks:" Grid.Column="1" Grid.Row="0" />
     112                            <Label Content="{Loc Local_}" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
     113                        </Border>
     114                        <Label Content="{Loc Finished_Chunks_}" Grid.Column="1" Grid.Row="0" />
    115115                        <Label Content="{Binding LocalFinishedChunks, FallbackValue=-}" Style="{StaticResource ValueRow1}" Grid.Column="1" Grid.Row="0" />
    116                         <Label Content="Keys / sec:" Grid.Column="2" Grid.Row="0" />
     116                        <Label Content="{Loc Keys_Sec_}" Grid.Column="2" Grid.Row="0" />
    117117                        <Label Name="keysPerSecond" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="0" />
    118118                        <TextBlock Text="{Binding KeysPerSecond, StringFormat=' {0:0,0}', FallbackValue=-}" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="0" />
    119                         <Label Content="Current chunk:" Grid.Column="3" />
     119                        <Label Content="{Loc Current_Chunk_}" Grid.Column="3" />
    120120                        <Label Content="{Binding CurrentChunk, FallbackValue=-}" Style="{StaticResource ValueRow3}" Grid.Column="3" Grid.Row="0" />
    121121                        <Grid  Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="1">
     
    143143                        </Grid.RowDefinitions>
    144144                        <Border BorderThickness="1" BorderBrush="Black" LayoutTransform="{StaticResource HeaderRotate}" Background="#FF8309A7" Grid.Column="0" Grid.RowSpan="3">
    145                             <Label Content="Requests" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
    146                         </Border>
    147                         <Label Content="Store:" Grid.Column="1" Grid.Row="0" />
     145                            <Label Content="{Loc Requests_}" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
     146                        </Border>
     147                        <Label Content="{Loc Store_}" Grid.Column="1" Grid.Row="0" />
    148148                        <Label Content="{Binding StoreRequests, FallbackValue=-}" Style="{StaticResource ValueRow1}" Grid.Column="1" Grid.Row="0" />
    149                         <Label Content="Retrieve:" Grid.Column="2" Grid.Row="0" />
     149                        <Label Content="{Loc Retrieve_}" Grid.Column="2" Grid.Row="0" />
    150150                        <Label Content="{Binding RetrieveRequests, FallbackValue=-}" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="0" />
    151                         <Label Content="Remove:" Grid.Column="3" Grid.Row="0" />
     151                        <Label Content="{Loc Remove_}" Grid.Column="3" Grid.Row="0" />
    152152                        <Label Content="{Binding RemoveRequests, FallbackValue=-}" Style="{StaticResource ValueRow3}" Grid.Column="3" Grid.Row="0" />
    153                         <Label Content="Total:" Grid.Column="2" Grid.Row="1" />
     153                        <Label Content="{Loc Total_}" Grid.Column="2" Grid.Row="1" />
    154154                        <Label Content="{Binding TotalDhtRequests, FallbackValue=-}" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="1" />
    155                         <Label Content="Per chunk:" Grid.Column="3" Grid.Row="1" />
     155                        <Label Content="{Loc Per_Chunk_}" Grid.Column="3" Grid.Row="1" />
    156156                        <Label Content="{Binding RequestsPerNode, FallbackValue=-}" Style="{StaticResource ValueRow3}" Grid.Column="3" Grid.Row="1" />
    157                         <Label Content="Overhead (abs):" Grid.Column="2" Grid.Row="2" />
     157                        <Label Content="{Loc Overhead_Abs_}" Grid.Column="2" Grid.Row="2" />
    158158                        <Label Content="{Binding DhtOverheadInReadableTime, FallbackValue=-, Converter={StaticResource TimeSpanToStringConverter}}" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="2" />
    159                         <Label Content="Overhead (%):" Grid.Column="3" Grid.Row="2" />
     159                        <Label Content="{Loc Overhead_Perc_}" Grid.Column="3" Grid.Row="2" />
    160160                        <Label Content="{Binding DhtOverheadInPercent, FallbackValue=-}" Style="{StaticResource ValueRow3}" Grid.Column="3" Grid.Row="2" />
    161161                    </Grid>
     
    174174                                                </Grid.RowDefinitions>
    175175                        <Border BorderThickness="1" BorderBrush="Black" LayoutTransform="{StaticResource HeaderRotate}" Background="#FF525252" Grid.Column="0" Grid.RowSpan="3">
    176                             <Label Content="Traffic" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
    177                         </Border>
    178                         <Label Content="Sent (payload):" Grid.Column="1" Grid.Row="0" />
     176                            <Label Content="{Loc Traffic_}" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
     177                        </Border>
     178                        <Label Content="{Loc Sent_Payload_}" Grid.Column="1" Grid.Row="0" />
    179179                        <Label Content="{Binding StoredBytes, FallbackValue=-, Converter={StaticResource LongToSizeMetricString}}" Style="{StaticResource ValueRow1}" Grid.Column="1" Grid.Row="0" />
    180                         <Label Content="Received (payload):" Grid.Column="2" Grid.Row="0" />
     180                        <Label Content="{Loc Received_Payload_}" Grid.Column="2" Grid.Row="0" />
    181181                        <Label Content="{Binding RetrievedBytes, FallbackValue=-, Converter={StaticResource LongToSizeMetricString}}" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="0" />
    182                         <Label Content="Total (payload):" Grid.Column="3" Grid.Row="0" />
     182                        <Label Content="{Loc Total_Payload_}" Grid.Column="3" Grid.Row="0" />
    183183                        <Label Content="{Binding TotalBytes, FallbackValue=-, Converter={StaticResource LongToSizeMetricString}}" Style="{StaticResource ValueRow3}" Grid.Column="3" Grid.Row="0" />
    184                         <Label Content="Sent (link):" Grid.Column="1" Grid.Row="1" />
     184                        <Label Content="{Loc Sent_Link_}" Grid.Column="1" Grid.Row="1" />
    185185                        <Label Content="{Binding SentBytesByLinkManager, FallbackValue=-, Converter={StaticResource LongToSizeMetricString}}" Style="{StaticResource ValueRow1}"  Grid.Column="1" Grid.Row="1" />
    186                         <Label Content="Received (link):" Grid.Column="2" Grid.Row="2" />
     186                        <Label Content="{Loc Received_Link_}" Grid.Column="2" Grid.Row="2" />
    187187                        <Label Content="{Binding ReceivedBytesByLinkManager, FallbackValue=-, Converter={StaticResource LongToSizeMetricString}}" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="1" />
    188                         <Label Content="Total (link):" Grid.Column="3" Grid.Row="2" />
     188                        <Label Content="{Loc Total_Link_}" Grid.Column="3" Grid.Row="2" />
    189189                        <Label Content="{Binding TotalBytesByLinkManager, FallbackValue=-, Converter={StaticResource LongToSizeMetricString}}" Style="{StaticResource ValueRow3}" Grid.Column="3" Grid.Row="1" />
    190190                    </Grid>
     
    197197                        </Grid.ColumnDefinitions>
    198198                        <Border BorderThickness="1" BorderBrush="Black" LayoutTransform="{StaticResource HeaderRotate}" Background="#FF479308" Grid.Column="0">
    199                             <Label Content="Top Ten" FontSize="11" HorizontalAlignment="Center" Foreground="White" Width="50" />
     199                            <Label Content="{Loc Top_Ten_}" FontSize="11" HorizontalAlignment="Center" Foreground="White" Width="50" />
    200200                        </Border>
    201201                        <ListView Name="ToplistView" Background="#AFE2FFCE" ItemsSource="{Binding TopList}" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"  Height="120" Grid.Column="1">
Note: See TracChangeset for help on using the changeset viewer.