gettext: Move comments directly above gettext call
Hopefully they will now be detected by the system.
This commit is contained in:
parent
2f13b84d5d
commit
5d1fa3c0fa
3 changed files with 13 additions and 11 deletions
|
|
@ -248,11 +248,10 @@ impl Metadata {
|
|||
.as_ref()
|
||||
.and_then(|exif| exif.get_field(exif::Tag::FNumber, exif::In::PRIMARY))
|
||||
{
|
||||
return Some(
|
||||
// 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()],
|
||||
));
|
||||
gettext_f(r"\u{192}\u{2215}{}", [field.display_value().to_string()]),
|
||||
);
|
||||
}
|
||||
|
||||
None
|
||||
|
|
|
|||
|
|
@ -281,11 +281,13 @@ mod imp {
|
|||
_ => {
|
||||
let (width, height) = image.image_size();
|
||||
if width > 0 && height > 0 {
|
||||
Some(
|
||||
// Translators: Image "<width> x <height>"
|
||||
Some(gettext_f(
|
||||
gettext_f(
|
||||
r"{}\u{202F}\u{D7}\u{202F}{}",
|
||||
[width.to_string(), height.to_string()],
|
||||
))
|
||||
),
|
||||
)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue