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()
|
.as_ref()
|
||||||
.and_then(|exif| exif.get_field(exif::Tag::FNumber, exif::In::PRIMARY))
|
.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(
|
||||||
return Some(gettext_f(
|
// Translators: Display of the f-number <https://en.wikipedia.org/wiki/F-number>. {} will be replaced with the number
|
||||||
r"\u{192}\u{2215}{}",
|
gettext_f(r"\u{192}\u{2215}{}", [field.display_value().to_string()]),
|
||||||
[field.display_value().to_string()],
|
);
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
None
|
None
|
||||||
|
|
|
||||||
|
|
@ -281,11 +281,13 @@ mod imp {
|
||||||
_ => {
|
_ => {
|
||||||
let (width, height) = image.image_size();
|
let (width, height) = image.image_size();
|
||||||
if width > 0 && height > 0 {
|
if width > 0 && height > 0 {
|
||||||
// Translators: Image "<width> x <height>"
|
Some(
|
||||||
Some(gettext_f(
|
// Translators: Image "<width> x <height>"
|
||||||
r"{}\u{202F}\u{D7}\u{202F}{}",
|
gettext_f(
|
||||||
[width.to_string(), height.to_string()],
|
r"{}\u{202F}\u{D7}\u{202F}{}",
|
||||||
))
|
[width.to_string(), height.to_string()],
|
||||||
|
),
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -620,7 +620,8 @@ impl LpSlidingView {
|
||||||
|
|
||||||
*self.imp().position_tracking.borrow_mut() =
|
*self.imp().position_tracking.borrow_mut() =
|
||||||
PositionTracking::StackedCards(StackedCards::new(prev_page, backward));
|
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));
|
self.set_current_page(Some(page));
|
||||||
animation.play();
|
animation.play();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue