Commit Graph

30004 Commits

Author SHA1 Message Date
Bobby Rong
c7476cd615 docs: Specify gi-docgen as a native dependency
gi-docgen is supposed to be ran natively on the build machine.

Part-of: <https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3953>
2024-03-05 22:23:01 +08:00
Philip Withnall
04abb73732 Merge branch 'wip/smcv/warn-if-fail' into 'main'
g_warn_if_fail: Document as always evaluating expr

See merge request GNOME/glib!3951
2024-03-05 12:25:42 +00:00
Matej Urbančič
e11d8864d5 Update Slovenian translation 2024-03-05 11:49:43 +00:00
Simon McVittie
88c76b89e0 g_warn_if_fail: Document as always evaluating expr
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-03-05 11:06:10 +00:00
Matej Urbančič
0211f06be3 Update Slovenian translation 2024-03-04 21:34:16 +00:00
Balázs Úr
a5dcd47000 Update Hungarian translation 2024-03-04 10:52:21 +00:00
Aurimas Černius
dfa3d51601 Update Lithuanian translation 2024-03-03 20:35:17 +00:00
Sabri Ünal
73d523b6be Update Turkish translation 2024-03-03 18:34:45 +00:00
Brage Fuglseth
06c173e6ca Update Norwegian Bokmål translation 2024-03-03 14:45:17 +00:00
Luming Zh
cab1d3d752 Update Chinese (China) translation 2024-03-03 09:57:03 +00:00
Yaron Shahrabani
e00ef0aa97 Update Hebrew translation 2024-03-02 22:17:15 +00:00
Artur S0
4e6f7c6c33 Update Russian translation 2024-03-02 19:48:52 +00:00
Asier Sarasua Garmendia
811b4c90ad Update Basque translation 2024-03-01 19:01:58 +00:00
Danial Behzadi
92aed1bab9 Update Persian translation 2024-03-01 17:06:24 +00:00
Khalid Abu Shawarib
d72129b56e Merge branch 'macros-docs-fix' into 'main'
docs: Fix a typo in the macros docs page

See merge request GNOME/glib!3947
2024-03-01 13:29:22 +00:00
Philip Withnall
9249dc6050 Merge branch 'check-missing-install-tag-valgrind' into 'main'
tests: Don’t run check-missing-install-tag.py test under valgrind

See merge request GNOME/glib!3940
2024-03-01 13:15:10 +00:00
Philip Withnall
dd2861cd8a Merge branch '3271-string-fix-again' into 'main'
gfileutils: Use g_format_size() for another translatable string

Closes #3271

See merge request GNOME/glib!3948
2024-03-01 12:21:42 +00:00
Philip Withnall
704d0bb297 gfileutils: Use g_format_size() for another translatable string
As with commit a3c2691c23, another
instance of the same pattern was missed.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3271
2024-03-01 11:57:50 +00:00
Danial Behzadi
83137c84e5 Update Persian translation 2024-02-29 20:17:33 +00:00
Yuri Chornoivan
18567239b5 Update Ukrainian translation 2024-02-29 18:20:49 +00:00
Philip Withnall
9ed0ce21df docs: Fix a typo in the macros docs page
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-29 13:58:53 +00:00
Daniel Mustieles
8c92fa1621 Update Spanish translation 2024-02-29 11:39:56 +00:00
Philip Withnall
8618f50d16 Merge branch 'wip/smcv/cli-placeholders' into 'main'
Add missing argument placeholders to several command-line tools

See merge request GNOME/glib!3946
2024-02-29 10:39:53 +00:00
Yaron Shahrabani
4f555c0507 Update Hebrew translation 2024-02-29 06:48:55 +00:00
Bruce Cowan
6aaf88edc4 Update British English translation 2024-02-28 12:29:55 +00:00
Andi Chandler
90075e4680 Update British English translation
(cherry picked from commit 557f0d9442)
2024-02-28 11:46:09 +00:00
Simon McVittie
fb4b780eea glib-compile-resources: Provide placeholders for options with an argument
If we don't do this, the --help text is formatted as though the option
did not expect an argument.

IDENTIFIER is a new translated string, but it is developer-oriented,
so a missing translation is not particularly bad. COMMAND is already
present in translations.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-02-28 11:28:00 +00:00
Simon McVittie
5622a4a625 gdbus: Add command-line placeholder for ADDRESS
If we don't do this, the --help text is formatted as though the option
did not expect an argument.

This introduces a new translated string, but it is developer-oriented,
so a missing translation is not particularly bad.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-02-28 11:27:21 +00:00
Simon McVittie
1a8e2228f6 girepository: Provide placeholders for positional parameters
Otherwise, correct invocation isn't clear from the --help output.

