Skip to content

Commit cf567a1

Browse files
committed
[issue #32] Highlight code based on paragraph style (final part).
1 parent 59684b5 commit cf567a1

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed

codehighlighter/description.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<identifier value="javahelps.codehighlighter"/>
88

9-
<version value="2.7.0beta"/>
9+
<version value="2.7.1"/>
1010

1111
<update-information>
1212
<src xlink:href="https://raw.githubusercontent.com/jmzambon/libreoffice-code-highlighter/master/codehighlighter.update.xml" />

codehighlighter/python/highlight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def create_dialog(self):
437437

438438
# set dialog strings
439439
controlnames = {"check_charstyles": (_("Use character ~styles"), _("When possible, code highlighting will be based on character styles.")),
440-
"check_col_bg": (_("Set ~background color"), _("Use the background color provided by the style.")),
440+
"check_col_bg": (_("Set ~background from style"), _("Use the background color provided by the style.")),
441441
"check_linenb": (_("Add ~line numbering"), _("Active or deactivate line numbers.")),
442442
"lbl_nb_sep": (_("Separator"), _("Use \\t to insert tabulation")),
443443
"lbl_nb_pad": (_("Padding symbol"), _("Character to fill the leading space (0 for 01 for example)")),

codehighlighter2.oxt

36 Bytes
Binary file not shown.

locales/en/LC_MESSAGES/ch2.po

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: PACKAGE VERSION\n"
8-
"POT-Creation-Date: 2024-08-25 19:31+0200\n"
8+
"POT-Creation-Date: 2024-08-26 18:16+0200\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -46,8 +46,8 @@ msgid "When possible, code highlighting will be based on character styles."
4646
msgstr "When possible, code highlighting will be based on character styles."
4747

4848
#: codehighlighter/python/highlight.py:440
49-
msgid "Set ~background color"
50-
msgstr "Set ~background color"
49+
msgid "Set ~background from style"
50+
msgstr "Set ~background from style"
5151

5252
#: codehighlighter/python/highlight.py:440
5353
msgid "Use the background color provided by the style."
@@ -166,3 +166,6 @@ msgid "{} code snippet has been formatted."
166166
msgid_plural "{} code snippets have been formatted."
167167
msgstr[0] "{} code snippet has been formatted."
168168
msgstr[1] "{} code snippets have been formatted."
169+
170+
#~ msgid "Set ~background color"
171+
#~ msgstr "Set ~background color"

locales/fr/LC_MESSAGES/ch2.po

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: PACKAGE VERSION\n"
8-
"POT-Creation-Date: 2024-08-25 19:31+0200\n"
8+
"POT-Creation-Date: 2024-08-26 18:16+0200\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -47,12 +47,12 @@ msgid "When possible, code highlighting will be based on character styles."
4747
msgstr "Si possible, le code sera colorisé sur base des styles de caractère."
4848

4949
#: codehighlighter/python/highlight.py:440
50-
msgid "Set ~background color"
51-
msgstr "Utiliser la couleur de ~fond"
50+
msgid "Set ~background from style"
51+
msgstr "Utiliser l'arrière-plan du style"
5252

5353
#: codehighlighter/python/highlight.py:440
5454
msgid "Use the background color provided by the style."
55-
msgstr "Utiliser l'arrière-plan fourni par le style."
55+
msgstr "Utiliser la couleur d'arrière-plan fournie par le style."
5656

5757
#: codehighlighter/python/highlight.py:441
5858
msgid "Active or deactivate line numbers."
@@ -167,3 +167,6 @@ msgid "{} code snippet has been formatted."
167167
msgid_plural "{} code snippets have been formatted."
168168
msgstr[0] "{} extrait de code a été formaté."
169169
msgstr[1] "{} extraits de code ont été formatés."
170+
171+
#~ msgid "Set ~background color"
172+
#~ msgstr "Utiliser la couleur de ~fond"

locales/it/LC_MESSAGES/ch2.po

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: PACKAGE VERSION\n"
8-
"POT-Creation-Date: 2024-08-25 19:31+0200\n"
8+
"POT-Creation-Date: 2024-08-26 18:16+0200\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -50,8 +50,8 @@ msgstr ""
5050
"caratteri."
5151

5252
#: codehighlighter/python/highlight.py:440
53-
msgid "Set ~background color"
54-
msgstr "~Colore di sfondo"
53+
msgid "Set ~background from style"
54+
msgstr "Usare lo sfondo dello stile"
5555

5656
#: codehighlighter/python/highlight.py:440
5757
msgid "Use the background color provided by the style."
@@ -170,3 +170,6 @@ msgid "{} code snippet has been formatted."
170170
msgid_plural "{} code snippets have been formatted."
171171
msgstr[0] "{} frammento di codice è stato formattato."
172172
msgstr[1] "{} frammenti di codice sono stati formattati."
173+
174+
#~ msgid "Set ~background color"
175+
#~ msgstr "~Colore di sfondo"

0 commit comments

Comments
 (0)