Select to view content in your preferred language

tooltip and widget localization

639
1
09-30-2010 12:47 AM
OlivierROSSINI
Deactivated User
Hi,

how to localize the editing task tooltip and user interface?
is there any compilation parameters to set in Visual Studio?

Thanks,

olivier
0 Kudos
1 Reply
AliMirzabeigi
Emerging Contributor
Olivier,

Current approach for localizing tooltips and the user interface is modification of the default templates. You need to style your controls and replace required string values of each component with their translated values. In EditorWidget, for example, you can change tooltip text of "NewSelect" button by setting its ToolTipService.ToolTip value to your desired text, same for "AddSelect" button, etc...
.............
<Border x:Name="ToolsContainer" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" HorizontalAlignment="Center" Height="40" Style="{StaticResource BorderStyle}" VerticalAlignment="Top">
        <StackPanel Orientation="Horizontal">
         <Button x:Name="NewSelect" CommandParameter="New" Command="{Binding Select}" Style="{StaticResource ButtonStyle}" ToolTipService.ToolTip="New selection">
          <Image Source="/ESRI.ArcGIS.Client.Toolkit;component/Images/NewSelection.png" Stretch="None"/>
         </Button>
         <Button x:Name="AddSelect" CommandParameter="Add" Command="{Binding Select}" Style="{StaticResource ButtonStyle}" ToolTipService.ToolTip="Add to selection">
          <Image Source="/ESRI.ArcGIS.Client.Toolkit;component/Images/AddToSelection.png" Stretch="None"/>
         </Button>
.............
</Border>
.............
0 Kudos