Skip to content

Commit 648489d

Browse files
committed
/docs/reference/layout/padの翻訳
1 parent 6241307 commit 648489d

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

crates/typst-library/src/layout/pad.rs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ use crate::engine::Engine;
33
use crate::foundations::{elem, Content, NativeElement, Packed, Show, StyleChain};
44
use crate::layout::{BlockElem, Length, Rel};
55

6-
/// Adds spacing around content.
6+
/// コンテンツの前後に空白を追加。
77
///
8-
/// The spacing can be specified for each side individually, or for all sides at
9-
/// once by specifying a positional argument.
8+
/// 空白は各辺を独立に指定するか、位置変数を用いて全辺を一括指定することができます。
109
///
11-
/// # Example
10+
/// #
1211
/// ```example
1312
/// #set align(center)
1413
///
@@ -18,7 +17,7 @@ use crate::layout::{BlockElem, Length, Rel};
1817
/// ```
1918
#[elem(title = "Padding", Show)]
2019
pub struct PadElem {
21-
/// The padding at the left side.
20+
/// 左辺のパディング。
2221
#[parse(
2322
let all = args.named("rest")?.or(args.find()?);
2423
let x = args.named("x")?.or(all);
@@ -27,31 +26,31 @@ pub struct PadElem {
2726
)]
2827
pub left: Rel<Length>,
2928

30-
/// The padding at the top side.
29+
/// 上辺のパディング。
3130
#[parse(args.named("top")?.or(y))]
3231
pub top: Rel<Length>,
3332

34-
/// The padding at the right side.
33+
/// 右辺のパディング。
3534
#[parse(args.named("right")?.or(x))]
3635
pub right: Rel<Length>,
3736

38-
/// The padding at the bottom side.
37+
/// 下辺のパディング。
3938
#[parse(args.named("bottom")?.or(y))]
4039
pub bottom: Rel<Length>,
4140

42-
/// A shorthand to set `left` and `right` to the same value.
41+
/// `left``right`を同じ値で設定するための省略記法。
4342
#[external]
4443
pub x: Rel<Length>,
4544

46-
/// A shorthand to set `top` and `bottom` to the same value.
45+
/// `top``bottom`を同じ値で設定するための省略記法。
4746
#[external]
4847
pub y: Rel<Length>,
4948

50-
/// A shorthand to set all four sides to the same value.
49+
/// 四辺すべてを同じ値で設定するための省略記法。
5150
#[external]
5251
pub rest: Rel<Length>,
5352

54-
/// The content to pad at the sides.
53+
/// 4辺にパディングを追加するコンテンツ。
5554
#[required]
5655
pub body: Content,
5756
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"/docs/reference/layout/length/": "untranslated",
117117
"/docs/reference/layout/measure/": "untranslated",
118118
"/docs/reference/layout/move/": "untranslated",
119-
"/docs/reference/layout/pad/": "untranslated",
119+
"/docs/reference/layout/pad/": "translated",
120120
"/docs/reference/layout/page/": "untranslated",
121121
"/docs/reference/layout/pagebreak/": "untranslated",
122122
"/docs/reference/layout/place/": "untranslated",

0 commit comments

Comments
 (0)