@@ -1510,13 +1510,21 @@ msgid ""
1510
1510
"to check the [`std::fmt`](https://doc.rust-lang.org/std/fmt/) documentation "
1511
1511
"for setting the number of decimals to display)"
1512
1512
msgstr ""
1513
+ "Agregue un macro `println!` que imprima: ` Pi es aproximadamente 3.142` "
1514
+ "controlando el número de decimales mostrados. Para efectos de este"
1515
+ "ejercicio, use `let Pi = 3.141592` como una estimación para pi. (Sugerencia: puedes"
1516
+ "consultar la documentación de [`std::fmt`](https://doc.rust-lang.org/std/fmt/)"
1517
+ "para configurar el número de decimales desplegados)"
1513
1518
1514
1519
#: src/hello/print.md:105
1515
1520
msgid ""
1516
1521
"[`std::fmt`](https://doc.rust-lang.org/std/fmt/), [`macros`](../macros.md), "
1517
1522
"[`struct`](../custom_types/structs.md), [`traits`](https://doc.rust-lang.org/"
1518
1523
"std/fmt/#formatting-traits), and [`dead_code`](../attribute/unused.md)"
1519
1524
msgstr ""
1525
+ "[`std::fmt`](https://doc.rust-lang.org/std/fmt/), [`macros`](../macros.md), "
1526
+ "[`struct`](../custom_types/structs.md), [`traits`](https://doc.rust-lang.org/"
1527
+ "std/fmt/#formatting-traits), y [`dead_code`](../attribute/unused.md)"
1520
1528
1521
1529
#: src/hello/print/print_debug.md:3
1522
1530
msgid ""
@@ -1525,53 +1533,69 @@ msgid ""
1525
1533
"for types such as in the `std` library. All others _must_ be manually "
1526
1534
"implemented somehow."
1527
1535
msgstr ""
1536
+ "Todos los tipos que quieren usar los traits de `std::fmt` requieren una"
1537
+ "implementación para ser imprimible. Las implementaciones automáticas solo se proporcionan"
1538
+ "para tipos como en la biblioteca `std`. Todos los demás tipos _deben_ ser manualmente "
1539
+ "implementados de alguna manera" .
1528
1540
1529
1541
#: src/hello/print/print_debug.md:8
1530
1542
msgid ""
1531
1543
"The `fmt::Debug` `trait` makes this very straightforward. _All_ types can "
1532
1544
"`derive` (automatically create) the `fmt::Debug` implementation. This is not "
1533
1545
"true for `fmt::Display` which must be manually implemented."
1534
1546
msgstr ""
1547
+ "El trait `fmt::Debug` hace que esto sea muy sencillo. Todos Los tipos pueden"
1548
+ "`Derive` (crear automáticamente) la implementación `fmt::Debug`. Esto no cierto"
1549
+ "para `fmt::Display` el cual debe implementarse manualmente " .
1535
1550
1536
1551
#: src/hello/print/print_debug.md:13
1537
1552
msgid ""
1538
1553
"// This structure cannot be printed either with `fmt::Display` or\n"
1539
1554
"// with `fmt::Debug`.\n"
1540
1555
msgstr ""
1556
+ "// Esta estructura no se puede imprimir con `fmt::Display` o \n"
1557
+ "// con `fmt::Debug`.\n "
1541
1558
1542
1559
#: src/hello/print/print_debug.md:16
1543
1560
msgid ""
1544
1561
"// The `derive` attribute automatically creates the implementation\n"
1545
1562
"// required to make this `struct` printable with `fmt::Debug`.\n"
1546
1563
msgstr ""
1564
+ "// El atributo `derive` crea automáticamente la implementación \n "
1565
+ "// requerida para hacer esta `struct` imprimible con `fmt::Debug`. \n"
1547
1566
1548
1567
#: src/hello/print/print_debug.md:23
1549
1568
msgid "All `std` library types are automatically printable with `{:?}` too:"
1550
- msgstr ""
1569
+ msgstr "Todos los tipos de biblioteca `std` se pueden imprimir automáticamente con `{:?}` también: "
1551
1570
1552
1571
#: src/hello/print/print_debug.md:26
1553
1572
msgid ""
1554
1573
"// Derive the `fmt::Debug` implementation for `Structure`. `Structure`\n"
1555
1574
"// is a structure which contains a single `i32`.\n"
1556
1575
msgstr ""
1576
+ "// Derive la implementación `fmt::Debug` para `Structure`. `Structure`\n"
1577
+ "// es una estructura que contiene un solo `i32`.\n "
1557
1578
1558
1579
#: src/hello/print/print_debug.md:30
1559
1580
msgid ""
1560
1581
"// Put a `Structure` inside of the structure `Deep`. Make it printable\n"
1561
1582
"// also.\n"
1562
1583
msgstr ""
1584
+ "// Ponga una `Structure` dentro de la estructura `Deep`. Házlo imprimible \ n"
1585
+ "// también. \ n"
1563
1586
1564
1587
#: src/hello/print/print_debug.md:37
1565
1588
msgid "// Printing with `{:?}` is similar to with `{}`.\n"
1566
1589
msgstr ""
1590
+ msgid "// Imprimir con `{:?}` es similar a imprimir con `{}`.\n"
1567
1591
1568
1592
#: src/hello/print/print_debug.md:38
1569
1593
msgid "\" {:?} months in a year.\" "
1570
- msgstr ""
1594
+ msgstr "\" {:?} meses en un año. \" "
1571
1595
1572
1596
#: src/hello/print/print_debug.md:39
1573
1597
msgid "\" {1:?} {0:?} is the {actor:?} name.\" "
1574
- msgstr ""
1598
+ msgstr "\" {1:?} {0:?} es el nombre del {actor:?}. \" "
1575
1599
1576
1600
#: src/hello/print/print_debug.md:40
1577
1601
msgid "\" Slater\" "
@@ -1587,46 +1611,53 @@ msgstr ""
1587
1611
1588
1612
#: src/hello/print/print_debug.md:44
1589
1613
msgid "// `Structure` is printable!\n"
1590
- msgstr ""
1614
+ msgstr "// ¡`Structure` también se puede imprimir!\n "
1591
1615
1592
1616
#: src/hello/print/print_debug.md:45 src/hello/print/print_debug.md:49
1593
1617
msgid "\" Now {:?} will print!\" "
1594
- msgstr ""
1618
+ msgstr "\" Ahora {:?} imprimirá \" "
1595
1619
1596
1620
#: src/hello/print/print_debug.md:47
1597
1621
msgid ""
1598
1622
"// The problem with `derive` is there is no control over how\n"
1599
1623
" // the results look. What if I want this to just show a `7`?\n"
1600
1624
msgstr ""
1625
+ "// El problema con 'derive` es que no hay control sobre cómo \n"
1626
+ " // los resultados se ven. ¿Qué pasa si quiero que esto solo muestre un `7`?\n"
1601
1627
1602
1628
#: src/hello/print/print_debug.md:53
1603
1629
msgid ""
1604
1630
"So `fmt::Debug` definitely makes this printable but sacrifices some "
1605
1631
"elegance. Rust also provides \" pretty printing\" with `{:#?}`."
1606
1632
msgstr ""
1633
+ "Entonces `fmt::Debug` definitivamente hace esto imprimible pero sacrifica algo de"
1634
+ "elegancia. Rust también proporciona \" Impresión Bonita\" con `{:#?}`."
1607
1635
1608
1636
#: src/hello/print/print_debug.md:64 src/custom_types/structs.md:42
1609
1637
msgid "\" Peter\" "
1610
1638
msgstr ""
1611
1639
1612
1640
#: src/hello/print/print_debug.md:68
1613
1641
msgid "// Pretty print\n"
1614
- msgstr ""
1642
+ msgstr "// Impresión bonita "
1615
1643
1616
1644
#: src/hello/print/print_debug.md:69
1617
1645
msgid "\" {:#?}\" "
1618
1646
msgstr ""
1619
1647
1620
1648
#: src/hello/print/print_debug.md:73
1621
1649
msgid "One can manually implement `fmt::Display` to control the display."
1622
- msgstr ""
1650
+ msgstr "Se puede implementar manualmente `fmt::Display` para controlar la impresión. "
1623
1651
1624
1652
#: src/hello/print/print_debug.md:77
1625
1653
msgid ""
1626
1654
"[`attributes`](https://doc.rust-lang.org/reference/attributes.html), "
1627
1655
"[`derive`](../../trait/derive.md), [`std::fmt`](https://doc.rust-lang.org/"
1628
1656
"std/fmt/), and [`struct`](../../custom_types/structs.md)"
1629
1657
msgstr ""
1658
+ "[`attributes`](https://doc.rust-lang.org/reference/attributes.html), "
1659
+ "[`derive`](../../trait/derive.md), [`std::fmt`](https://doc.rust-lang.org/"
1660
+ "std/fmt/), y [`struct`](../../custom_types/structs.md)"
1630
1661
1631
1662
#: src/hello/print/print_display.md:3
1632
1663
msgid ""
@@ -1635,26 +1666,34 @@ msgid ""
1635
1666
"[`fmt::Display`](https://doc.rust-lang.org/std/fmt/), which uses the `{}` "
1636
1667
"print marker. Implementing it looks like this:"
1637
1668
msgstr ""
1669
+ "`fmt::Debug` escasamente parece compacto y limpio, por lo que a menudo es ventajoso "
1670
+ "personalizar la apariencia de salida. Esto se hace implementando manualmente"
1671
+ "[`fmt::Display`](https://doc.rust-lang.org/std/fmt/), que usa el marcador `{}`"
1672
+ ". Implementarlo se ve así:"
1638
1673
1639
1674
#: src/hello/print/print_display.md:9
1640
1675
msgid "// Import (via `use`) the `fmt` module to make it available.\n"
1641
- msgstr ""
1676
+ msgstr "// Importar (a través de `use`) el módulo `fmt` para ponerlo a disposición.\n "
1642
1677
1643
1678
#: src/hello/print/print_display.md:11
1644
1679
msgid ""
1645
1680
"// Define a structure for which `fmt::Display` will be implemented. This is\n"
1646
1681
"// a tuple struct named `Structure` that contains an `i32`.\n"
1647
1682
msgstr ""
1683
+ "// Defina una estructura para la cual se implementará `fmt::Display`. Esto es\n "
1684
+ "// una estructura de tupla llamada `Estructura` que contiene un `i32`. \n"
1648
1685
1649
1686
#: src/hello/print/print_display.md:15
1650
1687
msgid ""
1651
1688
"// To use the `{}` marker, the trait `fmt::Display` must be implemented\n"
1652
1689
"// manually for the type.\n"
1653
1690
msgstr ""
1691
+ "// Para usar el marcador `{}`, el trait `fmt::Display` debe implementarse\n"
1692
+ "// manualmente para el tipo. \ n"
1654
1693
1655
1694
#: src/hello/print/print_display.md:19
1656
1695
msgid "// This trait requires `fmt` with this exact signature.\n"
1657
- msgstr ""
1696
+ msgstr "// Este trait requiere de `fmt` con estos tipos exactos.\n "
1658
1697
1659
1698
#: src/hello/print/print_display.md:21
1660
1699
msgid ""
@@ -1664,6 +1703,11 @@ msgid ""
1664
1703
"which\n"
1665
1704
" // is very similar to `println!`.\n"
1666
1705
msgstr ""
1706
+ "// Escribe sólo el primer elemento en la salida suministrada \n"
1707
+ "// stream: `f`. Devuelve `fmt::Result` que indica si\n"
1708
+ "// la operación tuvo éxito o falló. Tenga en cuenta que 'write!` usa una sintaxis "
1709
+ "que \n"
1710
+ "// es muy similar a `println!`. \n"
1667
1711
1668
1712
#: src/hello/print/print_display.md:25
1669
1713
#: src/hello/print/print_display/testcase_list.md:13
0 commit comments