#NEWLINE# def languagesDialog( self , * args ) : #NEWLINE# #INDENT# override = ( self . lang if ( self . lang != self . modelManager . defaultLang ) else '' ) #NEWLINE# import tkinter.simpledialog #NEWLINE# newValue = tkinter . simpledialog . askstring ( _ ( 'arelle - Labels language code setting' ) , _ ( 'The system default language is: {0} \n\nYou may override with a different language for labels display. \n\nCurrent language override code: {1} \n(Leave empty to use the system default language.)' ) . format ( self . modelManager . defaultLang , override ) , parent = self . parent ) #NEWLINE# if ( newValue is not None ) : #NEWLINE# #INDENT# self . config [ 'labelLangOverride' ] = newValue #NEWLINE# if newValue : #NEWLINE# #INDENT# self . lang = newValue #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . lang = self . modelManager . defaultLang #NEWLINE# #UNINDENT# if ( args . modelManager . modelXbrl and self . modelManager . modelXbrl . modelDocument ) : #NEWLINE# #INDENT# self . showLoadedXbrl ( self . modelManager . modelXbrl , True ) #NEWLINE# #UNINDENT# self . saveConfig ( )