Grammalecte  Check-in [4c6e93ad19]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[lo] resize lexicon editor
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | lo
Files: files | file ages | folders
SHA3-256:4c6e93ad19b26473cbeec052ecddbaf25899e7b8c93bfcc56ddc93c3bc8b920a
User & Date: olr 2018-12-21 14:11:29
Context
2018-12-22
09:36
[fr] faux positifs check-in: ea4784f1e1 user: olr tags: fr, trunk
2018-12-21
14:11
[lo] resize lexicon editor check-in: 4c6e93ad19 user: olr tags: lo, trunk
2018-12-20
10:46
[fr] màj: accords participes passés avec être et verbes d’état, + faux positifs check-in: 9ca83c4a70 user: olr tags: fr, trunk
Changes

Changes to gc_lang/fr/oxt/DictOptions/LexiconEditor.py.

    28     28   # BUTTONS_OK, BUTTONS_OK_CANCEL, BUTTONS_YES_NO, BUTTONS_YES_NO_CANCEL, BUTTONS_RETRY_CANCEL, BUTTONS_ABORT_IGNORE_RETRY
    29     29   # DEFAULT_BUTTON_OK, DEFAULT_BUTTON_CANCEL, DEFAULT_BUTTON_RETRY, DEFAULT_BUTTON_YES, DEFAULT_BUTTON_NO, DEFAULT_BUTTON_IGNORE
    30     30   from com.sun.star.awt.MessageBoxType import INFOBOX, ERRORBOX # MESSAGEBOX, INFOBOX, WARNINGBOX, ERRORBOX, QUERYBOX
    31     31   
    32     32   def MessageBox (xDocument, sMsg, sTitle, nBoxType=INFOBOX, nBoxButtons=BUTTONS_OK):
    33     33       xParentWin = xDocument.CurrentController.Frame.ContainerWindow
    34     34       ctx = uno.getComponentContext()
    35         -    xToolkit = ctx.ServiceManager.createInstanceWithContext("com.sun.star.awt.Toolkit", ctx) 
           35  +    xToolkit = ctx.ServiceManager.createInstanceWithContext("com.sun.star.awt.Toolkit", ctx)
    36     36       xMsgBox = xToolkit.createMessageBox(xParentWin, nBoxType, nBoxButtons, sTitle, sMsg)
    37     37       return xMsgBox.execute()
    38     38   
    39     39   
    40     40   def _waitPointer (funcDecorated):
    41     41       def wrapper (*args, **kwargs):
    42     42           # self is the first parameter if the decorator is applied on a object
