private void buildLessonsMenu() {

        localizables.add(new Localizable.Button(lessonsMenu, "_menuLessons"));
        lessonsMenu.setMnemonic(KeyEvent.VK_L);

        path = currentlesson.getLessonPath(language);

        File sousrepertoire = new File(path);

        if (sousrepertoire.isDirectory()) {
            File[] listsp = sousrepertoire.listFiles();
            Arrays.sort(listsp);
            if (listsp != null && listsp.length <= 15) { //15 directory

                for (int i = 0; i < listsp.length; i++) {

                    lessonsMenuDir[i] = new JMenu(listsp[i].getName());
                    lessonsMenu.add(lessonsMenuDir[i]);

                    pathsubdir[i] = path + File.separator + listsp[i].getName();
                    File repertoire = new File(pathsubdir[i]);
                    File[] list = repertoire.listFiles();
                    Arrays.sort(list);
                    if (list != null && list.length <= 25) { //25 lessons max

                        for (int i1 = 0; i1 < list.length; i1++) {

                            if ("xml".equals(FileTools.getFileExtension(list[i1]))) {

                                lessonsMenuItem[i][i1] = new JMenuItem(FileTools.getFileNameWithoutExtension(list[i1]));
                                lessonsMenuItem[i][i1].addActionListener(this);

                                lessonsMenuDir[i].add(lessonsMenuItem[i][i1]);

                            }
                        }

                    }

                }

            }
        } else {
            System.err.println(sousrepertoire + " : Reading lessons files error.");
        }

        lessonsMenu.addSeparator();

        JMenuItem manageMenuItem = new JMenuItem(new ImageIcon(getClass().getResource("/images/folder.png")));
        localizables.add(new Localizable.Button(manageMenuItem, "_menuBrowse"));
        manageMenuItem.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                File sousrepertoire = new File(path);
                OpenDirectory(sousrepertoire);
            }
        });
        lessonsMenu.add(manageMenuItem);

        // 	path = path+"/Basic";
        //  File repertoire=new File(path);

        //  bLessons.removeAllItems();

        //localizables.add(new Localizable.Button(lessonsMenuItem, "_menuLessons"));

    }