Grammalecte  Check-in [6eb51c360e]

Overview
Comment:[lo] underlining to WAVE by default, thanks to LibreOffice 7 bug
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | lo
Files: files | file ages | folders
SHA3-256: 6eb51c360ead7fa01df8e7e9111d796b46b83ae67f7f4a316d6a294acd7eec34
User & Date: olr on 2020-08-27 09:22:06
Other Links: manifest | tags
Context
2020-08-27
12:57
[fr] version 1.12.1 check-in: 784d9de3a3 user: olr tags: trunk, fr, v1.12.1
09:22
[lo] underlining to WAVE by default, thanks to LibreOffice 7 bug check-in: 6eb51c360e user: olr tags: trunk, lo
09:21
[fr] ajustements check-in: b2f55eaaba user: olr tags: trunk, fr
Changes

Modified gc_core/py/oxt/OptionsDialog.xcs from [ce33caf5a3] to [c4636de168].

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
            <prop oor:name="use_community_dic" oor:type="xs:int"><value>0</value></prop>
            <prop oor:name="use_personal_dic" oor:type="xs:int"><value>1</value></prop>
            <prop oor:name="main_dic_name" oor:type="xs:string"><value>classic</value></prop>
            <prop oor:name="community_dic" oor:type="xs:string"><value></value></prop>
            <prop oor:name="personal_dic" oor:type="xs:string"><value></value></prop>
            <!-- graphic options -->
            <prop oor:name="line_multicolor" oor:type="xs:int"><value>1</value></prop>
            <prop oor:name="line_type" oor:type="xs:string"><value>BOLDWAVE</value></prop>
            <!-- misc options -->
            <prop oor:name="start_console" oor:type="xs:int"><value>0</value></prop>
            <prop oor:name="tf_options" oor:type="xs:string"><value></value></prop>
        </group>
    </templates>

    <component>







|







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
            <prop oor:name="use_community_dic" oor:type="xs:int"><value>0</value></prop>
            <prop oor:name="use_personal_dic" oor:type="xs:int"><value>1</value></prop>
            <prop oor:name="main_dic_name" oor:type="xs:string"><value>classic</value></prop>
            <prop oor:name="community_dic" oor:type="xs:string"><value></value></prop>
            <prop oor:name="personal_dic" oor:type="xs:string"><value></value></prop>
            <!-- graphic options -->
            <prop oor:name="line_multicolor" oor:type="xs:int"><value>1</value></prop>
            <prop oor:name="line_type" oor:type="xs:string"><value>WAVE</value></prop>
            <!-- misc options -->
            <prop oor:name="start_console" oor:type="xs:int"><value>0</value></prop>
            <prop oor:name="tf_options" oor:type="xs:string"><value></value></prop>
        </group>
    </templates>

    <component>

Modified gc_lang/fr/oxt/GraphicOptions/GraphicOptions.py from [c72f2ae2d2] to [c4f8c66470].

118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
                if self.xWaveLine.State:
                    sLineType = "WAVE"
                elif self.xBoldWaveLine.State:
                    sLineType = "BOLDWAVE"
                elif self.xBoldLine.State:
                    sLineType = "BOLD"
                else:
                    sLineType = "BOLDWAVE"
                xChild.setPropertyValue("line_type", sLineType)
                self.xGLOptionNode.commitChanges()
            except:
                traceback.print_exc()
        # Close window
        self.xContainer.endExecute()








|







118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
                if self.xWaveLine.State:
                    sLineType = "WAVE"
                elif self.xBoldWaveLine.State:
                    sLineType = "BOLDWAVE"
                elif self.xBoldLine.State:
                    sLineType = "BOLD"
                else:
                    sLineType = "WAVE"
                xChild.setPropertyValue("line_type", sLineType)
                self.xGLOptionNode.commitChanges()
            except:
                traceback.print_exc()
        # Close window
        self.xContainer.endExecute()

Modified gc_lang/fr/oxt/GraphicOptions/go_strings.py from [2c8e8d4403] to [fd57d7ab87].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
def getUI (sLang):
    if sLang in dStrings:
        return dStrings[sLang]
    return dStrings["fr"]