This does not introduce new translated strings: FILE was already
translated.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-02-28 11:27:15 +00:00
Simon McVittie
9541b43eef girepository: Provide placeholders for --includedir
If we don't do this, the --help text is formatted as though the option
did not expect an argument.

This does not introduce new translated strings: DIRECTORY was already
translated.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-02-28 11:26:59 +00:00
Daniel Mustieles
3904549cde Update Spanish translation 2024-02-28 11:10:22 +00:00
Daniel Rusek
a91d2f81c2 Update Czech translation 2024-02-27 23:04:45 +00:00
Yuri Chornoivan
4bebd4d65e Update Ukrainian translation 2024-02-27 17:54:24 +00:00
Ekaterine Papava
5214fd7f43 Update Georgian translation 2024-02-27 17:20:13 +00:00
Luming Zh
c13744a1f4 Update Chinese (China) translation 2024-02-27 16:48:40 +00:00
Philip Withnall
0d31fc6df3
2.79.3
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-27 10:11:38 +00:00
Marco Trevisan
972db82a8e Merge branch 'girepository-tool-translation' into 'main'
girepository: Add translation support to utility tools

Closes #3263

See merge request GNOME/glib!3941
2024-02-27 09:41:03 +00:00
Marco Trevisan
def7de3366 Merge branch '3271-size-format' into 'main'
gfileutils: Use g_format_size() for a translatable string

Closes #3271

See merge request GNOME/glib!3943
2024-02-27 09:32:13 +00:00
Philip Withnall
fca9568a72 Merge branch '3266-connection-attempt-unref-order' into 'main'
gsocketclient: Fix a use-after-free in g_socket_client_connected_callback()

Closes #3266

See merge request GNOME/glib!3944
2024-02-27 09:17:13 +00:00
Philip Withnall
a3c2691c23 gfileutils: Use g_format_size() for a translatable string
Partially because the use of `G_GSIZE_MODIFIER` breaks translatable
string extraction (issue #3271) and partially because `g_format_size()`
produces more human-readable results anyway.

Prior to commit cf5e371c67 the code was using `%lu`, so this is a fairly
new issue.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3271
2024-02-27 09:14:22 +00:00
Philip Withnall
9a661ab970 gsocketclient: Fix a use-after-free in g_socket_client_connected_callback()
The ref held by `data->task` may be the last one on the `GTask`. The
`GTask` stores `attempt->data` as its task data, and so when the `GTask`
is finalised, `attempt->data` is too. `connection_attempt_remove()`
needs to access `attempt->data`, so must be called before the
`g_object_unref()` in this situation.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3266
2024-02-27 09:03:03 +00:00
Philip Withnall
bd17a09862 girepository: Combine input file validation code paths in utilities
The code and strings are the same, so let’s simplify things and reduce
LoC for no functional change.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 18:10:56 +00:00
Philip Withnall
08b3f14a32 compiler: Correctly use g_strerror() instead of strerror()
This ensures the return value is always UTF-8.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 18:10:56 +00:00
Philip Withnall
57a8834d7b girepository: Add translation support to utility tools
This fixes a few formatting and newline issues in the strings at the
same time, but nothing major.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3263
2024-02-26 18:10:56 +00:00
Philip Withnall
c69ddddcfc tests: Don’t run check-missing-install-tag.py test under valgrind
Like in commit 80e878005f, running this
test under valgrind is not useful.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 18:10:06 +00:00
Philip Withnall
5b022f903c Merge branch 'pcre-lookbehind' into 'main'
tests: Remove variable-length lookbehind tests for GRegex

See merge request GNOME/glib!3945
2024-02-26 18:07:17 +00:00
Philip Withnall
ca4e6f81d2 Merge branch 'wip/oholy/gvolumemonitor-leak' into 'main'
gcontextspecificgroup: Wait until stop_func is done

Closes #3258

See merge request GNOME/glib!3934
2024-02-26 18:06:45 +00:00
Philip Withnall
cce3ae98a2 tests: Remove variable-length lookbehind tests for GRegex
PCRE2 10.43 has now introduced support for variable-length lookbehind,
so these tests now fail if GLib is built against PCRE2 10.43 or higher.

See
e8db6fa713/ChangeLog (L94).

Rather than making the tests conditional on the version of PCRE2 in use,
just remove them. They are mostly testing the PCRE2 code rather than
any code in GLib, so don’t have much value.

This should fix CI runs on msys2-mingw32, which updated to PCRE2 10.43 2
days ago.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
2024-02-26 16:55:44 +00:00
Daniel Mustieles
65c64ea374 Updated Spanish translation 2024-02-26 15:03:53 +01:00
Philip Withnall
32a60a79a0 Merge branch 'macos_origin_only' into 'main'
Restrict macOS CI to origin

See merge request GNOME/glib!3935
2024-02-26 10:58:05 +00:00