Loupe/src
Maximiliano Sandoval d922a033ec edit_window: Remove i==1 branch for ngettext
A message catalog can have at most a single string with a given msgid,
in this case having a branch with gettext and another with ngettext
would result in two strings with " (Edited)" as their msgid.

This can be checked via:

$ meson compile loupe-pot
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja loupe-pot
[0/1] Running external command loupe-pot
/usr/bin/xgettext: warning: msgid ' (Edited)' is used without plural and with plural.
                            src/widgets/edit_window.rs:197: Here is the occurrence without plural.
                            src/widgets/edit_window.rs:200: Here is the occurrence with plural.
                            Workaround: If the msgid is a sentence, change the wording of the sentence; otherwise, use contexts for disambiguation.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/578>
2026-01-29 23:14:58 +00:00
..
decoder Update copyright comments 2025-12-19 00:06:29 +01:00
editing code: Reformat with Rust 2024 edition 2025-12-04 06:17:55 +01:00
metadata metadata: Drop unreliable mime-type 2025-12-03 22:41:24 +01:00
util code: Use chained if-let's 2026-01-29 23:59:58 +01:00
widgets edit_window: Remove i==1 branch for ngettext 2026-01-29 23:14:58 +00:00
about.rs cargo: Update deps 2026-01-29 23:59:58 +01:00
application.rs image: Unify error handling in one type 2025-12-22 01:40:44 +01:00
config.rs meson: Don't mangle profile and app id suffix 2024-09-27 21:22:52 +02:00
decoder.rs code: Use chained if-let's 2026-01-29 23:59:58 +01:00
editing.rs Use tracing for logging 2025-12-18 23:15:46 +01:00
file_model.rs image: Unify error handling in one type 2025-12-22 01:40:44 +01:00
lib.rs Use tracing for logging 2025-12-18 23:15:46 +01:00
main.rs util/gettext: Parse unicode escape sequences 2024-07-17 19:33:52 +02:00
meson.build Add newlines to end of all files 2025-04-18 02:40:39 +02:00
metadata.rs code: Use chained if-let's 2026-01-29 23:59:58 +01:00
util.rs Update copyright comments 2025-12-19 00:06:29 +01:00
widgets.rs properties: Remove usage of breakpoints 2024-12-22 20:27:33 +01:00