dStrings = {
    "fr": {
        "title": "Grammalecte · Options graphiques",

        "graphic_info": "Apparence du soulignement des erreurs grammaticales et typographiques",
        "spell_info": "L’apparence du soulignement des erreurs orthographiques (trait ondulé rouge) n’est pas modifiable",

        "linetype_section": "Style de ligne (pour LibreOffice 6.3+)",
        "wave_line": "Trait ondulé fin (réglage par défaut de Writer)",
        "boldwave_line": "Trait ondulé épais (réglage par défaut de Grammalecte)",
        "bold_line": "Trait droit épais",

        "color_section": "Couleurs (pour LibreOffice 6.2+)",
        "multicolor_line": "Utiliser plusieurs couleurs",
        "multicolor_descr": "Par défaut, Writer signale les erreurs grammaticales et typographiques avec un trait ondulé de couleur bleue. Si cette option est cochée, Grammalecte attribuera des couleurs différentes aux erreurs selon leur type.",

        "restart": "Le changement ne prendra effet qu’après le redémarrage du logiciel.",

        "apply_button": "Appliquer",
        "cancel_button": "Annuler",
    },
    "en": {
        "title": "Grammalecte · Graphic options",

        "graphic_info": "Appearance of underlines for grammar and typographical mistakes",
        "spell_info": "Appearance of underlines for spelling mistakes (red thin wiggly line) can’t be modified",

        "linetype_section": "Line style (for LibreOffice 6.3+)",
        "wave_line": "Thin wiggly line (default setting of Writer)",
        "boldwave_line": "Thick wiggly line (default setting of Grammalecte)",
        "bold_line": "Thick straight line",

        "color_section": "Colors (for LibreOffice 6.2+)",
        "multicolor_line": "Use several colors",
        "multicolor_descr": "By default, Writer underlines grammar and typographical mistakes with a blue wiggly line. If this option is activated, Grammalecte uses different colors for mistakes according to the type they belong to.",

        "restart": "The modification will be effective only after restarting the software.",

        "apply_button": "Apply",
        "cancel_button": "Cancel",
    },
}













|
|


















|
|












1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
def getUI (sLang):
    if sLang in dStrings:
        return dStrings[sLang]
    return dStrings["fr"]

dStrings = {
    "fr": {
        "title": "Grammalecte · Options graphiques",

        "graphic_info": "Apparence du soulignement des erreurs grammaticales et typographiques",
        "spell_info": "L’apparence du soulignement des erreurs orthographiques (trait ondulé rouge) n’est pas modifiable",

        "linetype_section": "Style de ligne (pour LibreOffice 6.3+)",
        "wave_line": "Trait ondulé fin (réglage par défaut)",
        "boldwave_line": "Trait ondulé épais",
        "bold_line": "Trait droit épais",

        "color_section": "Couleurs (pour LibreOffice 6.2+)",
        "multicolor_line": "Utiliser plusieurs couleurs",
        "multicolor_descr": "Par défaut, Writer signale les erreurs grammaticales et typographiques avec un trait ondulé de couleur bleue. Si cette option est cochée, Grammalecte attribuera des couleurs différentes aux erreurs selon leur type.",

        "restart": "Le changement ne prendra effet qu’après le redémarrage du logiciel.",

        "apply_button": "Appliquer",
        "cancel_button": "Annuler",
    },
    "en": {
        "title": "Grammalecte · Graphic options",

        "graphic_info": "Appearance of underlines for grammar and typographical mistakes",
        "spell_info": "Appearance of underlines for spelling mistakes (red thin wiggly line) can’t be modified",

        "linetype_section": "Line style (for LibreOffice 6.3+)",
        "wave_line": "Thin wiggly line (default setting)",
        "boldwave_line": "Thick wiggly line",
        "bold_line": "Thick straight line",

        "color_section": "Colors (for LibreOffice 6.2+)",
        "multicolor_line": "Use several colors",
        "multicolor_descr": "By default, Writer underlines grammar and typographical mistakes with a blue wiggly line. If this option is activated, Grammalecte uses different colors for mistakes according to the type they belong to.",

        "restart": "The modification will be effective only after restarting the software.",

        "apply_button": "Apply",
        "cancel_button": "Cancel",
    },
}