Skip to content

Commit 2f0cfec

Browse files
committed
Update $rsearch() args. Fix $lower() example. Add to .gitignore.
1 parent e8ec95e commit 2f0cfec

File tree

10 files changed

+227
-50
lines changed

10 files changed

+227
-50
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
__pycache__/
99
/_locale/**/*.mo
1010
/_locale/gettext/.doctrees
11+
/**/.pytest_cache

_locale/ca/LC_MESSAGES/functions/func_rsearch.po

Lines changed: 47 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: MusicBrainz Picard v2.11.0rc1\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-01-11 23:26+0100\n"
10+
"POT-Creation-Date: 2025-08-04 18:11-0600\n"
1111
"PO-Revision-Date: 2025-07-02 17:20+0000\n"
1212
"Last-Translator: Marc Riera <[email protected]>\n"
13-
"Language-Team: Catalan <https://translations.metabrainz.org/projects/"
14-
"picard-docs/functionsfunc_rsearch/ca/>\n"
13+
"Language-Team: Catalan <https://translations.metabrainz.org/projects/picard-"
14+
"docs/functionsfunc_rsearch/ca/>\n"
1515
"Language: ca\n"
1616
"MIME-Version: 1.0\n"
1717
"Content-Type: text/plain; charset=UTF-8\n"
@@ -24,7 +24,8 @@ msgid "$rsearch"
2424
msgstr "$rsearch"
2525

2626
#: ../../functions/func_rsearch.rst:8
27-
msgid "Usage: **$rsearch(text,pattern)**"
27+
#, fuzzy
28+
msgid "Usage: **$rsearch(text,pattern[,group])**"
2829
msgstr "Ús: **$rsearch(text,patró)**"
2930

3031
#: ../../functions/func_rsearch.rst:9
@@ -36,21 +37,57 @@ msgid "**Description:**"
3637
msgstr "**Descripció:**"
3738

3839
#: ../../functions/func_rsearch.rst:13
39-
msgid "Regular expression search. This function will return the first matching group specified by ``pattern`` from ``text``. For more information about regular expressions, please see the `article on Wikipedia <https://wikipedia.org/wiki/Regular_expression>`_."
40+
msgid ""
41+
"Regular expression search. This function will return the first matching "
42+
"group specified by ``pattern`` from ``text``. For more information about "
43+
"regular expressions, please see the `article on Wikipedia <https://wikipedia."
44+
"org/wiki/Regular_expression>`_."
4045
msgstr ""
4146

4247
#: ../../functions/func_rsearch.rst:17
43-
msgid "If a marked subexpression is defined using parentheses within the search pattern, only the pattern captured by the subexpression will be returned. If more than one marked subexpression is defined and matched, only the pattern captured by the first subexpression will be returned. If more than one marked subexpression is defined and not all are matched, an empty string will be returned. If no subexpression is specified, then the pattern captured by the whole search expression will be returned."
48+
msgid ""
49+
"If a marked subexpression is defined using parentheses within the search "
50+
"pattern, only the pattern captured by the subexpression will be returned. "
51+
"If more than one marked subexpression is defined and matched, only the "
52+
"pattern captured by the first subexpression will be returned. If more than "
53+
"one marked subexpression is defined and not all are matched, an empty string "
54+
"will be returned. If no subexpression is specified, then the pattern "
55+
"captured by the whole search expression will be returned."
56+
msgstr ""
57+
58+
#: ../../functions/func_rsearch.rst:24
59+
msgid ""
60+
"If the optional ``group`` parameter is not provided or is empty, return the "
61+
"first capture group which matched something (including the empty string) or "
62+
"the entire match."
63+
msgstr ""
64+
65+
#: ../../functions/func_rsearch.rst:28
66+
msgid ""
67+
"If ``group`` is an integer, return the capture group in the position "
68+
"matching this integer. Otherwise, return the capture group named ``group``, "
69+
"sans surrounding whitespace."
70+
msgstr ""
71+
72+
#: ../../functions/func_rsearch.rst:33
73+
msgid ""
74+
"When entering regular expressions into Picard scripts you have to escape a "
75+
"backslash \"\\\\\", dollar sign \"$\", comma \",\" and the left and right "
76+
"parentheses \"(\" and \")\" in order to force Picard to not interpret them "
77+
"as part of the script command. This is done by inserting a backslash before "
78+
"the character to be escaped. For example, the regular expression "
79+
"``^\\s*([0-9,\\.]*)$`` would have to be entered as ``^\\\\s*\\([0-9\\,\\"
80+
"\\.]*\\)\\$``."
4481
msgstr ""
4582

46-
#: ../../functions/func_rsearch.rst:26
47-
msgid "When entering regular expressions into Picard scripts you have to escape a backslash \"\\\\\", dollar sign \"$\", comma \",\" and the left and right parentheses \"(\" and \")\" in order to force Picard to not interpret them as part of the script command. This is done by inserting a backslash before the character to be escaped. For example, the regular expression ``^\\s*([0-9,\\.]*)$`` would have to be entered as ``^\\\\s*\\([0-9\\,\\\\.]*\\)\\$``."
83+
#: ../../functions/func_rsearch.rst:41
84+
msgid "The ``group`` argument was added in Picard v2.14."
4885
msgstr ""
4986

50-
#: ../../functions/func_rsearch.rst:32
87+
#: ../../functions/func_rsearch.rst:43
5188
msgid "**Example:**"
5289
msgstr "**Exemple:**"
5390

54-
#: ../../functions/func_rsearch.rst:34
91+
#: ../../functions/func_rsearch.rst:45
5592
msgid "The following statements will return the values indicated:"
5693
msgstr "Les instruccions següents retornaran els valors indicats:"

_locale/de/LC_MESSAGES/functions/func_rsearch.po

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: MusicBrainz Picard v2.6.3\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-01-11 23:26+0100\n"
9+
"POT-Creation-Date: 2025-08-04 18:11-0600\n"
1010
"PO-Revision-Date: 2023-08-26 10:27+0000\n"
1111
"Last-Translator: Philipp Wolfer <[email protected]>\n"
1212
"Language-Team: German <https://translations.metabrainz.org/projects/picard-"
@@ -23,7 +23,7 @@ msgid "$rsearch"
2323
msgstr ""
2424

2525
#: ../../functions/func_rsearch.rst:8
26-
msgid "Usage: **$rsearch(text,pattern)**"
26+
msgid "Usage: **$rsearch(text,pattern[,group])**"
2727
msgstr ""
2828

2929
#: ../../functions/func_rsearch.rst:9
@@ -53,7 +53,21 @@ msgid ""
5353
"captured by the whole search expression will be returned."
5454
msgstr ""
5555

56-
#: ../../functions/func_rsearch.rst:26
56+
#: ../../functions/func_rsearch.rst:24
57+
msgid ""
58+
"If the optional ``group`` parameter is not provided or is empty, return the "
59+
"first capture group which matched something (including the empty string) or "
60+
"the entire match."
61+
msgstr ""
62+
63+
#: ../../functions/func_rsearch.rst:28
64+
msgid ""
65+
"If ``group`` is an integer, return the capture group in the position "
66+
"matching this integer. Otherwise, return the capture group named ``group``, "
67+
"sans surrounding whitespace."
68+
msgstr ""
69+
70+
#: ../../functions/func_rsearch.rst:33
5771
msgid ""
5872
"When entering regular expressions into Picard scripts you have to escape a "
5973
"backslash \"\\\\\", dollar sign \"$\", comma \",\" and the left and right "
@@ -64,10 +78,14 @@ msgid ""
6478
"\\.]*\\)\\$``."
6579
msgstr ""
6680

67-
#: ../../functions/func_rsearch.rst:32
81+
#: ../../functions/func_rsearch.rst:41
82+
msgid "The ``group`` argument was added in Picard v2.14."
83+
msgstr ""
84+
85+
#: ../../functions/func_rsearch.rst:43
6886
msgid "**Example:**"
6987
msgstr "**Beispiel:**"
7088

71-
#: ../../functions/func_rsearch.rst:34
89+
#: ../../functions/func_rsearch.rst:45
7290
msgid "The following statements will return the values indicated:"
7391
msgstr "Die folgenden Ausdrücke geben den angegebenen Wert zurück:"

_locale/fr/LC_MESSAGES/functions/func_rsearch.po

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: MusicBrainz Picard v2.3.2\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-01-11 23:26+0100\n"
11+
"POT-Creation-Date: 2025-08-04 18:11-0600\n"
1212
"PO-Revision-Date: 2021-10-06 18:03+0000\n"
1313
"Last-Translator: Bob Swift <[email protected]>\n"
1414
"Language-Team: French <https://translate.uploadedlobster.com/projects/picard-"
@@ -26,7 +26,8 @@ msgid "$rsearch"
2626
msgstr "$rsearch"
2727

2828
#: ../../functions/func_rsearch.rst:8
29-
msgid "Usage: **$rsearch(text,pattern)**"
29+
#, fuzzy
30+
msgid "Usage: **$rsearch(text,pattern[,group])**"
3031
msgstr "Utilisation: **$rsearch(texte,motif)**"
3132

3233
#: ../../functions/func_rsearch.rst:9
@@ -68,7 +69,21 @@ msgstr ""
6869
"n'est spécifiée, le modèle capturé par l'expression de recherche entière "
6970
"sera retourné."
7071

71-
#: ../../functions/func_rsearch.rst:26
72+
#: ../../functions/func_rsearch.rst:24
73+
msgid ""
74+
"If the optional ``group`` parameter is not provided or is empty, return the "
75+
"first capture group which matched something (including the empty string) or "
76+
"the entire match."
77+
msgstr ""
78+
79+
#: ../../functions/func_rsearch.rst:28
80+
msgid ""
81+
"If ``group`` is an integer, return the capture group in the position "
82+
"matching this integer. Otherwise, return the capture group named ``group``, "
83+
"sans surrounding whitespace."
84+
msgstr ""
85+
86+
#: ../../functions/func_rsearch.rst:33
7287
msgid ""
7388
"When entering regular expressions into Picard scripts you have to escape a "
7489
"backslash \"\\\\\", dollar sign \"$\", comma \",\" and the left and right "
@@ -87,11 +102,15 @@ msgstr ""
87102
"``^\\s*([0-9,\\.]*)$`` doit être saisie comme ``^\\\\s*\\([0-9\\,\\\\.]*\\)\\"
88103
"$``."
89104

90-
#: ../../functions/func_rsearch.rst:32
105+
#: ../../functions/func_rsearch.rst:41
106+
msgid "The ``group`` argument was added in Picard v2.14."
107+
msgstr ""
108+
109+
#: ../../functions/func_rsearch.rst:43
91110
msgid "**Example:**"
92111
msgstr "**Exemple:**"
93112

94-
#: ../../functions/func_rsearch.rst:34
113+
#: ../../functions/func_rsearch.rst:45
95114
msgid "The following statements will return the values indicated:"
96115
msgstr "Les instructions suivantes renverront les valeurs indiquées :"
97116

_locale/gettext/functions/func_rsearch.pot

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#, fuzzy
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: MusicBrainz Picard v2.11.0rc1\n"
9+
"Project-Id-Version: MusicBrainz Picard v2.13.3\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-01-11 23:26+0100\n"
11+
"POT-Creation-Date: 2025-08-04 18:11-0600\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -21,7 +21,7 @@ msgid "$rsearch"
2121
msgstr ""
2222

2323
#: ../../functions/func_rsearch.rst:8
24-
msgid "Usage: **$rsearch(text,pattern)**"
24+
msgid "Usage: **$rsearch(text,pattern[,group])**"
2525
msgstr ""
2626

2727
#: ../../functions/func_rsearch.rst:9
@@ -40,14 +40,26 @@ msgstr ""
4040
msgid "If a marked subexpression is defined using parentheses within the search pattern, only the pattern captured by the subexpression will be returned. If more than one marked subexpression is defined and matched, only the pattern captured by the first subexpression will be returned. If more than one marked subexpression is defined and not all are matched, an empty string will be returned. If no subexpression is specified, then the pattern captured by the whole search expression will be returned."
4141
msgstr ""
4242

43-
#: ../../functions/func_rsearch.rst:26
43+
#: ../../functions/func_rsearch.rst:24
44+
msgid "If the optional ``group`` parameter is not provided or is empty, return the first capture group which matched something (including the empty string) or the entire match."
45+
msgstr ""
46+
47+
#: ../../functions/func_rsearch.rst:28
48+
msgid "If ``group`` is an integer, return the capture group in the position matching this integer. Otherwise, return the capture group named ``group``, sans surrounding whitespace."
49+
msgstr ""
50+
51+
#: ../../functions/func_rsearch.rst:33
4452
msgid "When entering regular expressions into Picard scripts you have to escape a backslash \"\\\\\", dollar sign \"$\", comma \",\" and the left and right parentheses \"(\" and \")\" in order to force Picard to not interpret them as part of the script command. This is done by inserting a backslash before the character to be escaped. For example, the regular expression ``^\\s*([0-9,\\.]*)$`` would have to be entered as ``^\\\\s*\\([0-9\\,\\\\.]*\\)\\$``."
4553
msgstr ""
4654

47-
#: ../../functions/func_rsearch.rst:32
55+
#: ../../functions/func_rsearch.rst:41
56+
msgid "The ``group`` argument was added in Picard v2.14."
57+
msgstr ""
58+
59+
#: ../../functions/func_rsearch.rst:43
4860
msgid "**Example:**"
4961
msgstr ""
5062

51-
#: ../../functions/func_rsearch.rst:34
63+
#: ../../functions/func_rsearch.rst:45
5264
msgid "The following statements will return the values indicated:"
5365
msgstr ""

