1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
//! This file was generated automatically by crowbook-localize.
//! It is probably not a good idea to edit it manually.
//!
//! # Usage:
//!
//! ```rust, no_run
//! #[macro_use] mod localize_macros;
//! use localize_macros::set_lang;
//! set_lang("en");
//! lformat!("Hello, {}", name);
//! set_lang("fr");
//! lformat!("Hello, {}", name);
//! ```

use std::sync::RwLock;
use std::sync::RwLockReadGuard;

lazy_static! {
    pub static ref LANG: RwLock<String> = RwLock::new(String::from("en"));
}

/// Sets the lang
pub fn set_lang<S>(lang: S)
    where S: Into<String> {
    *LANG.write().unwrap() = lang.into();
}

/// Get the lang (or a guard on it)
///
/// This function should not be used directly
#[doc(hidden)]
pub fn __get_lang() -> RwLockReadGuard<'static, String> {
    LANG.read().unwrap()
}

/// Localized format macro (or `lformat!` in short)
/// Should be similar to `format!`, except strings are localized
/// Generated automatically, you should not edit it.
#[macro_export] macro_rules! lformat {
    ("EPUB: could not guess the format of {file} based on extension. Assuming png.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("EPUB: impossible de deviner le format de {file} à partir de son extension. On part sur du png.", $($arg)*),
            _ => format!("EPUB: could not guess the format of {file} based on extension. Assuming png.", $($arg)*),
        }
    });
    ("Error initializing book: could not set {key} to {value}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur à l'initialisation du livre: impossible de positionner {key} à {value} : {error}", $($arg)*),
            _ => format!("Error initializing book: could not set {key} to {value}: {error}", $($arg)*),
        }
    });
    ("rendering 'html.footer' template:\n{error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("dans le rendu du template 'html.footer' :\n{error}", $($arg)*),
            _ => format!("rendering 'html.footer' template:\n{error}", $($arg)*),
        }
    });
    ("- **`{key}`**\n    - **type**: {option_type}\n    - **default value**: `{default}`\n    - {comment}\n", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("- **`{key}`**\n    - **type** : {option_type}\n    - **valeur par défaut** : `{default}`\n    - {comment}\n", $($arg)*),
            _ => format!("- **`{key}`**\n    - **type**: {option_type}\n    - **default value**: `{default}`\n    - {comment}\n", $($arg)*),
        }
    });
    ("Error running grammar check on {file}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur dans la véfirication grammaticale de {file} : {error}", $($arg)*),
            _ => format!("Error running grammar check on {file}: {error}", $($arg)*),
        }
    });
    ("{:?} is not a bool", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{:?} n'est pas un booléen", $($arg)*),
            _ => format!("{:?} is not a bool", $($arg)*),
        }
    });
    ("could not parse {file} as a book file.\nMaybe you meant to run crowbook with the --single argument?", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'analyser {file} comme un ficheir de livre.\nPeut-être que vous vouliez lancer crowbook avec l'argument --single ?", $($arg)*),
            _ => format!("could not parse {file} as a book file.\nMaybe you meant to run crowbook with the --single argument?", $($arg)*),
        }
    });
    ("Expected a String as a key, found {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Une String était attendue comme clé, pas {:?}", $($arg)*),
            _ => format!("Expected a String as a key, found {:?}", $($arg)*),
        }
    });
    ("Could not find file '{file}' for {description}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Impossible de trouver le fichier '{file}' pour {description}", $($arg)*),
            _ => format!("Could not find file '{file}' for {description}", $($arg)*),
        }
    });
    ("{error}. Proceeding without checking grammar.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{error}. On poursuit sans vérifier la grammaire.", $($arg)*),
            _ => format!("{error}. Proceeding without checking grammar.", $($arg)*),
        }
    });
    ("{:?} is not a f32", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{:?} n'est pas un f32", $($arg)*),
            _ => format!("{:?} is not a f32", $($arg)*),
        }
    });
    ("could not read response: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de lire la réponse : {error}", $($arg)*),
            _ => format!("could not read response: {error}", $($arg)*),
        }
    });
    ("could not parse '{value}' as a float for key '{key}'", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'analyser '{value}' comme un flottant pour la clé '{key}'", $($arg)*),
            _ => format!("could not parse '{value}' as a float for key '{key}'", $($arg)*),
        }
    });
    ("Successfully generated HTML file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier HTML généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated HTML file {file}", $($arg)*),
        }
    });
    ("Created {}, now you'll have to complete it!", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{} a été crée, maintenant vous n'avez plus qu'à le compléter !", $($arg)*),
            _ => format!("Created {}, now you'll have to complete it!", $($arg)*),
        }
    });
    ("couldn't interpret LANG: {}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'interpéter LANG: {}", $($arg)*),
            _ => format!("couldn't interpret LANG: {}", $($arg)*),
        }
    });
    ("could not create temporary directory in {path}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer le répertoire temporaire dans {path}'", $($arg)*),
            _ => format!("could not create temporary directory in {path}", $($arg)*),
        }
    });
    ("expected a string as value containing a char for key '{}', found {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("une chaîne de caractère contenant un caractère comme valeur pour la clé '{}', pas {:?}", $($arg)*),
            _ => format!("expected a string as value containing a char for key '{}', found {:?}", $($arg)*),
        }
    });
    ("could not render `{key}` for metadata:\n{error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de faire le rendu de `{key}` comme metadonnée :\n{error}", $($arg)*),
            _ => format!("could not render `{key}` for metadata:\n{error}", $($arg)*),
        }
    });
    ("Yaml file for language {lang} didn't contain a hash", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Le fichier YAML pour le langage {lang} no contient pas de hashmap", $($arg)*),
            _ => format!("Yaml file for language {lang} didn't contain a hash", $($arg)*),
        }
    });
    ("this version of Crowbook has been compiled without support for proofreading, not generating {path}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("cette version de Crowbook a été compilée sans le support pour la relecture, {path} ne sera pas généré", $($arg)*),
            _ => format!("this version of Crowbook has been compiled without support for proofreading, not generating {path}", $($arg)*),
        }
    });
    ("option '{key}' is not present", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("l'option '{key}' n'est pas présente", $($arg)*),
            _ => format!("option '{key}' is not present", $($arg)*),
        }
    });
    ("could not parse '{value}' as a char: does not contain exactly one char", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'analyser '{value}' comme un caractère : ne contient pas exactement un caractère ", $($arg)*),
            _ => format!("could not parse '{value}' as a char: does not contain exactly one char", $($arg)*),
        }
    });
    ("Ill-formatted OPTIONS string: unrecognized type '{option_type}'", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chaîne OPTIONS mal formatée : type non reconnu '{option_type}'", $($arg)*),
            _ => format!("Ill-formatted OPTIONS string: unrecognized type '{option_type}'", $($arg)*),
        }
    });
    ("Successfully generated HTML file: {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier HTML généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated HTML file: {file}", $($arg)*),
        }
    });
    ("Ignoring YAML block:\n---\n{block}---", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Bloc YAML ignoré:\n---\n{block}---", $($arg)*),
            _ => format!("Ignoring YAML block:\n---\n{block}---", $($arg)*),
        }
    });
    ("Parsing chapter: {file}...", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Analyse du chapitre: {file}...", $($arg)*),
            _ => format!("Parsing chapter: {file}...", $($arg)*),
        }
    });
    ("file {file} contains invalid UTF-8", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier {file} contient de l'UTF-8 invalide", $($arg)*),
            _ => format!("file {file} contains invalid UTF-8", $($arg)*),
        }
    });
    ("rendering 'html.header' template:\n{error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("dans le rendu du template 'html.header' :\n{error}", $($arg)*),
            _ => format!("rendering 'html.header' template:\n{error}", $($arg)*),
        }
    });
    ("Inline YAML block replaced {:?} previously set to {:?} to {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Le bloc YAML en ligne a remplacé {:?} qui était précédemment {:?} vers {:?}", $($arg)*),
            _ => format!("Inline YAML block replaced {:?} previously set to {:?} to {:?}", $($arg)*),
        }
    });
    ("You must pass the file of a book configuration file.\n\n{}\n\nFor more information try --help.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Vous devez passer le nom de fichier d'un livre.\n\n{}\n\nPour plus d'informations, essayez --help.", $($arg)*),
            _ => format!("You must pass the file of a book configuration file.\n\n{}\n\nFor more information try --help.", $($arg)*),
        }
    });
    ("{} is not a valid template name.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{} n'est pas un nom de template valide.", $($arg)*),
            _ => format!("{} is not a valid template name.", $($arg)*),
        }
    });
    ("problem when writing to LaTeX file: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("problème en écrivant dans le fichier LaTeX : {error}", $($arg)*),
            _ => format!("problem when writing to LaTeX file: {error}", $($arg)*),
        }
    });
    ("could not create file {file}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer le fichier {file} : {error}", $($arg)*),
            _ => format!("could not create file {file}: {error}", $($arg)*),
        }
    });
    ("Could not find translation for {key} in language {lang}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Impossible de trouver une traduction pour {key} dans la langue {lang}", $($arg)*),
            _ => format!("Could not find translation for {key} in language {lang}", $($arg)*),
        }
    });
    ("Trying to run grammar check on {file}, this might take a while...", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("On essaie de vérifier la grammaire de {file}, cela peut prendre un moment...", $($arg)*),
            _ => format!("Trying to run grammar check on {file}, this might take a while...", $($arg)*),
        }
    });
    ("file {file} contains invalid UTF-8, could not parse it", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier {file} contient de l'UTF-8 invalide, impossible de l'analyser", $($arg)*),
            _ => format!("file {file} contains invalid UTF-8, could not parse it", $($arg)*),
        }
    });
    ("Error compiling template: {template}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur dans la compilation du template : {template}", $($arg)*),
            _ => format!("Error compiling template: {template}", $($arg)*),
        }
    });
    ("YAML block was not valid YAML: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Le bloc YAML n'était pas valide : {error}", $($arg)*),
            _ => format!("YAML block was not valid YAML: {error}", $($arg)*),
        }
    });
    ("LaTeX ({source}): image '{url}' doesn't seem to be local; ignoring it.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("LaTeX ({source}) : l'image '{url}' n'a pas l'air d'être locale, elle sera ignorée", $($arg)*),
            _ => format!("LaTeX ({source}): image '{url}' doesn't seem to be local; ignoring it.", $($arg)*),
        }
    });
    ("{:?} is not an i32", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{:?} n'est pas un i32", $($arg)*),
            _ => format!("{:?} is not an i32", $($arg)*),
        }
    });
    ("ignored annotation {:?} as it wasn't compatible with the Markdown structure", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("annotation {:?} ignorée car non compatible avec la structure Markdown", $($arg)*),
            _ => format!("ignored annotation {:?} as it wasn't compatible with the Markdown structure", $($arg)*),
        }
    });
    ("Successfully generated EPUB file: {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier EPUB généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated EPUB file: {file}", $($arg)*),
        }
    });
    ("Successfully generated ODT file: {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier ODT généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated ODT file: {file}", $($arg)*),
        }
    });
    ("Could not create file '{}'", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Impossible de créer le fichier '{}'", $($arg)*),
            _ => format!("Could not create file '{}'", $($arg)*),
        }
    });
    ("Resources: book includes image {file} which doesn't have an extension", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Resources: le livre inclut l'image {file} qui n'a pas d'extension", $($arg)*),
            _ => format!("Resources: book includes image {file} which doesn't have an extension", $($arg)*),
        }
    });
    ("this version of Crowbook has been compiled without support for proofreading, not generating LaTeX file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("cette version de Crowbook a été compilée sans le support de la relecture, le fichier LaTeX {file} ne sera pas généré", $($arg)*),
            _ => format!("this version of Crowbook has been compiled without support for proofreading, not generating LaTeX file {file}", $($arg)*),
        }
    });
    ("Resources: book includes non-local image {file}, which might cause problem for proper inclusion.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Ressources : le livre inclut l'image non-locale {file}, ce qui risque de causer des problèmes pour une inclusion correcte", $($arg)*),
            _ => format!("Resources: book includes non-local image {file}, which might cause problem for proper inclusion.", $($arg)*),
        }
    });
    ("value '{value}' for key '{key}' does not contain one and only one YAML value", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("la valeur '{value}' pour la clé '{key}' ne contient pas une et une seule valeur YAML", $($arg)*),
            _ => format!("value '{value}' for key '{key}' does not contain one and only one YAML value", $($arg)*),
        }
    });
    ("Expected a string as value for key {}, found {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Une chaîne de caractères était attendue pour la clé {}, pas {:?}", $($arg)*),
            _ => format!("Expected a string as value for key {}, found {:?}", $($arg)*),
        }
    });
    ("command didn't return succesfully: {output}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("la commande ne s'est pas terminée avec succès : {output}", $($arg)*),
            _ => format!("command didn't return succesfully: {output}", $($arg)*),
        }
    });
    ("{path} already exists and is not a directory", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{path} existe déjà et n'est pas un répertoire", $($arg)*),
            _ => format!("{path} already exists and is not a directory", $($arg)*),
        }
    });
    ("problem when writing to HTML file: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("problème en écrivant dans le fichier HTML : {error}", $($arg)*),
            _ => format!("problem when writing to HTML file: {error}", $($arg)*),
        }
    });
    ("expected an integer as value for key '{}', found {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("un entier était attendu comme valeur pour la clé '{}', pas {:?}", $($arg)*),
            _ => format!("expected an integer as value for key '{}', found {:?}", $($arg)*),
        }
    });
    ("Error rendering {name}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur dans le rendu de {name} : {error}", $($arg)*),
            _ => format!("Error rendering {name}: {error}", $($arg)*),
        }
    });
    ("error in epub rendering: {path} is neither a file nor a directory", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("erreur dans le rendu EPUB : {path} n'est ni un fichier ni un répertoire", $($arg)*),
            _ => format!("error in epub rendering: {path} is neither a file nor a directory", $($arg)*),
        }
    });
    ("can't get '{key}' as a list of files, only valid if key is resources.files", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de traiter '{key}' comme une liste de fichiers, c'est seulement valide si la clé est resources.files", $($arg)*),
            _ => format!("can't get '{key}' as a list of files, only valid if key is resources.files", $($arg)*),
        }
    });
    ("file '{file}' could not be read", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier '{file}' n'a pas pu être lu", $($arg)*),
            _ => format!("file '{file}' could not be read", $($arg)*),
        }
    });
    ("failed to execute process: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le processus n'a pas pu être exécuté : {error}", $($arg)*),
            _ => format!("failed to execute process: {error}", $($arg)*),
        }
    });
    ("file {file} refers to an absolute or a parent path.\nThis is forbidden because we are supposed to create a temporary file in a temporary dir.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier {file} fait référence à un chemin parent ou absolu.\nC'est interdit car on est censé créer un fichier temporaire dans un répertoire temporaire.", $($arg)*),
            _ => format!("file {file} refers to an absolute or a parent path.\nThis is forbidden because we are supposed to create a temporary file in a temporary dir.", $($arg)*),
        }
    });
    ("expected a float as value for key '{}', found {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("un flottant était attendu comme valeur pour la clé '{}', pas {:?}", $($arg)*),
            _ => format!("expected a float as value for key '{}', found {:?}", $($arg)*),
        }
    });
    ("could not write to temporary file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'écrire dans le fichier temporaire {file}", $($arg)*),
            _ => format!("could not write to temporary file {file}", $($arg)*),
        }
    });
    ("No output file specified, and book doesn't specify an output file for {}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Pas de fichier de sortie spécifié, et le livre n'en spécifie pas pour {}", $($arg)*),
            _ => format!("No output file specified, and book doesn't specify an output file for {}", $($arg)*),
        }
    });
    ("could not parse '{value}' as a valid YAML value", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'analyser '{value}' comme une valeur YAML valide", $($arg)*),
            _ => format!("could not parse '{value}' as a valid YAML value", $($arg)*),
        }
    });
    ("could not create file '{file}'", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer le fichier '{file}'", $($arg)*),
            _ => format!("could not create file '{file}'", $($arg)*),
        }
    });
    ("Could not create file {}: it already exists!", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Impossible de créer le fichier {} : il existe déjà !", $($arg)*),
            _ => format!("Could not create file {}: it already exists!", $($arg)*),
        }
    });
    ("Resources: could not find a in-book match for link {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Ressources: impossible de trouver une correspondance à l'intérieur du livre pour le lien {file}", $($arg)*),
            _ => format!("Resources: could not find a in-book match for link {file}", $($arg)*),
        }
    });
    ("this version of Crowbook has been compiled without support for proofreading,not generating HTML file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("cette version de Crowbook a été compilée sans le support de la relecture, le fichier HTML {file} ne sera pas généré", $($arg)*),
            _ => format!("this version of Crowbook has been compiled without support for proofreading,not generating HTML file {file}", $($arg)*),
        }
    });
    ("{:?} is not a char", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{:?} n'est pas un caractère", $($arg)*),
            _ => format!("{:?} is not a char", $($arg)*),
        }
    });
    ("could not create HTML directory {path}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer le répertoire HTML {path} : {error}", $($arg)*),
            _ => format!("could not create HTML directory {path}: {error}", $($arg)*),
        }
    });
    ("footnote reference {reference} does not have a matching definition", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("la référence à la note de pas de page {reference} n'a pas de définition correspondante", $($arg)*),
            _ => format!("footnote reference {reference} does not have a matching definition", $($arg)*),
        }
    });
    ("could not decode JSON: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer le format JSON : {error}", $($arg)*),
            _ => format!("could not decode JSON: {error}", $($arg)*),
        }
    });
    ("Successfully generated PDF file for proofreading: {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier PDF pour la relecture généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated PDF file for proofreading: {file}", $($arg)*),
        }
    });
    ("Error parsing markdown: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur dans l'analyse du Markdown : {error}", $($arg)*),
            _ => format!("Error parsing markdown: {error}", $($arg)*),
        }
    });
    ("could not create temporary file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer le fichier temporaire {file}", $($arg)*),
            _ => format!("could not create temporary file {file}", $($arg)*),
        }
    });
    ("could not copy file {input} to {output}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer le fichier de {input} à {output}", $($arg)*),
            _ => format!("could not copy file {input} to {output}", $($arg)*),
        }
    });
    ("error while reading image file: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("erreur en lisant le fichier image : {error}", $($arg)*),
            _ => format!("error while reading image file: {error}", $($arg)*),
        }
    });
    ("Inline YAML block set {:?} to {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Le bloc YAML en ligne a positionné {:?} à {:?}", $($arg)*),
            _ => format!("Inline YAML block set {:?} to {:?}", $($arg)*),
        }
    });
    ("Warning: book contains chapter '{file}' in a directory above the book file, this might cause problems", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Avertissement: le livre contient un chapitre '{file}' dans un répertoire au-dessus du fichier du livre, cela risque de causer des problèmes", $($arg)*),
            _ => format!("Warning: book contains chapter '{file}' in a directory above the book file, this might cause problems", $($arg)*),
        }
    });
    ("this version of Crowbook has been compiled without support for proofreading, not generating {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("cette version de Crowbook a été compilée sans le support pour la relecture, {file} ne sera pas généré", $($arg)*),
            _ => format!("this version of Crowbook has been compiled without support for proofreading, not generating {file}", $($arg)*),
        }
    });
    ("Found something that looked like a YAML block:\n{block}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Trouvé quelque chose qui ressemblait à un bloc YAML :\n{block}", $($arg)*),
            _ => format!("Found something that looked like a YAML block:\n{block}", $($arg)*),
        }
    });
    ("ODT: footnotes are not yet implemented in this format, ignoring {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("ODT: les notes de bas de page ne sont pas implémentées dans ce format, on ignore {:?}", $($arg)*),
            _ => format!("ODT: footnotes are not yet implemented in this format, ignoring {:?}", $($arg)*),
        }
    });
    ("EPUB ({source}): detected two chapter titles inside the same markdown file, in a file where chapter titles are not even rendered.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("EPUB ({source}): deux titres de chapitre détectés à l'intérieur du même fichier Markdown, dans un fichier où les titres de chapitres ne sont même pas affichés.", $($arg)*),
            _ => format!("EPUB ({source}): detected two chapter titles inside the same markdown file, in a file where chapter titles are not even rendered.", $($arg)*),
        }
    });
    ("Successfully generated LaTeX file: {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier LaTeX généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated LaTeX file: {file}", $($arg)*),
        }
    });
    ("Resources: could not read file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Ressources : impossible de lire le fichier {file}", $($arg)*),
            _ => format!("Resources: could not read file {file}", $($arg)*),
        }
    });
    ("EPUB ({source}): detected two chapters inside the same markdown file.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("EPUB ({source}) : deux chapitres détectés à l'intérieur du même fichier Markdown.", $($arg)*),
            _ => format!("EPUB ({source}): detected two chapters inside the same markdown file.", $($arg)*),
        }
    });
    ("Successfully generated HTML directory: {path}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Répertoire HTML généré avec succès : {path}", $($arg)*),
            _ => format!("Successfully generated HTML directory: {path}", $($arg)*),
        }
    });
    ("error reading file {file}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur en lisant le fichier {file} : {error}", $($arg)*),
            _ => format!("error reading file {file}: {error}", $($arg)*),
        }
    });
    ("Inline YAML block could not set {:?} to {:?}: {}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Le bloc YAML en ligne n'a pas pu positionner {:?} à {:?} : {}", $($arg)*),
            _ => format!("Inline YAML block could not set {:?} to {:?}: {}", $($arg)*),
        }
    });
    ("'{key}''s path contains invalid UTF-8 code", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le chemin de '{key}' contient de l'UTF-8 invalide", $($arg)*),
            _ => format!("'{key}''s path contains invalid UTF-8 code", $($arg)*),
        }
    });
    ("key '{key}' has been deprecated.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("la clé '{key}' a été dépréciée", $($arg)*),
            _ => format!("key '{key}' has been deprecated.", $($arg)*),
        }
    });
    ("unrecognized key '{key}'", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("clé '{key}' non reconnue", $($arg)*),
            _ => format!("unrecognized key '{key}'", $($arg)*),
        }
    });
    ("rendering {name}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("dans le rendu de {name} : {error}", $($arg)*),
            _ => format!("rendering {name}: {error}", $($arg)*),
        }
    });
    ("expected a boolean as value for key '{}', found {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("un booléen était attendue comme valeur pour la clé '{}', pas {:?}", $($arg)*),
            _ => format!("expected a boolean as value for key '{}', found {:?}", $($arg)*),
        }
    });
    ("in {file}, found footnote definition for note '{reference}' but previous definition already exist, overriding it", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("dans {file}, une définition de note a été trouvée pour '{reference}' mais une définition précédente existait déjà, elle sera remplacée", $($arg)*),
            _ => format!("in {file}, found footnote definition for note '{reference}' but previous definition already exist, overriding it", $($arg)*),
        }
    });
    ("Yaml for {key} in lang {lang} is not a String!", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Le Yaml pour {key} dans la langue {lang} n'est pas une chaîne de caractères !", $($arg)*),
            _ => format!("Yaml for {key} in lang {lang} is not a String!", $($arg)*),
        }
    });
    ("invalid template '{template}'", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("template invalide '{template}'", $($arg)*),
            _ => format!("invalid template '{template}'", $($arg)*),
        }
    });
    ("LaTeX: can't find a tex equivalent for lang '{lang}', fallbacking on english", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("LaTeX: impossible de trouver un équivalent tex pour la langue '{lang}', utilisation de l'anglais par défaut", $($arg)*),
            _ => format!("LaTeX: can't find a tex equivalent for lang '{lang}', fallbacking on english", $($arg)*),
        }
    });
    ("Successfully generated LaTeX file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier LaTeX généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated LaTeX file {file}", $($arg)*),
        }
    });
    ("{:?} is not a string", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{:?} n'est pas une chaîne de caractères", $($arg)*),
            _ => format!("{:?} is not a string", $($arg)*),
        }
    });
    ("could not connect to language tool server: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de se connecter au serveur languagetool : {error}", $($arg)*),
            _ => format!("could not connect to language tool server: {error}", $($arg)*),
        }
    });
    ("EPUB ({source}): conflict between: {title1} and {title2}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("EPUB ({source}) : conflit entre {title1} et {title2}", $($arg)*),
            _ => format!("EPUB ({source}): conflict between: {title1} and {title2}", $($arg)*),
        }
    });
    ("could not write to file {file}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'écrire dans le fichier {file} : {error}", $($arg)*),
            _ => format!("could not write to file {file}: {error}", $($arg)*),
        }
    });
    ("error deleting directory {path}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("erreur dans la suppression du répertoire {path} : {error}", $($arg)*),
            _ => format!("error deleting directory {path}: {error}", $($arg)*),
        }
    });
    ("failed to execute unzip on {file}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'exécuter unzip sur {file} : {error}", $($arg)*),
            _ => format!("failed to execute unzip on {file}: {error}", $($arg)*),
        }
    });
    ("could not send request to server: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'envoyer la requête au serveur : {error}", $($arg)*),
            _ => format!("could not send request to server: {error}", $($arg)*),
        }
    });
    ("Error in setting key {}: {}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur en initialisant la clé {}: {}", $($arg)*),
            _ => format!("Error in setting key {}: {}", $($arg)*),
        }
    });
    ("Successfully generated PDF file: {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier PDF généré avec succès : {file}", $($arg)*),
            _ => format!("Successfully generated PDF file: {file}", $($arg)*),
        }
    });
    ("{path} already exists, deleting it", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{path} existe déjà, il sera supprimé", $($arg)*),
            _ => format!("{path} already exists, deleting it", $($arg)*),
        }
    });
    ("could not create caribon parser: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer l'analyseur caribon : {error}", $($arg)*),
            _ => format!("could not create caribon parser: {error}", $($arg)*),
        }
    });
    ("{:?} is not a path", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{:?} n'est pas un chemin de fichier", $($arg)*),
            _ => format!("{:?} is not a path", $($arg)*),
        }
    });
    ("Resources: could not guess mime type of file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Ressources : impossible de deviner le type mime du fichier {file}", $($arg)*),
            _ => format!("Resources: could not guess mime type of file {file}", $($arg)*),
        }
    });
    ("... but it didn't parse correctly as YAML('{error}'), so treating it like Markdown.", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("... mais il n'a pas pu être analysé comme du YAML ('{error}'), on le traite donc comme du Markdown.", $($arg)*),
            _ => format!("... but it didn't parse correctly as YAML('{error}'), so treating it like Markdown.", $($arg)*),
        }
    });
    ("could not create directory in {path}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de créer un répertoire dans {path} : {error}", $($arg)*),
            _ => format!("could not create directory in {path}: {error}", $($arg)*),
        }
    });
    ("error while reading resource file: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("erreur en lisant le fichier ressource : {error}", $($arg)*),
            _ => format!("error while reading resource file: {error}", $($arg)*),
        }
    });
    ("'{value}''s path contains invalid UTF-8 code", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le chemin de '{value}' contient de l'UTF-8 invalide", $($arg)*),
            _ => format!("'{value}''s path contains invalid UTF-8 code", $($arg)*),
        }
    });
    ("expected a string as value for key '{}', found {:?}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("une chaîne de caractères était attendue comme valeur pour la clé '{}', pas {:?}", $($arg)*),
            _ => format!("expected a string as value for key '{}', found {:?}", $($arg)*),
        }
    });
    ("failed to remove file {file}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Impossible de supprimer le fichier '{file}'", $($arg)*),
            _ => format!("failed to remove file {file}", $($arg)*),
        }
    });
    ("'{old_key}' has been deprecated, you should now use '{new_key}'", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("'{old_key}' a été déprécié, vous devriez maintenant utiliser '{new_key}'", $($arg)*),
            _ => format!("'{old_key}' has been deprecated, you should now use '{new_key}'", $($arg)*),
        }
    });
    ("Error connecting to language tool server: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur dans la connexion au serveur languagetool : {error}", $($arg)*),
            _ => format!("Error connecting to language tool server: {error}", $($arg)*),
        }
    });
    ("error while reading image file {file}: {error}", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("erreur en lisant le fichier image {file} : {error}", $($arg)*),
            _ => format!("error while reading image file {file}: {error}", $($arg)*),
        }
    });
    ("no output pdf file specified '{output}' in book config", $($arg:tt)*) => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("pas de fichier pdf spécifié '{output}' dans la configuration du livre", $($arg)*),
            _ => format!("no output pdf file specified '{output}' in book config", $($arg)*),
        }
    });
    ("Inline YAML block \
                                                                             set {:?} to {:?}", $($arg:tt)*) => (lformat!("Inline YAML block set {:?} to {:?}", $($arg)*));
    ("Resources: book includes non-local image {file}, which might \
                                   cause problem for proper inclusion.", $($arg:tt)*) => (lformat!("Resources: book includes non-local image {file}, which might cause problem for proper inclusion.", $($arg)*));
    ("'{value}''s path contains invalid \
                                                                        UTF-8 code", $($arg:tt)*) => (lformat!("'{value}''s path contains invalid UTF-8 code", $($arg)*));
    ("this version of Crowbook has been compiled \
                                              without support for proofreading, not generating \
                                              {path}", $($arg:tt)*) => (lformat!("this version of Crowbook has been compiled without support for proofreading, not generating {path}", $($arg)*));
    ("expected a boolean as value for key '{}', \
                                                 found {:?}", $($arg:tt)*) => (lformat!("expected a boolean as value for key '{}', found {:?}", $($arg)*));
    ("rendering 'html.footer' \
                                                       template:\n{error}", $($arg:tt)*) => (lformat!("rendering 'html.footer' template:\n{error}", $($arg)*));
    ("Expected a string as value for key {}, found \
                                                 {:?}", $($arg:tt)*) => (lformat!("Expected a string as value for key {}, found {:?}", $($arg)*));
    ("Resources: book includes image {file} which doesn't have \
                                       an extension", $($arg:tt)*) => (lformat!("Resources: book includes image {file} which doesn't have an extension", $($arg)*));
    ("Ill-formatted OPTIONS string: unrecognized type \
                                     '{option_type}'", $($arg:tt)*) => (lformat!("Ill-formatted OPTIONS string: unrecognized type '{option_type}'", $($arg)*));
    ("this version of Crowbook has been compiled \
                                              without support for proofreading, not generating \
                                              LaTeX file {file}", $($arg:tt)*) => (lformat!("this version of Crowbook has been compiled without support for proofreading, not generating LaTeX file {file}", $($arg)*));
    ("Resources: could not find a in-book match for link \
                                        {file}", $($arg:tt)*) => (lformat!("Resources: could not find a in-book match for link {file}", $($arg)*));
    ("error in epub rendering: {path} is \
                                                       neither a file nor a directory", $($arg:tt)*) => (lformat!("error in epub rendering: {path} is neither a file nor a directory", $($arg)*));
    ("- **`{key}`**
    - **type**: {option_type}
    - **default value**: `{default}`
    - {comment}\n", $($arg:tt)*) => (lformat!("- **`{key}`**\n    - **type**: {option_type}\n    - **default value**: `{default}`\n    - {comment}\n", $($arg)*));
    ("ignored annotation {:?} as it wasn't compatible \
                                              with the Markdown structure", $($arg:tt)*) => (lformat!("ignored annotation {:?} as it wasn't compatible with the Markdown structure", $($arg)*));
    ("this version of Crowbook has been compiled \
                                              without support for proofreading,not generating \
                                              HTML file {file}", $($arg:tt)*) => (lformat!("this version of Crowbook has been compiled without support for proofreading,not generating HTML file {file}", $($arg)*));
    ("ODT: footnotes are not yet implemented in this format, \
                                       ignoring {:?}", $($arg:tt)*) => (lformat!("ODT: footnotes are not yet implemented in this format, ignoring {:?}", $($arg)*));
    ("... but it didn't parse correctly as \
                                                         YAML('{error}'), so treating it like \
                                                         Markdown.", $($arg:tt)*) => (lformat!("... but it didn't parse correctly as YAML('{error}'), so treating it like Markdown.", $($arg)*));
    ("{path} already exists and is not a \
                                                       directory", $($arg:tt)*) => (lformat!("{path} already exists and is not a directory", $($arg)*));
    ("LaTeX: can't find a tex equivalent for lang '{lang}', \
                                     fallbacking on english", $($arg:tt)*) => (lformat!("LaTeX: can't find a tex equivalent for lang '{lang}', fallbacking on english", $($arg)*));
    ("EPUB: could not guess the format of {file} based on \
                                     extension. Assuming png.", $($arg:tt)*) => (lformat!("EPUB: could not guess the format of {file} based on extension. Assuming png.", $($arg)*));
    ("No output file specified, and book doesn't specify an \
                                           output file for {}", $($arg:tt)*) => (lformat!("No output file specified, and book doesn't specify an output file for {}", $($arg)*));
    ("Ignoring YAML \
                                                                    block:\n---\n{block}---", $($arg:tt)*) => (lformat!("Ignoring YAML block:\n---\n{block}---", $($arg)*));
    ("Warning: book contains chapter '{file}' in a directory above \
                                   the book file, this might cause problems", $($arg:tt)*) => (lformat!("Warning: book contains chapter '{file}' in a directory above the book file, this might cause problems", $($arg)*));
    ("'{old_key}' has been deprecated, you should \
                                                  now use '{new_key}'", $($arg:tt)*) => (lformat!("'{old_key}' has been deprecated, you should now use '{new_key}'", $($arg)*));
    ("You must pass the file of a book configuration \
                               file.\n\n{}\n\nFor more information try --help.", $($arg:tt)*) => (lformat!("You must pass the file of a book configuration file.\n\n{}\n\nFor more information try --help.", $($arg)*));
    ("footnote reference {reference} does \
                                                           not have a matching definition", $($arg:tt)*) => (lformat!("footnote reference {reference} does not have a matching definition", $($arg)*));
    ("value '{value}' for key '{key}' does not \
                                                 contain one and only one YAML value", $($arg:tt)*) => (lformat!("value '{value}' for key '{key}' does not contain one and only one YAML value", $($arg)*));
    ("file {file} refers to an absolute or a parent \
                                               path.
This is forbidden because we are supposed \
                                               to create a temporary file in a temporary dir.", $($arg:tt)*) => (lformat!("file {file} refers to an absolute or a parent path.\nThis is forbidden because we are supposed to create a temporary file in a temporary dir.", $($arg)*));
    ("this version of Crowbook has been compiled \
                                              without support for proofreading, not generating \
                                              {file}", $($arg:tt)*) => (lformat!("this version of Crowbook has been compiled without support for proofreading, not generating {file}", $($arg)*));
    ("'{key}''s path contains invalid \
                                                            UTF-8 code", $($arg:tt)*) => (lformat!("'{key}''s path contains invalid UTF-8 code", $($arg)*));
    ("Trying to run grammar check on {file}, this might take a \
                                    while...", $($arg:tt)*) => (lformat!("Trying to run grammar check on {file}, this might take a while...", $($arg)*));
    ("EPUB ({source}): detected two chapters inside the same \
                                       markdown file.", $($arg:tt)*) => (lformat!("EPUB ({source}): detected two chapters inside the same markdown file.", $($arg)*));
    ("EPUB ({source}): detected two chapter titles inside the \
                                       same markdown file, in a file where chapter titles are \
                                       not even rendered.", $($arg:tt)*) => (lformat!("EPUB ({source}): detected two chapter titles inside the same markdown file, in a file where chapter titles are not even rendered.", $($arg)*));
    ("Found something that looked like a \
                                                         YAML block:\n{block}", $($arg:tt)*) => (lformat!("Found something that looked like a YAML block:\n{block}", $($arg)*));
    ("Inline YAML block \
                                                                             replaced {:?} \
                                                                             previously set to \
                                                                             {:?} to {:?}", $($arg:tt)*) => (lformat!("Inline YAML block replaced {:?} previously set to {:?} to {:?}", $($arg)*));
    ("Inline YAML block could \
                                                                        not set {:?} to {:?}: {}", $($arg:tt)*) => (lformat!("Inline YAML block could not set {:?} to {:?}: {}", $($arg)*));
    ("can't get '{key}' as a list of files, only \
                                                    valid if key is resources.files", $($arg:tt)*) => (lformat!("can't get '{key}' as a list of files, only valid if key is resources.files", $($arg)*));
    ("in {file}, found footnote definition for \
                                                      note '{reference}' but previous \
                                                      definition already exist, overriding it", $($arg:tt)*) => (lformat!("in {file}, found footnote definition for note '{reference}' but previous definition already exist, overriding it", $($arg)*));
    ("expected an integer as value for key '{}', \
                                                 found {:?}", $($arg:tt)*) => (lformat!("expected an integer as value for key '{}', found {:?}", $($arg)*));
    ("could not render `{key}` for \
                                                           metadata:\n{error}", $($arg:tt)*) => (lformat!("could not render `{key}` for metadata:\n{error}", $($arg)*));
    ("Error initializing book: could not set {key} to {value}: \
                                     {error}", $($arg:tt)*) => (lformat!("Error initializing book: could not set {key} to {value}: {error}", $($arg)*));
    ("could not parse {file} as a book \
                                                       file.\nMaybe you meant to run crowbook \
                                                       with the --single argument?", $($arg:tt)*) => (lformat!("could not parse {file} as a book file.\nMaybe you meant to run crowbook with the --single argument?", $($arg)*));
    ("could not parse '{value}' as a \
                                                            char: does not contain exactly one \
                                                            char", $($arg:tt)*) => (lformat!("could not parse '{value}' as a char: does not contain exactly one char", $($arg)*));
    ("ignored annotation {:?} as it \
                                                              wasn't compatible with the \
                                                              Markdown structure", $($arg:tt)*) => (lformat!("ignored annotation {:?} as it wasn't compatible with the Markdown structure", $($arg)*));
    ("expected a float as value for key '{}', found \
                                                 {:?}", $($arg:tt)*) => (lformat!("expected a float as value for key '{}', found {:?}", $($arg)*));
    ("LaTeX ({source}): image '{url}' doesn't seem to be \
                                         local; ignoring it.", $($arg:tt)*) => (lformat!("LaTeX ({source}): image '{url}' doesn't seem to be local; ignoring it.", $($arg)*));
    ("expected a string as value containing a char \
                                                 for key '{}', found {:?}", $($arg:tt)*) => (lformat!("expected a string as value containing a char for key '{}', found {:?}", $($arg)*));
    ("expected a string as value for key '{}', found \
                                                 {:?}", $($arg:tt)*) => (lformat!("expected a string as value for key '{}', found {:?}", $($arg)*));
    ("could not parse '{value}' as a float \
                                                         for key '{key}'", $($arg:tt)*) => (lformat!("could not parse '{value}' as a float for key '{key}'", $($arg)*));
    ("Path of a stylesheet for EPUB") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'une feuille de style pour le fichier EPUB"),
            _ => format!("Path of a stylesheet for EPUB"),
        }
    });
    ("Additional metadata") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Métadonnées additionnelles"),
            _ => format!("Additional metadata"),
        }
    });
    ("Display only one chapter at a time (with a button to display all)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("N'affiche qu'un seul chapitre à la fois (avec un bouton pour les afficher tous)"),
            _ => format!("Display only one chapter at a time (with a button to display all)"),
        }
    });
    ("Special option") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Option spéciale"),
            _ => format!("Special option"),
        }
    });
    ("Error during temporary files editing: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur durant l'édition de fichiers temporaires :"),
            _ => format!("Error during temporary files editing: "),
        }
    });
    ("Error: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur : "),
            _ => format!("Error: "),
        }
    });
    ("List all possible options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Liste toutes les options possibles"),
            _ => format!("List all possible options"),
        }
    });
    ("Multifile HTML options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options HTML multi-fichiers"),
            _ => format!("Multifile HTML options"),
        }
    });
    ("Custom footer to display at the end of HTML file(s)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Pied de page personnalisé à afficher à la fin des fichiers HTML"),
            _ => format!("Custom footer to display at the end of HTML file(s)"),
        }
    });
    ("Enable fuzzy string matching") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Active la correspondance approximative des chaînes de caractère"),
            _ => format!("Enable fuzzy string matching"),
        }
    });
    ("Import another book configuration file") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Importe un autre fichier de configuration de livre"),
            _ => format!("Import another book configuration file"),
        }
    });
    ("Attempting to generate HTML for proofreading...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer le HTML pour la relecture..."),
            _ => format!("Attempting to generate HTML for proofreading..."),
        }
    });
    ("empty str token, could not find initial") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("jeton str vide, impossible de trouver la lettrine"),
            _ => format!("empty str token, could not find initial"),
        }
    });
    ("Provides syntax highlighting for code blocks (using highlight.js)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Active la coloration syntaxique pour les blocs de code (en utilisant highlight.js)"),
            _ => format!("Provides syntax highlighting for code blocks (using highlight.js)"),
        }
    });
    ("image") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("image"),
            _ => format!("image"),
        }
    });
    ("Path of a stylesheet for HTML rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'une feuille de style pour le rendu HTML"),
            _ => format!("Path of a stylesheet for HTML rendering"),
        }
    });
    ("Attempting to generate PDF for proofreading...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer le PDF pour la relecture..."),
            _ => format!("Attempting to generate PDF for proofreading..."),
        }
    });
    ("Display a table of content in the document") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Affiche une table des matières dans le document"),
            _ => format!("Display a table of content in the document"),
        }
    });
    ("Path of an HTML template") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'un template HTML"),
            _ => format!("Path of an HTML template"),
        }
    });
    ("Enable proofreading") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Activer la génération de versions pour la relecture"),
            _ => format!("Enable proofreading"),
        }
    });
    ("Set base path but only for templates files. Useless if resources.base_path is set.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Règle le chemin de base mais seulement pour les fichiers templates. Inutile si resources.base_path est réglé."),
            _ => format!("Set base path but only for templates files. Useless if resources.base_path is set."),
        }
    });
    ("Error during rendering: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur dans le rendu : "),
            _ => format!("Error during rendering: "),
        }
    });
    ("Attempting to generate epub...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer l'EPUB..."),
            _ => format!("Attempting to generate epub..."),
        }
    });
    ("found invalid chapter definition in the chapter list") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("définition de chapitre invalide trouvée dans la liste des chapitres"),
            _ => format!("found invalid chapter definition in the chapter list"),
        }
    });
    ("Command to use to zip files (for EPUB/ODT)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Commande à lancer pour zipper des fichiers (pour EPUB/ODT)"),
            _ => format!("Command to use to zip files (for EPUB/ODT)"),
        }
    });
    ("Set another highlight.js version than the bundled one") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Donne une autre version de highlight.js que celle qui est embarquée"),
            _ => format!("Set another highlight.js version than the bundled one"),
        }
    });
    ("HTML options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options HTML"),
            _ => format!("HTML options"),
        }
    });
    ("Paths where additional resources should be copied in the EPUB file or HTML directory ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemins où les ressources additionnelles devraient être copiées dans le fichier EPUB ou dans le répertoire HTML"),
            _ => format!("Paths where additional resources should be copied in the EPUB file or HTML directory "),
        }
    });
    ("A list of additional files is only valid with the --create option.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Une liste de fichiers additionnels n'est valide qu'avec l'option --create."),
            _ => format!("A list of additional files is only valid with the --create option."),
        }
    });
    ("Replace unicode non breaking spaces with HTML entities and CSS") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Remplace les espaces insécables unicode par des entités HTML et du CSS"),
            _ => format!("Replace unicode non breaking spaces with HTML entities and CSS"),
        }
    });
    ("Enable inline YAML blocks to override options set in config file") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Permet aux blocs YAML en ligne de rédéfinir des options déjà définies par le fichier de configuration"),
            _ => format!("Enable inline YAML blocks to override options set in config file"),
        }
    });
    ("Path of index.html template") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin du template index.html"),
            _ => format!("Path of index.html template"),
        }
    });
    ("Error converting BookOption: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur en convertissant BookOption :"),
            _ => format!("Error converting BookOption: "),
        }
    });
    ("could not compile template for nav.xhtml") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template pour nav.xhtml"),
            _ => format!("could not compile template for nav.xhtml"),
        }
    });
    ("Attempting to generate html directory...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer le répertoire HTML..."),
            _ => format!("Attempting to generate html directory..."),
        }
    });
    ("could not compile template for cover.xhtml") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template pour cover.xhtml"),
            _ => format!("could not compile template for cover.xhtml"),
        }
    });
    ("Parts are not supported yet") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Les parties ne sont pas encore supportées"),
            _ => format!("Parts are not supported yet"),
        }
    });
    ("Max threshold of differences to consider two strings a repetition") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Seuil maximal de différence pour considérer deux mots comme une répétition"),
            _ => format!("Max threshold of differences to consider two strings a repetition"),
        }
    });
    ("Standalone HTML options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options pour le HTML autonome"),
            _ => format!("Standalone HTML options"),
        }
    });
    ("Print version information") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Affiche le numéro de version"),
            _ => format!("Print version information"),
        }
    });
    ("no output epub file specified in book config") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("pas de fichier EPUB de sortie spécifié dans la configuration du livre"),
            _ => format!("no output epub file specified in book config"),
        }
    });
    ("could not compile template 'rendering.inline_toc'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'rendering.inline_toc'"),
            _ => format!("could not compile template 'rendering.inline_toc'"),
        }
    });
    ("ODT: blockquotes and codeblocks are not currently implemented for ODT") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("ODT: les blocs de citation et de code ne sont pas encore implémentés pour ODT"),
            _ => format!("ODT: blockquotes and codeblocks are not currently implemented for ODT"),
        }
    });
    ("Naming scheme of chapters") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Schéma de nommage des chapitres"),
            _ => format!("Naming scheme of chapters"),
        }
    });
    ("Path to the cover of the book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin de la couverture du livre"),
            _ => format!("Path to the cover of the book"),
        }
    });
    ("Attempting to generate pdf...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer le PDF..."),
            _ => format!("Attempting to generate pdf..."),
        }
    });
    ("Path of a javascript file") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'un fichier javascript"),
            _ => format!("Path of a javascript file"),
        }
    });
    ("could not compile template 'html_dir.chapter.html") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'html_dir.chapter.html"),
            _ => format!("could not compile template 'html_dir.chapter.html"),
        }
    });
    ("Output directory name for HTML rendering with proofread features") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom d'un répertoire où générer le HTML pour la relecture"),
            _ => format!("Output directory name for HTML rendering with proofread features"),
        }
    });
    ("image or cover") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("image ou couverture"),
            _ => format!("image or cover"),
        }
    });
    ("Subject of the book (used for EPUB metadata") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Sujet du livre (utilisé pour les métadonnées EPUB)"),
            _ => format!("Subject of the book (used for EPUB metadata"),
        }
    });
    ("The  maximum heading levels that should be numbered (0: no numbering, 1: only chapters, ..., 6: all)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Le nombre maximum de niveaux qui devraient être numérotés (0 : aucune numérotation, 1 : seulement les chapitres, ..., 6 : tout)"),
            _ => format!("The  maximum heading levels that should be numbered (0: no numbering, 1: only chapters, ..., 6: all)"),
        }
    });
    ("Proofreading options (only for output.proofread.* targets)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options de relecture (seulement pour les cibles output.proofread.*)"),
            _ => format!("Proofreading options (only for output.proofread.* targets)"),
        }
    });
    ("Error accessing book option: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur en accèdant à l'option : "),
            _ => format!("Error accessing book option: "),
        }
    });
    ("generated HTML for cover.xhtml was not utf-8 valid") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le HTML généré pour cover.xhtml contient de l'UTF-8 invalide"),
            _ => format!("generated HTML for cover.xhtml was not utf-8 valid"),
        }
    });
    ("metadata") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("métadonnée"),
            _ => format!("metadata"),
        }
    });
    ("Output options (for proofreading)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options de sortie (pour la relecture)"),
            _ => format!("Output options (for proofreading)"),
        }
    });
    ("integer") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("entier"),
            _ => format!("integer"),
        }
    });
    ("Print warnings in parsing/rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Affiche les avertissements dans l'analyse et le rendu"),
            _ => format!("Print warnings in parsing/rendering"),
        }
    });
    ("An odd number of arguments was passed to --set, but it takes a list of key value pairs.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Un nombre impair d'arguments a été donné à --set, alors qu'il prend une liste de paires clé-valeur."),
            _ => format!("An odd number of arguments was passed to --set, but it takes a list of key value pairs."),
        }
    });
    ("ODT: images not currently implemented for this format") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("ODT: les images ne sont pas encore implémentées pour ce format"),
            _ => format!("ODT: images not currently implemented for this format"),
        }
    });
    ("header generated by mustache was not valid utf-8") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("l'en-tête générée par mustache contenait de l'UTF-8 invalide"),
            _ => format!("header generated by mustache was not valid utf-8"),
        }
    });
    ("DEPRECATED") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("DÉPRÉCIÉ"),
            _ => format!("DEPRECATED"),
        }
    });
    ("Attempting to generate LaTeX...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer le LaTeX..."),
            _ => format!("Attempting to generate LaTeX..."),
        }
    });
    ("Output directory name for HTML rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom de répertoire où générer le HTML"),
            _ => format!("Output directory name for HTML rendering"),
        }
    });
    ("Metadata") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Métadonnée"),
            _ => format!("Metadata"),
        }
    });
    ("file contains invalid UTF-8, could not parse it") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier contient de l'UTF-8 invalide, impossible de l'analyser"),
            _ => format!("file contains invalid UTF-8, could not parse it"),
        }
    });
    ("markdown file") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("fichier Markdown"),
            _ => format!("markdown file"),
        }
    });
    ("Attempting to generate html directory for proofreading...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer le répertoire HTML pour la relecture..."),
            _ => format!("Attempting to generate html directory for proofreading..."),
        }
    });
    ("Path of a chapter.html template") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'un template chapter.html"),
            _ => format!("Path of a chapter.html template"),
        }
    });
    ("EPUB version to generate (2 or 3)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Version du format EPUB à générér (2 ou 3)"),
            _ => format!("EPUB version to generate (2 or 3)"),
        }
    });
    ("Port to connect to languagetool-server") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Port sur lequel se connecter à languagetool-server"),
            _ => format!("Port to connect to languagetool-server"),
        }
    });
    ("Render a Markdown book in EPUB, PDF or HTML.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fait le rendu en EPUB, PDF ou HTML d'un livre écrit en Markdown."),
            _ => format!("Render a Markdown book in EPUB, PDF or HTML."),
        }
    });
    ("Use initials ('lettrines') for first letter of a chapter (experimental)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Utilise des lettrines pour la première lettre de chaque chapitre (expérimental)"),
            _ => format!("Use initials ('lettrines') for first letter of a chapter (experimental)"),
        }
    });
    ("boolean") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("booléen"),
            _ => format!("boolean"),
        }
    });
    ("Info: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Info : "),
            _ => format!("Info: "),
        }
    });
    ("Version of the book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Version du livre"),
            _ => format!("Version of the book"),
        }
    });
    ("If enabled, tries to replace vertical quotations marks to curly ones.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Si activé, essaie de remplacer les apostrophes et guillemets droits par des apostrophes et guillemets typographiques"),
            _ => format!("If enabled, tries to replace vertical quotations marks to curly ones."),
        }
    });
    ("Print help information") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Affiche l'aide"),
            _ => format!("Print help information"),
        }
    });
    ("Warning: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Avertissement : "),
            _ => format!("Warning: "),
        }
    });
    ("Crowbook options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options Crowbook"),
            _ => format!("Crowbook options"),
        }
    });
    ("could not render template for toc.ncx") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template pour toc.ncx"),
            _ => format!("could not render template for toc.ncx"),
        }
    });
    ("book chapter") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("chapitre de livre"),
            _ => format!("book chapter"),
        }
    });
    ("generated HTML was not utf-8 valid") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le HTML contient de l'UTF-8 invalide"),
            _ => format!("generated HTML was not utf-8 valid"),
        }
    });
    ("Input options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options d'entrée"),
            _ => format!("Input options"),
        }
    });
    ("Custom header to display at the beginning of html file(s)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("En-tête personnalisée à afficher au début de chaque fichier HTML"),
            _ => format!("Custom header to display at the beginning of html file(s)"),
        }
    });
    ("Path of an xhtml template for each chapter") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'um template XHTML pour chaque chapitre"),
            _ => format!("Path of an xhtml template for each chapter"),
        }
    });
    ("could not compile template for content.opf") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template pour content.opf"),
            _ => format!("could not compile template for content.opf"),
        }
    });
    ("Set a list of book options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Règle une liste d'options pour le livre"),
            _ => format!("Set a list of book options"),
        }
    });
    ("Highlight non breaking spaces so it is easier to see if typography is correct") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Surligne les espaces insécables pour qu'il soit plus facile de vérifier que la typographie est correcte"),
            _ => format!("Highlight non breaking spaces so it is easier to see if typography is correct"),
        }
    });
    ("If set to true, use Caribon to detect repetitions") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Si mis à vrai, utilise Caribon pour détecter les répétitions"),
            _ => format!("If set to true, use Caribon to detect repetitions"),
        }
    });
    ("ill-formatted line specifying chapter number") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("line spécifiant un numéro de chapitre mal formattée"),
            _ => format!("ill-formatted line specifying chapter number"),
        }
    });
    ("Resources option") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options de ressources"),
            _ => format!("Resources option"),
        }
    });
    ("could not compile template 'html_single.html'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'html_single.html'"),
            _ => format!("could not compile template 'html_single.html'"),
        }
    });
    ("Removed") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Supprimé"),
            _ => format!("Removed"),
        }
    });
    ("Output file name for ODT rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom de fichier pour la génération du format ODT"),
            _ => format!("Output file name for ODT rendering"),
        }
    });
    ("ODT: tables are not currently implemented for this format") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("ODT: les tableaux ne sont pas encore implémentés pour ce format"),
            _ => format!("ODT: tables are not currently implemented for this format"),
        }
    });
    ("Why is this method called if cover is None???") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Pourquoi cette méthode est-elle appelée si la couverture est None???"),
            _ => format!("Why is this method called if cover is None???"),
        }
    });
    ("could not compile template 'html.css") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'html.css'"),
            _ => format!("could not compile template 'html.css"),
        }
    });
    ("Output options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options de sortie"),
            _ => format!("Output options"),
        }
    });
    ("File containing the book configuration file, or a Markdown file when called with --single") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier contenant la configuration du livre, ou un fichier Markdown avec l'argument --single"),
            _ => format!("File containing the book configuration file, or a Markdown file when called with --single"),
        }
    });
    ("path") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("chemin"),
            _ => format!("path"),
        }
    });
    ("Generate specific format") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Génère un format spécifique"),
            _ => format!("Generate specific format"),
        }
    });
    ("Successfully generated LaTeX") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("LaTeX généré avec succès"),
            _ => format!("Successfully generated LaTeX"),
        }
    });
    ("LaTeX options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options LaTeX"),
            _ => format!("LaTeX options"),
        }
    });
    ("could not compile template 'html_single.js'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler te template 'html_single.js'"),
            _ => format!("could not compile template 'html_single.js'"),
        }
    });
    ("generated content.xml was not utf-8 valid") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier content.xml généré contenait de l'UTF-8 invalide"),
            _ => format!("generated content.xml was not utf-8 valid"),
        }
    });
    ("Set another highlight.js CSS theme than the default one") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Donne un autre thème CSS highlight.js à utilise que celui par défaut"),
            _ => format!("Set another highlight.js CSS theme than the default one"),
        }
    });
    ("Path where to find resources (in the source tree). By default, links and images are relative to the Markdown file. If this is set, it will be to this path.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin où trouver les ressources. Par défaut, les liens et les images sont relatifs au fichier Markdown. Avec cette option, ce sera relatif à ce chemin."),
            _ => format!("Path where to find resources (in the source tree). By default, links and images are relative to the Markdown file. If this is set, it will be to this path."),
        }
    });
    ("LaTeX command to use for generating PDF") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Commande LaTeX utilisée pour générer le PDF"),
            _ => format!("LaTeX command to use for generating PDF"),
        }
    });
    ("book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("livre"),
            _ => format!("book"),
        }
    });
    ("Max distance between two occurences so it is considered a repetition") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Distance maximale entre deux occurrences d'un mot pour considérer qu'il s'agit d'une répétition"),
            _ => format!("Max distance between two occurences so it is considered a repetition"),
        }
    });
    ("Attempting to generate ODT...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer l'ODT..."),
            _ => format!("Attempting to generate ODT..."),
        }
    });
    ("Prints the default content of a template") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Affiche le contenu par défaut d'un template"),
            _ => format!("Prints the default content of a template"),
        }
    });
    ("Output of latex command:") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Sortie de la commande latex : "),
            _ => format!("Output of latex command:"),
        }
    });
    ("Set base path but only for additional files. Useless if resources.base_path is set.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Donne un chemin de base mais seulement pour les fichiers additionnels. Inutile si resources.base_path est déjà réglé."),
            _ => format!("Set base path but only for additional files. Useless if resources.base_path is set."),
        }
    });
    ("Don't print info/error messages") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("N'affiche pas les messages d'erreurs ou d'information"),
            _ => format!("Don't print info/error messages"),
        }
    });
    ("odt.render_book called while book.output_odt is not set") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("odt.render_book appelée alors que book.output.odt n'est pas initialisé"),
            _ => format!("odt.render_book called while book.output_odt is not set"),
        }
    });
    ("Title of the book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Titre du livre"),
            _ => format!("Title of the book"),
        }
    });
    ("Threshold to detect a repetition") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Seuil pour détecter une répétition"),
            _ => format!("Threshold to detect a repetition"),
        }
    });
    ("could not compile template for title page") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template pour la page de titre"),
            _ => format!("could not compile template for title page"),
        }
    });
    ("Name of the table of contents if it is displayed in document") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom de la table des matières si elle est affichée dans le document"),
            _ => format!("Name of the table of contents if it is displayed in document"),
        }
    });
    ("could not compile template 'epub.css'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'epub.css'"),
            _ => format!("could not compile template 'epub.css'"),
        }
    });
    ("Output file name for HTML rendering with proofread features") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Ficher de sortie où générer le HTML avec options de relecture"),
            _ => format!("Output file name for HTML rendering with proofread features"),
        }
    });
    ("generated HTML in content.opf was not valid utf-8") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier content.opf généré contenait de l'UTF-8 invalide"),
            _ => format!("generated HTML in content.opf was not valid utf-8"),
        }
    });
    ("List all possible options, formatted in Markdown") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Liste toutes les options possibles, formatées en Markdown"),
            _ => format!("List all possible options, formatted in Markdown"),
        }
    });
    ("Output file name for PDF rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom de fichier pour le PDF à générer"),
            _ => format!("Output file name for PDF rendering"),
        }
    });
    ("string") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("chaîne de caractères"),
            _ => format!("string"),
        }
    });
    ("YAML part of the book is not a valid hashmap") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("La partie YAML du livre n'est pas une hashmap valide"),
            _ => format!("YAML part of the book is not a valid hashmap"),
        }
    });
    ("If set to false, will disactivate proofreading even if one of output.proofread.x is present") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Si mis à faux, désactivera la génération de fichiers de relecture même si une des cibles output.proofread.x est présente"),
            _ => format!("If set to false, will disactivate proofreading even if one of output.proofread.x is present"),
        }
    });
    ("Successfully generated HTML") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("HTML généré avec succès"),
            _ => format!("Successfully generated HTML"),
        }
    });
    ("Deprecated options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options dépréciées"),
            _ => format!("Deprecated options"),
        }
    });
    ("char") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("caractère"),
            _ => format!("char"),
        }
    });
    ("ODT: ordered list not currently implemented for this format, fallbacking to unordered one") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("ODT: les listes ordonnées ne sont pas encore implémentées pour ce format, utilisation d'une liste non ordonnée à la place."),
            _ => format!("ODT: ordered list not currently implemented for this format, fallbacking to unordered one"),
        }
    });
    ("Path of a LaTeX template file") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'un fichier template LaTeX"),
            _ => format!("Path of a LaTeX template file"),
        }
    });
    ("Description of the book (used for EPUB metadata") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Description du livre (utilisé pour les métadonnées EPUB)"),
            _ => format!("Description of the book (used for EPUB metadata"),
        }
    });
    ("chapter filenames must not contain whitespace") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("les noms de fichier des chapitres ne doivent pas contenir d'espace"),
            _ => format!("chapter filenames must not contain whitespace"),
        }
    });
    ("Ignore proper nouns for repetitions") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Ignore les noms propres pour les répétitions"),
            _ => format!("Ignore proper nouns for repetitions"),
        }
    });
    ("float") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("flottant"),
            _ => format!("float"),
        }
    });
    ("Output file name for LaTeX rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fichier du format LaTeX à générer"),
            _ => format!("Output file name for LaTeX rendering"),
        }
    });
    ("could not compile template") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template"),
            _ => format!("could not compile template"),
        }
    });
    ("no chapter name specified") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("pas de nom de chapitre spécifié"),
            _ => format!("no chapter name specified"),
        }
    });
    ("Date the book was revised") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Date de dernière révision du livre"),
            _ => format!("Date the book was revised"),
        }
    });
    ("template path") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("chemin d'un template"),
            _ => format!("template path"),
        }
    });
    ("License of the book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Licence du livre"),
            _ => format!("License of the book"),
        }
    });
    ("If true, try to use language tool server to grammar check the book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Si mis à vrai, essaie d'utiliser le serveur languagetool pour effectuer une correction grammaticale du livre"),
            _ => format!("If true, try to use language tool server to grammar check the book"),
        }
    });
    ("Output file name for HTML rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom de fichier pour le rendu HTML"),
            _ => format!("Output file name for HTML rendering"),
        }
    });
    ("could not compile template 'html_dir.index.html") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'html_dir.index.html'"),
            _ => format!("could not compile template 'html_dir.index.html"),
        }
    });
    ("Set base path but only for images. Useless if resources.base_path is set.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Donne un chemin de base mais seulement pour les images. Inutile si resources.base_path est réglé."),
            _ => format!("Set base path but only for images. Useless if resources.base_path is set."),
        }
    });
    ("Path of a stylesheet for the colours for HTML") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'une feuille de style pour les couleurs pour le HTML"),
            _ => format!("Path of a stylesheet for the colours for HTML"),
        }
    });
    ("additional resource from resources.files") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("ressource additionnelle de resources.files"),
            _ => format!("additional resource from resources.files"),
        }
    });
    ("Error parsing configuration file: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur dans l'analyse du fichier de configuration : "),
            _ => format!("Error parsing configuration file: "),
        }
    });
    ("Path where to create a temporary directory (default: uses result from Rust's std::env::temp_dir())") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin où créer un répertoire temporaire (par défaut, utilise le résultat de la fonction Rust std::env::temp_dir())"),
            _ => format!("Path where to create a temporary directory (default: uses result from Rust's std::env::temp_dir())"),
        }
    });
    ("Add foontotes to URL of links so they are readable when printed") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Ajoute des notes de bas de page à l'URL des liens pour qu'elle soit lisible à l'impression"),
            _ => format!("Add foontotes to URL of links so they are readable when printed"),
        }
    });
    ("Output file name for PDF rendering with proofread features") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom de fichier pour le PDF à générer avec options de relecture"),
            _ => format!("Output file name for PDF rendering with proofread features"),
        }
    });
    ("generated HTML in toc.ncx was not valid utf-8") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le HTML généré pour toc.ncx contient de l'UTF-8 invalide"),
            _ => format!("generated HTML in toc.ncx was not valid utf-8"),
        }
    });
    ("generated LaTeX was not valid utf-8") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le fichier LaTeX généré contenait de l'UTF-8 invalide"),
            _ => format!("generated LaTeX was not valid utf-8"),
        }
    });
    ("could not compile template 'epub.chapter.xhtml'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'epub.chapter.xhtml'"),
            _ => format!("could not compile template 'epub.chapter.xhtml'"),
        }
    });
    ("{{bin}} {{version}} by {{author}}\n{{about}}\n\nUSAGE:\n    {{usage}}\n\nFLAGS:\n{{flags}}\n\nOPTIONS:\n{{options}}\n\nARGS:\n{{positionals}}\n") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("{{bin}} {{version}} par {{author}}\n{{about}}\n\nUTILISATION:\n    {{usage}}\n\nPARAMÈTRES:\n{{flags}}\n\nOPTIONS:\n{{options}}\n\nARGUMENTS:\n{{positionals}}\n"),
            _ => format!("{{bin}} {{version}} by {{author}}\n{{about}}\n\nUSAGE:\n    {{usage}}\n\nFLAGS:\n{{flags}}\n\nOPTIONS:\n{{options}}\n\nARGS:\n{{positionals}}\n"),
        }
    });
    ("Debug: ") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Debug : "),
            _ => format!("Debug: "),
        }
    });
    ("Language of the book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Langue du livre"),
            _ => format!("Language of the book"),
        }
    });
    ("LaTeX class to use") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Classe LaTeX à utiliser"),
            _ => format!("LaTeX class to use"),
        }
    });
    ("not set") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("non défini"),
            _ => format!("not set"),
        }
    });
    ("Rendering options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options de rendu"),
            _ => format!("Rendering options"),
        }
    });
    ("EPUB options") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Options EPUB"),
            _ => format!("EPUB options"),
        }
    });
    ("default:") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("défaut :"),
            _ => format!("default:"),
        }
    });
    ("Set base path but only for links. Useless if resources.base_path is set.") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Donne un chemin de base mais seulement pour les liens. Inutile si resources.base_path est réglé."),
            _ => format!("Set base path but only for links. Useless if resources.base_path is set."),
        }
    });
    ("server didn't respond with a OK status code") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le serveur n'a pas répondu avec un code de statut OK"),
            _ => format!("server didn't respond with a OK status code"),
        }
    });
    ("Error:") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Erreur :"),
            _ => format!("Error:"),
        }
    });
    ("Display footnotes as side notes in HTML/Epub (experimental)") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Affiche les notes de bas de pages sur le côté pour le HTML/EPUB (expérimental)"),
            _ => format!("Display footnotes as side notes in HTML/Epub (experimental)"),
        }
    });
    ("Make Crowbook display more messages") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Fait afficher plus de messages à Crowbook"),
            _ => format!("Make Crowbook display more messages"),
        }
    });
    ("Specify output file") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Spécifie un fichier de sortie"),
            _ => format!("Specify output file"),
        }
    });
    ("could not compile template 'html.css'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'html.css'"),
            _ => format!("could not compile template 'html.css'"),
        }
    });
    ("could not compile template 'tex.template'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'tex.template'"),
            _ => format!("could not compile template 'tex.template'"),
        }
    });
    ("Print debugging information") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Affiche des informations de débuggage"),
            _ => format!("Print debugging information"),
        }
    });
    ("Attempting to generate HTML...") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Tentative de générer le HTML..."),
            _ => format!("Attempting to generate HTML..."),
        }
    });
    ("Output of zip command:") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Sortie de la commande zip : "),
            _ => format!("Output of zip command:"),
        }
    });
    ("Path of a media print stylesheet for HTML rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Chemin d'une feuille de style pour l'impression, pour le rendu HTML"),
            _ => format!("Path of a media print stylesheet for HTML rendering"),
        }
    });
    ("error parsing chapter number") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("erreur dans l'analyse du numéro de chapitre"),
            _ => format!("error parsing chapter number"),
        }
    });
    ("Directory where those output files will we written") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Répertoire où ces fichiers de sortie seront écrits"),
            _ => format!("Directory where those output files will we written"),
        }
    });
    ("generated HTML in nav.xhtml was not utf-8 valid") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("le HTML généré pour nav.xhtml contient de l'UTF-8 invalide"),
            _ => format!("generated HTML in nav.xhtml was not utf-8 valid"),
        }
    });
    ("could not get current directory!!!") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible d'obtenir le répertoire courant !!!"),
            _ => format!("could not get current directory!!!"),
        }
    });
    ("Output file name for EPUB rendering") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Nom du fichier EPUB à générer"),
            _ => format!("Output file name for EPUB rendering"),
        }
    });
    ("could not compile template 'rendering.chapter_template'") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("impossible de compiler le template 'rendering.chapter_template'"),
            _ => format!("could not compile template 'rendering.chapter_template'"),
        }
    });
    ("cover") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("couverture"),
            _ => format!("cover"),
        }
    });
    ("Create a new book with existing Markdown files") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Crée un nouveau livre à partir de fichiers Markdown existants"),
            _ => format!("Create a new book with existing Markdown files"),
        }
    });
    ("Renamed") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Renommé"),
            _ => format!("Renamed"),
        }
    });
    ("Toggle cleaning of input markdown according to lang") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Active le nettoyage du Markdown en entrée en fonction de la langue"),
            _ => format!("Toggle cleaning of input markdown according to lang"),
        }
    });
    ("Whitespace-separated list of files to embed in e.g. EPUB file; useful for including e.g. fonts") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Liste de fichiers, séparés par des espaces, à embarquer par exemple dans un fichier EPUB ; utile pour inclure des fontes."),
            _ => format!("Whitespace-separated list of files to embed in e.g. EPUB file; useful for including e.g. fonts"),
        }
    });
    ("Use a single Markdown file instead of a book configuration file") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Utilise un simple fichier Markdown au lieu d'un fichier de configuration de livre"),
            _ => format!("Use a single Markdown file instead of a book configuration file"),
        }
    });
    ("Author of the book") => ({
        let __guard = $crate::localize_macros::__get_lang();
        match __guard.as_str() {
            "fr" => format!("Auteur ou autrice du livre"),
            _ => format!("Author of the book"),
        }
    });
    ("could not compile template \
                                           'rendering.chapter_template'") => (lformat!("could not compile template 'rendering.chapter_template'"));
    ("ODT: ordered list not currently implemented for this \
                                       format, fallbacking to unordered one") => (lformat!("ODT: ordered list not currently implemented for this format, fallbacking to unordered one"));
    ("\
{{bin}} {{version}} by {{author}}
{{about}}

USAGE:
    {{usage}}

FLAGS:
{{flags}}

OPTIONS:
{{options}}

ARGS:
{{positionals}}
") => (lformat!("{{bin}} {{version}} by {{author}}\n{{about}}\n\nUSAGE:\n    {{usage}}\n\nFLAGS:\n{{flags}}\n\nOPTIONS:\n{{options}}\n\nARGS:\n{{positionals}}\n"));
    ("empty str token, could not find \
                                                           initial") => (lformat!("empty str token, could not find initial"));
    ("YAML part of the book is not a \
                                                              valid hashmap") => (lformat!("YAML part of the book is not a valid hashmap"));
    ("could not compile template \
                                                  'rendering.inline_toc'") => (lformat!("could not compile template 'rendering.inline_toc'"));
    ("ODT: blockquotes and codeblocks are not currently \
                                       implemented for ODT") => (lformat!("ODT: blockquotes and codeblocks are not currently implemented for ODT"));
    ("found invalid chapter definition in \
                                                          the chapter list") => (lformat!("found invalid chapter definition in the chapter list"));
    ("server didn't respond with a OK status \
                                                      code") => (lformat!("server didn't respond with a OK status code"));
    ("A list of additional files is only valid with the --create \
                               option.") => (lformat!("A list of additional files is only valid with the --create option."));
    ("An odd number of arguments was passed to --set, but it takes \
                                   a list of key value pairs.") => (lformat!("An odd number of arguments was passed to --set, but it takes a list of key value pairs."));
    ("chapter filenames must not contain \
                                                          whitespace") => (lformat!("chapter filenames must not contain whitespace"));
    ("ill-formatted line specifying \
                                                              chapter number") => (lformat!("ill-formatted line specifying chapter number"));
    ("could not compile template for \
                                                      cover.xhtml") => (lformat!("could not compile template for cover.xhtml"));
    ($($arg:tt)*) => (format!($($arg)*));
}