gettext: Move comments directly above gettext call

Hopefully they will now be detected by the system.
This commit is contained in:
Sophie Herold 2024-09-12 22:20:50 +02:00
parent 2f13b84d5d
commit 5d1fa3c0fa
3 changed files with 13 additions and 11 deletions

View file

@ -248,11 +248,10 @@ impl Metadata {
.as_ref()
.and_then(|exif| exif.get_field(exif::Tag::FNumber, exif::In::PRIMARY))
{
// Translators: Display of the f-number <https://en.wikipedia.org/wiki/F-number>. {} will be replaced with the number
return Some(gettext_f(
r"\u{192}\u{2215}{}",
[field.display_value().to_string()],
));
return Some(
// Translators: Display of the f-number <https://en.wikipedia.org/wiki/F-number>. {} will be replaced with the number
gettext_f(r"\u{192}\u{2215}{}", [field.display_value().to_string()]),
);
}
None

View file

@ -281,11 +281,13 @@ mod imp {
_ => {
let (width, height) = image.image_size();
if width > 0 && height > 0 {
// Translators: Image "<width> x <height>"
Some(gettext_f(
r"{}\u{202F}\u{D7}\u{202F}{}",
[width.to_string(), height.to_string()],
))
Some(
// Translators: Image "<width> x <height>"
gettext_f(
r"{}\u{202F}\u{D7}\u{202F}{}",
[width.to_string(), height.to_string()],
),
)
} else {
None
}

View file

@ -620,7 +620,8 @@ impl LpSlidingView {
*self.imp().position_tracking.borrow_mut() =
PositionTracking::StackedCards(StackedCards::new(prev_page, backward));
// Set current page here as well, to make sure it's set when animation completes for disabled animations
// Set current page here as well, to make sure it's set when animation completes
// for disabled animations
self.set_current_page(Some(page));
animation.play();
}