1

Closed

Can't localize ContextMenu

description

Hi,

it looks like localizing ContextMenue is not working.
My Localization efforts:
xmlns:l="http://wpflocalizeextension.codeplex.com"           
             l:LocalizeDictionary.DesignCulture="de-DE"
             l:ResxLocalizationProvider.DefaultAssembly="GuiModuleAnalysis"
             l:ResxLocalizationProvider.DefaultDictionary="Resources"
........
<CheckBox Content="{l:Loc AnalysisContentView_TestSeries}" IsChecked="{Binding TestSeriesProtocoll}">
                            <CheckBox.ContextMenu>
                                <ContextMenu>
                                    <MenuItem Header="{l:BLoc Key=AnalysisContentView_ContextMenu_Preview}" Command="{Binding PreviewReportCommand}" CommandParameter="TestSeriesReport"/>
                                    <MenuItem Header="{l:Loc AnalysisContentView_ContextMenu_Print}" Command="{Binding PrintReportCommand}" CommandParameter="TestSeriesReport"/>
                                </ContextMenu>
                            </CheckBox.ContextMenu>
                        </CheckBox>
As you see I tried both ways "l:loc" and "l:BLoc Key..."
This is what I get when runnig: https://www.dropbox.com/s/c7q41w4zj3sn7qg/ContextMenuLocalization.PNG?dl=0)

Is the something I am doing wrong?

Regards
Rainer
Closed Oct 3, 2014 at 10:09 AM by SeriousM

comments

SeriousM wrote Oct 3, 2014 at 10:10 AM

Please create an issue on https://github.com/SeriousM/WPFLocalizationExtension .
Thank you for your help!