................................................................................
   111    111       def run (self, sLang):
   112    112           # ui lang
   113    113           self.sLang = sLang
   114    114           self.dUI = lxe_strings.getUI(sLang)
   115    115   
   116    116           # dialog
   117    117           self.xDialog = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.UnoControlDialogModel', self.ctx)
   118         -        self.xDialog.Width = 570
   119         -        self.xDialog.Height = 305
          118  +        self.xDialog.Width = 550
          119  +        self.xDialog.Height = 290
   120    120           self.xDialog.Title = self.dUI.get('title', "#title#")
   121    121           xWindowSize = helpers.getWindowSize()
   122    122           self.xDialog.PositionX = int((xWindowSize.Width / 2) - (self.xDialog.Width / 2))
   123    123           self.xDialog.PositionY = int((xWindowSize.Height / 2) - (self.xDialog.Height / 2))
   124    124   
   125    125           # fonts
   126    126           xFDTitle = uno.createUnoStruct("com.sun.star.awt.FontDescriptor")
   127    127           xFDTitle.Height = 9
   128    128           xFDTitle.Weight = uno.getConstantByName("com.sun.star.awt.FontWeight.BOLD")
   129    129           xFDTitle.Name = "Verdana"
   130         -        
          130  +
   131    131           xFDSubTitle = uno.createUnoStruct("com.sun.star.awt.FontDescriptor")
   132    132           xFDSubTitle.Height = 8
   133    133           xFDSubTitle.Weight = uno.getConstantByName("com.sun.star.awt.FontWeight.BOLD")
   134    134           xFDSubTitle.Name = "Verdana"
   135    135   
   136    136           # widget
   137         -        nX1 = 10
   138         -        nX2 = 20
          137  +        nX1 = 5
          138  +        nX2 = 15
   139    139   
   140    140           nY0 = 5
   141    141           nY1 = nY0 + 13
   142    142           nY2 = nY1 + 25 # nom commun
   143    143           nY3 = nY2 + 95 # nom propre
   144    144           nY4 = nY3 + 45 # verbe
   145    145           nY5 = nY4 + 68 # adverbe
   146    146           nY6 = nY5 + 13 # autre
   147    147   
   148         -        nXB = nX1 + 185
          148  +        nXB = nX1 + 175
   149    149           nXC = nXB + 165
   150    150   
   151    151           nHeight = 10
   152    152   
   153    153           #### Dictionary section
   154         -        self._addWidget("dictionary_section", 'FixedLine', nX1, nY0, 180, nHeight, Label = self.dUI.get("dictionary_section", "#err"), FontDescriptor = xFDTitle, TextColor = 0x000088)
          154  +        self._addWidget("dictionary_section", 'FixedLine', nX1, nY0, 170, nHeight, Label = self.dUI.get("dictionary_section", "#err"), FontDescriptor = xFDTitle, TextColor = 0x000088)
   155    155           self._addWidget("save_date_label", 'FixedText', nXB, nY0+2, 80, nHeight, Label = self.dUI.get("save_date_label", "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000088)
   156    156           self._addWidget("num_of_entries_label2", 'FixedText', nXC, nY0+2, 65, nHeight, Label = self.dUI.get("num_of_entries_label", "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000088)
   157    157           self.xDateDic = self._addWidget("save_date", 'FixedText', nXB+85, nY0+2, 75, nHeight, Label = self.dUI.get("void", "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000088)
   158    158           self.xNumDic = self._addWidget("num_of_entries2", 'FixedText', nXC+70, nY0+2, 45, nHeight, Label = "0", FontDescriptor = xFDSubTitle, TextColor = 0x000088)
   159    159           self.xImport = self._addWidget('import_button', 'Button', self.xDialog.Width-90, nY0, 40, 12, Label = self.dUI.get('import_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000055)
   160         -        self.xExport = self._addWidget('export_button', 'Button', self.xDialog.Width-50, nY0, 40, 12, Label = self.dUI.get('export_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000055)
          160  +        self.xExport = self._addWidget('export_button', 'Button', self.xDialog.Width-45, nY0, 40, 12, Label = self.dUI.get('export_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000055)
   161    161   
   162    162           #### Add word
   163         -        self._addWidget("add_section", 'FixedLine', nX1, nY1, 180, nHeight, Label = self.dUI.get("add_section", "#err"), FontDescriptor = xFDTitle)
   164         -        self.xLemma = self._addWidget('lemma', 'Edit', nX1, nY1+10, 110, 14, FontDescriptor = xFDTitle)
   165         -        self._addWidget('search_button', 'Button', nX1+115, nY1+11, 45, 12, Label = self.dUI.get('search_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x555500)
   166         -        self._addWidget('information_button', 'Button', nX1+165, nY1+11, 15, 12, Label = self.dUI.get('information_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x555500)
          163  +        self._addWidget("add_section", 'FixedLine', nX1, nY1, 170, nHeight, Label = self.dUI.get("add_section", "#err"), FontDescriptor = xFDTitle)
          164  +        self.xLemma = self._addWidget('lemma', 'Edit', nX1, nY1+10, 100, 14, FontDescriptor = xFDTitle)
          165  +        self._addWidget('search_button', 'Button', nX1+105, nY1+11, 45, 12, Label = self.dUI.get('search_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x555500)
          166  +        self._addWidget('information_button', 'Button', nX1+155, nY1+11, 15, 12, Label = self.dUI.get('information_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x555500)
   167    167   
   168    168           # Radio buttons: main POS tag
   169    169           # Note: the only way to group RadioButtons is to create them successively
   170    170           self.xNA = self._addWidget('nom_adj', 'RadioButton', nX1, nY2+12, 60, nHeight, Label = self.dUI.get("nom_adj", "#err"), HelpText = ":N:A")
   171    171           self.xN = self._addWidget('nom', 'RadioButton', nX1, nY2+22, 60, nHeight, Label = self.dUI.get("nom", "#err"), HelpText = ":N")
   172    172           self.xA = self._addWidget('adj', 'RadioButton', nX1, nY2+32, 60, nHeight, Label = self.dUI.get("adj", "#err"), HelpText = ":A")
   173    173           self.xM1 = self._addWidget('M1', 'RadioButton', nX1, nY3+12, 60, nHeight, Label = self.dUI.get("M1", "#err"), HelpText = ":M1")
   174    174           self.xM2 = self._addWidget('M2', 'RadioButton', nX1, nY3+22, 60, nHeight, Label = self.dUI.get("M2", "#err"), HelpText = ":M2")
   175    175           self.xMP = self._addWidget('MP', 'RadioButton', nX1, nY3+32, 60, nHeight, Label = self.dUI.get("MP", "#err"), HelpText = ":MP")
   176    176           self.xV = self._addWidget('verb', 'RadioButton', nX1, nY4+2, 35, nHeight, Label = self.dUI.get("verb", "#err"), FontDescriptor = xFDSubTitle, HelpText = ":V")
   177    177           self.xW = self._addWidget('adv', 'RadioButton', nX1, nY5+2, 35, nHeight, Label = self.dUI.get("adverb", "#err"), FontDescriptor = xFDSubTitle, HelpText = ":W")
   178    178           self.xX = self._addWidget('other', 'RadioButton', nX1, nY6+2, 35, nHeight, Label = self.dUI.get("other", "#err"), FontDescriptor = xFDSubTitle, HelpText = ":X")
   179         -        
          179  +
   180    180           # Nom, adjectif
   181         -        self._addWidget("fl_nom_adj", 'FixedLine', nX1, nY2, 180, nHeight, Label = self.dUI.get("common_name", "#err"), FontDescriptor = xFDSubTitle)
          181  +        self._addWidget("fl_nom_adj", 'FixedLine', nX1, nY2, 170, nHeight, Label = self.dUI.get("common_name", "#err"), FontDescriptor = xFDSubTitle)
   182    182           self.xSepi = self._addWidget('Sepi', 'RadioButton', nX1+65, nY2+12, 50, nHeight, Label = self.dUI.get("epi", "#err"), HelpText = ":e")
   183    183           self.xSmas = self._addWidget('Smas', 'RadioButton', nX1+65, nY2+22, 50, nHeight, Label = self.dUI.get("mas", "#err"), HelpText = ":m")
   184    184           self.xSfem = self._addWidget('Sfem', 'RadioButton', nX1+65, nY2+32, 50, nHeight, Label = self.dUI.get("fem", "#err"), HelpText = ":f")
   185    185           self._addWidget("fl_sep1", 'FixedLine', nX1, nY2, 1, nHeight)
   186         -        self.xSs = self._addWidget('Ss', 'RadioButton', nX1+120, nY2+12, 50, nHeight, Label = self.dUI.get("-s", "#err"), HelpText = "·s")
   187         -        self.xSx = self._addWidget('Sx', 'RadioButton', nX1+120, nY2+22, 50, nHeight, Label = self.dUI.get("-x", "#err"), HelpText = "·x")
   188         -        self.xSinv = self._addWidget('Sinv', 'RadioButton', nX1+120, nY2+32, 50, nHeight, Label = self.dUI.get("inv", "#err"), HelpText = ":i")
          186  +        self.xSs = self._addWidget('Ss', 'RadioButton', nX1+115, nY2+12, 50, nHeight, Label = self.dUI.get("-s", "#err"), HelpText = "·s")
          187  +        self.xSx = self._addWidget('Sx', 'RadioButton', nX1+115, nY2+22, 50, nHeight, Label = self.dUI.get("-x", "#err"), HelpText = "·x")
          188  +        self.xSinv = self._addWidget('Sinv', 'RadioButton', nX1+115, nY2+32, 50, nHeight, Label = self.dUI.get("inv", "#err"), HelpText = ":i")
   189    189   
   190         -        self._addWidget("alt_lemma_label", 'FixedLine', nX1+10, nY2+42, 170, nHeight, Label = self.dUI.get("alt_lemma", "#err"))
          190  +        self._addWidget("alt_lemma_label", 'FixedLine', nX1+10, nY2+42, 160, nHeight, Label = self.dUI.get("alt_lemma", "#err"))
   191    191           self.xAltLemma = self._addWidget('alt_lemma', 'Edit', nX1+10, nY2+52, 110, nHeight)
   192    192           self.xNA2 = self._addWidget('nom_adj2', 'RadioButton', nX1+10, nY2+65, 60, nHeight, Label = self.dUI.get("nom_adj", "#err"), HelpText = ":N:A")
   193    193           self.xN2 = self._addWidget('nom2', 'RadioButton', nX1+10, nY2+75, 60, nHeight, Label = self.dUI.get("nom", "#err"), HelpText = ":N")
   194    194           self.xA2 = self._addWidget('adj2', 'RadioButton', nX1+10, nY2+85, 60, nHeight, Label = self.dUI.get("adj", "#err"), HelpText = ":A")
   195    195           self._addWidget("fl_sep2", 'FixedLine', nX1, nY2, 1, nHeight)
   196         -        self.xSepi2 = self._addWidget('Sepi2', 'RadioButton', nX1+75, nY2+65, 50, nHeight, Label = self.dUI.get("epi", "#err"), HelpText = ":e")
   197         -        self.xSmas2 = self._addWidget('Smas2', 'RadioButton', nX1+75, nY2+75, 50, nHeight, Label = self.dUI.get("mas", "#err"), HelpText = ":m")
   198         -        self.xSfem2 = self._addWidget('Sfem2', 'RadioButton', nX1+75, nY2+85, 50, nHeight, Label = self.dUI.get("fem", "#err"), HelpText = ":f")
          196  +        self.xSepi2 = self._addWidget('Sepi2', 'RadioButton', nX1+70, nY2+65, 50, nHeight, Label = self.dUI.get("epi", "#err"), HelpText = ":e")
          197  +        self.xSmas2 = self._addWidget('Smas2', 'RadioButton', nX1+70, nY2+75, 50, nHeight, Label = self.dUI.get("mas", "#err"), HelpText = ":m")
          198  +        self.xSfem2 = self._addWidget('Sfem2', 'RadioButton', nX1+70, nY2+85, 50, nHeight, Label = self.dUI.get("fem", "#err"), HelpText = ":f")
   199    199           self._addWidget("fl_sep3", 'FixedLine', nX1, nY2, 1, nHeight)
   200         -        self.xSs2 = self._addWidget('Ss2', 'RadioButton', nX1+130, nY2+65, 50, nHeight, Label = self.dUI.get("-s", "#err"), HelpText = "·s")
   201         -        self.xSx2 = self._addWidget('Sx2', 'RadioButton', nX1+130, nY2+75, 50, nHeight, Label = self.dUI.get("-x", "#err"), HelpText = "·x")
   202         -        self.xSinv2 = self._addWidget('Sinv2', 'RadioButton', nX1+130, nY2+85, 50, nHeight, Label = self.dUI.get("inv", "#err"), HelpText = ":i")
          200  +        self.xSs2 = self._addWidget('Ss2', 'RadioButton', nX1+120, nY2+65, 50, nHeight, Label = self.dUI.get("-s", "#err"), HelpText = "·s")
          201  +        self.xSx2 = self._addWidget('Sx2', 'RadioButton', nX1+120, nY2+75, 50, nHeight, Label = self.dUI.get("-x", "#err"), HelpText = "·x")
          202  +        self.xSinv2 = self._addWidget('Sinv2', 'RadioButton', nX1+120, nY2+85, 50, nHeight, Label = self.dUI.get("inv", "#err"), HelpText = ":i")
   203    203   
   204    204           # Nom propre
   205         -        self._addWidget("fl_M", 'FixedLine', nX1, nY3, 180, nHeight, Label = self.dUI.get("proper_name", "#err"), FontDescriptor = xFDSubTitle)
          205  +        self._addWidget("fl_M", 'FixedLine', nX1, nY3, 170, nHeight, Label = self.dUI.get("proper_name", "#err"), FontDescriptor = xFDSubTitle)
   206    206           self.xMepi = self._addWidget('Mepi', 'RadioButton', nX1+65, nY3+12, 50, nHeight, Label = self.dUI.get("epi", "#err"), HelpText = ":e")
   207    207           self.xMmas = self._addWidget('Mmas', 'RadioButton', nX1+65, nY3+22, 50, nHeight, Label = self.dUI.get("mas", "#err"), HelpText = ":m")
   208    208           self.xMfem = self._addWidget('Mfem', 'RadioButton', nX1+65, nY3+32, 50, nHeight, Label = self.dUI.get("fem", "#err"), HelpText = ":f")
   209    209   
   210    210           # Verbe
   211         -        self._addWidget("fl_verb", 'FixedLine', nX2+30, nY4, 140, nHeight, FontDescriptor = xFDSubTitle)
          211  +        self._addWidget("fl_verb", 'FixedLine', nX2+30, nY4, 130, nHeight, FontDescriptor = xFDSubTitle)
   212    212           self.xV_i = self._addWidget('v_i', 'CheckBox', nX2, nY4+12, 60, nHeight, Label = self.dUI.get("v_i", "#err"))
   213    213           self.xV_t = self._addWidget('v_t', 'CheckBox', nX2, nY4+20, 60, nHeight, Label = self.dUI.get("v_t", "#err"))
   214    214           self.xV_n = self._addWidget('v_n', 'CheckBox', nX2, nY4+28, 60, nHeight, Label = self.dUI.get("v_n", "#err"))
   215    215           self.xV_p = self._addWidget('v_p', 'CheckBox', nX2, nY4+36, 60, nHeight, Label = self.dUI.get("v_p", "#err"))
   216    216           self.xV_m = self._addWidget('v_m', 'CheckBox', nX2, nY4+44, 60, nHeight, Label = self.dUI.get("v_m", "#err"))
   217    217   
   218    218           self._addWidget('aux', 'FixedText', nX2+75, nY4+10, 90, nHeight, Label = self.dUI.get("aux", "#err"))
   219    219           self.xV_ae = self._addWidget('v_ae', 'CheckBox', nX2+75, nY4+20, 90, nHeight, Label = self.dUI.get("v_ae", "#err"))
   220    220           self.xV_aa = self._addWidget('v_aa', 'CheckBox', nX2+75, nY4+28, 90, nHeight, Label = self.dUI.get("v_aa", "#err"))
   221    221   
   222    222           self.xV_pp = self._addWidget('v_pp', 'CheckBox', nX2+75, nY4+44, 90, nHeight, Label = self.dUI.get("v_pp", "#err"))
   223    223   
   224         -        self._addWidget('v_pattern_label', 'FixedText', nX2, nY4+56, 80, nHeight, Label = self.dUI.get('v_pattern', "#err"), Align = 2)
   225         -        self.xVpattern = self._addWidget('v_pattern', 'Edit', nX2+85, nY4+56, 80, nHeight)
          224  +        self._addWidget('v_pattern_label', 'FixedText', nX2, nY4+56, 75, nHeight, Label = self.dUI.get('v_pattern', "#err"), Align = 2)
          225  +        self.xVpattern = self._addWidget('v_pattern', 'Edit', nX2+80, nY4+56, 80, nHeight)
   226    226   
   227    227           # Adverbe
   228         -        self._addWidget("fl_adv", 'FixedLine', nX2+30, nY5, 140, nHeight, FontDescriptor = xFDSubTitle)
          228  +        self._addWidget("fl_adv", 'FixedLine', nX2+30, nY5, 130, nHeight, FontDescriptor = xFDSubTitle)
   229    229   
   230    230           # Autre
   231         -        self._addWidget("fl_other", 'FixedLine', nX2+30, nY6, 140, nHeight, FontDescriptor = xFDSubTitle)
   232         -        self._addWidget('flexion_label', 'FixedText', nX2, nY6+11, 35, nHeight, Label = self.dUI.get('flexion', "#err"))
   233         -        self.xFlexion = self._addWidget('flexion', 'Edit', nX2+40, nY6+10, 100, nHeight)
   234         -        self._addWidget('tags_label', 'FixedText', nX2, nY6+23, 35, nHeight, Label = self.dUI.get('tags', "#err"))
   235         -        self.xTags = self._addWidget('tags', 'Edit', nX2+40, nY6+22, 100, nHeight)
          231  +        self._addWidget("fl_other", 'FixedLine', nX2+30, nY6, 130, nHeight, FontDescriptor = xFDSubTitle)
          232  +        self._addWidget('flexion_label', 'FixedText', nX2, nY6+11, 22, nHeight, Label = self.dUI.get('flexion', "#err"), Align = 2)
          233  +        self.xFlexion = self._addWidget('flexion', 'Edit', nX2+25, nY6+10, 50, nHeight)
          234  +        self._addWidget('tags_label', 'FixedText', nX2+80, nY6+11, 27, nHeight, Label = self.dUI.get('tags', "#err"), Align = 2)
          235  +        self.xTags = self._addWidget('tags', 'Edit', nX2+110, nY6+10, 50, nHeight)
   236    236   
   237    237           #### Generated words
   238    238           self._addWidget("gwords_section", 'FixedLine', nXB, nY1, 160, nHeight, Label = self.dUI.get("new_section", "#err"), FontDescriptor = xFDTitle)
   239         -        self.xGridModelNew = self._addGrid("list_grid_gwords", nXB, nY1+10, 160, 255, [
          239  +        self.xGridModelNew = self._addGrid("list_grid_gwords", nXB, nY1+10, 160, 240, [
   240    240               {"Title": self.dUI.get("lex_flex", "#err"), "ColumnWidth": 80},
   241    241               {"Title": self.dUI.get("lex_tags", "#err"), "ColumnWidth": 80}
   242    242           ], SelectionModel = uno.Enum("com.sun.star.view.SelectionType", "MULTI"))
   243         -        self.xAdd = self._addWidget('add_button', 'Button', nXB, nY1+270, 75, 12, Label = self.dUI.get('add_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x005500, Enabled = False)
   244         -        self.xDelete = self._addWidget('delete_button', 'Button', nXB+80, nY1+270, 80, 12, Label = self.dUI.get('delete_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x550000)
          243  +        self.xAdd = self._addWidget('add_button', 'Button', nXB, nY1+255, 75, 12, Label = self.dUI.get('add_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x005500, Enabled = False)
          244  +        self.xDelete = self._addWidget('delete_button', 'Button', nXB+80, nY1+255, 80, 12, Label = self.dUI.get('delete_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x550000)
   245    245   
   246    246           #### Lexicon section
   247    247           self._addWidget("lexicon_section", 'FixedLine', nXC, nY1, 200, nHeight, Label = self.dUI.get("lexicon_section", "#err"), FontDescriptor = xFDTitle)
   248         -        self.xGridModelLex = self._addGrid("list_grid_lexicon", nXC, nY1+10, 200, 255, [
          248  +        self.xGridModelLex = self._addGrid("list_grid_lexicon", nXC, nY1+10, 200, 240, [
   249    249               {"Title": self.dUI.get("lex_flex", "#err"), "ColumnWidth": 65},
   250    250               {"Title": self.dUI.get("lex_lemma", "#err"), "ColumnWidth": 50},
   251    251               {"Title": self.dUI.get("lex_tags", "#err"), "ColumnWidth": 65}
   252    252           ], SelectionModel = uno.Enum("com.sun.star.view.SelectionType", "MULTI"))
   253         -        self._addWidget("num_of_entries_label1", 'FixedText', nXC, nY1+272, 60, nHeight, Label = self.dUI.get("num_of_entries_label", "#err"), FontDescriptor = xFDSubTitle)
   254         -        self.xNumLex = self._addWidget("num_of_entries1", 'FixedText', nXC+65, nY1+272, 40, nHeight, Label = "0", FontDescriptor = xFDSubTitle)
   255         -        self.xSave = self._addWidget('save_button', 'Button', nXC+110, nY1+270, 45, 12, Label = self.dUI.get('save_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x005500)
   256         -        self._addWidget('close_button', 'Button', nXC+160, nY1+270, 40, 12, Label = self.dUI.get('close_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x550000)
          253  +        self._addWidget("num_of_entries_label1", 'FixedText', nXC, nY1+257, 60, nHeight, Label = self.dUI.get("num_of_entries_label", "#err"), FontDescriptor = xFDSubTitle)
          254  +        self.xNumLex = self._addWidget("num_of_entries1", 'FixedText', nXC+65, nY1+257, 40, nHeight, Label = "0", FontDescriptor = xFDSubTitle)
          255  +        self.xSave = self._addWidget('save_button', 'Button', nXC+110, nY1+255, 45, 12, Label = self.dUI.get('save_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x005500)
          256  +        self._addWidget('close_button', 'Button', nXC+160, nY1+255, 40, 12, Label = self.dUI.get('close_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x550000)
   257    257   
   258    258           self.loadLexicon()
   259    259   
   260    260           # container
   261    261           self.xContainer = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.UnoControlDialog', self.ctx)
   262    262           self.xContainer.setModel(self.xDialog)
   263    263           self.xGridControlNew = self.xContainer.getControl('list_grid_gwords')
................................................................................
   319    319                   self.exportDictionary()
   320    320               elif xActionEvent.ActionCommand == 'Info':
   321    321                   pass
   322    322               elif xActionEvent.ActionCommand == "Close":
   323    323                   self.xContainer.endExecute()
   324    324           except:
   325    325               traceback.print_exc()
   326         -    
          326  +
   327    327       # XKeyListener
   328    328       def keyPressed (self, xKeyEvent):
   329    329           pass
   330    330   
   331    331       def keyReleased (self, xKeyEvent):
   332    332           self.updateGenWords()
   333    333   
................................................................................
   348    348           xDialog = TagsInfo.TagsInfo(self.ctx)
   349    349           xDialog.run(self.sLang)
   350    350   
   351    351       #@_waitPointer (don’t: strange behavior when dialog is not finished)
   352    352       def loadLexicon (self):
   353    353           xGridDataModel = self.xGridModelLex.GridDataModel
   354    354           xGridDataModel.removeAllRows()
   355         -        sJSON = self.xOptionNode.getPropertyValue("personal_dic")        
          355  +        sJSON = self.xOptionNode.getPropertyValue("personal_dic")
   356    356           if sJSON:
   357    357               try:
   358    358                   self.oPersonalDicJSON = json.loads(sJSON)
   359    359                   oIBDAWG = ibdawg.IBDAWG(self.oPersonalDicJSON)
   360    360                   for i, aEntry in enumerate(oIBDAWG.select()):
   361    361                       xGridDataModel.addRow(i, aEntry)
   362    362                   self.xNumLex.Label = str(i)
................................................................................
   392    392               with open(spfImported, "r", encoding="utf-8") as hDst:
   393    393                   sJSON = hDst.read()
   394    394                   try:
   395    395                       sTest = json.loads(sJSON)
   396    396                   except:
   397    397                       sMessage = self.dUI.get('wrong_json', "#err_msg: %s") % spfImported
   398    398                       MessageBox(self.xDocument, sMessage, self.dUI.get('import_title', "#err"), ERRORBOX)
   399         -                else:            
          399  +                else:
   400    400                       self.xOptionNode.setPropertyValue("personal_dic", sJSON)
   401    401                       self.xSettingNode.commitChanges()
   402    402                       self.loadLexicon()
   403    403           else:
   404    404               sMessage = self.dUI.get('file_not_found', "#err_msg: %s") % spfImported
   405    405               MessageBox(self.xDocument, sMessage, self.dUI.get('import_title', "#err"), ERRORBOX)
   406    406   

Changes to gc_lang/fr/oxt/DictOptions/lxe_strings.py.

    14     14           "information_button": "<i>",
    15     15   
    16     16           # catégories
    17     17           "common_name": "Nom commun",
    18     18           "nom_adj": "Nom et adjectif",
    19     19           "nom": "Nom",
    20     20           "adj": "Adjectif",
    21         -        "alt_lemma": "[optionnel] Autre forme (masculine, féminine, variante, etc.)",
           21  +        "alt_lemma": "[optionnel] Autre forme (masculine, féminine, etc.)",
    22     22   
    23     23           "proper_name": "Nom propre",
    24     24           "M1": "Prénom",
    25     25           "M2": "Patronyme",
    26     26           "MP": "Autre",
    27     27   
    28     28           "gender": "Genre",
................................................................................
    98     98           "information_button": "<i>",
    99     99   
   100    100           # catégories
   101    101           "common_name": "Nom commun",
   102    102           "nom_adj": "Nom et adjectif",
   103    103           "nom": "Nom",
   104    104           "adj": "Adjectif",
   105         -        "alt_lemma": "[optionnel] Autre forme (masculine, féminine, variante, etc.)",
          105  +        "alt_lemma": "[optionnel] Autre forme (masculine, féminine, etc.)",
   106    106   
   107    107           "proper_name": "Nom propre",
   108    108           "M1": "Prénom",
   109    109           "M2": "Patronyme",
   110    110           "MP": "Autre",
   111    111   
   112    112           "gender": "Genre",