_locale/lt/LC_MESSAGES/functions/func_rsearch.po

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: MusicBrainz Picard v2.11.0rc1\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-01-11 23:26+0100\n"
10+
"POT-Creation-Date: 2025-08-04 18:11-0600\n"
1111
"PO-Revision-Date: 2025-04-04 21:55+0000\n"
1212
"Last-Translator: Vaclovas Intas <[email protected]>\n"
1313
"Language-Team: Lithuanian <https://translations.metabrainz.org/projects/"
@@ -26,7 +26,7 @@ msgid "$rsearch"
2626
msgstr ""
2727

2828
#: ../../functions/func_rsearch.rst:8
29-
msgid "Usage: **$rsearch(text,pattern)**"
29+
msgid "Usage: **$rsearch(text,pattern[,group])**"
3030
msgstr ""
3131

3232
#: ../../functions/func_rsearch.rst:9
@@ -38,21 +38,57 @@ msgid "**Description:**"
3838
msgstr "**Aprašas:**"
3939

4040
#: ../../functions/func_rsearch.rst:13
41-
msgid "Regular expression search. This function will return the first matching group specified by ``pattern`` from ``text``. For more information about regular expressions, please see the `article on Wikipedia <https://wikipedia.org/wiki/Regular_expression>`_."
41+
msgid ""
42+
"Regular expression search. This function will return the first matching "
43+
"group specified by ``pattern`` from ``text``. For more information about "
44+
"regular expressions, please see the `article on Wikipedia <https://wikipedia."
45+
"org/wiki/Regular_expression>`_."
4246
msgstr ""
4347

4448
#: ../../functions/func_rsearch.rst:17
45-
msgid "If a marked subexpression is defined using parentheses within the search pattern, only the pattern captured by the subexpression will be returned. If more than one marked subexpression is defined and matched, only the pattern captured by the first subexpression will be returned. If more than one marked subexpression is defined and not all are matched, an empty string will be returned. If no subexpression is specified, then the pattern captured by the whole search expression will be returned."
49+
msgid ""
50+
"If a marked subexpression is defined using parentheses within the search "
51+
"pattern, only the pattern captured by the subexpression will be returned. "
52+
"If more than one marked subexpression is defined and matched, only the "
53+
"pattern captured by the first subexpression will be returned. If more than "
54+
"one marked subexpression is defined and not all are matched, an empty string "
55+
"will be returned. If no subexpression is specified, then the pattern "
56+
"captured by the whole search expression will be returned."
57+
msgstr ""
58+
59+
#: ../../functions/func_rsearch.rst:24
60+
msgid ""
61+
"If the optional ``group`` parameter is not provided or is empty, return the "
62+
"first capture group which matched something (including the empty string) or "
63+
"the entire match."
64+
msgstr ""
65+
66+
#: ../../functions/func_rsearch.rst:28
67+
msgid ""
68+
"If ``group`` is an integer, return the capture group in the position "
69+
"matching this integer. Otherwise, return the capture group named ``group``, "
70+
"sans surrounding whitespace."
71+
msgstr ""
72+
73+
#: ../../functions/func_rsearch.rst:33
74+
msgid ""
75+
"When entering regular expressions into Picard scripts you have to escape a "
76+
"backslash \"\\\\\", dollar sign \"$\", comma \",\" and the left and right "
77+
"parentheses \"(\" and \")\" in order to force Picard to not interpret them "
78+
"as part of the script command. This is done by inserting a backslash before "
79+
"the character to be escaped. For example, the regular expression "
80+
"``^\\s*([0-9,\\.]*)$`` would have to be entered as ``^\\\\s*\\([0-9\\,\\"
81+
"\\.]*\\)\\$``."
4682
msgstr ""
4783

48-
#: ../../functions/func_rsearch.rst:26
49-
msgid "When entering regular expressions into Picard scripts you have to escape a backslash \"\\\\\", dollar sign \"$\", comma \",\" and the left and right parentheses \"(\" and \")\" in order to force Picard to not interpret them as part of the script command. This is done by inserting a backslash before the character to be escaped. For example, the regular expression ``^\\s*([0-9,\\.]*)$`` would have to be entered as ``^\\\\s*\\([0-9\\,\\\\.]*\\)\\$``."
84+
#: ../../functions/func_rsearch.rst:41
85+
msgid "The ``group`` argument was added in Picard v2.14."
5086
msgstr ""
5187

52-
#: ../../functions/func_rsearch.rst:32
88+
#: ../../functions/func_rsearch.rst:43
5389
msgid "**Example:**"
5490
msgstr "**Pavyzdys:**"
5591

56-
#: ../../functions/func_rsearch.rst:34
92+
#: ../../functions/func_rsearch.rst:45
5793
msgid "The following statements will return the values indicated:"
5894
msgstr "Toliau pateikti teiginiai grąžins nurodytas reikšmes:"

0 commit comments

Comments
 (0)