summaryrefslogtreecommitdiff
path: root/package/gettext-tiny/src/docs/gettext.html
blob: 05d4c9c430be10b878e5779bed7f47a9750c5e19 (plain)
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
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
<html lang="en">
<head>
<title>GNU `gettext' utilities</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="GNU `gettext' utilities">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="top" href="#Top">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<h1 class="settitle">GNU `gettext' utilities</h1>
   <div class="contents">
<h2>Table of Contents</h2>
<ul>
<li><a name="toc_Top" href="#Top">GNU <code>gettext</code> utilities</a>
<li><a name="toc_Introduction" href="#Introduction">1 Introduction</a>
<ul>
<li><a href="#Why">1.1 The Purpose of GNU <code>gettext</code></a>
<li><a href="#Concepts">1.2 I18n, L10n, and Such</a>
<li><a href="#Aspects">1.3 Aspects in Native Language Support</a>
<li><a href="#Files">1.4 Files Conveying Translations</a>
<li><a href="#Overview">1.5 Overview of GNU <code>gettext</code></a>
</li></ul>
<li><a name="toc_Users" href="#Users">2 The User's View</a>
<ul>
<li><a href="#System-Installation">2.1 Operating System Installation</a>
<li><a href="#Setting-the-GUI-Locale">2.2 Setting the Locale Used by GUI Programs</a>
<li><a href="#Setting-the-POSIX-Locale">2.3 Setting the Locale through Environment Variables</a>
<ul>
<li><a href="#Locale-Names">2.3.1 Locale Names</a>
<li><a href="#Locale-Environment-Variables">2.3.2 Locale Environment Variables</a>
<li><a href="#The-LANGUAGE-variable">2.3.3 Specifying a Priority List of Languages</a>
</li></ul>
<li><a href="#Installing-Localizations">2.4 Installing Translations for Particular Programs</a>
</li></ul>
<li><a name="toc_PO-Files" href="#PO-Files">3 The Format of PO Files</a>
<li><a name="toc_Sources" href="#Sources">4 Preparing Program Sources</a>
<ul>
<li><a href="#Importing">4.1 Importing the <code>gettext</code> declaration</a>
<li><a href="#Triggering">4.2 Triggering <code>gettext</code> Operations</a>
<li><a href="#Preparing-Strings">4.3 Preparing Translatable Strings</a>
<li><a href="#Mark-Keywords">4.4 How Marks Appear in Sources</a>
<li><a href="#Marking">4.5 Marking Translatable Strings</a>
<li><a href="#c_002dformat-Flag">4.6 Special Comments preceding Keywords</a>
<li><a href="#Special-cases">4.7 Special Cases of Translatable Strings</a>
<li><a href="#Bug-Report-Address">4.8 Letting Users Report Translation Bugs</a>
<li><a href="#Names">4.9 Marking Proper Names for Translation</a>
<li><a href="#Libraries">4.10 Preparing Library Sources</a>
</li></ul>
<li><a name="toc_Template" href="#Template">5 Making the PO Template File</a>
<ul>
<li><a href="#xgettext-Invocation">5.1 Invoking the <code>xgettext</code> Program</a>
<ul>
<li><a href="#xgettext-Invocation">5.1.1 Input file location</a>
<li><a href="#xgettext-Invocation">5.1.2 Output file location</a>
<li><a href="#xgettext-Invocation">5.1.3 Choice of input file language</a>
<li><a href="#xgettext-Invocation">5.1.4 Input file interpretation</a>
<li><a href="#xgettext-Invocation">5.1.5 Operation mode</a>
<li><a href="#xgettext-Invocation">5.1.6 Language specific options</a>
<li><a href="#xgettext-Invocation">5.1.7 Output details</a>
<li><a href="#xgettext-Invocation">5.1.8 Informative output</a>
</li></ul>
</li></ul>
<li><a name="toc_Creating" href="#Creating">6 Creating a New PO File</a>
<ul>
<li><a href="#msginit-Invocation">6.1 Invoking the <code>msginit</code> Program</a>
<ul>
<li><a href="#msginit-Invocation">6.1.1 Input file location</a>
<li><a href="#msginit-Invocation">6.1.2 Output file location</a>
<li><a href="#msginit-Invocation">6.1.3 Input file syntax</a>
<li><a href="#msginit-Invocation">6.1.4 Output details</a>
<li><a href="#msginit-Invocation">6.1.5 Informative output</a>
</li></ul>
<li><a href="#Header-Entry">6.2 Filling in the Header Entry</a>
</li></ul>
<li><a name="toc_Updating" href="#Updating">7 Updating Existing PO Files</a>
<ul>
<li><a href="#msgmerge-Invocation">7.1 Invoking the <code>msgmerge</code> Program</a>
<ul>
<li><a href="#msgmerge-Invocation">7.1.1 Input file location</a>
<li><a href="#msgmerge-Invocation">7.1.2 Operation mode</a>
<li><a href="#msgmerge-Invocation">7.1.3 Output file location</a>
<li><a href="#msgmerge-Invocation">7.1.4 Output file location in update mode</a>
<li><a href="#msgmerge-Invocation">7.1.5 Operation modifiers</a>
<li><a href="#msgmerge-Invocation">7.1.6 Input file syntax</a>
<li><a href="#msgmerge-Invocation">7.1.7 Output details</a>
<li><a href="#msgmerge-Invocation">7.1.8 Informative output</a>
</li></ul>
</li></ul>
<li><a name="toc_Editing" href="#Editing">8 Editing PO Files</a>
<ul>
<li><a href="#KBabel">8.1 KDE's PO File Editor</a>
<li><a href="#Gtranslator">8.2 GNOME's PO File Editor</a>
<li><a href="#PO-Mode">8.3 Emacs's PO File Editor</a>
<ul>
<li><a href="#Installation">8.3.1 Completing GNU <code>gettext</code> Installation</a>
<li><a href="#Main-PO-Commands">8.3.2 Main PO mode Commands</a>
<li><a href="#Entry-Positioning">8.3.3 Entry Positioning</a>
<li><a href="#Normalizing">8.3.4 Normalizing Strings in Entries</a>
<li><a href="#Translated-Entries">8.3.5 Translated Entries</a>
<li><a href="#Fuzzy-Entries">8.3.6 Fuzzy Entries</a>
<li><a href="#Untranslated-Entries">8.3.7 Untranslated Entries</a>
<li><a href="#Obsolete-Entries">8.3.8 Obsolete Entries</a>
<li><a href="#Modifying-Translations">8.3.9 Modifying Translations</a>
<li><a href="#Modifying-Comments">8.3.10 Modifying Comments</a>
<li><a href="#Subedit">8.3.11 Details of Sub Edition</a>
<li><a href="#C-Sources-Context">8.3.12 C Sources Context</a>
<li><a href="#Auxiliary">8.3.13 Consulting Auxiliary PO Files</a>
</li></ul>
<li><a href="#Compendium">8.4 Using Translation Compendia</a>
<ul>
<li><a href="#Creating-Compendia">8.4.1 Creating Compendia</a>
<ul>
<li><a href="#Creating-Compendia">8.4.1.1 Concatenate PO Files</a>
<li><a href="#Creating-Compendia">8.4.1.2 Extract a Message Subset from a PO File</a>
</li></ul>
<li><a href="#Using-Compendia">8.4.2 Using Compendia</a>
<ul>
<li><a href="#Using-Compendia">8.4.2.1 Initialize a New Translation File</a>
<li><a href="#Using-Compendia">8.4.2.2 Update an Existing Translation File</a>
</li></ul>
</li></ul>
</li></ul>
<li><a name="toc_Manipulating" href="#Manipulating">9 Manipulating PO Files</a>
<ul>
<li><a href="#msgcat-Invocation">9.1 Invoking the <code>msgcat</code> Program</a>
<ul>
<li><a href="#msgcat-Invocation">9.1.1 Input file location</a>
<li><a href="#msgcat-Invocation">9.1.2 Output file location</a>
<li><a href="#msgcat-Invocation">9.1.3 Message selection</a>
<li><a href="#msgcat-Invocation">9.1.4 Input file syntax</a>
<li><a href="#msgcat-Invocation">9.1.5 Output details</a>
<li><a href="#msgcat-Invocation">9.1.6 Informative output</a>
</li></ul>
<li><a href="#msgconv-Invocation">9.2 Invoking the <code>msgconv</code> Program</a>
<ul>
<li><a href="#msgconv-Invocation">9.2.1 Input file location</a>
<li><a href="#msgconv-Invocation">9.2.2 Output file location</a>
<li><a href="#msgconv-Invocation">9.2.3 Conversion target</a>
<li><a href="#msgconv-Invocation">9.2.4 Input file syntax</a>
<li><a href="#msgconv-Invocation">9.2.5 Output details</a>
<li><a href="#msgconv-Invocation">9.2.6 Informative output</a>
</li></ul>
<li><a href="#msggrep-Invocation">9.3 Invoking the <code>msggrep</code> Program</a>
<ul>
<li><a href="#msggrep-Invocation">9.3.1 Input file location</a>
<li><a href="#msggrep-Invocation">9.3.2 Output file location</a>
<li><a href="#msggrep-Invocation">9.3.3 Message selection</a>
<li><a href="#msggrep-Invocation">9.3.4 Input file syntax</a>
<li><a href="#msggrep-Invocation">9.3.5 Output details</a>
<li><a href="#msggrep-Invocation">9.3.6 Informative output</a>
<li><a href="#msggrep-Invocation">9.3.7 Examples</a>
</li></ul>
<li><a href="#msgfilter-Invocation">9.4 Invoking the <code>msgfilter</code> Program</a>
<ul>
<li><a href="#msgfilter-Invocation">9.4.1 Input file location</a>
<li><a href="#msgfilter-Invocation">9.4.2 Output file location</a>
<li><a href="#msgfilter-Invocation">9.4.3 The filter</a>
<li><a href="#msgfilter-Invocation">9.4.4 Useful <var>filter-option</var>s when the <var>filter</var> is &lsquo;<samp><span class="samp">sed</span></samp>&rsquo;</a>
<li><a href="#msgfilter-Invocation">9.4.5 Built-in <var>filter</var>s</a>
<li><a href="#msgfilter-Invocation">9.4.6 Input file syntax</a>
<li><a href="#msgfilter-Invocation">9.4.7 Output details</a>
<li><a href="#msgfilter-Invocation">9.4.8 Informative output</a>
<li><a href="#msgfilter-Invocation">9.4.9 Examples</a>
</li></ul>
<li><a href="#msguniq-Invocation">9.5 Invoking the <code>msguniq</code> Program</a>
<ul>
<li><a href="#msguniq-Invocation">9.5.1 Input file location</a>
<li><a href="#msguniq-Invocation">9.5.2 Output file location</a>
<li><a href="#msguniq-Invocation">9.5.3 Message selection</a>
<li><a href="#msguniq-Invocation">9.5.4 Input file syntax</a>
<li><a href="#msguniq-Invocation">9.5.5 Output details</a>
<li><a href="#msguniq-Invocation">9.5.6 Informative output</a>
</li></ul>
<li><a href="#msgcomm-Invocation">9.6 Invoking the <code>msgcomm</code> Program</a>
<ul>
<li><a href="#msgcomm-Invocation">9.6.1 Input file location</a>
<li><a href="#msgcomm-Invocation">9.6.2 Output file location</a>
<li><a href="#msgcomm-Invocation">9.6.3 Message selection</a>
<li><a href="#msgcomm-Invocation">9.6.4 Input file syntax</a>
<li><a href="#msgcomm-Invocation">9.6.5 Output details</a>
<li><a href="#msgcomm-Invocation">9.6.6 Informative output</a>
</li></ul>
<li><a href="#msgcmp-Invocation">9.7 Invoking the <code>msgcmp</code> Program</a>
<ul>
<li><a href="#msgcmp-Invocation">9.7.1 Input file location</a>
<li><a href="#msgcmp-Invocation">9.7.2 Operation modifiers</a>
<li><a href="#msgcmp-Invocation">9.7.3 Input file syntax</a>
<li><a href="#msgcmp-Invocation">9.7.4 Informative output</a>
</li></ul>
<li><a href="#msgattrib-Invocation">9.8 Invoking the <code>msgattrib</code> Program</a>
<ul>
<li><a href="#msgattrib-Invocation">9.8.1 Input file location</a>
<li><a href="#msgattrib-Invocation">9.8.2 Output file location</a>
<li><a href="#msgattrib-Invocation">9.8.3 Message selection</a>
<li><a href="#msgattrib-Invocation">9.8.4 Attribute manipulation</a>
<li><a href="#msgattrib-Invocation">9.8.5 Input file syntax</a>
<li><a href="#msgattrib-Invocation">9.8.6 Output details</a>
<li><a href="#msgattrib-Invocation">9.8.7 Informative output</a>
</li></ul>
<li><a href="#msgen-Invocation">9.9 Invoking the <code>msgen</code> Program</a>
<ul>
<li><a href="#msgen-Invocation">9.9.1 Input file location</a>
<li><a href="#msgen-Invocation">9.9.2 Output file location</a>
<li><a href="#msgen-Invocation">9.9.3 Input file syntax</a>
<li><a href="#msgen-Invocation">9.9.4 Output details</a>
<li><a href="#msgen-Invocation">9.9.5 Informative output</a>
</li></ul>
<li><a href="#msgexec-Invocation">9.10 Invoking the <code>msgexec</code> Program</a>
<ul>
<li><a href="#msgexec-Invocation">9.10.1 Input file location</a>
<li><a href="#msgexec-Invocation">9.10.2 Input file syntax</a>
<li><a href="#msgexec-Invocation">9.10.3 Informative output</a>
</li></ul>
<li><a href="#Colorizing">9.11 Highlighting parts of PO files</a>
<ul>
<li><a href="#The-_002d_002dcolor-option">9.11.1 The <code>--color</code> option</a>
<li><a href="#The-TERM-variable">9.11.2 The environment variable <code>TERM</code></a>
<li><a href="#The-_002d_002dstyle-option">9.11.3 The <code>--style</code> option</a>
<li><a href="#Style-rules">9.11.4 Style rules for PO files</a>
<li><a href="#Customizing-less">9.11.5 Customizing <code>less</code> for viewing PO files</a>
</li></ul>
<li><a href="#libgettextpo">9.12 Writing your own programs that process PO files</a>
</li></ul>
<li><a name="toc_Binaries" href="#Binaries">10 Producing Binary MO Files</a>
<ul>
<li><a href="#msgfmt-Invocation">10.1 Invoking the <code>msgfmt</code> Program</a>
<ul>
<li><a href="#msgfmt-Invocation">10.1.1 Input file location</a>
<li><a href="#msgfmt-Invocation">10.1.2 Operation mode</a>
<li><a href="#msgfmt-Invocation">10.1.3 Output file location</a>
<li><a href="#msgfmt-Invocation">10.1.4 Output file location in Java mode</a>
<li><a href="#msgfmt-Invocation">10.1.5 Output file location in C# mode</a>
<li><a href="#msgfmt-Invocation">10.1.6 Output file location in Tcl mode</a>
<li><a href="#msgfmt-Invocation">10.1.7 Input file syntax</a>
<li><a href="#msgfmt-Invocation">10.1.8 Input file interpretation</a>
<li><a href="#msgfmt-Invocation">10.1.9 Output details</a>
<li><a href="#msgfmt-Invocation">10.1.10 Informative output</a>
</li></ul>
<li><a href="#msgunfmt-Invocation">10.2 Invoking the <code>msgunfmt</code> Program</a>
<ul>
<li><a href="#msgunfmt-Invocation">10.2.1 Operation mode</a>
<li><a href="#msgunfmt-Invocation">10.2.2 Input file location</a>
<li><a href="#msgunfmt-Invocation">10.2.3 Input file location in Java mode</a>
<li><a href="#msgunfmt-Invocation">10.2.4 Input file location in C# mode</a>
<li><a href="#msgunfmt-Invocation">10.2.5 Input file location in Tcl mode</a>
<li><a href="#msgunfmt-Invocation">10.2.6 Output file location</a>
<li><a href="#msgunfmt-Invocation">10.2.7 Output details</a>
<li><a href="#msgunfmt-Invocation">10.2.8 Informative output</a>
</li></ul>
<li><a href="#MO-Files">10.3 The Format of GNU MO Files</a>
</li></ul>
<li><a name="toc_Programmers" href="#Programmers">11 The Programmer's View</a>
<ul>
<li><a href="#catgets">11.1 About <code>catgets</code></a>
<ul>
<li><a href="#Interface-to-catgets">11.1.1 The Interface</a>
<li><a href="#Problems-with-catgets">11.1.2 Problems with the <code>catgets</code> Interface?!</a>
</li></ul>
<li><a href="#gettext">11.2 About <code>gettext</code></a>
<ul>
<li><a href="#Interface-to-gettext">11.2.1 The Interface</a>
<li><a href="#Ambiguities">11.2.2 Solving Ambiguities</a>
<li><a href="#Locating-Catalogs">11.2.3 Locating Message Catalog Files</a>
<li><a href="#Charset-conversion">11.2.4 How to specify the output character set <code>gettext</code> uses</a>
<li><a href="#Contexts">11.2.5 Using contexts for solving ambiguities</a>
<li><a href="#Plural-forms">11.2.6 Additional functions for plural forms</a>
<li><a href="#Optimized-gettext">11.2.7 Optimization of the *gettext functions</a>
</li></ul>
<li><a href="#Comparison">11.3 Comparing the Two Interfaces</a>
<li><a href="#Using-libintl_002ea">11.4 Using libintl.a in own programs</a>
<li><a href="#gettext-grok">11.5 Being a <code>gettext</code> grok</a>
<li><a href="#Temp-Programmers">11.6 Temporary Notes for the Programmers Chapter</a>
<ul>
<li><a href="#Temp-Implementations">11.6.1 Temporary - Two Possible Implementations</a>
<li><a href="#Temp-catgets">11.6.2 Temporary - About <code>catgets</code></a>
<li><a href="#Temp-WSI">11.6.3 Temporary - Why a single implementation</a>
<li><a href="#Temp-Notes">11.6.4 Temporary - Notes</a>
</li></ul>
</li></ul>
<li><a name="toc_Translators" href="#Translators">12 The Translator's View</a>
<ul>
<li><a href="#Trans-Intro-0">12.1 Introduction 0</a>
<li><a href="#Trans-Intro-1">12.2 Introduction 1</a>
<li><a href="#Discussions">12.3 Discussions</a>
<li><a href="#Organization">12.4 Organization</a>
<ul>
<li><a href="#Central-Coordination">12.4.1 Central Coordination</a>
<li><a href="#National-Teams">12.4.2 National Teams</a>
<ul>
<li><a href="#Sub_002dCultures">12.4.2.1 Sub-Cultures</a>
<li><a href="#Organizational-Ideas">12.4.2.2 Organizational Ideas</a>
</li></ul>
<li><a href="#Mailing-Lists">12.4.3 Mailing Lists</a>
</li></ul>
<li><a href="#Information-Flow">12.5 Information Flow</a>
<li><a href="#Translating-plural-forms">12.6 Translating plural forms</a>
<li><a href="#Prioritizing-messages">12.7 Prioritizing messages: How to determine which messages to translate first</a>
</li></ul>
<li><a name="toc_Maintainers" href="#Maintainers">13 The Maintainer's View</a>
<ul>
<li><a href="#Flat-and-Non_002dFlat">13.1 Flat or Non-Flat Directory Structures</a>
<li><a href="#Prerequisites">13.2 Prerequisite Works</a>
<li><a href="#gettextize-Invocation">13.3 Invoking the <code>gettextize</code> Program</a>
<li><a href="#Adjusting-Files">13.4 Files You Must Create or Alter</a>
<ul>
<li><a href="#po_002fPOTFILES_002ein">13.4.1 <samp><span class="file">POTFILES.in</span></samp> in <samp><span class="file">po/</span></samp></a>
<li><a href="#po_002fLINGUAS">13.4.2 <samp><span class="file">LINGUAS</span></samp> in <samp><span class="file">po/</span></samp></a>
<li><a href="#po_002fMakevars">13.4.3 <samp><span class="file">Makevars</span></samp> in <samp><span class="file">po/</span></samp></a>
<li><a href="#po_002fRules_002d_002a">13.4.4 Extending <samp><span class="file">Makefile</span></samp> in <samp><span class="file">po/</span></samp></a>
<li><a href="#configure_002eac">13.4.5 <samp><span class="file">configure.ac</span></samp> at top level</a>
<li><a href="#config_002eguess">13.4.6 <samp><span class="file">config.guess</span></samp>, <samp><span class="file">config.sub</span></samp> at top level</a>
<li><a href="#mkinstalldirs">13.4.7 <samp><span class="file">mkinstalldirs</span></samp> at top level</a>
<li><a href="#aclocal">13.4.8 <samp><span class="file">aclocal.m4</span></samp> at top level</a>
<li><a href="#acconfig">13.4.9 <samp><span class="file">acconfig.h</span></samp> at top level</a>
<li><a href="#config_002eh_002ein">13.4.10 <samp><span class="file">config.h.in</span></samp> at top level</a>
<li><a href="#Makefile">13.4.11 <samp><span class="file">Makefile.in</span></samp> at top level</a>
<li><a href="#src_002fMakefile">13.4.12 <samp><span class="file">Makefile.in</span></samp> in <samp><span class="file">src/</span></samp></a>
<li><a href="#lib_002fgettext_002eh">13.4.13 <samp><span class="file">gettext.h</span></samp> in <samp><span class="file">lib/</span></samp></a>
</li></ul>
<li><a href="#autoconf-macros">13.5 Autoconf macros for use in <samp><span class="file">configure.ac</span></samp></a>
<ul>
<li><a href="#AM_005fGNU_005fGETTEXT">13.5.1 AM_GNU_GETTEXT in <samp><span class="file">gettext.m4</span></samp></a>
<li><a href="#AM_005fGNU_005fGETTEXT_005fVERSION">13.5.2 AM_GNU_GETTEXT_VERSION in <samp><span class="file">gettext.m4</span></samp></a>
<li><a href="#AM_005fGNU_005fGETTEXT_005fNEED">13.5.3 AM_GNU_GETTEXT_NEED in <samp><span class="file">gettext.m4</span></samp></a>
<li><a href="#AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR">13.5.4 AM_GNU_GETTEXT_INTL_SUBDIR in <samp><span class="file">intldir.m4</span></samp></a>
<li><a href="#AM_005fPO_005fSUBDIRS">13.5.5 AM_PO_SUBDIRS in <samp><span class="file">po.m4</span></samp></a>
<li><a href="#AM_005fXGETTEXT_005fOPTION">13.5.6 AM_XGETTEXT_OPTION in <samp><span class="file">po.m4</span></samp></a>
<li><a href="#AM_005fICONV">13.5.7 AM_ICONV in <samp><span class="file">iconv.m4</span></samp></a>
</li></ul>
<li><a href="#CVS-Issues">13.6 Integrating with CVS</a>
<ul>
<li><a href="#Distributed-CVS">13.6.1 Avoiding version mismatch in distributed development</a>
<li><a href="#Files-under-CVS">13.6.2 Files to put under CVS version control</a>
<li><a href="#autopoint-Invocation">13.6.3 Invoking the <code>autopoint</code> Program</a>
<ul>
<li><a href="#autopoint-Invocation">13.6.3.1 Options</a>
<li><a href="#autopoint-Invocation">13.6.3.2 Informative output</a>
</li></ul>
</li></ul>
<li><a href="#Release-Management">13.7 Creating a Distribution Tarball</a>
</li></ul>
<li><a name="toc_Installers" href="#Installers">14 The Installer's and Distributor's View</a>
<li><a name="toc_Programming-Languages" href="#Programming-Languages">15 Other Programming Languages</a>
<ul>
<li><a href="#Language-Implementors">15.1 The Language Implementor's View</a>
<li><a href="#Programmers-for-other-Languages">15.2 The Programmer's View</a>
<li><a href="#Translators-for-other-Languages">15.3 The Translator's View</a>
<ul>
<li><a href="#c_002dformat">15.3.1 C Format Strings</a>
<li><a href="#objc_002dformat">15.3.2 Objective C Format Strings</a>
<li><a href="#sh_002dformat">15.3.3 Shell Format Strings</a>
<li><a href="#python_002dformat">15.3.4 Python Format Strings</a>
<li><a href="#lisp_002dformat">15.3.5 Lisp Format Strings</a>
<li><a href="#elisp_002dformat">15.3.6 Emacs Lisp Format Strings</a>
<li><a href="#librep_002dformat">15.3.7 librep Format Strings</a>
<li><a href="#scheme_002dformat">15.3.8 Scheme Format Strings</a>
<li><a href="#smalltalk_002dformat">15.3.9 Smalltalk Format Strings</a>
<li><a href="#java_002dformat">15.3.10 Java Format Strings</a>
<li><a href="#csharp_002dformat">15.3.11 C# Format Strings</a>
<li><a href="#awk_002dformat">15.3.12 awk Format Strings</a>
<li><a href="#object_002dpascal_002dformat">15.3.13 Object Pascal Format Strings</a>
<li><a href="#ycp_002dformat">15.3.14 YCP Format Strings</a>
<li><a href="#tcl_002dformat">15.3.15 Tcl Format Strings</a>
<li><a href="#perl_002dformat">15.3.16 Perl Format Strings</a>
<li><a href="#php_002dformat">15.3.17 PHP Format Strings</a>
<li><a href="#gcc_002dinternal_002dformat">15.3.18 GCC internal Format Strings</a>
<li><a href="#gfc_002dinternal_002dformat">15.3.19 GFC internal Format Strings</a>
<li><a href="#qt_002dformat">15.3.20 Qt Format Strings</a>
<li><a href="#qt_002dplural_002dformat">15.3.21 Qt Format Strings</a>
<li><a href="#kde_002dformat">15.3.22 KDE Format Strings</a>
<li><a href="#boost_002dformat">15.3.23 Boost Format Strings</a>
</li></ul>
<li><a href="#Maintainers-for-other-Languages">15.4 The Maintainer's View</a>
<li><a href="#List-of-Programming-Languages">15.5 Individual Programming Languages</a>
<ul>
<li><a href="#C">15.5.1 C, C++, Objective C</a>
<li><a href="#sh">15.5.2 sh - Shell Script</a>
<ul>
<li><a href="#Preparing-Shell-Scripts">15.5.2.1 Preparing Shell Scripts for Internationalization</a>
<li><a href="#gettext_002esh">15.5.2.2 Contents of <code>gettext.sh</code></a>
<li><a href="#gettext-Invocation">15.5.2.3 Invoking the <code>gettext</code> program</a>
<li><a href="#ngettext-Invocation">15.5.2.4 Invoking the <code>ngettext</code> program</a>
<li><a href="#envsubst-Invocation">15.5.2.5 Invoking the <code>envsubst</code> program</a>
<li><a href="#eval_005fgettext-Invocation">15.5.2.6 Invoking the <code>eval_gettext</code> function</a>
<li><a href="#eval_005fngettext-Invocation">15.5.2.7 Invoking the <code>eval_ngettext</code> function</a>
</li></ul>
<li><a href="#bash">15.5.3 bash - Bourne-Again Shell Script</a>
<li><a href="#Python">15.5.4 Python</a>
<li><a href="#Common-Lisp">15.5.5 GNU clisp - Common Lisp</a>
<li><a href="#clisp-C">15.5.6 GNU clisp C sources</a>
<li><a href="#Emacs-Lisp">15.5.7 Emacs Lisp</a>
<li><a href="#librep">15.5.8 librep</a>
<li><a href="#Scheme">15.5.9 GNU guile - Scheme</a>
<li><a href="#Smalltalk">15.5.10 GNU Smalltalk</a>
<li><a href="#Java">15.5.11 Java</a>
<li><a href="#C_0023">15.5.12 C#</a>
<li><a href="#gawk">15.5.13 GNU awk</a>
<li><a href="#Pascal">15.5.14 Pascal - Free Pascal Compiler</a>
<li><a href="#wxWidgets">15.5.15 wxWidgets library</a>
<li><a href="#YCP">15.5.16 YCP - YaST2 scripting language</a>
<li><a href="#Tcl">15.5.17 Tcl - Tk's scripting language</a>
<li><a href="#Perl">15.5.18 Perl</a>
<ul>
<li><a href="#General-Problems">15.5.18.1 General Problems Parsing Perl Code</a>
<li><a href="#Default-Keywords">15.5.18.2 Which keywords will xgettext look for?</a>
<li><a href="#Special-Keywords">15.5.18.3 How to Extract Hash Keys</a>
<li><a href="#Quote_002dlike-Expressions">15.5.18.4 What are Strings And Quote-like Expressions?</a>
<li><a href="#Interpolation-I">15.5.18.5 Invalid Uses Of String Interpolation</a>
<li><a href="#Interpolation-II">15.5.18.6 Valid Uses Of String Interpolation</a>
<li><a href="#Parentheses">15.5.18.7 When To Use Parentheses</a>
<li><a href="#Long-Lines">15.5.18.8 How To Grok with Long Lines</a>
<li><a href="#Perl-Pitfalls">15.5.18.9 Bugs, Pitfalls, And Things That Do Not Work</a>
</li></ul>
<li><a href="#PHP">15.5.19 PHP Hypertext Preprocessor</a>
<li><a href="#Pike">15.5.20 Pike</a>
<li><a href="#GCC_002dsource">15.5.21 GNU Compiler Collection sources</a>
</li></ul>
<li><a href="#List-of-Data-Formats">15.6 Internationalizable Data</a>
<ul>
<li><a href="#POT">15.6.1 POT - Portable Object Template</a>
<li><a href="#RST">15.6.2 Resource String Table</a>
<li><a href="#Glade">15.6.3 Glade - GNOME user interface description</a>
</li></ul>
</li></ul>
<li><a name="toc_Conclusion" href="#Conclusion">16 Concluding Remarks</a>
<ul>
<li><a href="#History">16.1 History of GNU <code>gettext</code></a>
<li><a href="#References">16.2 Related Readings</a>
</li></ul>
<li><a name="toc_Language-Codes" href="#Language-Codes">Appendix A Language Codes</a>
<ul>
<li><a href="#Usual-Language-Codes">A.1 Usual Language Codes</a>
<li><a href="#Rare-Language-Codes">A.2 Rare Language Codes</a>
</li></ul>
<li><a name="toc_Country-Codes" href="#Country-Codes">Appendix B Country Codes</a>
<li><a name="toc_Licenses" href="#Licenses">Appendix C Licenses</a>
<ul>
<li><a href="#GNU-GPL">C.1 GNU GENERAL PUBLIC LICENSE</a>
<ul>
<li><a href="#GNU-GPL">Preamble</a>
<li><a href="#GNU-GPL">Appendix: How to Apply These Terms to Your New Programs</a>
</li></ul>
<li><a href="#GNU-LGPL">C.2 GNU LESSER GENERAL PUBLIC LICENSE</a>
<ul>
<li><a href="#GNU-LGPL">Preamble</a>
<li><a href="#GNU-LGPL">How to Apply These Terms to Your New Libraries</a>
</li></ul>
<li><a href="#GNU-FDL">C.3 GNU Free Documentation License</a>
<ul>
<li><a href="#GNU-FDL">ADDENDUM: How to use this License for your documents</a>
</li></ul>
</li></ul>
<li><a name="toc_Program-Index" href="#Program-Index">Program Index</a>
<li><a name="toc_Option-Index" href="#Option-Index">Option Index</a>
<li><a name="toc_Variable-Index" href="#Variable-Index">Variable Index</a>
<li><a name="toc_PO-Mode-Index" href="#PO-Mode-Index">PO Mode Index</a>
<li><a name="toc_Autoconf-Macro-Index" href="#Autoconf-Macro-Index">Autoconf Macro Index</a>
<li><a name="toc_Index" href="#Index">General Index</a>
</li></ul>
</div>



<div class="node">
<a name="Top"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Introduction">Introduction</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#dir">(dir)</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#dir">(dir)</a>

</div>

<h2 class="unnumbered">GNU <code>gettext</code> utilities</h2>

   <p>This manual documents the GNU gettext tools and the GNU libintl library,
version 0.18.

<ul class="menu">
<li><a accesskey="1" href="#Introduction">Introduction</a>:                 Introduction
<li><a accesskey="2" href="#Users">Users</a>:                        The User's View
<li><a accesskey="3" href="#PO-Files">PO Files</a>:                     The Format of PO Files
<li><a accesskey="4" href="#Sources">Sources</a>:                      Preparing Program Sources
<li><a accesskey="5" href="#Template">Template</a>:                     Making the PO Template File
<li><a accesskey="6" href="#Creating">Creating</a>:                     Creating a New PO File
<li><a accesskey="7" href="#Updating">Updating</a>:                     Updating Existing PO Files
<li><a accesskey="8" href="#Editing">Editing</a>:                      Editing PO Files
<li><a accesskey="9" href="#Manipulating">Manipulating</a>:                 Manipulating PO Files
<li><a href="#Binaries">Binaries</a>:                     Producing Binary MO Files
<li><a href="#Programmers">Programmers</a>:                  The Programmer's View
<li><a href="#Translators">Translators</a>:                  The Translator's View
<li><a href="#Maintainers">Maintainers</a>:                  The Maintainer's View
<li><a href="#Installers">Installers</a>:                   The Installer's and Distributor's View
<li><a href="#Programming-Languages">Programming Languages</a>:        Other Programming Languages
<li><a href="#Conclusion">Conclusion</a>:                   Concluding Remarks

<li><a href="#Language-Codes">Language Codes</a>:               ISO 639 language codes
<li><a href="#Country-Codes">Country Codes</a>:                ISO 3166 country codes
<li><a href="#Licenses">Licenses</a>:                     Licenses

<li><a href="#Program-Index">Program Index</a>:                Index of Programs
<li><a href="#Option-Index">Option Index</a>:                 Index of Command-Line Options
<li><a href="#Variable-Index">Variable Index</a>:               Index of Environment Variables
<li><a href="#PO-Mode-Index">PO Mode Index</a>:                Index of Emacs PO Mode Commands
<li><a href="#Autoconf-Macro-Index">Autoconf Macro Index</a>:         Index of Autoconf Macros
<li><a href="#Index">Index</a>:                        General Index

</li></ul>
<p>--- The Detailed Node Listing ---

<p>Introduction

</p>
<ul class="menu">
<li><a href="#Why">Why</a>:                          The Purpose of GNU <code>gettext</code>
<li><a href="#Concepts">Concepts</a>:                     I18n, L10n, and Such
<li><a href="#Aspects">Aspects</a>:                      Aspects in Native Language Support
<li><a href="#Files">Files</a>:                        Files Conveying Translations
<li><a href="#Overview">Overview</a>:                     Overview of GNU <code>gettext</code>

</li></ul>
<p>The User's View

</p>
<ul class="menu">
<li><a href="#System-Installation">System Installation</a>:          Questions During Operating System Installation
<li><a href="#Setting-the-GUI-Locale">Setting the GUI Locale</a>:       How to Specify the Locale Used by GUI Programs
<li><a href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>:     How to Specify the Locale According to POSIX
<li><a href="#Installing-Localizations">Installing Localizations</a>:     How to Install Additional Translations

</li></ul>
<p>Setting the POSIX Locale

</p>
<ul class="menu">
<li><a href="#Locale-Names">Locale Names</a>:                 How a Locale Specification Looks Like
<li><a href="#Locale-Environment-Variables">Locale Environment Variables</a>:  Which Environment Variable Specfies What
<li><a href="#The-LANGUAGE-variable">The LANGUAGE variable</a>:        How to Specify a Priority List of Languages

</li></ul>
<p>Preparing Program Sources

</p>
<ul class="menu">
<li><a href="#Importing">Importing</a>:                    Importing the <code>gettext</code> declaration
<li><a href="#Triggering">Triggering</a>:                   Triggering <code>gettext</code> Operations
<li><a href="#Preparing-Strings">Preparing Strings</a>:            Preparing Translatable Strings
<li><a href="#Mark-Keywords">Mark Keywords</a>:                How Marks Appear in Sources
<li><a href="#Marking">Marking</a>:                      Marking Translatable Strings
<li><a href="#c_002dformat-Flag">c-format Flag</a>:                Telling something about the following string
<li><a href="#Special-cases">Special cases</a>:                Special Cases of Translatable Strings
<li><a href="#Bug-Report-Address">Bug Report Address</a>:           Letting Users Report Translation Bugs
<li><a href="#Names">Names</a>:                        Marking Proper Names for Translation
<li><a href="#Libraries">Libraries</a>:                    Preparing Library Sources

</li></ul>
<p>Making the PO Template File

</p>
<ul class="menu">
<li><a href="#xgettext-Invocation">xgettext Invocation</a>:          Invoking the <code>xgettext</code> Program

</li></ul>
<p>Creating a New PO File

</p>
<ul class="menu">
<li><a href="#msginit-Invocation">msginit Invocation</a>:           Invoking the <code>msginit</code> Program
<li><a href="#Header-Entry">Header Entry</a>:                 Filling in the Header Entry

</li></ul>
<p>Updating Existing PO Files

</p>
<ul class="menu">
<li><a href="#msgmerge-Invocation">msgmerge Invocation</a>:          Invoking the <code>msgmerge</code> Program

</li></ul>
<p>Editing PO Files

</p>
<ul class="menu">
<li><a href="#KBabel">KBabel</a>:                       KDE's PO File Editor
<li><a href="#Gtranslator">Gtranslator</a>:                  GNOME's PO File Editor
<li><a href="#PO-Mode">PO Mode</a>:                      Emacs's PO File Editor
<li><a href="#Compendium">Compendium</a>:                   Using Translation Compendia

</li></ul>
<p>Emacs's PO File Editor

</p>
<ul class="menu">
<li><a href="#Installation">Installation</a>:                 Completing GNU <code>gettext</code> Installation
<li><a href="#Main-PO-Commands">Main PO Commands</a>:             Main Commands
<li><a href="#Entry-Positioning">Entry Positioning</a>:            Entry Positioning
<li><a href="#Normalizing">Normalizing</a>:                  Normalizing Strings in Entries
<li><a href="#Translated-Entries">Translated Entries</a>:           Translated Entries
<li><a href="#Fuzzy-Entries">Fuzzy Entries</a>:                Fuzzy Entries
<li><a href="#Untranslated-Entries">Untranslated Entries</a>:         Untranslated Entries
<li><a href="#Obsolete-Entries">Obsolete Entries</a>:             Obsolete Entries
<li><a href="#Modifying-Translations">Modifying Translations</a>:       Modifying Translations
<li><a href="#Modifying-Comments">Modifying Comments</a>:           Modifying Comments
<li><a href="#Subedit">Subedit</a>:                      Mode for Editing Translations
<li><a href="#C-Sources-Context">C Sources Context</a>:            C Sources Context
<li><a href="#Auxiliary">Auxiliary</a>:                    Consulting Auxiliary PO Files

</li></ul>
<p>Using Translation Compendia

</p>
<ul class="menu">
<li><a href="#Creating-Compendia">Creating Compendia</a>:           Merging translations for later use
<li><a href="#Using-Compendia">Using Compendia</a>:              Using older translations if they fit

</li></ul>
<p>Manipulating PO Files

</p>
<ul class="menu">
<li><a href="#msgcat-Invocation">msgcat Invocation</a>:            Invoking the <code>msgcat</code> Program
<li><a href="#msgconv-Invocation">msgconv Invocation</a>:           Invoking the <code>msgconv</code> Program
<li><a href="#msggrep-Invocation">msggrep Invocation</a>:           Invoking the <code>msggrep</code> Program
<li><a href="#msgfilter-Invocation">msgfilter Invocation</a>:         Invoking the <code>msgfilter</code> Program
<li><a href="#msguniq-Invocation">msguniq Invocation</a>:           Invoking the <code>msguniq</code> Program
<li><a href="#msgcomm-Invocation">msgcomm Invocation</a>:           Invoking the <code>msgcomm</code> Program
<li><a href="#msgcmp-Invocation">msgcmp Invocation</a>:            Invoking the <code>msgcmp</code> Program
<li><a href="#msgattrib-Invocation">msgattrib Invocation</a>:         Invoking the <code>msgattrib</code> Program
<li><a href="#msgen-Invocation">msgen Invocation</a>:             Invoking the <code>msgen</code> Program
<li><a href="#msgexec-Invocation">msgexec Invocation</a>:           Invoking the <code>msgexec</code> Program
<li><a href="#Colorizing">Colorizing</a>:                   Highlighting parts of PO files
<li><a href="#libgettextpo">libgettextpo</a>:                 Writing your own programs that process PO files

</li></ul>
<p>Highlighting parts of PO files

</p>
<ul class="menu">
<li><a href="#The-_002d_002dcolor-option">The --color option</a>:           Triggering colorized output
<li><a href="#The-TERM-variable">The TERM variable</a>:            The environment variable <code>TERM</code>
<li><a href="#The-_002d_002dstyle-option">The --style option</a>:           The <code>--style</code> option
<li><a href="#Style-rules">Style rules</a>:                  Style rules for PO files
<li><a href="#Customizing-less">Customizing less</a>:             Customizing <code>less</code> for viewing PO files

</li></ul>
<p>Producing Binary MO Files

</p>
<ul class="menu">
<li><a href="#msgfmt-Invocation">msgfmt Invocation</a>:            Invoking the <code>msgfmt</code> Program
<li><a href="#msgunfmt-Invocation">msgunfmt Invocation</a>:          Invoking the <code>msgunfmt</code> Program
<li><a href="#MO-Files">MO Files</a>:                     The Format of GNU MO Files

</li></ul>
<p>The Programmer's View

</p>
<ul class="menu">
<li><a href="#catgets">catgets</a>:                      About <code>catgets</code>
<li><a href="#gettext">gettext</a>:                      About <code>gettext</code>
<li><a href="#Comparison">Comparison</a>:                   Comparing the two interfaces
<li><a href="#Using-libintl_002ea">Using libintl.a</a>:              Using libintl.a in own programs
<li><a href="#gettext-grok">gettext grok</a>:                 Being a <code>gettext</code> grok
<li><a href="#Temp-Programmers">Temp Programmers</a>:             Temporary Notes for the Programmers Chapter

</li></ul>
<p>About <code>catgets</code>

</p>
<ul class="menu">
<li><a href="#Interface-to-catgets">Interface to catgets</a>:         The interface
<li><a href="#Problems-with-catgets">Problems with catgets</a>:        Problems with the <code>catgets</code> interface?!

</li></ul>
<p>About <code>gettext</code>

</p>
<ul class="menu">
<li><a href="#Interface-to-gettext">Interface to gettext</a>:         The interface
<li><a href="#Ambiguities">Ambiguities</a>:                  Solving ambiguities
<li><a href="#Locating-Catalogs">Locating Catalogs</a>:            Locating message catalog files
<li><a href="#Charset-conversion">Charset conversion</a>:           How to request conversion to Unicode
<li><a href="#Contexts">Contexts</a>:                     Solving ambiguities in GUI programs
<li><a href="#Plural-forms">Plural forms</a>:                 Additional functions for handling plurals
<li><a href="#Optimized-gettext">Optimized gettext</a>:            Optimization of the *gettext functions

</li></ul>
<p>Temporary Notes for the Programmers Chapter

</p>
<ul class="menu">
<li><a href="#Temp-Implementations">Temp Implementations</a>:         Temporary - Two Possible Implementations
<li><a href="#Temp-catgets">Temp catgets</a>:                 Temporary - About <code>catgets</code>
<li><a href="#Temp-WSI">Temp WSI</a>:                     Temporary - Why a single implementation
<li><a href="#Temp-Notes">Temp Notes</a>:                   Temporary - Notes

</li></ul>
<p>The Translator's View

</p>
<ul class="menu">
<li><a href="#Trans-Intro-0">Trans Intro 0</a>:                Introduction 0
<li><a href="#Trans-Intro-1">Trans Intro 1</a>:                Introduction 1
<li><a href="#Discussions">Discussions</a>:                  Discussions
<li><a href="#Organization">Organization</a>:                 Organization
<li><a href="#Information-Flow">Information Flow</a>:             Information Flow
<li><a href="#Translating-plural-forms">Translating plural forms</a>:     How to fill in <code>msgstr[0]</code>, <code>msgstr[1]</code>
<li><a href="#Prioritizing-messages">Prioritizing messages</a>:        How to find which messages to translate first

</li></ul>
<p>Organization

</p>
<ul class="menu">
<li><a href="#Central-Coordination">Central Coordination</a>:         Central Coordination
<li><a href="#National-Teams">National Teams</a>:               National Teams
<li><a href="#Mailing-Lists">Mailing Lists</a>:                Mailing Lists

</li></ul>
<p>National Teams

</p>
<ul class="menu">
<li><a href="#Sub_002dCultures">Sub-Cultures</a>:                 Sub-Cultures
<li><a href="#Organizational-Ideas">Organizational Ideas</a>:         Organizational Ideas

</li></ul>
<p>The Maintainer's View

</p>
<ul class="menu">
<li><a href="#Flat-and-Non_002dFlat">Flat and Non-Flat</a>:            Flat or Non-Flat Directory Structures
<li><a href="#Prerequisites">Prerequisites</a>:                Prerequisite Works
<li><a href="#gettextize-Invocation">gettextize Invocation</a>:        Invoking the <code>gettextize</code> Program
<li><a href="#Adjusting-Files">Adjusting Files</a>:              Files You Must Create or Alter
<li><a href="#autoconf-macros">autoconf macros</a>:              Autoconf macros for use in <samp><span class="file">configure.ac</span></samp>
<li><a href="#CVS-Issues">CVS Issues</a>:                   Integrating with CVS
<li><a href="#Release-Management">Release Management</a>:           Creating a Distribution Tarball

</li></ul>
<p>Files You Must Create or Alter

</p>
<ul class="menu">
<li><a href="#po_002fPOTFILES_002ein">po/POTFILES.in</a>:               <samp><span class="file">POTFILES.in</span></samp> in <samp><span class="file">po/</span></samp>
<li><a href="#po_002fLINGUAS">po/LINGUAS</a>:                   <samp><span class="file">LINGUAS</span></samp> in <samp><span class="file">po/</span></samp>
<li><a href="#po_002fMakevars">po/Makevars</a>:                  <samp><span class="file">Makevars</span></samp> in <samp><span class="file">po/</span></samp>
<li><a href="#po_002fRules_002d_002a">po/Rules-*</a>:                   Extending <samp><span class="file">Makefile</span></samp> in <samp><span class="file">po/</span></samp>
<li><a href="#configure_002eac">configure.ac</a>:                 <samp><span class="file">configure.ac</span></samp> at top level
<li><a href="#config_002eguess">config.guess</a>:                 <samp><span class="file">config.guess</span></samp>, <samp><span class="file">config.sub</span></samp> at top level
<li><a href="#mkinstalldirs">mkinstalldirs</a>:                <samp><span class="file">mkinstalldirs</span></samp> at top level
<li><a href="#aclocal">aclocal</a>:                      <samp><span class="file">aclocal.m4</span></samp> at top level
<li><a href="#acconfig">acconfig</a>:                     <samp><span class="file">acconfig.h</span></samp> at top level
<li><a href="#config_002eh_002ein">config.h.in</a>:                  <samp><span class="file">config.h.in</span></samp> at top level
<li><a href="#Makefile">Makefile</a>:                     <samp><span class="file">Makefile.in</span></samp> at top level
<li><a href="#src_002fMakefile">src/Makefile</a>:                 <samp><span class="file">Makefile.in</span></samp> in <samp><span class="file">src/</span></samp>
<li><a href="#lib_002fgettext_002eh">lib/gettext.h</a>:                <samp><span class="file">gettext.h</span></samp> in <samp><span class="file">lib/</span></samp>

</li></ul>
<p>Autoconf macros for use in <samp><span class="file">configure.ac</span></samp>

</p>
<ul class="menu">
<li><a href="#AM_005fGNU_005fGETTEXT">AM_GNU_GETTEXT</a>:               AM_GNU_GETTEXT in <samp><span class="file">gettext.m4</span></samp>
<li><a href="#AM_005fGNU_005fGETTEXT_005fVERSION">AM_GNU_GETTEXT_VERSION</a>:       AM_GNU_GETTEXT_VERSION in <samp><span class="file">gettext.m4</span></samp>
<li><a href="#AM_005fGNU_005fGETTEXT_005fNEED">AM_GNU_GETTEXT_NEED</a>:          AM_GNU_GETTEXT_NEED in <samp><span class="file">gettext.m4</span></samp>
<li><a href="#AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR">AM_GNU_GETTEXT_INTL_SUBDIR</a>:   AM_GNU_GETTEXT_INTL_SUBDIR in <samp><span class="file">intldir.m4</span></samp>
<li><a href="#AM_005fPO_005fSUBDIRS">AM_PO_SUBDIRS</a>:                AM_PO_SUBDIRS in <samp><span class="file">po.m4</span></samp>
<li><a href="#AM_005fICONV">AM_ICONV</a>:                     AM_ICONV in <samp><span class="file">iconv.m4</span></samp>

</li></ul>
<p>Integrating with CVS

</p>
<ul class="menu">
<li><a href="#Distributed-CVS">Distributed CVS</a>:              Avoiding version mismatch in distributed development
<li><a href="#Files-under-CVS">Files under CVS</a>:              Files to put under CVS version control
<li><a href="#autopoint-Invocation">autopoint Invocation</a>:         Invoking the <code>autopoint</code> Program

</li></ul>
<p>Other Programming Languages

</p>
<ul class="menu">
<li><a href="#Language-Implementors">Language Implementors</a>:        The Language Implementor's View
<li><a href="#Programmers-for-other-Languages">Programmers for other Languages</a>:   The Programmer's View
<li><a href="#Translators-for-other-Languages">Translators for other Languages</a>:   The Translator's View
<li><a href="#Maintainers-for-other-Languages">Maintainers for other Languages</a>:   The Maintainer's View
<li><a href="#List-of-Programming-Languages">List of Programming Languages</a>:   Individual Programming Languages
<li><a href="#List-of-Data-Formats">List of Data Formats</a>:         Internationalizable Data

</li></ul>
<p>The Translator's View

</p>
<ul class="menu">
<li><a href="#c_002dformat">c-format</a>:                     C Format Strings
<li><a href="#objc_002dformat">objc-format</a>:                  Objective C Format Strings
<li><a href="#sh_002dformat">sh-format</a>:                    Shell Format Strings
<li><a href="#python_002dformat">python-format</a>:                Python Format Strings
<li><a href="#lisp_002dformat">lisp-format</a>:                  Lisp Format Strings
<li><a href="#elisp_002dformat">elisp-format</a>:                 Emacs Lisp Format Strings
<li><a href="#librep_002dformat">librep-format</a>:                librep Format Strings
<li><a href="#scheme_002dformat">scheme-format</a>:                Scheme Format Strings
<li><a href="#smalltalk_002dformat">smalltalk-format</a>:             Smalltalk Format Strings
<li><a href="#java_002dformat">java-format</a>:                  Java Format Strings
<li><a href="#csharp_002dformat">csharp-format</a>:                C# Format Strings
<li><a href="#awk_002dformat">awk-format</a>:                   awk Format Strings
<li><a href="#object_002dpascal_002dformat">object-pascal-format</a>:         Object Pascal Format Strings
<li><a href="#ycp_002dformat">ycp-format</a>:                   YCP Format Strings
<li><a href="#tcl_002dformat">tcl-format</a>:                   Tcl Format Strings
<li><a href="#perl_002dformat">perl-format</a>:                  Perl Format Strings
<li><a href="#php_002dformat">php-format</a>:                   PHP Format Strings
<li><a href="#gcc_002dinternal_002dformat">gcc-internal-format</a>:          GCC internal Format Strings
<li><a href="#gfc_002dinternal_002dformat">gfc-internal-format</a>:          GFC internal Format Strings
<li><a href="#qt_002dformat">qt-format</a>:                    Qt Format Strings
<li><a href="#qt_002dplural_002dformat">qt-plural-format</a>:             Qt Plural Format Strings
<li><a href="#kde_002dformat">kde-format</a>:                   KDE Format Strings
<li><a href="#boost_002dformat">boost-format</a>:                 Boost Format Strings

</li></ul>
<p>Individual Programming Languages

</p>
<ul class="menu">
<li><a href="#C">C</a>:                            C, C++, Objective C
<li><a href="#sh">sh</a>:                           sh - Shell Script
<li><a href="#bash">bash</a>:                         bash - Bourne-Again Shell Script
<li><a href="#Python">Python</a>:                       Python
<li><a href="#Common-Lisp">Common Lisp</a>:                  GNU clisp - Common Lisp
<li><a href="#clisp-C">clisp C</a>:                      GNU clisp C sources
<li><a href="#Emacs-Lisp">Emacs Lisp</a>:                   Emacs Lisp
<li><a href="#librep">librep</a>:                       librep
<li><a href="#Scheme">Scheme</a>:                       GNU guile - Scheme
<li><a href="#Smalltalk">Smalltalk</a>:                    GNU Smalltalk
<li><a href="#Java">Java</a>:                         Java
<li><a href="#C_0023">C#</a>:                           C#
<li><a href="#gawk">gawk</a>:                         GNU awk
<li><a href="#Pascal">Pascal</a>:                       Pascal - Free Pascal Compiler
<li><a href="#wxWidgets">wxWidgets</a>:                    wxWidgets library
<li><a href="#YCP">YCP</a>:                          YCP - YaST2 scripting language
<li><a href="#Tcl">Tcl</a>:                          Tcl - Tk's scripting language
<li><a href="#Perl">Perl</a>:                         Perl
<li><a href="#PHP">PHP</a>:                          PHP Hypertext Preprocessor
<li><a href="#Pike">Pike</a>:                         Pike
<li><a href="#GCC_002dsource">GCC-source</a>:                   GNU Compiler Collection sources

</li></ul>
<p>sh - Shell Script

</p>
<ul class="menu">
<li><a href="#Preparing-Shell-Scripts">Preparing Shell Scripts</a>:      Preparing Shell Scripts for Internationalization
<li><a href="#gettext_002esh">gettext.sh</a>:                   Contents of <code>gettext.sh</code>
<li><a href="#gettext-Invocation">gettext Invocation</a>:           Invoking the <code>gettext</code> program
<li><a href="#ngettext-Invocation">ngettext Invocation</a>:          Invoking the <code>ngettext</code> program
<li><a href="#envsubst-Invocation">envsubst Invocation</a>:          Invoking the <code>envsubst</code> program
<li><a href="#eval_005fgettext-Invocation">eval_gettext Invocation</a>:      Invoking the <code>eval_gettext</code> function
<li><a href="#eval_005fngettext-Invocation">eval_ngettext Invocation</a>:     Invoking the <code>eval_ngettext</code> function

</li></ul>
<p>Perl

</p>
<ul class="menu">
<li><a href="#General-Problems">General Problems</a>:             General Problems Parsing Perl Code
<li><a href="#Default-Keywords">Default Keywords</a>:             Which Keywords Will xgettext Look For? 
<li><a href="#Special-Keywords">Special Keywords</a>:             How to Extract Hash Keys
<li><a href="#Quote_002dlike-Expressions">Quote-like Expressions</a>:       What are Strings And Quote-like Expressions? 
<li><a href="#Interpolation-I">Interpolation I</a>:              Invalid String Interpolation
<li><a href="#Interpolation-II">Interpolation II</a>:             Valid String Interpolation
<li><a href="#Parentheses">Parentheses</a>:                  When To Use Parentheses
<li><a href="#Long-Lines">Long Lines</a>:                   How To Grok with Long Lines
<li><a href="#Perl-Pitfalls">Perl Pitfalls</a>:                Bugs, Pitfalls, and Things That Do Not Work

</li></ul>
<p>Internationalizable Data

</p>
<ul class="menu">
<li><a href="#POT">POT</a>:                          POT - Portable Object Template
<li><a href="#RST">RST</a>:                          Resource String Table
<li><a href="#Glade">Glade</a>:                        Glade - GNOME user interface description

</li></ul>
<p>Concluding Remarks

</p>
<ul class="menu">
<li><a href="#History">History</a>:                      History of GNU <code>gettext</code>
<li><a href="#References">References</a>:                   Related Readings

</li></ul>
<p>Language Codes

</p>
<ul class="menu">
<li><a href="#Usual-Language-Codes">Usual Language Codes</a>:         Two-letter ISO 639 language codes
<li><a href="#Rare-Language-Codes">Rare Language Codes</a>:          Three-letter ISO 639 language codes

</li></ul>
<p>Licenses

</p>
<ul class="menu">
<li><a href="#GNU-GPL">GNU GPL</a>:                      GNU General Public License
<li><a href="#GNU-LGPL">GNU LGPL</a>:                     GNU Lesser General Public License
<li><a href="#GNU-FDL">GNU FDL</a>:                      GNU Free Documentation License

   </ul>

<div class="node">
<a name="Introduction"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Users">Users</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Top">Top</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">1 Introduction</h2>

   <p>This chapter explains the goals sought in the creation
of GNU <code>gettext</code> and the free Translation Project. 
Then, it explains a few broad concepts around
Native Language Support, and positions message translation with regard
to other aspects of national and cultural variance, as they apply
to programs.  It also surveys those files used to convey the
translations.  It explains how the various tools interact in the
initial generation of these files, and later, how the maintenance
cycle should usually operate.

   <p><a name="index-sex-1"></a><a name="index-he_002c-she_002c-and-they-2"></a><a name="index-she_002c-he_002c-and-they-3"></a>In this manual, we use <em>he</em> when speaking of the programmer or
maintainer, <em>she</em> when speaking of the translator, and <em>they</em>
when speaking of the installers or end users of the translated program. 
This is only a convenience for clarifying the documentation.  It is
<em>absolutely</em> not meant to imply that some roles are more appropriate
to males or females.  Besides, as you might guess, GNU <code>gettext</code>
is meant to be useful for people using computers, whatever their sex,
race, religion or nationality!

   <p><a name="index-bug-report-address-4"></a>Please send suggestions and corrections to:

<pre class="example">     <span class="roman">Internet address:</span>
         bug-gnu-gettext@gnu.org
</pre>
   <p class="noindent">Please include the manual's edition number and update date in your messages.

<ul class="menu">
<li><a accesskey="1" href="#Why">Why</a>:                          The Purpose of GNU <code>gettext</code>
<li><a accesskey="2" href="#Concepts">Concepts</a>:                     I18n, L10n, and Such
<li><a accesskey="3" href="#Aspects">Aspects</a>:                      Aspects in Native Language Support
<li><a accesskey="4" href="#Files">Files</a>:                        Files Conveying Translations
<li><a accesskey="5" href="#Overview">Overview</a>:                     Overview of GNU <code>gettext</code>
</ul>

<div class="node">
<a name="Why"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Concepts">Concepts</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Introduction">Introduction</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Introduction">Introduction</a>

</div>

<h3 class="section">1.1 The Purpose of GNU <code>gettext</code></h3>

   <p>Usually, programs are written and documented in English, and use
English at execution time to interact with users.  This is true
not only of GNU software, but also of a great deal of proprietary
and free software.  Using a common language is quite handy for
communication between developers, maintainers and users from all
countries.  On the other hand, most people are less comfortable with
English than with their own native language, and would prefer to
use their mother tongue for day to day's work, as far as possible. 
Many would simply <em>love</em> to see their computer screen showing
a lot less of English, and far more of their own language.

   <p><a name="index-Translation-Project-5"></a>However, to many people, this dream might appear so far fetched that
they may believe it is not even worth spending time thinking about
it.  They have no confidence at all that the dream might ever
become true.  Yet some have not lost hope, and have organized themselves. 
The Translation Project is a formalization of this hope into a
workable structure, which has a good chance to get all of us nearer
the achievement of a truly multi-lingual set of programs.

   <p>GNU <code>gettext</code> is an important step for the Translation Project,
as it is an asset on which we may build many other steps.  This package
offers to programmers, translators and even users, a well integrated
set of tools and documentation.  Specifically, the GNU <code>gettext</code>
utilities are a set of tools that provides a framework within which
other free packages may produce multi-lingual messages.  These tools
include

     <ul>
<li>A set of conventions about how programs should be written to support
message catalogs.

     <li>A directory and file naming organization for the message catalogs
themselves.

     <li>A runtime library supporting the retrieval of translated messages.

     <li>A few stand-alone programs to massage in various ways the sets of
translatable strings, or already translated strings.

     <li>A library supporting the parsing and creation of files containing
translated messages.

     <li>A special mode for Emacs<a rel="footnote" href="#fn-1" name="fnd-1"><sup>1</sup></a> which helps preparing these sets
and bringing them up to date. 
</ul>

   <p>GNU <code>gettext</code> is designed to minimize the impact of
internationalization on program sources, keeping this impact as small
and hardly noticeable as possible.  Internationalization has better
chances of succeeding if it is very light weighted, or at least,
appear to be so, when looking at program sources.

   <p>The Translation Project also uses the GNU <code>gettext</code> distribution
as a vehicle for documenting its structure and methods.  This goes
beyond the strict technicalities of documenting the GNU <code>gettext</code>
proper.  By so doing, translators will find in a single place, as
far as possible, all they need to know for properly doing their
translating work.  Also, this supplemental documentation might also
help programmers, and even curious users, in understanding how GNU
<code>gettext</code> is related to the remainder of the Translation
Project, and consequently, have a glimpse at the <em>big picture</em>.

<div class="node">
<a name="Concepts"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Aspects">Aspects</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Why">Why</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Introduction">Introduction</a>

</div>

<h3 class="section">1.2 I18n, L10n, and Such</h3>

   <p><a name="index-i18n-6"></a><a name="index-l10n-7"></a>Two long words appear all the time when we discuss support of native
language in programs, and these words have a precise meaning, worth
being explained here, once and for all in this document.  The words are
<em>internationalization</em> and <em>localization</em>.  Many people,
tired of writing these long words over and over again, took the
habit of writing <dfn>i18n</dfn> and <dfn>l10n</dfn> instead, quoting the first
and last letter of each word, and replacing the run of intermediate
letters by a number merely telling how many such letters there are. 
But in this manual, in the sake of clarity, we will patiently write
the names in full, each time<small class="dots">...</small>

   <p><a name="index-internationalization-8"></a>By <dfn>internationalization</dfn>, one refers to the operation by which a
program, or a set of programs turned into a package, is made aware of and
able to support multiple languages.  This is a generalization process,
by which the programs are untied from calling only English strings or
other English specific habits, and connected to generic ways of doing
the same, instead.  Program developers may use various techniques to
internationalize their programs.  Some of these have been standardized. 
GNU <code>gettext</code> offers one of these standards.  See <a href="#Programmers">Programmers</a>.

   <p><a name="index-localization-9"></a>By <dfn>localization</dfn>, one means the operation by which, in a set
of programs already internationalized, one gives the program all
needed information so that it can adapt itself to handle its input
and output in a fashion which is correct for some native language and
cultural habits.  This is a particularisation process, by which generic
methods already implemented in an internationalized program are used
in specific ways.  The programming environment puts several functions
to the programmers disposal which allow this runtime configuration. 
The formal description of specific set of cultural habits for some
country, together with all associated translations targeted to the
same native language, is called the <dfn>locale</dfn> for this language
or country.  Users achieve localization of programs by setting proper
values to special environment variables, prior to executing those
programs, identifying which locale should be used.

   <p>In fact, locale message support is only one component of the cultural
data that makes up a particular locale.  There are a whole host of
routines and functions provided to aid programmers in developing
internationalized software and which allow them to access the data
stored in a particular locale.  When someone presently refers to a
particular locale, they are obviously referring to the data stored
within that particular locale.  Similarly, if a programmer is referring
to &ldquo;accessing the locale routines&rdquo;, they are referring to the
complete suite of routines that access all of the locale's information.

   <p><a name="index-NLS-10"></a><a name="index-Native-Language-Support-11"></a><a name="index-Natural-Language-Support-12"></a>One uses the expression <dfn>Native Language Support</dfn>, or merely NLS,
for speaking of the overall activity or feature encompassing both
internationalization and localization, allowing for multi-lingual
interactions in a program.  In a nutshell, one could say that
internationalization is the operation by which further localizations
are made possible.

   <p>Also, very roughly said, when it comes to multi-lingual messages,
internationalization is usually taken care of by programmers, and
localization is usually taken care of by translators.

<div class="node">
<a name="Aspects"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Files">Files</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Concepts">Concepts</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Introduction">Introduction</a>

</div>

<h3 class="section">1.3 Aspects in Native Language Support</h3>

   <p><a name="index-translation-aspects-13"></a>For a totally multi-lingual distribution, there are many things to
translate beyond output messages.

     <ul>
<li>As of today, GNU <code>gettext</code> offers a complete toolset for
translating messages output by C programs.  Perl scripts and shell
scripts will also need to be translated.  Even if there are today some hooks
by which this can be done, these hooks are not integrated as well as they
should be.

     <li>Some programs, like <code>autoconf</code> or <code>bison</code>, are able
to produce other programs (or scripts).  Even if the generating
programs themselves are internationalized, the generated programs they
produce may need internationalization on their own, and this indirect
internationalization could be automated right from the generating
program.  In fact, quite usually, generating and generated programs
could be internationalized independently, as the effort needed is
fairly orthogonal.

     <li>A few programs include textual tables which might need translation
themselves, independently of the strings contained in the program
itself.  For example, RFC&nbsp;1345<!-- /@w --> gives an English description for each
character which the <code>recode</code> program is able to reconstruct at execution. 
Since these descriptions are extracted from the RFC by mechanical means,
translating them properly would require a prior translation of the RFC
itself.

     <li>Almost all programs accept options, which are often worded out so to
be descriptive for the English readers; one might want to consider
offering translated versions for program options as well.

     <li>Many programs read, interpret, compile, or are somewhat driven by
input files which are texts containing keywords, identifiers, or
replies which are inherently translatable.  For example, one may want
<code>gcc</code> to allow diacriticized characters in identifiers or use
translated keywords; &lsquo;<samp><span class="samp">rm -i</span></samp>&rsquo; might accept something else than
&lsquo;<samp><span class="samp">y</span></samp>&rsquo; or &lsquo;<samp><span class="samp">n</span></samp>&rsquo; for replies, etc.  Even if the program will
eventually make most of its output in the foreign languages, one has
to decide whether the input syntax, option values, etc., are to be
localized or not.

     <li>The manual accompanying a package, as well as all documentation files
in the distribution, could surely be translated, too.  Translating a
manual, with the intent of later keeping up with updates, is a major
undertaking in itself, generally.

   </ul>

   <p>As we already stressed, translation is only one aspect of locales. 
Other internationalization aspects are system services and are handled
in GNU <code>libc</code>.  There
are many attributes that are needed to define a country's cultural
conventions.  These attributes include beside the country's native
language, the formatting of the date and time, the representation of
numbers, the symbols for currency, etc.  These local <dfn>rules</dfn> are
termed the country's locale.  The locale represents the knowledge
needed to support the country's native attributes.

   <p><a name="index-locale-categories-14"></a>There are a few major areas which may vary between countries and
hence, define what a locale must describe.  The following list helps
putting multi-lingual messages into the proper context of other tasks
related to locales.  See the GNU <code>libc</code> manual for details.

     <dl>
<dt><em>Characters and Codesets</em><dd><a name="index-codeset-15"></a><a name="index-encoding-16"></a><a name="index-character-encoding-17"></a><a name="index-locale-category_002c-LC_005fCTYPE-18"></a>
The codeset most commonly used through out the USA and most English
speaking parts of the world is the ASCII codeset.  However, there are
many characters needed by various locales that are not found within
this codeset.  The 8-bit ISO&nbsp;8859-1<!-- /@w --> code set has most of the special
characters needed to handle the major European languages.  However, in
many cases, choosing ISO&nbsp;8859-1<!-- /@w --> is nevertheless not adequate: it
doesn't even handle the major European currency.  Hence each locale
will need to specify which codeset they need to use and will need
to have the appropriate character handling routines to cope with
the codeset.

     <br><dt><em>Currency</em><dd><a name="index-currency-symbols-19"></a><a name="index-locale-category_002c-LC_005fMONETARY-20"></a>
The symbols used vary from country to country as does the position
used by the symbol.  Software needs to be able to transparently
display currency figures in the native mode for each locale.

     <br><dt><em>Dates</em><dd><a name="index-date-format-21"></a><a name="index-locale-category_002c-LC_005fTIME-22"></a>
The format of date varies between locales.  For example, Christmas day
in 1994 is written as 12/25/94 in the USA and as 25/12/94 in Australia. 
Other countries might use ISO&nbsp;8601<!-- /@w --> dates, etc.

     <p>Time of the day may be noted as <var>hh</var>:<var>mm</var>, <var>hh</var>.<var>mm</var>,
or otherwise.  Some locales require time to be specified in 24-hour
mode rather than as AM or PM.  Further, the nature and yearly extent
of the Daylight Saving correction vary widely between countries.

     <br><dt><em>Numbers</em><dd><a name="index-number-format-23"></a><a name="index-locale-category_002c-LC_005fNUMERIC-24"></a>
Numbers can be represented differently in different locales. 
For example, the following numbers are all written correctly for
their respective locales:

     <pre class="example">          12,345.67       English
          12.345,67       German
           12345,67       French
          1,2345.67       Asia
</pre>
     <p>Some programs could go further and use different unit systems, like
English units or Metric units, or even take into account variants
about how numbers are spelled in full.

     <br><dt><em>Messages</em><dd><a name="index-messages-25"></a><a name="index-locale-category_002c-LC_005fMESSAGES-26"></a>
The most obvious area is the language support within a locale.  This is
where GNU <code>gettext</code> provides the means for developers and users to
easily change the language that the software uses to communicate to
the user.

   </dl>

   <p><a name="index-locale-categories-27"></a>These areas of cultural conventions are called <em>locale categories</em>. 
It is an unfortunate term; <em>locale aspects</em> or <em>locale feature
categories</em> would be a better term, because each &ldquo;locale category&rdquo;
describes an area or task that requires localization.  The concrete data
that describes the cultural conventions for such an area and for a particular
culture is also called a <em>locale category</em>.  In this sense, a locale
is composed of several locale categories: the locale category describing
the codeset, the locale category describing the formatting of numbers,
the locale category containing the translated messages, and so on.

   <p><a name="index-Linux-28"></a>Components of locale outside of message handling are standardized in
the ISO C standard and the POSIX:2001 standard (also known as the SUSV3
specification).  GNU <code>libc</code>
fully implements this, and most other modern systems provide a more
or less reasonable support for at least some of the missing components.

<div class="node">
<a name="Files"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Overview">Overview</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Aspects">Aspects</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Introduction">Introduction</a>

</div>

<h3 class="section">1.4 Files Conveying Translations</h3>

   <p><a name="index-files_002c-_0040file_007b_002epo_007d-and-_0040file_007b_002emo_007d-29"></a>The letters PO in <samp><span class="file">.po</span></samp> files means Portable Object, to
distinguish it from <samp><span class="file">.mo</span></samp> files, where MO stands for Machine
Object.  This paradigm, as well as the PO file format, is inspired
by the NLS standard developed by Uniforum, and first implemented by
Sun in their Solaris system.

   <p>PO files are meant to be read and edited by humans, and associate each
original, translatable string of a given package with its translation
in a particular target language.  A single PO file is dedicated to
a single target language.  If a package supports many languages,
there is one such PO file per language supported, and each package
has its own set of PO files.  These PO files are best created by
the <code>xgettext</code> program, and later updated or refreshed through
the <code>msgmerge</code> program.  Program <code>xgettext</code> extracts all
marked messages from a set of C files and initializes a PO file with
empty translations.  Program <code>msgmerge</code> takes care of adjusting
PO files between releases of the corresponding sources, commenting
obsolete entries, initializing new ones, and updating all source
line references.  Files ending with <samp><span class="file">.pot</span></samp> are kind of base
translation files found in distributions, in PO file format.

   <p>MO files are meant to be read by programs, and are binary in nature. 
A few systems already offer tools for creating and handling MO files
as part of the Native Language Support coming with the system, but the
format of these MO files is often different from system to system,
and non-portable.  The tools already provided with these systems don't
support all the features of GNU <code>gettext</code>.  Therefore GNU
<code>gettext</code> uses its own format for MO files.  Files ending with
<samp><span class="file">.gmo</span></samp> are really MO files, when it is known that these files use
the GNU format.

<div class="node">
<a name="Overview"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Files">Files</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Introduction">Introduction</a>

</div>

<h3 class="section">1.5 Overview of GNU <code>gettext</code></h3>

   <p><a name="index-overview-of-_0040code_007bgettext_007d-30"></a><a name="index-big-picture-31"></a><a name="index-tutorial-of-_0040code_007bgettext_007d-usage-32"></a>The following diagram summarizes the relation between the files
handled by GNU <code>gettext</code> and the tools acting on these files. 
It is followed by somewhat detailed explanations, which you should
read while keeping an eye on the diagram.  Having a clear understanding
of these interrelations will surely help programmers, translators
and maintainers.

<pre class="example">     Original C Sources ───&gt; Preparation ───&gt; Marked C Sources ───╮
                                                                  │
                   ╭─────────&lt;─── GNU gettext Library             │
     ╭─── make &lt;───┤                                              │
     │             ╰─────────&lt;────────────────────┬───────────────╯
     │                                            │
     │   ╭─────&lt;─── PACKAGE.pot &lt;─── xgettext &lt;───╯   ╭───&lt;─── PO Compendium
     │   │                                            │              ↑
     │   │                                            ╰───╮          │
     │   ╰───╮                                            ├───&gt; PO editor ───╮
     │       ├────&gt; msgmerge ──────&gt; LANG.po ────&gt;────────╯                  │
     │   ╭───╯                                                               │
     │   │                                                                   │
     │   ╰─────────────&lt;───────────────╮                                     │
     │                                 ├─── New LANG.po &lt;────────────────────╯
     │   ╭─── LANG.gmo &lt;─── msgfmt &lt;───╯
     │   │
     │   ╰───&gt; install ───&gt; /.../LANG/PACKAGE.mo ───╮
     │                                              ├───&gt; "Hello world!"
     ╰───────&gt; install ───&gt; /.../bin/PROGRAM ───────╯
</pre>
   <p><a name="index-marking-translatable-strings-33"></a>As a programmer, the first step to bringing GNU <code>gettext</code>
into your package is identifying, right in the C sources, those strings
which are meant to be translatable, and those which are untranslatable. 
This tedious job can be done a little more comfortably using emacs PO
mode, but you can use any means familiar to you for modifying your
C sources.  Beside this some other simple, standard changes are needed to
properly initialize the translation library.  See <a href="#Sources">Sources</a>, for
more information about all this.

   <p>For newly written software the strings of course can and should be
marked while writing it.  The <code>gettext</code> approach makes this
very easy.  Simply put the following lines at the beginning of each file
or in a central header file:

<pre class="example">     #define _(String) (String)
     #define N_(String) String
     #define textdomain(Domain)
     #define bindtextdomain(Package, Directory)
</pre>
   <p class="noindent">Doing this allows you to prepare the sources for internationalization. 
Later when you feel ready for the step to use the <code>gettext</code> library
simply replace these definitions by the following:

   <p><a name="index-include-file-_0040file_007blibintl_002eh_007d-34"></a>
<pre class="example">     #include &lt;libintl.h&gt;
     #define _(String) gettext (String)
     #define gettext_noop(String) String
     #define N_(String) gettext_noop (String)
</pre>
   <p><a name="index-link-with-_0040file_007blibintl_007d-35"></a><a name="index-Linux-36"></a>and link against <samp><span class="file">libintl.a</span></samp> or <samp><span class="file">libintl.so</span></samp>.  Note that on
GNU systems, you don't need to link with <code>libintl</code> because the
<code>gettext</code> library functions are already contained in GNU libc. 
That is all you have to change.

   <p><a name="index-template-PO-file-37"></a><a name="index-files_002c-_0040file_007b_002epot_007d-38"></a>Once the C sources have been modified, the <code>xgettext</code> program
is used to find and extract all translatable strings, and create a
PO template file out of all these.  This <samp><var>package</var><span class="file">.pot</span></samp> file
contains all original program strings.  It has sets of pointers to
exactly where in C sources each string is used.  All translations
are set to empty.  The letter <code>t</code> in <samp><span class="file">.pot</span></samp> marks this as
a Template PO file, not yet oriented towards any particular language. 
See <a href="#xgettext-Invocation">xgettext Invocation</a>, for more details about how one calls the
<code>xgettext</code> program.  If you are <em>really</em> lazy, you might
be interested at working a lot more right away, and preparing the
whole distribution setup (see <a href="#Maintainers">Maintainers</a>).  By doing so, you
spare yourself typing the <code>xgettext</code> command, as <code>make</code>
should now generate the proper things automatically for you!

   <p>The first time through, there is no <samp><var>lang</var><span class="file">.po</span></samp> yet, so the
<code>msgmerge</code> step may be skipped and replaced by a mere copy of
<samp><var>package</var><span class="file">.pot</span></samp> to <samp><var>lang</var><span class="file">.po</span></samp>, where <var>lang</var>
represents the target language.  See <a href="#Creating">Creating</a> for details.

   <p>Then comes the initial translation of messages.  Translation in
itself is a whole matter, still exclusively meant for humans,
and whose complexity far overwhelms the level of this manual. 
Nevertheless, a few hints are given in some other chapter of this
manual (see <a href="#Translators">Translators</a>).  You will also find there indications
about how to contact translating teams, or becoming part of them,
for sharing your translating concerns with others who target the same
native language.

   <p>While adding the translated messages into the <samp><var>lang</var><span class="file">.po</span></samp>
PO file, if you are not using one of the dedicated PO file editors
(see <a href="#Editing">Editing</a>), you are on your own
for ensuring that your efforts fully respect the PO file format, and quoting
conventions (see <a href="#PO-Files">PO Files</a>).  This is surely not an impossible task,
as this is the way many people have handled PO files around 1995. 
On the other hand, by using a PO file editor, most details
of PO file format are taken care of for you, but you have to acquire
some familiarity with PO file editor itself.

   <p>If some common translations have already been saved into a compendium
PO file, translators may use PO mode for initializing untranslated
entries from the compendium, and also save selected translations into
the compendium, updating it (see <a href="#Compendium">Compendium</a>).  Compendium files
are meant to be exchanged between members of a given translation team.

   <p>Programs, or packages of programs, are dynamic in nature: users write
bug reports and suggestion for improvements, maintainers react by
modifying programs in various ways.  The fact that a package has
already been internationalized should not make maintainers shy
of adding new strings, or modifying strings already translated. 
They just do their job the best they can.  For the Translation
Project to work smoothly, it is important that maintainers do not
carry translation concerns on their already loaded shoulders, and that
translators be kept as free as possible of programming concerns.

   <p>The only concern maintainers should have is carefully marking new
strings as translatable, when they should be, and do not otherwise
worry about them being translated, as this will come in proper time. 
Consequently, when programs and their strings are adjusted in various
ways by maintainers, and for matters usually unrelated to translation,
<code>xgettext</code> would construct <samp><var>package</var><span class="file">.pot</span></samp> files which are
evolving over time, so the translations carried by <samp><var>lang</var><span class="file">.po</span></samp>
are slowly fading out of date.

   <p><a name="index-evolution-of-packages-39"></a>It is important for translators (and even maintainers) to understand
that package translation is a continuous process in the lifetime of a
package, and not something which is done once and for all at the start. 
After an initial burst of translation activity for a given package,
interventions are needed once in a while, because here and there,
translated entries become obsolete, and new untranslated entries
appear, needing translation.

   <p>The <code>msgmerge</code> program has the purpose of refreshing an already
existing <samp><var>lang</var><span class="file">.po</span></samp> file, by comparing it with a newer
<samp><var>package</var><span class="file">.pot</span></samp> template file, extracted by <code>xgettext</code>
out of recent C sources.  The refreshing operation adjusts all
references to C source locations for strings, since these strings
move as programs are modified.  Also, <code>msgmerge</code> comments out as
obsolete, in <samp><var>lang</var><span class="file">.po</span></samp>, those already translated entries
which are no longer used in the program sources (see <a href="#Obsolete-Entries">Obsolete Entries</a>).  It finally discovers new strings and inserts them in
the resulting PO file as untranslated entries (see <a href="#Untranslated-Entries">Untranslated Entries</a>).  See <a href="#msgmerge-Invocation">msgmerge Invocation</a>, for more information about what
<code>msgmerge</code> really does.

   <p>Whatever route or means taken, the goal is to obtain an updated
<samp><var>lang</var><span class="file">.po</span></samp> file offering translations for all strings.

   <p>The temporal mobility, or fluidity of PO files, is an integral part of
the translation game, and should be well understood, and accepted. 
People resisting it will have a hard time participating in the
Translation Project, or will give a hard time to other participants!  In
particular, maintainers should relax and include all available official
PO files in their distributions, even if these have not recently been
updated, without exerting pressure on the translator teams to get the
job done.  The pressure should rather come
from the community of users speaking a particular language, and
maintainers should consider themselves fairly relieved of any concern
about the adequacy of translation files.  On the other hand, translators
should reasonably try updating the PO files they are responsible for,
while the package is undergoing pretest, prior to an official
distribution.

   <p>Once the PO file is complete and dependable, the <code>msgfmt</code> program
is used for turning the PO file into a machine-oriented format, which
may yield efficient retrieval of translations by the programs of the
package, whenever needed at runtime (see <a href="#MO-Files">MO Files</a>).  See <a href="#msgfmt-Invocation">msgfmt Invocation</a>, for more information about all modes of execution
for the <code>msgfmt</code> program.

   <p>Finally, the modified and marked C sources are compiled and linked
with the GNU <code>gettext</code> library, usually through the operation of
<code>make</code>, given a suitable <samp><span class="file">Makefile</span></samp> exists for the project,
and the resulting executable is installed somewhere users will find it. 
The MO files themselves should also be properly installed.  Given the
appropriate environment variables are set (see <a href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>),
the program should localize itself automatically, whenever it executes.

   <p>The remainder of this manual has the purpose of explaining in depth the various
steps outlined above.

<div class="node">
<a name="Users"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#PO-Files">PO Files</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Introduction">Introduction</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">2 The User's View</h2>

   <p>Nowadays, when users log into a computer, they usually find that all
their programs show messages in their native language &ndash; at least for
users of languages with an active free software community, like French or
German; to a lesser extent for languages with a smaller participation in
free software and the GNU project, like Hindi and Filipino.

   <p>How does this work?  How can the user influence the language that is used
by the programs?  This chapter will answer it.

<ul class="menu">
<li><a accesskey="1" href="#System-Installation">System Installation</a>:          Questions During Operating System Installation
<li><a accesskey="2" href="#Setting-the-GUI-Locale">Setting the GUI Locale</a>:       How to Specify the Locale Used by GUI Programs
<li><a accesskey="3" href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>:     How to Specify the Locale According to POSIX
<li><a accesskey="4" href="#Installing-Localizations">Installing Localizations</a>:     How to Install Additional Translations
</ul>

<div class="node">
<a name="System-Installation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Setting-the-GUI-Locale">Setting the GUI Locale</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Users">Users</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Users">Users</a>

</div>

<h3 class="section">2.1 Operating System Installation</h3>

   <p>The default language is often already specified during operating system
installation.  When the operating system is installed, the installer
typically asks for the language used for the installation process and,
separately, for the language to use in the installed system.  Some OS
installers only ask for the language once.

   <p>This determines the system-wide default language for all users.  But the
installers often give the possibility to install extra localizations for
additional languages.  For example, the localizations of KDE (the K
Desktop Environment) and OpenOffice.org are often bundled separately,
as one installable package per language.

   <p>At this point it is good to consider the intended use of the machine: If
it is a machine designated for personal use, additional localizations are
probably not necessary.  If, however, the machine is in use in an
organization or company that has international relationships, one can
consider the needs of guest users.  If you have a guest from abroad, for
a week, what could be his preferred locales?  It may be worth installing
these additional localizations ahead of time, since they cost only a bit
of disk space at this point.

   <p>The system-wide default language is the locale configuration that is used
when a new user account is created.  But the user can have his own locale
configuration that is different from the one of the other users of the
same machine.  He can specify it, typically after the first login, as
described in the next section.

<div class="node">
<a name="Setting-the-GUI-Locale"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#System-Installation">System Installation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Users">Users</a>

</div>

<h3 class="section">2.2 Setting the Locale Used by GUI Programs</h3>

   <p>The immediately available programs in a user's desktop come from a group
of programs called a &ldquo;desktop environment&rdquo;; it usually includes the window
manager, a web browser, a text editor, and more.  The most common free
desktop environments are KDE, GNOME, and Xfce.

   <p>The locale used by GUI programs of the desktop environment can be specified
in a configuration screen called &ldquo;control center&rdquo;, &ldquo;language settings&rdquo;
or &ldquo;country settings&rdquo;.

   <p>Individual GUI programs that are not part of the desktop environment can
have their locale specified either in a settings panel, or through environment
variables.

   <p>For some programs, it is possible to specify the locale through environment
variables, possibly even to a different locale than the desktop's locale. 
This means, instead of starting a program through a menu or from the file
system, you can start it from the command-line, after having set some
environment variables.  The environment variables can be those specified
in the next section (<a href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>); for some versions of
KDE, however, the locale is specified through a variable <code>KDE_LANG</code>,
rather than <code>LANG</code> or <code>LC_ALL</code>.

<div class="node">
<a name="Setting-the-POSIX-Locale"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Installing-Localizations">Installing Localizations</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Setting-the-GUI-Locale">Setting the GUI Locale</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Users">Users</a>

</div>

<h3 class="section">2.3 Setting the Locale through Environment Variables</h3>

   <p>As a user, if your language has been installed for this package, in the
simplest case, you only have to set the <code>LANG</code> environment variable
to the appropriate &lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var></samp>&rsquo; combination.  For example,
let's suppose that you speak German and live in Germany.  At the shell
prompt, merely execute
&lsquo;<samp><span class="samp">setenv&nbsp;LANG&nbsp;de_DE</span></samp>&rsquo;<!-- /@w --> (in <code>csh</code>),
&lsquo;<samp><span class="samp">export&nbsp;LANG;&nbsp;LANG=de_DE</span></samp>&rsquo;<!-- /@w --> (in <code>sh</code>) or
&lsquo;<samp><span class="samp">export&nbsp;LANG=de_DE</span></samp>&rsquo;<!-- /@w --> (in <code>bash</code>).  This can be done from your
<samp><span class="file">.login</span></samp> or <samp><span class="file">.profile</span></samp> file, once and for all.

<ul class="menu">
<li><a accesskey="1" href="#Locale-Names">Locale Names</a>:                 How a Locale Specification Looks Like
<li><a accesskey="2" href="#Locale-Environment-Variables">Locale Environment Variables</a>:  Which Environment Variable Specfies What
<li><a accesskey="3" href="#The-LANGUAGE-variable">The LANGUAGE variable</a>:        How to Specify a Priority List of Languages
</ul>

<div class="node">
<a name="Locale-Names"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Locale-Environment-Variables">Locale Environment Variables</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>

</div>

<h4 class="subsection">2.3.1 Locale Names</h4>

   <p>A locale name usually has the form &lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var></samp>&rsquo;.  Here
&lsquo;<samp><var>ll</var></samp>&rsquo; is an ISO&nbsp;639<!-- /@w --> two-letter language code, and
&lsquo;<samp><var>CC</var></samp>&rsquo; is an ISO&nbsp;3166<!-- /@w --> two-letter country code.  For example,
for German in Germany, <var>ll</var> is <code>de</code>, and <var>CC</var> is <code>DE</code>. 
You find a list of the language codes in appendix <a href="#Language-Codes">Language Codes</a> and
a list of the country codes in appendix <a href="#Country-Codes">Country Codes</a>.

   <p>You might think that the country code specification is redundant.  But in
fact, some languages have dialects in different countries.  For example,
&lsquo;<samp><span class="samp">de_AT</span></samp>&rsquo; is used for Austria, and &lsquo;<samp><span class="samp">pt_BR</span></samp>&rsquo; for Brazil.  The country
code serves to distinguish the dialects.

   <p>Many locale names have an extended syntax
&lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var><span class="samp">.</span><var>encoding</var></samp>&rsquo; that also specifies the character
encoding.  These are in use because between 2000 and 2005, most users have
switched to locales in UTF-8 encoding.  For example, the German locale on
glibc systems is nowadays &lsquo;<samp><span class="samp">de_DE.UTF-8</span></samp>&rsquo;.  The older name &lsquo;<samp><span class="samp">de_DE</span></samp>&rsquo;
still refers to the German locale as of 2000 that stores characters in
ISO-8859-1 encoding &ndash; a text encoding that cannot even accomodate the Euro
currency sign.

   <p>Some locale names use &lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var><span class="samp">.@</span><var>variant</var></samp>&rsquo; instead of
&lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var></samp>&rsquo;.  The &lsquo;<samp><span class="samp">@</span><var>variant</var></samp>&rsquo; can denote any kind of
characteristics that is not already implied by the language <var>ll</var> and
the country <var>CC</var>.  It can denote a particular monetary unit.  For example,
on glibc systems, &lsquo;<samp><span class="samp">de_DE@euro</span></samp>&rsquo; denotes the locale that uses the Euro
currency, in contrast to the older locale &lsquo;<samp><span class="samp">de_DE</span></samp>&rsquo; which implies the use
of the currency before 2002.  It can also denote a dialect of the language,
or the script used to write text (for example, &lsquo;<samp><span class="samp">sr_RS@latin</span></samp>&rsquo; uses the
Latin script, whereas &lsquo;<samp><span class="samp">sr_RS</span></samp>&rsquo; uses the Cyrillic script to write Serbian),
or the orthography rules, or similar.

   <p>On other systems, some variations of this scheme are used, such as
&lsquo;<samp><var>ll</var></samp>&rsquo;.  You can get the list of locales supported by your system
for your language by running the command &lsquo;<samp><span class="samp">locale -a | grep '^</span><var>ll</var><span class="samp">'</span></samp>&rsquo;.

   <p>There is also a special locale, called &lsquo;<samp><span class="samp">C</span></samp>&rsquo;. 
<!-- Don't mention that this locale also has the name "POSIX". When we talk about -->
<!-- the "POSIX locale", we mean the "locale as specified in the POSIX way", and -->
<!-- mentioning a locale called "POSIX" would bring total confusion. -->
When it is used, it disables all localization: in this locale, all programs
standardized by POSIX use English messages and an unspecified character
encoding (often US-ASCII, but sometimes also ISO-8859-1 or UTF-8, depending on
the operating system).

<div class="node">
<a name="Locale-Environment-Variables"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#The-LANGUAGE-variable">The LANGUAGE variable</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Locale-Names">Locale Names</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>

</div>

<h4 class="subsection">2.3.2 Locale Environment Variables</h4>

   <p><a name="index-setting-up-_0040code_007bgettext_007d-at-run-time-40"></a><a name="index-selecting-message-language-41"></a><a name="index-language-selection-42"></a>
A locale is composed of several <em>locale categories</em>, see <a href="#Aspects">Aspects</a>. 
When a program looks up locale dependent values, it does this according to
the following environment variables, in priority order:

     <ol type=1 start=1>
<a name="index-LANGUAGE_0040r_007b_002c-environment-variable_007d-43"></a><li><code>LANGUAGE</code>
<a name="index-LC_005fALL_0040r_007b_002c-environment-variable_007d-44"></a><li><code>LC_ALL</code>
<a name="index-LC_005fCTYPE_0040r_007b_002c-environment-variable_007d-45"></a><a name="index-LC_005fNUMERIC_0040r_007b_002c-environment-variable_007d-46"></a><a name="index-LC_005fTIME_0040r_007b_002c-environment-variable_007d-47"></a><a name="index-LC_005fCOLLATE_0040r_007b_002c-environment-variable_007d-48"></a><a name="index-LC_005fMONETARY_0040r_007b_002c-environment-variable_007d-49"></a><a name="index-LC_005fMESSAGES_0040r_007b_002c-environment-variable_007d-50"></a><li><code>LC_xxx</code>, according to selected locale category:
<code>LC_CTYPE</code>, <code>LC_NUMERIC</code>, <code>LC_TIME</code>, <code>LC_COLLATE</code>,
<code>LC_MONETARY</code>, <code>LC_MESSAGES</code>, ... 
<a name="index-LANG_0040r_007b_002c-environment-variable_007d-51"></a><li><code>LANG</code>
        </ol>

   <p>Variables whose value is set but is empty are ignored in this lookup.

   <p><code>LANG</code> is the normal environment variable for specifying a locale. 
As a user, you normally set this variable (unless some of the other variables
have already been set by the system, in <samp><span class="file">/etc/profile</span></samp> or similar
initialization files).

   <p><code>LC_CTYPE</code>, <code>LC_NUMERIC</code>, <code>LC_TIME</code>, <code>LC_COLLATE</code>,
<code>LC_MONETARY</code>, <code>LC_MESSAGES</code>, and so on, are the environment
variables meant to override <code>LANG</code> and affecting a single locale
category only.  For example, assume you are a Swedish user in Spain, and you
want your programs to handle numbers and dates according to Spanish
conventions, and only the messages should be in Swedish.  Then you could
create a locale named &lsquo;<samp><span class="samp">sv_ES</span></samp>&rsquo; or &lsquo;<samp><span class="samp">sv_ES.UTF-8</span></samp>&rsquo; by use of the
<code>localedef</code> program.  But it is simpler, and achieves the same effect,
to set the <code>LANG</code> variable to <code>es_ES.UTF-8</code> and the
<code>LC_MESSAGES</code> variable to <code>sv_SE.UTF-8</code>; these two locales come
already preinstalled with the operating system.

   <p><code>LC_ALL</code> is an environment variable that overrides all of these. 
It is typically used in scripts that run particular programs.  For example,
<code>configure</code> scripts generated by GNU autoconf use <code>LC_ALL</code> to make
sure that the configuration tests don't operate in locale dependent ways.

   <p>Some systems, unfortunately, set <code>LC_ALL</code> in <samp><span class="file">/etc/profile</span></samp> or in
similar initialization files.  As a user, you therefore have to unset this
variable if you want to set <code>LANG</code> and optionally some of the other
<code>LC_xxx</code> variables.

   <p>The <code>LANGUAGE</code> variable is described in the next subsection.

<div class="node">
<a name="The-LANGUAGE-variable"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Locale-Environment-Variables">Locale Environment Variables</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>

</div>

<h4 class="subsection">2.3.3 Specifying a Priority List of Languages</h4>

   <p>Not all programs have translations for all languages.  By default, an
English message is shown in place of a nonexistent translation.  If you
understand other languages, you can set up a priority list of languages. 
This is done through a different environment variable, called
<code>LANGUAGE</code>.  GNU <code>gettext</code> gives preference to <code>LANGUAGE</code>
over <code>LC_ALL</code> and <code>LANG</code> for the purpose of message handling,
but you still need to have <code>LANG</code> (or <code>LC_ALL</code>) set to the primary
language; this is required by other parts of the system libraries. 
For example, some Swedish users who would rather read translations in
German than English for when Swedish is not available, set <code>LANGUAGE</code>
to &lsquo;<samp><span class="samp">sv:de</span></samp>&rsquo; while leaving <code>LANG</code> to &lsquo;<samp><span class="samp">sv_SE</span></samp>&rsquo;.

   <p>Special advice for Norwegian users: The language code for Norwegian
bokma*l changed from &lsquo;<samp><span class="samp">no</span></samp>&rsquo; to &lsquo;<samp><span class="samp">nb</span></samp>&rsquo; recently (in 2003). 
During the transition period, while some message catalogs for this language
are installed under &lsquo;<samp><span class="samp">nb</span></samp>&rsquo; and some older ones under &lsquo;<samp><span class="samp">no</span></samp>&rsquo;, it is
recommended for Norwegian users to set <code>LANGUAGE</code> to &lsquo;<samp><span class="samp">nb:no</span></samp>&rsquo; so that
both newer and older translations are used.

   <p>In the <code>LANGUAGE</code> environment variable, but not in the other
environment variables, &lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var></samp>&rsquo; combinations can be
abbreviated as &lsquo;<samp><var>ll</var></samp>&rsquo; to denote the language's main dialect. 
For example, &lsquo;<samp><span class="samp">de</span></samp>&rsquo; is equivalent to &lsquo;<samp><span class="samp">de_DE</span></samp>&rsquo; (German as spoken in
Germany), and &lsquo;<samp><span class="samp">pt</span></samp>&rsquo; to &lsquo;<samp><span class="samp">pt_PT</span></samp>&rsquo; (Portuguese as spoken in Portugal)
in this context.

   <p>Note: The variable <code>LANGUAGE</code> is ignored if the locale is set to
&lsquo;<samp><span class="samp">C</span></samp>&rsquo;.  In other words, you have to first enable localization, by setting
<code>LANG</code> (or <code>LC_ALL</code>) to a value other than &lsquo;<samp><span class="samp">C</span></samp>&rsquo;, before you can
use a language priority list through the <code>LANGUAGE</code> variable.

<div class="node">
<a name="Installing-Localizations"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Setting-the-POSIX-Locale">Setting the POSIX Locale</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Users">Users</a>

</div>

<h3 class="section">2.4 Installing Translations for Particular Programs</h3>

   <p><a name="index-Translation-Matrix-52"></a><a name="index-available-translations-53"></a>
Languages are not equally well supported in all packages using GNU
<code>gettext</code>, and more translations are added over time.  Usually, you
use the translations that are shipped with the operating system
or with particular packages that you install afterwards.  But you can also
install newer localizations directly.  For doing this, you will need an
understanding where each localization file is stored on the file system.

   <p><a name="index-g_t_0040file_007bABOUT_002dNLS_007d-file-54"></a>For programs that participate in the Translation Project, you can start
looking for translations here:
<a href="http://translationproject.org/team/index.html">http://translationproject.org/team/index.html</a>. 
A snapshot of this information is also found in the <samp><span class="file">ABOUT-NLS</span></samp> file
that is shipped with GNU gettext.

   <p>For programs that are part of the KDE project, the starting point is:
<a href="http://i18n.kde.org/">http://i18n.kde.org/</a>.

   <p>For programs that are part of the GNOME project, the starting point is:
<a href="http://www.gnome.org/i18n/">http://www.gnome.org/i18n/</a>.

   <p>For other programs, you may check whether the program's source code package
contains some <samp><var>ll</var><span class="file">.po</span></samp> files; often they are kept together in a
directory called <samp><span class="file">po/</span></samp>.  Each <samp><var>ll</var><span class="file">.po</span></samp> file contains the
message translations for the language whose abbreviation of <var>ll</var>.

<div class="node">
<a name="PO-Files"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Sources">Sources</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Users">Users</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">3 The Format of PO Files</h2>

   <p><a name="index-PO-files_0027-format-55"></a><a name="index-file-format_002c-_0040file_007b_002epo_007d-56"></a>
The GNU <code>gettext</code> toolset helps programmers and translators
at producing, updating and using translation files, mainly those
PO files which are textual, editable files.  This chapter explains
the format of PO files.

   <p>A PO file is made up of many entries, each entry holding the relation
between an original untranslated string and its corresponding
translation.  All entries in a given PO file usually pertain
to a single project, and all translations are expressed in a single
target language.  One PO file <dfn>entry</dfn> has the following schematic
structure:

<pre class="example">     <var>white-space</var>
     #  <var>translator-comments</var>
     #. <var>extracted-comments</var>
     #: <var>reference</var>...
     #, <var>flag</var>...
     #| msgid <var>previous-untranslated-string</var>
     msgid <var>untranslated-string</var>
     msgstr <var>translated-string</var>
</pre>
   <p>The general structure of a PO file should be well understood by
the translator.  When using PO mode, very little has to be known
about the format details, as PO mode takes care of them for her.

   <p>A simple entry can look like this:

<pre class="example">     #: lib/error.c:116
     msgid "Unknown system error"
     msgstr "Error desconegut del sistema"
</pre>
   <p><a name="index-comments_002c-translator-57"></a><a name="index-comments_002c-automatic-58"></a><a name="index-comments_002c-extracted-59"></a>Entries begin with some optional white space.  Usually, when generated
through GNU <code>gettext</code> tools, there is exactly one blank line
between entries.  Then comments follow, on lines all starting with the
character <code>#</code>.  There are two kinds of comments: those which have
some white space immediately following the <code>#</code> - the <var>translator
comments</var> -, which comments are created and maintained exclusively by the
translator, and those which have some non-white character just after the
<code>#</code> - the <var>automatic comments</var> -, which comments are created and
maintained automatically by GNU <code>gettext</code> tools.  Comment lines
starting with <code>#.</code> contain comments given by the programmer, directed
at the translator; these comments are called <var>extracted comments</var>
because the <code>xgettext</code> program extracts them from the program's
source code.  Comment lines starting with <code>#:</code> contain references to
the program's source code.  Comment lines starting with <code>#,</code> contain
flags; more about these below.  Comment lines starting with <code>#|</code>
contain the previous untranslated string for which the translator gave
a translation.

   <p>All comments, of either kind, are optional.

   <p><a name="index-msgid-60"></a><a name="index-msgstr-61"></a>After white space and comments, entries show two strings, namely
first the untranslated string as it appears in the original program
sources, and then, the translation of this string.  The original
string is introduced by the keyword <code>msgid</code>, and the translation,
by <code>msgstr</code>.  The two strings, untranslated and translated,
are quoted in various ways in the PO file, using <code>"</code>
delimiters and <code>\</code> escapes, but the translator does not really
have to pay attention to the precise quoting format, as PO mode fully
takes care of quoting for her.

   <p>The <code>msgid</code> strings, as well as automatic comments, are produced
and managed by other GNU <code>gettext</code> tools, and PO mode does not
provide means for the translator to alter these.  The most she can
do is merely deleting them, and only by deleting the whole entry. 
On the other hand, the <code>msgstr</code> string, as well as translator
comments, are really meant for the translator, and PO mode gives her
the full control she needs.

   <p>The comment lines beginning with <code>#,</code> are special because they are
not completely ignored by the programs as comments generally are.  The
comma separated list of <var>flag</var>s is used by the <code>msgfmt</code>
program to give the user some better diagnostic messages.  Currently
there are two forms of flags defined:

     <dl>
<dt><code>fuzzy</code><dd><a name="index-fuzzy_0040r_007b-flag_007d-62"></a>This flag can be generated by the <code>msgmerge</code> program or it can be
inserted by the translator herself.  It shows that the <code>msgstr</code>
string might not be a correct translation (anymore).  Only the translator
can judge if the translation requires further modification, or is
acceptable as is.  Once satisfied with the translation, she then removes
this <code>fuzzy</code> attribute.  The <code>msgmerge</code> program inserts this
when it combined the <code>msgid</code> and <code>msgstr</code> entries after fuzzy
search only.  See <a href="#Fuzzy-Entries">Fuzzy Entries</a>.

     <br><dt><code>c-format</code><dd><a name="index-c_002dformat_0040r_007b-flag_007d-63"></a><dt><code>no-c-format</code><dd><a name="index-no_002dc_002dformat_0040r_007b-flag_007d-64"></a>These flags should not be added by a human.  Instead only the
<code>xgettext</code> program adds them.  In an automated PO file processing
system as proposed here, the user's changes would be thrown away again as
soon as the <code>xgettext</code> program generates a new template file.

     <p>The <code>c-format</code> flag indicates that the untranslated string and the
translation are supposed to be C format strings.  The <code>no-c-format</code>
flag indicates that they are not C format strings, even though the untranslated
string happens to look like a C format string (with &lsquo;<samp><span class="samp">%</span></samp>&rsquo; directives).

     <p>When the <code>c-format</code> flag is given for a string the <code>msgfmt</code>
program does some more tests to check the validity of the translation. 
See <a href="#msgfmt-Invocation">msgfmt Invocation</a>, <a href="#c_002dformat-Flag">c-format Flag</a> and <a href="#c_002dformat">c-format</a>.

     <br><dt><code>objc-format</code><dd><a name="index-objc_002dformat_0040r_007b-flag_007d-65"></a><dt><code>no-objc-format</code><dd><a name="index-no_002dobjc_002dformat_0040r_007b-flag_007d-66"></a>Likewise for Objective C, see <a href="#objc_002dformat">objc-format</a>.

     <br><dt><code>sh-format</code><dd><a name="index-sh_002dformat_0040r_007b-flag_007d-67"></a><dt><code>no-sh-format</code><dd><a name="index-no_002dsh_002dformat_0040r_007b-flag_007d-68"></a>Likewise for Shell, see <a href="#sh_002dformat">sh-format</a>.

     <br><dt><code>python-format</code><dd><a name="index-python_002dformat_0040r_007b-flag_007d-69"></a><dt><code>no-python-format</code><dd><a name="index-no_002dpython_002dformat_0040r_007b-flag_007d-70"></a>Likewise for Python, see <a href="#python_002dformat">python-format</a>.

     <br><dt><code>lisp-format</code><dd><a name="index-lisp_002dformat_0040r_007b-flag_007d-71"></a><dt><code>no-lisp-format</code><dd><a name="index-no_002dlisp_002dformat_0040r_007b-flag_007d-72"></a>Likewise for Lisp, see <a href="#lisp_002dformat">lisp-format</a>.

     <br><dt><code>elisp-format</code><dd><a name="index-elisp_002dformat_0040r_007b-flag_007d-73"></a><dt><code>no-elisp-format</code><dd><a name="index-no_002delisp_002dformat_0040r_007b-flag_007d-74"></a>Likewise for Emacs Lisp, see <a href="#elisp_002dformat">elisp-format</a>.

     <br><dt><code>librep-format</code><dd><a name="index-librep_002dformat_0040r_007b-flag_007d-75"></a><dt><code>no-librep-format</code><dd><a name="index-no_002dlibrep_002dformat_0040r_007b-flag_007d-76"></a>Likewise for librep, see <a href="#librep_002dformat">librep-format</a>.

     <br><dt><code>scheme-format</code><dd><a name="index-scheme_002dformat_0040r_007b-flag_007d-77"></a><dt><code>no-scheme-format</code><dd><a name="index-no_002dscheme_002dformat_0040r_007b-flag_007d-78"></a>Likewise for Scheme, see <a href="#scheme_002dformat">scheme-format</a>.

     <br><dt><code>smalltalk-format</code><dd><a name="index-smalltalk_002dformat_0040r_007b-flag_007d-79"></a><dt><code>no-smalltalk-format</code><dd><a name="index-no_002dsmalltalk_002dformat_0040r_007b-flag_007d-80"></a>Likewise for Smalltalk, see <a href="#smalltalk_002dformat">smalltalk-format</a>.

     <br><dt><code>java-format</code><dd><a name="index-java_002dformat_0040r_007b-flag_007d-81"></a><dt><code>no-java-format</code><dd><a name="index-no_002djava_002dformat_0040r_007b-flag_007d-82"></a>Likewise for Java, see <a href="#java_002dformat">java-format</a>.

     <br><dt><code>csharp-format</code><dd><a name="index-csharp_002dformat_0040r_007b-flag_007d-83"></a><dt><code>no-csharp-format</code><dd><a name="index-no_002dcsharp_002dformat_0040r_007b-flag_007d-84"></a>Likewise for C#, see <a href="#csharp_002dformat">csharp-format</a>.

     <br><dt><code>awk-format</code><dd><a name="index-awk_002dformat_0040r_007b-flag_007d-85"></a><dt><code>no-awk-format</code><dd><a name="index-no_002dawk_002dformat_0040r_007b-flag_007d-86"></a>Likewise for awk, see <a href="#awk_002dformat">awk-format</a>.

     <br><dt><code>object-pascal-format</code><dd><a name="index-object_002dpascal_002dformat_0040r_007b-flag_007d-87"></a><dt><code>no-object-pascal-format</code><dd><a name="index-no_002dobject_002dpascal_002dformat_0040r_007b-flag_007d-88"></a>Likewise for Object Pascal, see <a href="#object_002dpascal_002dformat">object-pascal-format</a>.

     <br><dt><code>ycp-format</code><dd><a name="index-ycp_002dformat_0040r_007b-flag_007d-89"></a><dt><code>no-ycp-format</code><dd><a name="index-no_002dycp_002dformat_0040r_007b-flag_007d-90"></a>Likewise for YCP, see <a href="#ycp_002dformat">ycp-format</a>.

     <br><dt><code>tcl-format</code><dd><a name="index-tcl_002dformat_0040r_007b-flag_007d-91"></a><dt><code>no-tcl-format</code><dd><a name="index-no_002dtcl_002dformat_0040r_007b-flag_007d-92"></a>Likewise for Tcl, see <a href="#tcl_002dformat">tcl-format</a>.

     <br><dt><code>perl-format</code><dd><a name="index-perl_002dformat_0040r_007b-flag_007d-93"></a><dt><code>no-perl-format</code><dd><a name="index-no_002dperl_002dformat_0040r_007b-flag_007d-94"></a>Likewise for Perl, see <a href="#perl_002dformat">perl-format</a>.

     <br><dt><code>perl-brace-format</code><dd><a name="index-perl_002dbrace_002dformat_0040r_007b-flag_007d-95"></a><dt><code>no-perl-brace-format</code><dd><a name="index-no_002dperl_002dbrace_002dformat_0040r_007b-flag_007d-96"></a>Likewise for Perl brace, see <a href="#perl_002dformat">perl-format</a>.

     <br><dt><code>php-format</code><dd><a name="index-php_002dformat_0040r_007b-flag_007d-97"></a><dt><code>no-php-format</code><dd><a name="index-no_002dphp_002dformat_0040r_007b-flag_007d-98"></a>Likewise for PHP, see <a href="#php_002dformat">php-format</a>.

     <br><dt><code>gcc-internal-format</code><dd><a name="index-gcc_002dinternal_002dformat_0040r_007b-flag_007d-99"></a><dt><code>no-gcc-internal-format</code><dd><a name="index-no_002dgcc_002dinternal_002dformat_0040r_007b-flag_007d-100"></a>Likewise for the GCC sources, see <a href="#gcc_002dinternal_002dformat">gcc-internal-format</a>.

     <br><dt><code>gfc-internal-format</code><dd><a name="index-gfc_002dinternal_002dformat_0040r_007b-flag_007d-101"></a><dt><code>no-gfc-internal-format</code><dd><a name="index-no_002dgfc_002dinternal_002dformat_0040r_007b-flag_007d-102"></a>Likewise for the GNU Fortran Compiler sources, see <a href="#gfc_002dinternal_002dformat">gfc-internal-format</a>.

     <br><dt><code>qt-format</code><dd><a name="index-qt_002dformat_0040r_007b-flag_007d-103"></a><dt><code>no-qt-format</code><dd><a name="index-no_002dqt_002dformat_0040r_007b-flag_007d-104"></a>Likewise for Qt, see <a href="#qt_002dformat">qt-format</a>.

     <br><dt><code>qt-plural-format</code><dd><a name="index-qt_002dplural_002dformat_0040r_007b-flag_007d-105"></a><dt><code>no-qt-plural-format</code><dd><a name="index-no_002dqt_002dplural_002dformat_0040r_007b-flag_007d-106"></a>Likewise for Qt plural forms, see <a href="#qt_002dplural_002dformat">qt-plural-format</a>.

     <br><dt><code>kde-format</code><dd><a name="index-kde_002dformat_0040r_007b-flag_007d-107"></a><dt><code>no-kde-format</code><dd><a name="index-no_002dkde_002dformat_0040r_007b-flag_007d-108"></a>Likewise for KDE, see <a href="#kde_002dformat">kde-format</a>.

     <br><dt><code>boost-format</code><dd><a name="index-boost_002dformat_0040r_007b-flag_007d-109"></a><dt><code>no-boost-format</code><dd><a name="index-no_002dboost_002dformat_0040r_007b-flag_007d-110"></a>Likewise for Boost, see <a href="#boost_002dformat">boost-format</a>.

   </dl>

   <p><a name="index-msgctxt-111"></a><a name="index-context_002c-in-PO-files-112"></a>It is also possible to have entries with a context specifier. They look like
this:

<pre class="example">     <var>white-space</var>
     #  <var>translator-comments</var>
     #. <var>extracted-comments</var>
     #: <var>reference</var>...
     #, <var>flag</var>...
     #| msgctxt <var>previous-context</var>
     #| msgid <var>previous-untranslated-string</var>
     msgctxt <var>context</var>
     msgid <var>untranslated-string</var>
     msgstr <var>translated-string</var>
</pre>
   <p>The context serves to disambiguate messages with the same
<var>untranslated-string</var>.  It is possible to have several entries with
the same <var>untranslated-string</var> in a PO file, provided that they each
have a different <var>context</var>.  Note that an empty <var>context</var> string
and an absent <code>msgctxt</code> line do not mean the same thing.

   <p><a name="index-msgid_005fplural-113"></a><a name="index-plural-forms_002c-in-PO-files-114"></a>A different kind of entries is used for translations which involve
plural forms.

<pre class="example">     <var>white-space</var>
     #  <var>translator-comments</var>
     #. <var>extracted-comments</var>
     #: <var>reference</var>...
     #, <var>flag</var>...
     #| msgid <var>previous-untranslated-string-singular</var>
     #| msgid_plural <var>previous-untranslated-string-plural</var>
     msgid <var>untranslated-string-singular</var>
     msgid_plural <var>untranslated-string-plural</var>
     msgstr[0] <var>translated-string-case-0</var>
     ...
     msgstr[N] <var>translated-string-case-n</var>
</pre>
   <p>Such an entry can look like this:

<pre class="example">     #: src/msgcmp.c:338 src/po-lex.c:699
     #, c-format
     msgid "found %d fatal error"
     msgid_plural "found %d fatal errors"
     msgstr[0] "s'ha trobat %d error fatal"
     msgstr[1] "s'han trobat %d errors fatals"
</pre>
   <p>Here also, a <code>msgctxt</code> context can be specified before <code>msgid</code>,
like above.

   <p>Here, additional kinds of flags can be used:

     <dl>
<dt><code>range:</code><dd><a name="index-range_003a_0040r_007b-flag_007d-115"></a>This flag is followed by a range of non-negative numbers, using the syntax
<code>range: </code><var>minimum-value</var><code>..</code><var>maximum-value</var>.  It designates the
possible values that the numeric parameter of the message can take.  In some
languages, translators may produce slightly better translations if they know
that the value can only take on values between 0 and 10, for example. 
</dl>

   <p>The <var>previous-untranslated-string</var> is optionally inserted by the
<code>msgmerge</code> program, at the same time when it marks a message fuzzy. 
It helps the translator to see which changes were done by the developers
on the <var>untranslated-string</var>.

   <p>It happens that some lines, usually whitespace or comments, follow the
very last entry of a PO file.  Such lines are not part of any entry,
and will be dropped when the PO file is processed by the tools, or may
disturb some PO file editors.

   <p>The remainder of this section may be safely skipped by those using
a PO file editor, yet it may be interesting for everybody to have a better
idea of the precise format of a PO file.  On the other hand, those
wishing to modify PO files by hand should carefully continue reading on.

   <p>Each of <var>untranslated-string</var> and <var>translated-string</var> respects
the C syntax for a character string, including the surrounding quotes
and embedded backslashed escape sequences.  When the time comes
to write multi-line strings, one should not use escaped newlines. 
Instead, a closing quote should follow the last character on the
line to be continued, and an opening quote should resume the string
at the beginning of the following PO file line.  For example:

<pre class="example">     msgid ""
     "Here is an example of how one might continue a very long string\n"
     "for the common case the string represents multi-line output.\n"
</pre>
   <p class="noindent">In this example, the empty string is used on the first line, to
allow better alignment of the <code>H</code> from the word &lsquo;<samp><span class="samp">Here</span></samp>&rsquo;
over the <code>f</code> from the word &lsquo;<samp><span class="samp">for</span></samp>&rsquo;.  In this example, the
<code>msgid</code> keyword is followed by three strings, which are meant
to be concatenated.  Concatenating the empty string does not change
the resulting overall string, but it is a way for us to comply with
the necessity of <code>msgid</code> to be followed by a string on the same
line, while keeping the multi-line presentation left-justified, as
we find this to be a cleaner disposition.  The empty string could have
been omitted, but only if the string starting with &lsquo;<samp><span class="samp">Here</span></samp>&rsquo; was
promoted on the first line, right after <code>msgid</code>.<a rel="footnote" href="#fn-2" name="fnd-2"><sup>2</sup></a> It was not really necessary
either to switch between the two last quoted strings immediately after
the newline &lsquo;<samp><span class="samp">\n</span></samp>&rsquo;, the switch could have occurred after <em>any</em>
other character, we just did it this way because it is neater.

   <p><a name="index-newlines-in-PO-files-116"></a>One should carefully distinguish between end of lines marked as
&lsquo;<samp><span class="samp">\n</span></samp>&rsquo; <em>inside</em> quotes, which are part of the represented
string, and end of lines in the PO file itself, outside string quotes,
which have no incidence on the represented string.

   <p><a name="index-comments-in-PO-files-117"></a>Outside strings, white lines and comments may be used freely. 
Comments start at the beginning of a line with &lsquo;<samp><span class="samp">#</span></samp>&rsquo; and extend
until the end of the PO file line.  Comments written by translators
should have the initial &lsquo;<samp><span class="samp">#</span></samp>&rsquo; immediately followed by some white
space.  If the &lsquo;<samp><span class="samp">#</span></samp>&rsquo; is not immediately followed by white space,
this comment is most likely generated and managed by specialized GNU
tools, and might disappear or be replaced unexpectedly when the PO
file is given to <code>msgmerge</code>.

<div class="node">
<a name="Sources"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Template">Template</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#PO-Files">PO Files</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">4 Preparing Program Sources</h2>

   <p><a name="index-preparing-programs-for-translation-118"></a>
<!-- FIXME: Rewrite (the whole chapter). -->

   <p>For the programmer, changes to the C source code fall into three
categories.  First, you have to make the localization functions
known to all modules needing message translation.  Second, you should
properly trigger the operation of GNU <code>gettext</code> when the program
initializes, usually from the <code>main</code> function.  Last, you should
identify, adjust and mark all constant strings in your program
needing translation.

<ul class="menu">
<li><a accesskey="1" href="#Importing">Importing</a>:                    Importing the <code>gettext</code> declaration
<li><a accesskey="2" href="#Triggering">Triggering</a>:                   Triggering <code>gettext</code> Operations
<li><a accesskey="3" href="#Preparing-Strings">Preparing Strings</a>:            Preparing Translatable Strings
<li><a accesskey="4" href="#Mark-Keywords">Mark Keywords</a>:                How Marks Appear in Sources
<li><a accesskey="5" href="#Marking">Marking</a>:                      Marking Translatable Strings
<li><a accesskey="6" href="#c_002dformat-Flag">c-format Flag</a>:                Telling something about the following string
<li><a accesskey="7" href="#Special-cases">Special cases</a>:                Special Cases of Translatable Strings
<li><a accesskey="8" href="#Bug-Report-Address">Bug Report Address</a>:           Letting Users Report Translation Bugs
<li><a accesskey="9" href="#Names">Names</a>:                        Marking Proper Names for Translation
<li><a href="#Libraries">Libraries</a>:                    Preparing Library Sources
</ul>

<div class="node">
<a name="Importing"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Triggering">Triggering</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Sources">Sources</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.1 Importing the <code>gettext</code> declaration</h3>

   <p>Presuming that your set of programs, or package, has been adjusted
so all needed GNU <code>gettext</code> files are available, and your
<samp><span class="file">Makefile</span></samp> files are adjusted (see <a href="#Maintainers">Maintainers</a>), each C module
having translated C strings should contain the line:

   <p><a name="index-include-file-_0040file_007blibintl_002eh_007d-119"></a>
<pre class="example">     #include &lt;libintl.h&gt;
</pre>
   <p>Similarly, each C module containing <code>printf()</code>/<code>fprintf()</code>/... 
calls with a format string that could be a translated C string (even if
the C string comes from a different C module) should contain the line:

<pre class="example">     #include &lt;libintl.h&gt;
</pre>
   <div class="node">
<a name="Triggering"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Preparing-Strings">Preparing Strings</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Importing">Importing</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.2 Triggering <code>gettext</code> Operations</h3>

   <p><a name="index-initialization-120"></a>The initialization of locale data should be done with more or less
the same code in every program, as demonstrated below:

<pre class="example">     int
     main (int argc, char *argv[])
     {
       ...
       setlocale (LC_ALL, "");
       bindtextdomain (PACKAGE, LOCALEDIR);
       textdomain (PACKAGE);
       ...
     }
</pre>
   <p><var>PACKAGE</var> and <var>LOCALEDIR</var> should be provided either by
<samp><span class="file">config.h</span></samp> or by the Makefile.  For now consult the <code>gettext</code>
or <code>hello</code> sources for more information.

   <p><a name="index-locale-category_002c-LC_005fALL-121"></a><a name="index-locale-category_002c-LC_005fCTYPE-122"></a>The use of <code>LC_ALL</code> might not be appropriate for you. 
<code>LC_ALL</code> includes all locale categories and especially
<code>LC_CTYPE</code>.  This latter category is responsible for determining
character classes with the <code>isalnum</code> etc. functions from
<samp><span class="file">ctype.h</span></samp> which could especially for programs, which process some
kind of input language, be wrong.  For example this would mean that a
source code using the &ccedil; (c-cedilla character) is runnable in
France but not in the U.S.

   <p>Some systems also have problems with parsing numbers using the
<code>scanf</code> functions if an other but the <code>LC_ALL</code> locale category is
used.  The standards say that additional formats but the one known in the
<code>"C"</code> locale might be recognized.  But some systems seem to reject
numbers in the <code>"C"</code> locale format.  In some situation, it might
also be a problem with the notation itself which makes it impossible to
recognize whether the number is in the <code>"C"</code> locale or the local
format.  This can happen if thousands separator characters are used. 
Some locales define this character according to the national
conventions to <code>'.'</code> which is the same character used in the
<code>"C"</code> locale to denote the decimal point.

   <p>So it is sometimes necessary to replace the <code>LC_ALL</code> line in the
code above by a sequence of <code>setlocale</code> lines

<pre class="example">     {
       ...
       setlocale (LC_CTYPE, "");
       setlocale (LC_MESSAGES, "");
       ...
     }
</pre>
   <p><a name="index-locale-category_002c-LC_005fCTYPE-123"></a><a name="index-locale-category_002c-LC_005fCOLLATE-124"></a><a name="index-locale-category_002c-LC_005fMONETARY-125"></a><a name="index-locale-category_002c-LC_005fNUMERIC-126"></a><a name="index-locale-category_002c-LC_005fTIME-127"></a><a name="index-locale-category_002c-LC_005fMESSAGES-128"></a><a name="index-locale-category_002c-LC_005fRESPONSES-129"></a>On all POSIX conformant systems the locale categories <code>LC_CTYPE</code>,
<code>LC_MESSAGES</code>, <code>LC_COLLATE</code>, <code>LC_MONETARY</code>,
<code>LC_NUMERIC</code>, and <code>LC_TIME</code> are available.  On some systems
which are only ISO C compliant, <code>LC_MESSAGES</code> is missing, but
a substitute for it is defined in GNU gettext's <code>&lt;libintl.h&gt;</code> and
in GNU gnulib's <code>&lt;locale.h&gt;</code>.

   <p>Note that changing the <code>LC_CTYPE</code> also affects the functions
declared in the <code>&lt;ctype.h&gt;</code> standard header and some functions
declared in the <code>&lt;string.h&gt;</code> and <code>&lt;stdlib.h&gt;</code> standard headers. 
If this is not
desirable in your application (for example in a compiler's parser),
you can use a set of substitute functions which hardwire the C locale,
such as found in the modules &lsquo;<samp><span class="samp">c-ctype</span></samp>&rsquo;, &lsquo;<samp><span class="samp">c-strcase</span></samp>&rsquo;,
&lsquo;<samp><span class="samp">c-strcasestr</span></samp>&rsquo;, &lsquo;<samp><span class="samp">c-strtod</span></samp>&rsquo;, &lsquo;<samp><span class="samp">c-strtold</span></samp>&rsquo; in the GNU gnulib
source distribution.

   <p>It is also possible to switch the locale forth and back between the
environment dependent locale and the C locale, but this approach is
normally avoided because a <code>setlocale</code> call is expensive,
because it is tedious to determine the places where a locale switch
is needed in a large program's source, and because switching a locale
is not multithread-safe.

<div class="node">
<a name="Preparing-Strings"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Mark-Keywords">Mark Keywords</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Triggering">Triggering</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.3 Preparing Translatable Strings</h3>

   <p><a name="index-marking-strings_002c-preparations-130"></a>Before strings can be marked for translations, they sometimes need to
be adjusted.  Usually preparing a string for translation is done right
before marking it, during the marking phase which is described in the
next sections.  What you have to keep in mind while doing that is the
following.

     <ul>
<li>Decent English style.

     <li>Entire sentences.

     <li>Split at paragraphs.

     <li>Use format strings instead of string concatenation.

     <li>Avoid unusual markup and unusual control characters. 
</ul>

<p class="noindent">Let's look at some examples of these guidelines.

   <p><a name="index-style-131"></a>Translatable strings should be in good English style.  If slang language
with abbreviations and shortcuts is used, often translators will not
understand the message and will produce very inappropriate translations.

<pre class="example">     "%s: is parameter\n"
</pre>
   <p class="noindent">This is nearly untranslatable: Is the displayed item <em>a</em> parameter or
<em>the</em> parameter?

<pre class="example">     "No match"
</pre>
   <p class="noindent">The ambiguity in this message makes it unintelligible: Is the program
attempting to set something on fire? Does it mean "The given object does
not match the template"? Does it mean "The template does not fit for any
of the objects"?

   <p><a name="index-ambiguities-132"></a>In both cases, adding more words to the message will help both the
translator and the English speaking user.

   <p><a name="index-sentences-133"></a>Translatable strings should be entire sentences.  It is often not possible
to translate single verbs or adjectives in a substitutable way.

<pre class="example">     printf ("File %s is %s protected", filename, rw ? "write" : "read");
</pre>
   <p class="noindent">Most translators will not look at the source and will thus only see the
string <code>"File %s is %s protected"</code>, which is unintelligible.  Change
this to

<pre class="example">     printf (rw ? "File %s is write protected" : "File %s is read protected",
             filename);
</pre>
   <p class="noindent">This way the translator will not only understand the message, she will
also be able to find the appropriate grammatical construction.  A French
translator for example translates "write protected" like "protected
against writing".

   <p>Entire sentences are also important because in many languages, the
declination of some word in a sentence depends on the gender or the
number (singular/plural) of another part of the sentence.  There are
usually more interdependencies between words than in English.  The
consequence is that asking a translator to translate two half-sentences
and then combining these two half-sentences through dumb string concatenation
will not work, for many languages, even though it would work for English. 
That's why translators need to handle entire sentences.

   <p>Often sentences don't fit into a single line.  If a sentence is output
using two subsequent <code>printf</code> statements, like this

<pre class="example">     printf ("Locale charset \"%s\" is different from\n", lcharset);
     printf ("input file charset \"%s\".\n", fcharset);
</pre>
   <p class="noindent">the translator would have to translate two half sentences, but nothing
in the POT file would tell her that the two half sentences belong together. 
It is necessary to merge the two <code>printf</code> statements so that the
translator can handle the entire sentence at once and decide at which
place to insert a line break in the translation (if at all):

<pre class="example">     printf ("Locale charset \"%s\" is different from\n\
     input file charset \"%s\".\n", lcharset, fcharset);
</pre>
   <p>You may now ask: how about two or more adjacent sentences? Like in this case:

<pre class="example">     puts ("Apollo 13 scenario: Stack overflow handling failed.");
     puts ("On the next stack overflow we will crash!!!");
</pre>
   <p class="noindent">Should these two statements merged into a single one? I would recommend to
merge them if the two sentences are related to each other, because then it
makes it easier for the translator to understand and translate both.  On
the other hand, if one of the two messages is a stereotypic one, occurring
in other places as well, you will do a favour to the translator by not
merging the two.  (Identical messages occurring in several places are
combined by xgettext, so the translator has to handle them once only.)

   <p><a name="index-paragraphs-134"></a>Translatable strings should be limited to one paragraph; don't let a
single message be longer than ten lines.  The reason is that when the
translatable string changes, the translator is faced with the task of
updating the entire translated string.  Maybe only a single word will
have changed in the English string, but the translator doesn't see that
(with the current translation tools), therefore she has to proofread
the entire message.

   <p><a name="index-help-option-135"></a>Many GNU programs have a &lsquo;<samp><span class="samp">--help</span></samp>&rsquo; output that extends over several
screen pages.  It is a courtesy towards the translators to split such a
message into several ones of five to ten lines each.  While doing that,
you can also attempt to split the documented options into groups,
such as the input options, the output options, and the informative
output options.  This will help every user to find the option he is
looking for.

   <p><a name="index-string-concatenation-136"></a><a name="index-concatenation-of-strings-137"></a>Hardcoded string concatenation is sometimes used to construct English
strings:

<pre class="example">     strcpy (s, "Replace ");
     strcat (s, object1);
     strcat (s, " with ");
     strcat (s, object2);
     strcat (s, "?");
</pre>
   <p class="noindent">In order to present to the translator only entire sentences, and also
because in some languages the translator might want to swap the order
of <code>object1</code> and <code>object2</code>, it is necessary to change this
to use a format string:

<pre class="example">     sprintf (s, "Replace %s with %s?", object1, object2);
</pre>
   <p><a name="index-g_t_0040code_007binttypes_002eh_007d-138"></a>A similar case is compile time concatenation of strings.  The ISO C 99
include file <code>&lt;inttypes.h&gt;</code> contains a macro <code>PRId64</code> that
can be used as a formatting directive for outputting an &lsquo;<samp><span class="samp">int64_t</span></samp>&rsquo;
integer through <code>printf</code>.  It expands to a constant string, usually
"d" or "ld" or "lld" or something like this, depending on the platform. 
Assume you have code like

<pre class="example">     printf ("The amount is %0" PRId64 "\n", number);
</pre>
   <p class="noindent">The <code>gettext</code> tools and library have special support for these
<code>&lt;inttypes.h&gt;</code> macros.  You can therefore simply write

<pre class="example">     printf (gettext ("The amount is %0" PRId64 "\n"), number);
</pre>
   <p class="noindent">The PO file will contain the string "The amount is %0&lt;PRId64&gt;\n". 
The translators will provide a translation containing "%0&lt;PRId64&gt;"
as well, and at runtime the <code>gettext</code> function's result will
contain the appropriate constant string, "d" or "ld" or "lld".

   <p>This works only for the predefined <code>&lt;inttypes.h&gt;</code> macros.  If
you have defined your own similar macros, let's say &lsquo;<samp><span class="samp">MYPRId64</span></samp>&rsquo;,
that are not known to <code>xgettext</code>, the solution for this problem
is to change the code like this:

<pre class="example">     char buf1[100];
     sprintf (buf1, "%0" MYPRId64, number);
     printf (gettext ("The amount is %s\n"), buf1);
</pre>
   <p>This means, you put the platform dependent code in one statement, and the
internationalization code in a different statement.  Note that a buffer length
of 100 is safe, because all available hardware integer types are limited to
128 bits, and to print a 128 bit integer one needs at most 54 characters,
regardless whether in decimal, octal or hexadecimal.

   <p><a name="index-Java_002c-string-concatenation-139"></a><a name="index-C_0023_002c-string-concatenation-140"></a>All this applies to other programming languages as well.  For example, in
Java and C#, string concatenation is very frequently used, because it is a
compiler built-in operator.  Like in C, in Java, you would change

<pre class="example">     System.out.println("Replace "+object1+" with "+object2+"?");
</pre>
   <p class="noindent">into a statement involving a format string:

<pre class="example">     System.out.println(
         MessageFormat.format("Replace {0} with {1}?",
                              new Object[] { object1, object2 }));
</pre>
   <p class="noindent">Similarly, in C#, you would change

<pre class="example">     Console.WriteLine("Replace "+object1+" with "+object2+"?");
</pre>
   <p class="noindent">into a statement involving a format string:

<pre class="example">     Console.WriteLine(
         String.Format("Replace {0} with {1}?", object1, object2));
</pre>
   <p><a name="index-markup-141"></a><a name="index-control-characters-142"></a>Unusual markup or control characters should not be used in translatable
strings.  Translators will likely not understand the particular meaning
of the markup or control characters.

   <p>For example, if you have a convention that &lsquo;<samp><span class="samp">|</span></samp>&rsquo; delimits the
left-hand and right-hand part of some GUI elements, translators will
often not understand it without specific comments.  It might be
better to have the translator translate the left-hand and right-hand
part separately.

   <p>Another example is the &lsquo;<samp><span class="samp">argp</span></samp>&rsquo; convention to use a single &lsquo;<samp><span class="samp">\v</span></samp>&rsquo;
(vertical tab) control character to delimit two sections inside a
string.  This is flawed.  Some translators may convert it to a simple
newline, some to blank lines.  With some PO file editors it may not be
easy to even enter a vertical tab control character.  So, you cannot
be sure that the translation will contain a &lsquo;<samp><span class="samp">\v</span></samp>&rsquo; character, at the
corresponding position.  The solution is, again, to let the translator
translate two separate strings and combine at run-time the two translated
strings with the &lsquo;<samp><span class="samp">\v</span></samp>&rsquo; required by the convention.

   <p>HTML markup, however, is common enough that it's probably ok to use in
translatable strings.  But please bear in mind that the GNU gettext tools
don't verify that the translations are well-formed HTML.

<div class="node">
<a name="Mark-Keywords"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Marking">Marking</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Preparing-Strings">Preparing Strings</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.4 How Marks Appear in Sources</h3>

   <p><a name="index-marking-strings-that-require-translation-143"></a>
All strings requiring translation should be marked in the C sources.  Marking
is done in such a way that each translatable string appears to be
the sole argument of some function or preprocessor macro.  There are
only a few such possible functions or macros meant for translation,
and their names are said to be marking keywords.  The marking is
attached to strings themselves, rather than to what we do with them. 
This approach has more uses.  A blatant example is an error message
produced by formatting.  The format string needs translation, as
well as some strings inserted through some &lsquo;<samp><span class="samp">%s</span></samp>&rsquo; specification
in the format, while the result from <code>sprintf</code> may have so many
different instances that it is impractical to list them all in some
&lsquo;<samp><span class="samp">error_string_out()</span></samp>&rsquo; routine, say.

   <p>This marking operation has two goals.  The first goal of marking
is for triggering the retrieval of the translation, at run time. 
The keyword is possibly resolved into a routine able to dynamically
return the proper translation, as far as possible or wanted, for the
argument string.  Most localizable strings are found in executable
positions, that is, attached to variables or given as parameters to
functions.  But this is not universal usage, and some translatable
strings appear in structured initializations.  See <a href="#Special-cases">Special cases</a>.

   <p>The second goal of the marking operation is to help <code>xgettext</code>
at properly extracting all translatable strings when it scans a set
of program sources and produces PO file templates.

   <p>The canonical keyword for marking translatable strings is
&lsquo;<samp><span class="samp">gettext</span></samp>&rsquo;, it gave its name to the whole GNU <code>gettext</code>
package.  For packages making only light use of the &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo;
keyword, macro or function, it is easily used <em>as is</em>.  However,
for packages using the <code>gettext</code> interface more heavily, it
is usually more convenient to give the main keyword a shorter, less
obtrusive name.  Indeed, the keyword might appear on a lot of strings
all over the package, and programmers usually do not want nor need
their program sources to remind them forcefully, all the time, that they
are internationalized.  Further, a long keyword has the disadvantage
of using more horizontal space, forcing more indentation work on
sources for those trying to keep them within 79 or 80 columns.

   <p><a name="index-g_t_0040code_007b_005f_007d_002c-a-macro-to-mark-strings-for-translation-144"></a>Many packages use &lsquo;<samp><span class="samp">_</span></samp>&rsquo; (a simple underline) as a keyword,
and write &lsquo;<samp><span class="samp">_("Translatable string")</span></samp>&rsquo; instead of &lsquo;<samp><span class="samp">gettext
("Translatable string")</span></samp>&rsquo;.  Further, the coding rule, from GNU standards,
wanting that there is a space between the keyword and the opening
parenthesis is relaxed, in practice, for this particular usage. 
So, the textual overhead per translatable string is reduced to
only three characters: the underline and the two parentheses. 
However, even if GNU <code>gettext</code> uses this convention internally,
it does not offer it officially.  The real, genuine keyword is truly
&lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; indeed.  It is fairly easy for those wanting to use
&lsquo;<samp><span class="samp">_</span></samp>&rsquo; instead of &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; to declare:

<pre class="example">     #include &lt;libintl.h&gt;
     #define _(String) gettext (String)
</pre>
   <p class="noindent">instead of merely using &lsquo;<samp><span class="samp">#include &lt;libintl.h&gt;</span></samp>&rsquo;.

   <p>The marking keywords &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; and &lsquo;<samp><span class="samp">_</span></samp>&rsquo; take the translatable
string as sole argument.  It is also possible to define marking functions
that take it at another argument position.  It is even possible to make
the marked argument position depend on the total number of arguments of
the function call; this is useful in C++.  All this is achieved using
<code>xgettext</code>'s &lsquo;<samp><span class="samp">--keyword</span></samp>&rsquo; option.  How to pass such an option
to <code>xgettext</code>, assuming that <code>gettextize</code> is used, is described
in <a href="#po_002fMakevars">po/Makevars</a> and <a href="#AM_005fXGETTEXT_005fOPTION">AM_XGETTEXT_OPTION</a>.

   <p>Note also that long strings can be split across lines, into multiple
adjacent string tokens.  Automatic string concatenation is performed
at compile time according to ISO C and ISO C++; <code>xgettext</code> also
supports this syntax.

   <p>Later on, the maintenance is relatively easy.  If, as a programmer,
you add or modify a string, you will have to ask yourself if the
new or altered string requires translation, and include it within
&lsquo;<samp><span class="samp">_()</span></samp>&rsquo; if you think it should be translated.  For example, &lsquo;<samp><span class="samp">"%s"</span></samp>&rsquo;
is an example of string <em>not</em> requiring translation.  But
&lsquo;<samp><span class="samp">"%s: %d"</span></samp>&rsquo; <em>does</em> require translation, because in French, unlike
in English, it's customary to put a space before a colon.

<div class="node">
<a name="Marking"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#c_002dformat-Flag">c-format Flag</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Mark-Keywords">Mark Keywords</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.5 Marking Translatable Strings</h3>

   <p><a name="index-marking-strings-for-translation-145"></a>
In PO mode, one set of features is meant more for the programmer than
for the translator, and allows him to interactively mark which strings,
in a set of program sources, are translatable, and which are not. 
Even if it is a fairly easy job for a programmer to find and mark
such strings by other means, using any editor of his choice, PO mode
makes this work more comfortable.  Further, this gives translators
who feel a little like programmers, or programmers who feel a little
like translators, a tool letting them work at marking translatable
strings in the program sources, while simultaneously producing a set of
translation in some language, for the package being internationalized.

   <p><a name="index-g_t_0040code_007betags_007d_002c-using-for-marking-strings-146"></a>The set of program sources, targeted by the PO mode commands describe
here, should have an Emacs tags table constructed for your project,
prior to using these PO file commands.  This is easy to do.  In any
shell window, change the directory to the root of your project, then
execute a command resembling:

<pre class="example">     etags src/*.[hc] lib/*.[hc]
</pre>
   <p class="noindent">presuming here you want to process all <samp><span class="file">.h</span></samp> and <samp><span class="file">.c</span></samp> files
from the <samp><span class="file">src/</span></samp> and <samp><span class="file">lib/</span></samp> directories.  This command will
explore all said files and create a <samp><span class="file">TAGS</span></samp> file in your root
directory, somewhat summarizing the contents using a special file
format Emacs can understand.

   <p><a name="index-g_t_0040file_007bTAGS_007d_002c-and-marking-translatable-strings-147"></a>For packages following the GNU coding standards, there is
a make goal <code>tags</code> or <code>TAGS</code> which constructs the tag files in
all directories and for all files containing source code.

   <p>Once your <samp><span class="file">TAGS</span></samp> file is ready, the following commands assist
the programmer at marking translatable strings in his set of sources. 
But these commands are necessarily driven from within a PO file
window, and it is likely that you do not even have such a PO file yet. 
This is not a problem at all, as you may safely open a new, empty PO
file, mainly for using these commands.  This empty PO file will slowly
fill in while you mark strings as translatable in your program sources.

     <dl>
<dt><kbd>,</kbd><dd><a name="index-g_t_002c_0040r_007b_002c-PO-Mode-command_007d-148"></a>Search through program sources for a string which looks like a
candidate for translation (<code>po-tags-search</code>).

     <br><dt><kbd>M-,</kbd><dd><a name="index-M_002d_002c_0040r_007b_002c-PO-Mode-command_007d-149"></a>Mark the last string found with &lsquo;<samp><span class="samp">_()</span></samp>&rsquo; (<code>po-mark-translatable</code>).

     <br><dt><kbd>M-.</kbd><dd><a name="index-M_002d_002e_0040r_007b_002c-PO-Mode-command_007d-150"></a>Mark the last string found with a keyword taken from a set of possible
keywords.  This command with a prefix allows some management of these
keywords (<code>po-select-mark-and-mark</code>).

   </dl>

   <p><a name="index-po_002dtags_002dsearch_0040r_007b_002c-PO-Mode-command_007d-151"></a>The <kbd>,</kbd> (<code>po-tags-search</code>) command searches for the next
occurrence of a string which looks like a possible candidate for
translation, and displays the program source in another Emacs window,
positioned in such a way that the string is near the top of this other
window.  If the string is too big to fit whole in this window, it is
positioned so only its end is shown.  In any case, the cursor
is left in the PO file window.  If the shown string would be better
presented differently in different native languages, you may mark it
using <kbd>M-,</kbd> or <kbd>M-.</kbd>.  Otherwise, you might rather ignore it
and skip to the next string by merely repeating the <kbd>,</kbd> command.

   <p>A string is a good candidate for translation if it contains a sequence
of three or more letters.  A string containing at most two letters in
a row will be considered as a candidate if it has more letters than
non-letters.  The command disregards strings containing no letters,
or isolated letters only.  It also disregards strings within comments,
or strings already marked with some keyword PO mode knows (see below).

   <p>If you have never told Emacs about some <samp><span class="file">TAGS</span></samp> file to use, the
command will request that you specify one from the minibuffer, the
first time you use the command.  You may later change your <samp><span class="file">TAGS</span></samp>
file by using the regular Emacs command <kbd>M-x&nbsp;visit-tags-table</kbd><!-- /@w -->,
which will ask you to name the precise <samp><span class="file">TAGS</span></samp> file you want
to use.  See <a href="emacs.html#Tags">Tag Tables</a>.

   <p>Each time you use the <kbd>,</kbd> command, the search resumes from where it was
left by the previous search, and goes through all program sources,
obeying the <samp><span class="file">TAGS</span></samp> file, until all sources have been processed. 
However, by giving a prefix argument to the command (<kbd>C-u&nbsp;,</kbd>)<!-- /@w -->, you may request that the search be restarted all over again
from the first program source; but in this case, strings that you
recently marked as translatable will be automatically skipped.

   <p>Using this <kbd>,</kbd> command does not prevent using of other regular
Emacs tags commands.  For example, regular <code>tags-search</code> or
<code>tags-query-replace</code> commands may be used without disrupting the
independent <kbd>,</kbd> search sequence.  However, as implemented, the
<em>initial</em> <kbd>,</kbd> command (or the <kbd>,</kbd> command is used with a
prefix) might also reinitialize the regular Emacs tags searching to the
first tags file, this reinitialization might be considered spurious.

   <p><a name="index-po_002dmark_002dtranslatable_0040r_007b_002c-PO-Mode-command_007d-152"></a><a name="index-po_002dselect_002dmark_002dand_002dmark_0040r_007b_002c-PO-Mode-command_007d-153"></a>The <kbd>M-,</kbd> (<code>po-mark-translatable</code>) command will mark the
recently found string with the &lsquo;<samp><span class="samp">_</span></samp>&rsquo; keyword.  The <kbd>M-.</kbd>
(<code>po-select-mark-and-mark</code>) command will request that you type
one keyword from the minibuffer and use that keyword for marking
the string.  Both commands will automatically create a new PO file
untranslated entry for the string being marked, and make it the
current entry (making it easy for you to immediately proceed to its
translation, if you feel like doing it right away).  It is possible
that the modifications made to the program source by <kbd>M-,</kbd> or
<kbd>M-.</kbd> render some source line longer than 80 columns, forcing you
to break and re-indent this line differently.  You may use the <kbd>O</kbd>
command from PO mode, or any other window changing command from
Emacs, to break out into the program source window, and do any
needed adjustments.  You will have to use some regular Emacs command
to return the cursor to the PO file window, if you want command
<kbd>,</kbd> for the next string, say.

   <p>The <kbd>M-.</kbd> command has a few built-in speedups, so you do not
have to explicitly type all keywords all the time.  The first such
speedup is that you are presented with a <em>preferred</em> keyword,
which you may accept by merely typing <kbd>&lt;RET&gt;</kbd> at the prompt. 
The second speedup is that you may type any non-ambiguous prefix of the
keyword you really mean, and the command will complete it automatically
for you.  This also means that PO mode has to <em>know</em> all
your possible keywords, and that it will not accept mistyped keywords.

   <p>If you reply <kbd>?</kbd> to the keyword request, the command gives a
list of all known keywords, from which you may choose.  When the
command is prefixed by an argument (<kbd>C-u&nbsp;M-.</kbd>)<!-- /@w -->, it inhibits
updating any program source or PO file buffer, and does some simple
keyword management instead.  In this case, the command asks for a
keyword, written in full, which becomes a new allowed keyword for
later <kbd>M-.</kbd> commands.  Moreover, this new keyword automatically
becomes the <em>preferred</em> keyword for later commands.  By typing
an already known keyword in response to <kbd>C-u&nbsp;M-.</kbd><!-- /@w -->, one merely
changes the <em>preferred</em> keyword and does nothing more.

   <p>All keywords known for <kbd>M-.</kbd> are recognized by the <kbd>,</kbd> command
when scanning for strings, and strings already marked by any of those
known keywords are automatically skipped.  If many PO files are opened
simultaneously, each one has its own independent set of known keywords. 
There is no provision in PO mode, currently, for deleting a known
keyword, you have to quit the file (maybe using <kbd>q</kbd>) and reopen
it afresh.  When a PO file is newly brought up in an Emacs window, only
&lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; and &lsquo;<samp><span class="samp">_</span></samp>&rsquo; are known as keywords, and &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo;
is preferred for the <kbd>M-.</kbd> command.  In fact, this is not useful to
prefer &lsquo;<samp><span class="samp">_</span></samp>&rsquo;, as this one is already built in the <kbd>M-,</kbd> command.

<div class="node">
<a name="c-format-Flag"></a>
<a name="c_002dformat-Flag"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Special-cases">Special cases</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Marking">Marking</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.6 Special Comments preceding Keywords</h3>

<!-- FIXME document c-format and no-c-format. -->
   <p><a name="index-format-strings-154"></a>In C programs strings are often used within calls of functions from the
<code>printf</code> family.  The special thing about these format strings is
that they can contain format specifiers introduced with <kbd>%</kbd>.  Assume
we have the code

<pre class="example">     printf (gettext ("String `%s' has %d characters\n"), s, strlen (s));
</pre>
   <p class="noindent">A possible German translation for the above string might be:

<pre class="example">     "%d Zeichen lang ist die Zeichenkette `%s'"
</pre>
   <p>A C programmer, even if he cannot speak German, will recognize that
there is something wrong here.  The order of the two format specifiers
is changed but of course the arguments in the <code>printf</code> don't have. 
This will most probably lead to problems because now the length of the
string is regarded as the address.

   <p>To prevent errors at runtime caused by translations the <code>msgfmt</code>
tool can check statically whether the arguments in the original and the
translation string match in type and number.  If this is not the case
and the &lsquo;<samp><span class="samp">-c</span></samp>&rsquo; option has been passed to <code>msgfmt</code>, <code>msgfmt</code>
will give an error and refuse to produce a MO file.  Thus consequent
use of &lsquo;<samp><span class="samp">msgfmt -c</span></samp>&rsquo; will catch the error, so that it cannot cause
cause problems at runtime.

<p class="noindent">If the word order in the above German translation would be correct one
would have to write

<pre class="example">     "%2$d Zeichen lang ist die Zeichenkette `%1$s'"
</pre>
   <p class="noindent">The routines in <code>msgfmt</code> know about this special notation.

   <p>Because not all strings in a program must be format strings it is not
useful for <code>msgfmt</code> to test all the strings in the <samp><span class="file">.po</span></samp> file. 
This might cause problems because the string might contain what looks
like a format specifier, but the string is not used in <code>printf</code>.

   <p>Therefore the <code>xgettext</code> adds a special tag to those messages it
thinks might be a format string.  There is no absolute rule for this,
only a heuristic.  In the <samp><span class="file">.po</span></samp> file the entry is marked using the
<code>c-format</code> flag in the <code>#,</code> comment line (see <a href="#PO-Files">PO Files</a>).

   <p><a name="index-c_002dformat_0040r_007b_002c-and-_0040code_007bxgettext_007d_007d-155"></a><a name="index-no_002dc_002dformat_0040r_007b_002c-and-_0040code_007bxgettext_007d_007d-156"></a>The careful reader now might say that this again can cause problems. 
The heuristic might guess it wrong.  This is true and therefore
<code>xgettext</code> knows about a special kind of comment which lets
the programmer take over the decision.  If in the same line as or
the immediately preceding line to the <code>gettext</code> keyword
the <code>xgettext</code> program finds a comment containing the words
<code>xgettext:c-format</code>, it will mark the string in any case with
the <code>c-format</code> flag.  This kind of comment should be used when
<code>xgettext</code> does not recognize the string as a format string but
it really is one and it should be tested.  Please note that when the
comment is in the same line as the <code>gettext</code> keyword, it must be
before the string to be translated.

   <p>This situation happens quite often.  The <code>printf</code> function is often
called with strings which do not contain a format specifier.  Of course
one would normally use <code>fputs</code> but it does happen.  In this case
<code>xgettext</code> does not recognize this as a format string but what
happens if the translation introduces a valid format specifier?  The
<code>printf</code> function will try to access one of the parameters but none
exists because the original code does not pass any parameters.

   <p><code>xgettext</code> of course could make a wrong decision the other way
round, i.e. a string marked as a format string actually is not a format
string.  In this case the <code>msgfmt</code> might give too many warnings and
would prevent translating the <samp><span class="file">.po</span></samp> file.  The method to prevent
this wrong decision is similar to the one used above, only the comment
to use must contain the string <code>xgettext:no-c-format</code>.

   <p>If a string is marked with <code>c-format</code> and this is not correct the
user can find out who is responsible for the decision.  See
<a href="#xgettext-Invocation">xgettext Invocation</a> to see how the <code>--debug</code> option can be
used for solving this problem.

<div class="node">
<a name="Special-cases"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Bug-Report-Address">Bug Report Address</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#c_002dformat-Flag">c-format Flag</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.7 Special Cases of Translatable Strings</h3>

   <p><a name="index-marking-string-initializers-157"></a>The attentive reader might now point out that it is not always possible
to mark translatable string with <code>gettext</code> or something like this. 
Consider the following case:

<pre class="example">     {
       static const char *messages[] = {
         "some very meaningful message",
         "and another one"
       };
       const char *string;
       ...
       string
         = index &gt; 1 ? "a default message" : messages[index];
     
       fputs (string);
       ...
     }
</pre>
   <p>While it is no problem to mark the string <code>"a default message"</code> it
is not possible to mark the string initializers for <code>messages</code>. 
What is to be done?  We have to fulfill two tasks.  First we have to mark the
strings so that the <code>xgettext</code> program (see <a href="#xgettext-Invocation">xgettext Invocation</a>)
can find them, and second we have to translate the string at runtime
before printing them.

   <p>The first task can be fulfilled by creating a new keyword, which names a
no-op.  For the second we have to mark all access points to a string
from the array.  So one solution can look like this:

<pre class="example">     #define gettext_noop(String) String
     
     {
       static const char *messages[] = {
         gettext_noop ("some very meaningful message"),
         gettext_noop ("and another one")
       };
       const char *string;
       ...
       string
         = index &gt; 1 ? gettext ("a default message") : gettext (messages[index]);
     
       fputs (string);
       ...
     }
</pre>
   <p>Please convince yourself that the string which is written by
<code>fputs</code> is translated in any case.  How to get <code>xgettext</code> know
the additional keyword <code>gettext_noop</code> is explained in <a href="#xgettext-Invocation">xgettext Invocation</a>.

   <p>The above is of course not the only solution.  You could also come along
with the following one:

<pre class="example">     #define gettext_noop(String) String
     
     {
       static const char *messages[] = {
         gettext_noop ("some very meaningful message",
         gettext_noop ("and another one")
       };
       const char *string;
       ...
       string
         = index &gt; 1 ? gettext_noop ("a default message") : messages[index];
     
       fputs (gettext (string));
       ...
     }
</pre>
   <p>But this has a drawback.  The programmer has to take care that
he uses <code>gettext_noop</code> for the string <code>"a default message"</code>. 
A use of <code>gettext</code> could have in rare cases unpredictable results.

   <p>One advantage is that you need not make control flow analysis to make
sure the output is really translated in any case.  But this analysis is
generally not very difficult.  If it should be in any situation you can
use this second method in this situation.

<div class="node">
<a name="Bug-Report-Address"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Names">Names</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Special-cases">Special cases</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.8 Letting Users Report Translation Bugs</h3>

   <p>Code sometimes has bugs, but translations sometimes have bugs too.  The
users need to be able to report them.  Reporting translation bugs to the
programmer or maintainer of a package is not very useful, since the
maintainer must never change a translation, except on behalf of the
translator.  Hence the translation bugs must be reported to the
translators.

   <p>Here is a way to organize this so that the maintainer does not need to
forward translation bug reports, nor even keep a list of the addresses of
the translators or their translation teams.

   <p>Every program has a place where is shows the bug report address.  For
GNU programs, it is the code which handles the &ldquo;&ndash;help&rdquo; option,
typically in a function called &ldquo;usage&rdquo;.  In this place, instruct the
translator to add her own bug reporting address.  For example, if that
code has a statement

<pre class="example">     printf (_("Report bugs to &lt;%s&gt;.\n"), PACKAGE_BUGREPORT);
</pre>
   <p>you can add some translator instructions like this:

<pre class="example">     /* TRANSLATORS: The placeholder indicates the bug-reporting address
        for this package.  Please add _another line_ saying
        "Report translation bugs to &lt;...&gt;\n" with the address for translation
        bugs (typically your translation team's web or email address).  */
     printf (_("Report bugs to &lt;%s&gt;.\n"), PACKAGE_BUGREPORT);
</pre>
   <p>These will be extracted by &lsquo;<samp><span class="samp">xgettext</span></samp>&rsquo;, leading to a .pot file that
contains this:

<pre class="example">     #. TRANSLATORS: The placeholder indicates the bug-reporting address
     #. for this package.  Please add _another line_ saying
     #. "Report translation bugs to &lt;...&gt;\n" with the address for translation
     #. bugs (typically your translation team's web or email address).
     #: src/hello.c:178
     #, c-format
     msgid "Report bugs to &lt;%s&gt;.\n"
     msgstr ""
</pre>
   <div class="node">
<a name="Names"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Libraries">Libraries</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Bug-Report-Address">Bug Report Address</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.9 Marking Proper Names for Translation</h3>

   <p>Should names of persons, cities, locations etc. be marked for translation
or not?  People who only know languages that can be written with Latin
letters (English, Spanish, French, German, etc.) are tempted to say &ldquo;no&rdquo;,
because names usually do not change when transported between these languages. 
However, in general when translating from one script to another, names
are translated too, usually phonetically or by transliteration.  For
example, Russian or Greek names are converted to the Latin alphabet when
being translated to English, and English or French names are converted
to the Katakana script when being translated to Japanese.  This is
necessary because the speakers of the target language in general cannot
read the script the name is originally written in.

   <p>As a programmer, you should therefore make sure that names are marked
for translation, with a special comment telling the translators that it
is a proper name and how to pronounce it.  In its simple form, it looks
like this:

<pre class="example">     printf (_("Written by %s.\n"),
             /* TRANSLATORS: This is a proper name.  See the gettext
                manual, section Names.  Note this is actually a non-ASCII
                name: The first name is (with Unicode escapes)
                "Fran\u00e7ois" or (with HTML entities) "Fran&amp;ccedil;ois".
                Pronunciation is like "fraa-swa pee-nar".  */
             _("Francois Pinard"));
</pre>
   <p class="noindent">The GNU gnulib library offers a module &lsquo;<samp><span class="samp">propername</span></samp>&rsquo;
(<a href="http://www.gnu.org/software/gnulib/MODULES.html#module=propername">http://www.gnu.org/software/gnulib/MODULES.html#module=propername</a>)
which takes care to automatically append the original name, in parentheses,
to the translated name.  For names that cannot be written in ASCII, it
also frees the translator from the task of entering the appropriate non-ASCII
characters if no script change is needed.  In this more comfortable form,
it looks like this:

<pre class="example">     printf (_("Written by %s and %s.\n"),
             proper_name ("Ulrich Drepper"),
             /* TRANSLATORS: This is a proper name.  See the gettext
                manual, section Names.  Note this is actually a non-ASCII
                name: The first name is (with Unicode escapes)
                "Fran\u00e7ois" or (with HTML entities) "Fran&amp;ccedil;ois".
                Pronunciation is like "fraa-swa pee-nar".  */
             proper_name_utf8 ("Francois Pinard", "Fran\303\247ois Pinard"));
</pre>
   <p class="noindent">You can also write the original name directly in Unicode (rather than with
Unicode escapes or HTML entities) and denote the pronunciation using the
International Phonetic Alphabet (see
<a href="http://www.wikipedia.org/wiki/International_Phonetic_Alphabet">http://www.wikipedia.org/wiki/International_Phonetic_Alphabet</a>).

   <p>As a translator, you should use some care when translating names, because
it is frustrating if people see their names mutilated or distorted.

   <p>If your language uses the Latin script, all you need to do is to reproduce
the name as perfectly as you can within the usual character set of your
language.  In this particular case, this means to provide a translation
containing the c-cedilla character.  If your language uses a different
script and the people speaking it don't usually read Latin words, it means
transliteration.  If the programmer used the simple case, you should still
give, in parentheses, the original writing of the name &ndash; for the sake of
the people that do read the Latin script.  If the programmer used the
&lsquo;<samp><span class="samp">propername</span></samp>&rsquo; module mentioned above, you don't need to give the original
writing of the name in parentheses, because the program will already do so. 
Here is an example, using Greek as the target script:

<pre class="example">     #. This is a proper name.  See the gettext
     #. manual, section Names.  Note this is actually a non-ASCII
     #. name: The first name is (with Unicode escapes)
     #. "Fran\u00e7ois" or (with HTML entities) "Fran&amp;ccedil;ois".
     #. Pronunciation is like "fraa-swa pee-nar".
     msgid "Francois Pinard"
     msgstr "\phi\rho\alpha\sigma\omicron\alpha \pi\iota\nu\alpha\rho"
            " (Francois Pinard)"
</pre>
   <p>Because translation of names is such a sensitive domain, it is a good
idea to test your translation before submitting it.

<div class="node">
<a name="Libraries"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Names">Names</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Sources">Sources</a>

</div>

<h3 class="section">4.10 Preparing Library Sources</h3>

   <p>When you are preparing a library, not a program, for the use of
<code>gettext</code>, only a few details are different.  Here we assume that
the library has a translation domain and a POT file of its own.  (If
it uses the translation domain and POT file of the main program, then
the previous sections apply without changes.)

     <ol type=1 start=1>
<li>The library code doesn't call <code>setlocale (LC_ALL, "")</code>.  It's the
responsibility of the main program to set the locale.  The library's
documentation should mention this fact, so that developers of programs
using the library are aware of it.

     <li>The library code doesn't call <code>textdomain (PACKAGE)</code>, because it
would interfere with the text domain set by the main program.

     <li>The initialization code for a program was

     <pre class="smallexample">            setlocale (LC_ALL, "");
            bindtextdomain (PACKAGE, LOCALEDIR);
            textdomain (PACKAGE);
</pre>
     <p class="noindent">For a library it is reduced to

     <pre class="smallexample">            bindtextdomain (PACKAGE, LOCALEDIR);
</pre>
     <p class="noindent">If your library's API doesn't already have an initialization function,
you need to create one, containing at least the <code>bindtextdomain</code>
invocation.  However, you usually don't need to export and document this
initialization function: It is sufficient that all entry points of the
library call the initialization function if it hasn't been called before. 
The typical idiom used to achieve this is a static boolean variable that
indicates whether the initialization function has been called. Like this:

     <pre class="example">          static bool libfoo_initialized;
          
          static void
          libfoo_initialize (void)
          {
            bindtextdomain (PACKAGE, LOCALEDIR);
            libfoo_initialized = true;
          }
          
          /* This function is part of the exported API.  */
          struct foo *
          create_foo (...)
          {
            /* Must ensure the initialization is performed.  */
            if (!libfoo_initialized)
              libfoo_initialize ();
            ...
          }
          
          /* This function is part of the exported API.  The argument must be
             non-NULL and have been created through create_foo().  */
          int
          foo_refcount (struct foo *argument)
          {
            /* No need to invoke the initialization function here, because
               create_foo() must already have been called before.  */
            ...
          }
</pre>
     <li>The usual declaration of the &lsquo;<samp><span class="samp">_</span></samp>&rsquo; macro in each source file was

     <pre class="smallexample">          #include &lt;libintl.h&gt;
          #define _(String) gettext (String)
</pre>
     <p class="noindent">for a program.  For a library, which has its own translation domain,
it reads like this:

     <pre class="smallexample">          #include &lt;libintl.h&gt;
          #define _(String) dgettext (PACKAGE, String)
</pre>
     <p>In other words, <code>dgettext</code> is used instead of <code>gettext</code>. 
Similarly, the <code>dngettext</code> function should be used in place of the
<code>ngettext</code> function.
        </ol>

<div class="node">
<a name="Template"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Creating">Creating</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Sources">Sources</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">5 Making the PO Template File</h2>

   <p><a name="index-PO-template-file-158"></a>
After preparing the sources, the programmer creates a PO template file. 
This section explains how to use <code>xgettext</code> for this purpose.

   <p><code>xgettext</code> creates a file named <samp><var>domainname</var><span class="file">.po</span></samp>.  You
should then rename it to <samp><var>domainname</var><span class="file">.pot</span></samp>.  (Why doesn't
<code>xgettext</code> create it under the name <samp><var>domainname</var><span class="file">.pot</span></samp>
right away?  The answer is: for historical reasons.  When <code>xgettext</code>
was specified, the distinction between a PO file and PO file template
was fuzzy, and the suffix &lsquo;<samp><span class="samp">.pot</span></samp>&rsquo; wasn't in use at that time.)

<!-- FIXME: Rewrite. -->
<ul class="menu">
<li><a accesskey="1" href="#xgettext-Invocation">xgettext Invocation</a>:          Invoking the <code>xgettext</code> Program
</ul>

<div class="node">
<a name="xgettext-Invocation"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Template">Template</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Template">Template</a>

</div>

<h3 class="section">5.1 Invoking the <code>xgettext</code> Program</h3>

   <p><a name="index-xgettext-159"></a><a name="index-g_t_0040code_007bxgettext_007d-program_002c-usage-160"></a>
<pre class="example">     xgettext [<var>option</var>] [<var>inputfile</var>] ...
</pre>
   <p>The <code>xgettext</code> program extracts translatable strings from given
input files.

<h4 class="subsection">5.1.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var><span class="samp"> ...</span></samp>&rsquo;<dd>Input files.

     <br><dt>&lsquo;<samp><span class="samp">-f </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--files-from=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-161"></a><a name="index-g_t_002d_002dfiles_002dfrom_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-162"></a>Read the names of the input files from <var>file</var> instead of getting
them from the command line.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-163"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-164"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If <var>inputfile</var> is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">5.1.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-d </span><var>name</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--default-domain=</span><var>name</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-165"></a><a name="index-g_t_002d_002ddefault_002ddomain_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-166"></a>Use <samp><var>name</var><span class="file">.po</span></samp> for output (instead of <samp><span class="file">messages.po</span></samp>).

     <br><dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-167"></a><a name="index-g_t_002d_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-168"></a>Write output to specified file (instead of <samp><var>name</var><span class="file">.po</span></samp> or
<samp><span class="file">messages.po</span></samp>).

     <br><dt>&lsquo;<samp><span class="samp">-p </span><var>dir</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-dir=</span><var>dir</var></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-169"></a><a name="index-g_t_002d_002doutput_002ddir_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-170"></a>Output files will be placed in directory <var>dir</var>.

   </dl>

   <p><a name="index-output-to-stdout_002c-_0040code_007bxgettext_007d-171"></a>If the output <var>file</var> is &lsquo;<samp><span class="samp">-</span></samp>&rsquo; or &lsquo;<samp><span class="samp">/dev/stdout</span></samp>&rsquo;, the output
is written to standard output.

<h4 class="subsection">5.1.3 Choice of input file language</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-L </span><var>name</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--language=</span><var>name</var></samp>&rsquo;<dd><a name="index-g_t_002dL_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-172"></a><a name="index-g_t_002d_002dlanguage_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-173"></a><a name="index-supported-languages_002c-_0040code_007bxgettext_007d-174"></a>Specifies the language of the input files.  The supported languages
are <code>C</code>, <code>C++</code>, <code>ObjectiveC</code>, <code>PO</code>, <code>Python</code>,
<code>Lisp</code>, <code>EmacsLisp</code>, <code>librep</code>, <code>Scheme</code>, <code>Smalltalk</code>,
<code>Java</code>, <code>JavaProperties</code>, <code>C#</code>, <code>awk</code>, <code>YCP</code>,
<code>Tcl</code>, <code>Perl</code>, <code>PHP</code>, <code>GCC-source</code>, <code>NXStringTable</code>,
<code>RST</code>, <code>Glade</code>.

     <br><dt>&lsquo;<samp><span class="samp">-C</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--c++</span></samp>&rsquo;<dd><a name="index-g_t_002dC_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-175"></a><a name="index-g_t_002d_002dc_002b_002b_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-176"></a>This is a shorthand for <code>--language=C++</code>.

   </dl>

   <p>By default the language is guessed depending on the input file name
extension.

<h4 class="subsection">5.1.4 Input file interpretation</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">--from-code=</span><var>name</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dfrom_002dcode_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-177"></a>Specifies the encoding of the input files.  This option is needed only
if some untranslated message strings or their corresponding comments
contain non-ASCII characters.  Note that Tcl and Glade input files are
always assumed to be in UTF-8, regardless of this option.

   </dl>

   <p>By default the input files are assumed to be in ASCII.

<h4 class="subsection">5.1.5 Operation mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-j</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--join-existing</span></samp>&rsquo;<dd><a name="index-g_t_002dj_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-178"></a><a name="index-g_t_002d_002djoin_002dexisting_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-179"></a>Join messages with existing file.

     <br><dt>&lsquo;<samp><span class="samp">-x </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--exclude-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002dx_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-180"></a><a name="index-g_t_002d_002dexclude_002dfile_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-181"></a>Entries from <var>file</var> are not extracted.  <var>file</var> should be a PO or
POT file.

     <br><dt>&lsquo;<samp><span class="samp">-c[</span><var>tag</var><span class="samp">]</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--add-comments[=</span><var>tag</var><span class="samp">]</span></samp>&rsquo;<dd><a name="index-g_t_002dc_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-182"></a><a name="index-g_t_002d_002dadd_002dcomments_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-183"></a>Place comment blocks starting with <var>tag</var> and preceding keyword lines
in the output file.  Without a <var>tag</var>, the option means to put <em>all</em>
comment blocks preceding keyword lines in the output file.

   </dl>

<h4 class="subsection">5.1.6 Language specific options</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-a</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--extract-all</span></samp>&rsquo;<dd><a name="index-g_t_002da_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-184"></a><a name="index-g_t_002d_002dextract_002dall_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-185"></a>Extract all strings.

     <p>This option has an effect with most languages, namely C, C++, ObjectiveC,
Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP,
GCC-source, Glade.

     <br><dt>&lsquo;<samp><span class="samp">-k[</span><var>keywordspec</var><span class="samp">]</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--keyword[=</span><var>keywordspec</var><span class="samp">]</span></samp>&rsquo;<dd><a name="index-g_t_002dk_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-186"></a><a name="index-g_t_002d_002dkeyword_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-187"></a>Specify <var>keywordspec</var> as an additional keyword to be looked for. 
Without a <var>keywordspec</var>, the option means to not use default keywords.

     <p><a name="index-adding-keywords_002c-_0040code_007bxgettext_007d-188"></a><a name="index-context_002c-argument-specification-in-_0040code_007bxgettext_007d-189"></a>If <var>keywordspec</var> is a C identifier <var>id</var>, <code>xgettext</code> looks
for strings in the first argument of each call to the function or macro
<var>id</var>.  If <var>keywordspec</var> is of the form
&lsquo;<samp><var>id</var><span class="samp">:</span><var>argnum</var></samp>&rsquo;, <code>xgettext</code> looks for strings in the
<var>argnum</var>th argument of the call.  If <var>keywordspec</var> is of the form
&lsquo;<samp><var>id</var><span class="samp">:</span><var>argnum1</var><span class="samp">,</span><var>argnum2</var></samp>&rsquo;, <code>xgettext</code> looks for
strings in the <var>argnum1</var>st argument and in the <var>argnum2</var>nd argument
of the call, and treats them as singular/plural variants for a message
with plural handling.  Also, if <var>keywordspec</var> is of the form
&lsquo;<samp><var>id</var><span class="samp">:</span><var>contextargnum</var><span class="samp">c,</span><var>argnum</var></samp>&rsquo; or
&lsquo;<samp><var>id</var><span class="samp">:</span><var>argnum</var><span class="samp">,</span><var>contextargnum</var><span class="samp">c</span></samp>&rsquo;, <code>xgettext</code> treats
strings in the <var>contextargnum</var>th argument as a context specifier. 
And, as a special-purpose support for GNOME, if <var>keywordspec</var> is of the
form &lsquo;<samp><var>id</var><span class="samp">:</span><var>argnum</var><span class="samp">g</span></samp>&rsquo;, <code>xgettext</code> recognizes the
<var>argnum</var>th argument as a string with context, using the GNOME <code>glib</code>
syntax &lsquo;<samp><span class="samp">"msgctxt|msgid"</span></samp>&rsquo;. 
<br>
Furthermore, if <var>keywordspec</var> is of the form
&lsquo;<samp><var>id</var><span class="samp">:...,</span><var>totalnumargs</var><span class="samp">t</span></samp>&rsquo;, <code>xgettext</code> recognizes this
argument specification only if the number of actual arguments is equal to
<var>totalnumargs</var>.  This is useful for disambiguating overloaded function
calls in C++. 
<br>
Finally, if <var>keywordspec</var> is of the form
&lsquo;<samp><var>id</var><span class="samp">:</span><var>argnum</var><span class="samp">...,"</span><var>xcomment</var><span class="samp">"</span></samp>&rsquo;, <code>xgettext</code>, when
extracting a message from the specified argument strings, adds an extracted
comment <var>xcomment</var> to the message.  Note that when used through a normal
shell command line, the double-quotes around the <var>xcomment</var> need to be
escaped.

     <p>This option has an effect with most languages, namely C, C++, ObjectiveC,
Shell, Python, Lisp, EmacsLisp, librep, Java, C#, awk, Tcl, Perl, PHP,
GCC-source, Glade.

     <p>The default keyword specifications, which are always looked for if not
explicitly disabled, are language dependent.  They are:

          <ul>
<li>For C, C++, and GCC-source: <code>gettext</code>, <code>dgettext:2</code>,
<code>dcgettext:2</code>, <code>ngettext:1,2</code>, <code>dngettext:2,3</code>,
<code>dcngettext:2,3</code>, <code>gettext_noop</code>, and <code>pgettext:1c,2</code>,
<code>dpgettext:2c,3</code>, <code>dcpgettext:2c,3</code>, <code>npgettext:1c,2,3</code>,
<code>dnpgettext:2c,3,4</code>, <code>dcnpgettext:2c,3,4</code>.

          <li>For Objective C: Like for C, and also <code>NSLocalizedString</code>, <code>_</code>,
<code>NSLocalizedStaticString</code>, <code>__</code>.

          <li>For Shell scripts: <code>gettext</code>, <code>ngettext:1,2</code>, <code>eval_gettext</code>,
<code>eval_ngettext:1,2</code>.

          <li>For Python: <code>gettext</code>, <code>ugettext</code>, <code>dgettext:2</code>,
<code>ngettext:1,2</code>, <code>ungettext:1,2</code>, <code>dngettext:2,3</code>, <code>_</code>.

          <li>For Lisp: <code>gettext</code>, <code>ngettext:1,2</code>, <code>gettext-noop</code>.

          <li>For EmacsLisp: <code>_</code>.

          <li>For librep: <code>_</code>.

          <li>For Scheme: <code>gettext</code>, <code>ngettext:1,2</code>, <code>gettext-noop</code>.

          <li>For Java: <code>GettextResource.gettext:2</code>,
<code>GettextResource.ngettext:2,3</code>, <code>GettextResource.pgettext:2c,3</code>,
<code>GettextResource.npgettext:2c,3,4</code>, <code>gettext</code>, <code>ngettext:1,2</code>,
<code>pgettext:1c,2</code>, <code>npgettext:1c,2,3</code>, <code>getString</code>.

          <li>For C#: <code>GetString</code>, <code>GetPluralString:1,2</code>,
<code>GetParticularString:1c,2</code>, <code>GetParticularPluralString:1c,2,3</code>.

          <li>For awk: <code>dcgettext</code>, <code>dcngettext:1,2</code>.

          <li>For Tcl: <code>::msgcat::mc</code>.

          <li>For Perl: <code>gettext</code>, <code>%gettext</code>, <code>$gettext</code>, <code>dgettext:2</code>,
<code>dcgettext:2</code>, <code>ngettext:1,2</code>, <code>dngettext:2,3</code>,
<code>dcngettext:2,3</code>, <code>gettext_noop</code>.

          <li>For PHP: <code>_</code>, <code>gettext</code>, <code>dgettext:2</code>, <code>dcgettext:2</code>,
<code>ngettext:1,2</code>, <code>dngettext:2,3</code>, <code>dcngettext:2,3</code>.

          <li>For Glade 1: <code>label</code>, <code>title</code>, <code>text</code>, <code>format</code>,
<code>copyright</code>, <code>comments</code>, <code>preview_text</code>, <code>tooltip</code>. 
</ul>

     <p>To disable the default keyword specifications, the option &lsquo;<samp><span class="samp">-k</span></samp>&rsquo; or
&lsquo;<samp><span class="samp">--keyword</span></samp>&rsquo; or &lsquo;<samp><span class="samp">--keyword=</span></samp>&rsquo;, without a <var>keywordspec</var>, can be
used.

     <br><dt>&lsquo;<samp><span class="samp">--flag=</span><var>word</var><span class="samp">:</span><var>arg</var><span class="samp">:</span><var>flag</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dflag_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-190"></a>Specifies additional flags for strings occurring as part of the <var>arg</var>th
argument of the function <var>word</var>.  The possible flags are the possible
format string indicators, such as &lsquo;<samp><span class="samp">c-format</span></samp>&rsquo;, and their negations,
such as &lsquo;<samp><span class="samp">no-c-format</span></samp>&rsquo;, possibly prefixed with &lsquo;<samp><span class="samp">pass-</span></samp>&rsquo;. 
<br>
<a name="index-function-attribute_002c-_005f_005fformat_005f_005f-191"></a>The meaning of <code>--flag=</code><var>function</var><code>:</code><var>arg</var><code>:</code><var>lang</var><code>-format</code>
is that in language <var>lang</var>, the specified <var>function</var> expects as
<var>arg</var>th argument a format string.  (For those of you familiar with
GCC function attributes, <code>--flag=</code><var>function</var><code>:</code><var>arg</var><code>:c-format</code> is
roughly equivalent to the declaration
&lsquo;<samp><span class="samp">__attribute__ ((__format__ (__printf__, </span><var>arg</var><span class="samp">, ...)))</span></samp>&rsquo; attached
to <var>function</var> in a C source file.) 
For example, if you use the &lsquo;<samp><span class="samp">error</span></samp>&rsquo; function from GNU libc, you can
specify its behaviour through <code>--flag=error:3:c-format</code>.  The effect of
this specification is that <code>xgettext</code> will mark as format strings all
<code>gettext</code> invocations that occur as <var>arg</var>th argument of
<var>function</var>. 
This is useful when such strings contain no format string directives:
together with the checks done by &lsquo;<samp><span class="samp">msgfmt -c</span></samp>&rsquo; it will ensure that
translators cannot accidentally use format string directives that would
lead to a crash at runtime. 
<br>
<a name="index-function-attribute_002c-_005f_005fformat_005farg_005f_005f-192"></a>The meaning of <code>--flag=</code><var>function</var><code>:</code><var>arg</var><code>:pass-</code><var>lang</var><code>-format</code>
is that in language <var>lang</var>, if the <var>function</var> call occurs in a
position that must yield a format string, then its <var>arg</var>th argument
must yield a format string of the same type as well.  (If you know GCC
function attributes, the <code>--flag=</code><var>function</var><code>:</code><var>arg</var><code>:pass-c-format</code>
option is roughly equivalent to the declaration
&lsquo;<samp><span class="samp">__attribute__ ((__format_arg__ (</span><var>arg</var><span class="samp">)))</span></samp>&rsquo; attached to <var>function</var>
in a C source file.) 
For example, if you use the &lsquo;<samp><span class="samp">_</span></samp>&rsquo; shortcut for the <code>gettext</code> function,
you should use <code>--flag=_:1:pass-c-format</code>.  The effect of this
specification is that <code>xgettext</code> will propagate a format string
requirement for a <code>_("string")</code> call to its first argument, the literal
<code>"string"</code>, and thus mark it as a format string. 
This is useful when such strings contain no format string directives:
together with the checks done by &lsquo;<samp><span class="samp">msgfmt -c</span></samp>&rsquo; it will ensure that
translators cannot accidentally use format string directives that would
lead to a crash at runtime. 
<br>
This option has an effect with most languages, namely C, C++, ObjectiveC,
Shell, Python, Lisp, EmacsLisp, librep, Scheme, Java, C#, awk, YCP, Tcl, Perl, PHP,
GCC-source.

     <br><dt>&lsquo;<samp><span class="samp">-T</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--trigraphs</span></samp>&rsquo;<dd><a name="index-g_t_002dT_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-193"></a><a name="index-g_t_002d_002dtrigraphs_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-194"></a><a name="index-C-trigraphs-195"></a>Understand ANSI C trigraphs for input. 
<br>
This option has an effect only with the languages C, C++, ObjectiveC.

     <br><dt>&lsquo;<samp><span class="samp">--qt</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dqt_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-196"></a><a name="index-Qt-format-strings-197"></a>Recognize Qt format strings. 
<br>
This option has an effect only with the language C++.

     <br><dt>&lsquo;<samp><span class="samp">--kde</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dkde_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-198"></a><a name="index-KDE-format-strings-199"></a>Recognize KDE 4 format strings. 
<br>
This option has an effect only with the language C++.

     <br><dt>&lsquo;<samp><span class="samp">--boost</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dboost_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-200"></a><a name="index-Boost-format-strings-201"></a>Recognize Boost format strings. 
<br>
This option has an effect only with the language C++.

     <br><dt>&lsquo;<samp><span class="samp">--debug</span></samp>&rsquo;<dd><a name="index-g_t_002d_002ddebug_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-202"></a><a name="index-debugging-messages-marked-as-format-strings-203"></a>Use the flags <code>c-format</code> and <code>possible-c-format</code> to show who was
responsible for marking a message as a format string.  The latter form is
used if the <code>xgettext</code> program decided, the format form is used if
the programmer prescribed it.

     <p>By default only the <code>c-format</code> form is used.  The translator should
not have to care about these details.

   </dl>

   <p>This implementation of <code>xgettext</code> is able to process a few awkward
cases, like strings in preprocessor macros, ANSI concatenation of
adjacent strings, and escaped end of lines for continued strings.

<h4 class="subsection">5.1.7 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-204"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-205"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-206"></a>Always write an output file even if no message is defined.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-207"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-208"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-209"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.  Note that using
this option makes it harder for technically skilled translators to understand
each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002dn_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-210"></a><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-211"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-212"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-213"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-214"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-215"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-216"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-217"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-218"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-219"></a><a name="index-sorting-output-of-_0040code_007bxgettext_007d-220"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-221"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-222"></a>Sort output by file location.

     <br><dt>&lsquo;<samp><span class="samp">--omit-header</span></samp>&rsquo;<dd><a name="index-g_t_002d_002domit_002dheader_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-223"></a>Don't write header with &lsquo;<samp><span class="samp">msgid ""</span></samp>&rsquo; entry.

     <p><a name="index-testing-_0040file_007b_002epo_007d-files-for-equivalence-224"></a>This is useful for testing purposes because it eliminates a source
of variance for generated <code>.gmo</code> files.  With <code>--omit-header</code>,
two invocations of <code>xgettext</code> on the same files with the same
options at different times are guaranteed to produce the same results.

     <p>Note that using this option will lead to an error if the resulting file
would not entirely be in ASCII.

     <br><dt>&lsquo;<samp><span class="samp">--copyright-holder=</span><var>string</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcopyright_002dholder_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-225"></a>Set the copyright holder in the output.  <var>string</var> should be the
copyright holder of the surrounding package.  (Note that the msgstr
strings, extracted from the package's sources, belong to the copyright
holder of the package.)  Translators are expected to transfer or disclaim
the copyright for their translations, so that package maintainers can
distribute them without legal risk.  If <var>string</var> is empty, the output
files are marked as being in the public domain; in this case, the translators
are expected to disclaim their copyright, again so that package maintainers
can distribute them without legal risk.

     <p>The default value for <var>string</var> is the Free Software Foundation, Inc.,
simply because <code>xgettext</code> was first used in the GNU project.

     <br><dt>&lsquo;<samp><span class="samp">--foreign-user</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforeign_002duser_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-226"></a>Omit FSF copyright in output.  This option is equivalent to
&lsquo;<samp><span class="samp">--copyright-holder=''</span></samp>&rsquo;.  It can be useful for packages outside the GNU
project that want their translations to be in the public domain.

     <br><dt>&lsquo;<samp><span class="samp">--package-name=</span><var>package</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dpackage_002dname_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-227"></a>Set the package name in the header of the output.

     <br><dt>&lsquo;<samp><span class="samp">--package-version=</span><var>version</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dpackage_002dversion_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-228"></a>Set the package version in the header of the output.  This option has an
effect only if the &lsquo;<samp><span class="samp">--package-name</span></samp>&rsquo; option is also used.

     <br><dt>&lsquo;<samp><span class="samp">--msgid-bugs-address=</span><var>email@address</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dmsgid_002dbugs_002daddress_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-229"></a>Set the reporting address for msgid bugs.  This is the email address or URL
to which the translators shall report bugs in the untranslated strings:

          <ul>
<li>Strings which are not entire sentences, see the maintainer guidelines
in <a href="#Preparing-Strings">Preparing Strings</a>. 
<li>Strings which use unclear terms or require additional context to be
understood. 
<li>Strings which make invalid assumptions about notation of date, time or
money. 
<li>Pluralisation problems. 
<li>Incorrect English spelling. 
<li>Incorrect formatting. 
</ul>

     <p>It can be your email address, or a mailing list address where translators
can write to without being subscribed, or the URL of a web page through
which the translators can contact you.

     <p>The default value is empty, which means that translators will be clueless! 
Don't forget to specify this option.

     <br><dt>&lsquo;<samp><span class="samp">-m[</span><var>string</var><span class="samp">]</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--msgstr-prefix[=</span><var>string</var><span class="samp">]</span></samp>&rsquo;<dd><a name="index-g_t_002dm_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-230"></a><a name="index-g_t_002d_002dmsgstr_002dprefix_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-231"></a>Use <var>string</var> (or "" if not specified) as prefix for msgstr values.

     <br><dt>&lsquo;<samp><span class="samp">-M[</span><var>string</var><span class="samp">]</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--msgstr-suffix[=</span><var>string</var><span class="samp">]</span></samp>&rsquo;<dd><a name="index-g_t_002dM_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-232"></a><a name="index-g_t_002d_002dmsgstr_002dsuffix_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-233"></a>Use <var>string</var> (or "" if not specified) as suffix for msgstr values.

   </dl>

<h4 class="subsection">5.1.8 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-234"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-235"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-236"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-237"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="Creating"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Updating">Updating</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Template">Template</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">6 Creating a New PO File</h2>

   <p><a name="index-creating-a-new-PO-file-238"></a>
When starting a new translation, the translator creates a file called
<samp><var>LANG</var><span class="file">.po</span></samp>, as a copy of the <samp><var>package</var><span class="file">.pot</span></samp> template
file with modifications in the initial comments (at the beginning of the file)
and in the header entry (the first entry, near the beginning of the file).

   <p>The easiest way to do so is by use of the &lsquo;<samp><span class="samp">msginit</span></samp>&rsquo; program. 
For example:

<pre class="example">     $ cd <var>PACKAGE</var>-<var>VERSION</var>
     $ cd po
     $ msginit
</pre>
   <p>The alternative way is to do the copy and modifications by hand. 
To do so, the translator copies <samp><var>package</var><span class="file">.pot</span></samp> to
<samp><var>LANG</var><span class="file">.po</span></samp>.  Then she modifies the initial comments and
the header entry of this file.

<ul class="menu">
<li><a accesskey="1" href="#msginit-Invocation">msginit Invocation</a>:           Invoking the <code>msginit</code> Program
<li><a accesskey="2" href="#Header-Entry">Header Entry</a>:                 Filling in the Header Entry
</ul>

<div class="node">
<a name="msginit-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Header-Entry">Header Entry</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Creating">Creating</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Creating">Creating</a>

</div>

<h3 class="section">6.1 Invoking the <code>msginit</code> Program</h3>

   <p><a name="index-msginit-239"></a><a name="index-g_t_0040code_007bmsginit_007d-program_002c-usage-240"></a>
<pre class="example">     msginit [<var>option</var>]
</pre>
   <p><a name="index-create-new-PO-file-241"></a><a name="index-initialize-new-PO-file-242"></a>The <code>msginit</code> program creates a new PO file, initializing the meta
information with values from the user's environment.

<h4 class="subsection">6.1.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-i </span><var>inputfile</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--input=</span><var>inputfile</var></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-243"></a><a name="index-g_t_002d_002dinput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-244"></a>Input POT file.

   </dl>

   <p>If no <var>inputfile</var> is given, the current directory is searched for the
POT file.  If it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">6.1.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-245"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-246"></a>Write output to specified PO file.

   </dl>

   <p>If no output file is given, it depends on the &lsquo;<samp><span class="samp">--locale</span></samp>&rsquo; option or the
user's locale setting.  If it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, the results are written to
standard output.

<h4 class="subsection">6.1.3 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-247"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-248"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-249"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">6.1.4 Output details</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-l </span><var>ll_CC</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--locale=</span><var>ll_CC</var></samp>&rsquo;<dd><a name="index-g_t_002dl_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-250"></a><a name="index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-251"></a>Set target locale.  <var>ll</var> should be a language code, and <var>CC</var> should
be a country code.  The command &lsquo;<samp><span class="samp">locale -a</span></samp>&rsquo; can be used to output a list
of all installed locales.  The default is the user's locale setting.

     <br><dt>&lsquo;<samp><span class="samp">--no-translator</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dtranslator_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-252"></a>Declares that the PO file will not have a human translator and is instead
automatically generated.

     <br><dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-253"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-254"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-255"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-256"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-257"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-258"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-259"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-260"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

   </dl>

<h4 class="subsection">6.1.5 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-261"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-262"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-263"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-264"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="Header-Entry"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msginit-Invocation">msginit Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Creating">Creating</a>

</div>

<h3 class="section">6.2 Filling in the Header Entry</h3>

   <p><a name="index-header-entry-of-a-PO-file-265"></a>
The initial comments "SOME DESCRIPTIVE TITLE", "YEAR" and
"FIRST AUTHOR &lt;EMAIL@ADDRESS&gt;, YEAR" ought to be replaced by sensible
information.  This can be done in any text editor; if Emacs is used
and it switched to PO mode automatically (because it has recognized
the file's suffix), you can disable it by typing <kbd>M-x fundamental-mode</kbd>.

   <p>Modifying the header entry can already be done using PO mode: in Emacs,
type <kbd>M-x po-mode RET</kbd> and then <kbd>RET</kbd> again to start editing the
entry.  You should fill in the following fields.

     <dl>
<dt>Project-Id-Version<dd>This is the name and version of the package.  Fill it in if it has not
already been filled in by <code>xgettext</code>.

     <br><dt>Report-Msgid-Bugs-To<dd>This has already been filled in by <code>xgettext</code>.  It contains an email
address or URL where you can report bugs in the untranslated strings:

          <ul>
<li>Strings which are not entire sentences, see the maintainer guidelines
in <a href="#Preparing-Strings">Preparing Strings</a>. 
<li>Strings which use unclear terms or require additional context to be
understood. 
<li>Strings which make invalid assumptions about notation of date, time or
money. 
<li>Pluralisation problems. 
<li>Incorrect English spelling. 
<li>Incorrect formatting. 
</ul>

     <br><dt>POT-Creation-Date<dd>This has already been filled in by <code>xgettext</code>.

     <br><dt>PO-Revision-Date<dd>You don't need to fill this in.  It will be filled by the PO file editor
when you save the file.

     <br><dt>Last-Translator<dd>Fill in your name and email address (without double quotes).

     <br><dt>Language-Team<dd>Fill in the English name of the language, and the email address or
homepage URL of the language team you are part of.

     <p>Before starting a translation, it is a good idea to get in touch with
your translation team, not only to make sure you don't do duplicated work,
but also to coordinate difficult linguistic issues.

     <p><a name="index-list-of-translation-teams_002c-where-to-find-266"></a>In the Free Translation Project, each translation team has its own mailing
list.  The up-to-date list of teams can be found at the Free Translation
Project's homepage, <a href="http://translationproject.org/">http://translationproject.org/</a>, in the "Teams"
area.

     <br><dt>Language<dd><!-- The purpose of this field is to make it possible to automatically -->
<!--  convert PO files to translation memory, -->
<!--  initialize a spell checker based on the PO file, -->
<!--  perform language specific checks. -->
Fill in the language code of the language.  This can be in one of three
forms:

          <ul>
<li>&lsquo;<samp><var>ll</var></samp>&rsquo;, an ISO&nbsp;639<!-- /@w --> two-letter language code (lowercase). 
See <a href="#Language-Codes">Language Codes</a> for the list of codes.

          <li>&lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var></samp>&rsquo;, where &lsquo;<samp><var>ll</var></samp>&rsquo; is an ISO&nbsp;639<!-- /@w --> two-letter
language code (lowercase) and &lsquo;<samp><var>CC</var></samp>&rsquo; is an ISO&nbsp;3166<!-- /@w --> two-letter
country code (uppercase).  The country code specification is not redundant:
Some languages have dialects in different countries.  For example,
&lsquo;<samp><span class="samp">de_AT</span></samp>&rsquo; is used for Austria, and &lsquo;<samp><span class="samp">pt_BR</span></samp>&rsquo; for Brazil.  The country
code serves to distinguish the dialects. See <a href="#Language-Codes">Language Codes</a> and
<a href="#Country-Codes">Country Codes</a> for the lists of codes.

          <li>&lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var><span class="samp">@</span><var>variant</var></samp>&rsquo;, where &lsquo;<samp><var>ll</var></samp>&rsquo; is an
ISO&nbsp;639<!-- /@w --> two-letter language code (lowercase), &lsquo;<samp><var>CC</var></samp>&rsquo; is an
ISO&nbsp;3166<!-- /@w --> two-letter country code (uppercase), and &lsquo;<samp><var>variant</var></samp>&rsquo; is
a variant designator. The variant designator (lowercase) can be a script
designator, such as &lsquo;<samp><span class="samp">latin</span></samp>&rsquo; or &lsquo;<samp><span class="samp">cyrillic</span></samp>&rsquo;. 
</ul>

     <p>The naming convention &lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var></samp>&rsquo; is also the way locales are
named on systems based on GNU libc.  But there are three important differences:

          <ul>
<li>In this PO file field, but not in locale names, &lsquo;<samp><var>ll</var><span class="samp">_</span><var>CC</var></samp>&rsquo;
combinations denoting a language's main dialect are abbreviated as
&lsquo;<samp><var>ll</var></samp>&rsquo;.  For example, &lsquo;<samp><span class="samp">de</span></samp>&rsquo; is equivalent to &lsquo;<samp><span class="samp">de_DE</span></samp>&rsquo;
(German as spoken in Germany), and &lsquo;<samp><span class="samp">pt</span></samp>&rsquo; to &lsquo;<samp><span class="samp">pt_PT</span></samp>&rsquo; (Portuguese as
spoken in Portugal) in this context.

          <li>In this PO file field, suffixes like &lsquo;<samp><span class="samp">.</span><var>encoding</var></samp>&rsquo; are not used.

          <li>In this PO file field, variant designators that are not relevant to message
translation, such as &lsquo;<samp><span class="samp">@euro</span></samp>&rsquo;, are not used. 
</ul>

     <p>So, if your locale name is &lsquo;<samp><span class="samp">de_DE.UTF-8</span></samp>&rsquo;, the language specification in
PO files is just &lsquo;<samp><span class="samp">de</span></samp>&rsquo;.

     <br><dt>Content-Type<dd><a name="index-encoding-of-PO-files-267"></a><a name="index-charset-of-PO-files-268"></a>Replace &lsquo;<samp><span class="samp">CHARSET</span></samp>&rsquo; with the character encoding used for your language,
in your locale, or UTF-8.  This field is needed for correct operation of the
<code>msgmerge</code> and <code>msgfmt</code> programs, as well as for users whose
locale's character encoding differs from yours (see <a href="#Charset-conversion">Charset conversion</a>).

     <p><a name="index-g_t_0040code_007blocale_007d-program-269"></a>You get the character encoding of your locale by running the shell command
&lsquo;<samp><span class="samp">locale charmap</span></samp>&rsquo;.  If the result is &lsquo;<samp><span class="samp">C</span></samp>&rsquo; or &lsquo;<samp><span class="samp">ANSI_X3.4-1968</span></samp>&rsquo;,
which is equivalent to &lsquo;<samp><span class="samp">ASCII</span></samp>&rsquo; (= &lsquo;<samp><span class="samp">US-ASCII</span></samp>&rsquo;), it means that your
locale is not correctly configured.  In this case, ask your translation
team which charset to use.  &lsquo;<samp><span class="samp">ASCII</span></samp>&rsquo; is not usable for any language
except Latin.

     <p><a name="index-encoding-list-270"></a>Because the PO files must be portable to operating systems with less advanced
internationalization facilities, the character encodings that can be used
are limited to those supported by both GNU <code>libc</code> and GNU
<code>libiconv</code>.  These are:
<code>ASCII</code>, <code>ISO-8859-1</code>, <code>ISO-8859-2</code>, <code>ISO-8859-3</code>,
<code>ISO-8859-4</code>, <code>ISO-8859-5</code>, <code>ISO-8859-6</code>, <code>ISO-8859-7</code>,
<code>ISO-8859-8</code>, <code>ISO-8859-9</code>, <code>ISO-8859-13</code>, <code>ISO-8859-14</code>,
<code>ISO-8859-15</code>,
<code>KOI8-R</code>, <code>KOI8-U</code>, <code>KOI8-T</code>,
<code>CP850</code>, <code>CP866</code>, <code>CP874</code>,
<code>CP932</code>, <code>CP949</code>, <code>CP950</code>, <code>CP1250</code>, <code>CP1251</code>,
<code>CP1252</code>, <code>CP1253</code>, <code>CP1254</code>, <code>CP1255</code>, <code>CP1256</code>,
<code>CP1257</code>, <code>GB2312</code>, <code>EUC-JP</code>, <code>EUC-KR</code>, <code>EUC-TW</code>,
<code>BIG5</code>, <code>BIG5-HKSCS</code>, <code>GBK</code>, <code>GB18030</code>, <code>SHIFT_JIS</code>,
<code>JOHAB</code>, <code>TIS-620</code>, <code>VISCII</code>, <code>GEORGIAN-PS</code>, <code>UTF-8</code>.

     <!-- This data is taken from glibc/localedata/SUPPORTED. -->
     <p><a name="index-Linux-271"></a>In the GNU system, the following encodings are frequently used for the
corresponding languages.

     <p><a name="index-encoding-for-your-language-272"></a>
          <ul>
<li><code>ISO-8859-1</code> for
Afrikaans, Albanian, Basque, Breton, Catalan, Cornish, Danish, Dutch,
English, Estonian, Faroese, Finnish, French, Galician, German,
Greenlandic, Icelandic, Indonesian, Irish, Italian, Malay, Manx,
Norwegian, Occitan, Portuguese, Spanish, Swedish, Tagalog, Uzbek,
Walloon,
<li><code>ISO-8859-2</code> for
Bosnian, Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak,
Slovenian,
<li><code>ISO-8859-3</code> for Maltese,
<li><code>ISO-8859-5</code> for Macedonian, Serbian,
<li><code>ISO-8859-6</code> for Arabic,
<li><code>ISO-8859-7</code> for Greek,
<li><code>ISO-8859-8</code> for Hebrew,
<li><code>ISO-8859-9</code> for Turkish,
<li><code>ISO-8859-13</code> for Latvian, Lithuanian, Maori,
<li><code>ISO-8859-14</code> for Welsh,
<li><code>ISO-8859-15</code> for
Basque, Catalan, Dutch, English, Finnish, French, Galician, German, Irish,
Italian, Portuguese, Spanish, Swedish, Walloon,
<li><code>KOI8-R</code> for Russian,
<li><code>KOI8-U</code> for Ukrainian,
<li><code>KOI8-T</code> for Tajik,
<li><code>CP1251</code> for Bulgarian, Belarusian,
<li><code>GB2312</code>, <code>GBK</code>, <code>GB18030</code>
for simplified writing of Chinese,
<li><code>BIG5</code>, <code>BIG5-HKSCS</code>
for traditional writing of Chinese,
<li><code>EUC-JP</code> for Japanese,
<li><code>EUC-KR</code> for Korean,
<li><code>TIS-620</code> for Thai,
<li><code>GEORGIAN-PS</code> for Georgian,
<li><code>UTF-8</code> for any language, including those listed above. 
</ul>

     <p><a name="index-quote-characters_002c-use-in-PO-files-273"></a><a name="index-quotation-marks-274"></a>When single quote characters or double quote characters are used in
translations for your language, and your locale's encoding is one of the
ISO-8859-* charsets, it is best if you create your PO files in UTF-8
encoding, instead of your locale's encoding.  This is because in UTF-8
the real quote characters can be represented (single quote characters:
U+2018, U+2019, double quote characters: U+201C, U+201D), whereas none of
ISO-8859-* charsets has them all.  Users in UTF-8 locales will see the
real quote characters, whereas users in ISO-8859-* locales will see the
vertical apostrophe and the vertical double quote instead (because that's
what the character set conversion will transliterate them to).

     <p><a name="index-g_t_0040code_007bxmodmap_007d-program_002c-and-typing-quotation-marks-275"></a>To enter such quote characters under X11, you can change your keyboard
mapping using the <code>xmodmap</code> program.  The X11 names of the quote
characters are "leftsinglequotemark", "rightsinglequotemark",
"leftdoublequotemark", "rightdoublequotemark", "singlelowquotemark",
"doublelowquotemark".

     <p>Note that only recent versions of GNU Emacs support the UTF-8 encoding:
Emacs 20 with Mule-UCS, and Emacs 21.  As of January 2001, XEmacs doesn't
support the UTF-8 encoding.

     <p>The character encoding name can be written in either upper or lower case. 
Usually upper case is preferred.

     <br><dt>Content-Transfer-Encoding<dd>Set this to <code>8bit</code>.

     <br><dt>Plural-Forms<dd>This field is optional.  It is only needed if the PO file has plural forms. 
You can find them by searching for the &lsquo;<samp><span class="samp">msgid_plural</span></samp>&rsquo; keyword.  The
format of the plural forms field is described in <a href="#Plural-forms">Plural forms</a> and
<a href="#Translating-plural-forms">Translating plural forms</a>. 
</dl>

<div class="node">
<a name="Updating"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Editing">Editing</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Creating">Creating</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">7 Updating Existing PO Files</h2>

<ul class="menu">
<li><a accesskey="1" href="#msgmerge-Invocation">msgmerge Invocation</a>:          Invoking the <code>msgmerge</code> Program
</ul>

<div class="node">
<a name="msgmerge-Invocation"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Updating">Updating</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Updating">Updating</a>

</div>

<h3 class="section">7.1 Invoking the <code>msgmerge</code> Program</h3>

   <p><a name="index-msgmerge-276"></a><a name="index-g_t_0040code_007bmsgmerge_007d-program_002c-usage-277"></a>
<pre class="example">     msgmerge [<var>option</var>] <var>def</var>.po <var>ref</var>.pot
</pre>
   <p>The <code>msgmerge</code> program merges two Uniforum style .po files together. 
The <var>def</var>.po file is an existing PO file with translations which will
be taken over to the newly created file as long as they still match;
comments will be preserved, but extracted comments and file positions will
be discarded.  The <var>ref</var>.pot file is the last created PO file with
up-to-date source references but old translations, or a PO Template file
(generally created by <code>xgettext</code>); any translations or comments
in the file will be discarded, however dot comments and file positions
will be preserved.  Where an exact match cannot be found, fuzzy matching
is used to produce better results.

<h4 class="subsection">7.1.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>def</var><span class="samp">.po</span></samp>&rsquo;<dd>Translations referring to old sources.

     <br><dt>&lsquo;<samp><var>ref</var><span class="samp">.pot</span></samp>&rsquo;<dd>References to the new sources.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-278"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-279"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

     <br><dt>&lsquo;<samp><span class="samp">-C </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--compendium=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002dC_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-280"></a><a name="index-g_t_002d_002dcompendium_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-281"></a>Specify an additional library of message translations.  See <a href="#Compendium">Compendium</a>. 
This option may be specified more than once.

   </dl>

<h4 class="subsection">7.1.2 Operation mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-U</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--update</span></samp>&rsquo;<dd><a name="index-g_t_002dU_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-282"></a><a name="index-g_t_002d_002dupdate_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-283"></a>Update <var>def</var>.po.  Do nothing if <var>def</var>.po is already up to date.

   </dl>

<h4 class="subsection">7.1.3 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-284"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-285"></a>Write output to specified file.

   </dl>

   <p><a name="index-standard-output_002c-and-_0040code_007bmsgmerge_007d-program-286"></a>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">7.1.4 Output file location in update mode</h4>

   <p>The result is written back to <var>def</var>.po.

     <dl>
<dt>&lsquo;<samp><span class="samp">--backup=</span><var>control</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dbackup_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-287"></a><a name="index-backup-old-file_002c-and-_0040code_007bmsgmerge_007d-program-288"></a>Make a backup of <var>def</var>.po

     <br><dt>&lsquo;<samp><span class="samp">--suffix=</span><var>suffix</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dsuffix_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-289"></a>Override the usual backup suffix.

   </dl>

   <p><a name="index-version-control-for-backup-files_002c-_0040code_007bmsgmerge_007d-290"></a>The version control method may be selected via the <code>--backup</code> option
or through the <code>VERSION_CONTROL</code> environment variable.  Here are the
values:

     <dl>
<dt>&lsquo;<samp><span class="samp">none</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">off</span></samp>&rsquo;<dd>Never make backups (even if <code>--backup</code> is given).

     <br><dt>&lsquo;<samp><span class="samp">numbered</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">t</span></samp>&rsquo;<dd>Make numbered backups.

     <br><dt>&lsquo;<samp><span class="samp">existing</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">nil</span></samp>&rsquo;<dd>Make numbered backups if numbered backups for this file already exist,
otherwise make simple backups.

     <br><dt>&lsquo;<samp><span class="samp">simple</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">never</span></samp>&rsquo;<dd>Always make simple backups.

   </dl>

   <p>The backup suffix is &lsquo;<samp><span class="samp">~</span></samp>&rsquo;, unless set with <code>--suffix</code> or the
<code>SIMPLE_BACKUP_SUFFIX</code> environment variable.

<h4 class="subsection">7.1.5 Operation modifiers</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-m</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--multi-domain</span></samp>&rsquo;<dd><a name="index-g_t_002dm_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-291"></a><a name="index-g_t_002d_002dmulti_002ddomain_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-292"></a>Apply <var>ref</var>.pot to each of the domains in <var>def</var>.po.

     <br><dt>&lsquo;<samp><span class="samp">-N</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--no-fuzzy-matching</span></samp>&rsquo;<dd><a name="index-g_t_002dN_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-293"></a><a name="index-g_t_002d_002dno_002dfuzzy_002dmatching_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-294"></a>Do not use fuzzy matching when an exact match is not found.  This may speed
up the operation considerably.

     <br><dt>&lsquo;<samp><span class="samp">--previous</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dprevious_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-295"></a>Keep the previous msgids of translated messages, marked with &lsquo;<samp><span class="samp">#|</span></samp>&rsquo;, when
adding the fuzzy marker to such messages. 
</dl>

<h4 class="subsection">7.1.6 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-296"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-297"></a>Assume the input files are Java ResourceBundles in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-298"></a>Assume the input files are NeXTstep/GNUstep localized resource files in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">7.1.7 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--lang=</span><var>catalogname</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dlang_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-299"></a>Specify the &lsquo;<samp><span class="samp">Language</span></samp>&rsquo; field to be used in the header entry.  See
<a href="#Header-Entry">Header Entry</a> for the meaning of this field.  Note: The
&lsquo;<samp><span class="samp">Language-Team</span></samp>&rsquo; and &lsquo;<samp><span class="samp">Plural-Forms</span></samp>&rsquo; fields are left unchanged. 
If this option is not specified, the &lsquo;<samp><span class="samp">Language</span></samp>&rsquo; field is inferred, as
best as possible, from the &lsquo;<samp><span class="samp">Language-Team</span></samp>&rsquo; field.

     <br><dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-300"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-301"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-302"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-303"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-304"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-305"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-306"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-307"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-308"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-309"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-310"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-311"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-312"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-313"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-314"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-315"></a><a name="index-sorting-_0040code_007bmsgmerge_007d-output-316"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-317"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-318"></a>Sort output by file location.

   </dl>

<h4 class="subsection">7.1.8 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-319"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-320"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-321"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-322"></a>Output version information and exit.

     <br><dt>&lsquo;<samp><span class="samp">-v</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--verbose</span></samp>&rsquo;<dd><a name="index-g_t_002dv_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-323"></a><a name="index-g_t_002d_002dverbose_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-324"></a>Increase verbosity level.

     <br><dt>&lsquo;<samp><span class="samp">-q</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--quiet</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--silent</span></samp>&rsquo;<dd><a name="index-g_t_002dq_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-325"></a><a name="index-g_t_002d_002dquiet_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-326"></a><a name="index-g_t_002d_002dsilent_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-327"></a>Suppress progress indicators.

   </dl>

<div class="node">
<a name="Editing"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Manipulating">Manipulating</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Updating">Updating</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">8 Editing PO Files</h2>

   <p><a name="index-Editing-PO-Files-328"></a>

<ul class="menu">
<li><a accesskey="1" href="#KBabel">KBabel</a>:                       KDE's PO File Editor
<li><a accesskey="2" href="#Gtranslator">Gtranslator</a>:                  GNOME's PO File Editor
<li><a accesskey="3" href="#PO-Mode">PO Mode</a>:                      Emacs's PO File Editor
<li><a accesskey="4" href="#Compendium">Compendium</a>:                   Using Translation Compendia
</ul>

<div class="node">
<a name="KBabel"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Gtranslator">Gtranslator</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Editing">Editing</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Editing">Editing</a>

</div>

<h3 class="section">8.1 KDE's PO File Editor</h3>

   <p><a name="index-KDE-PO-file-editor-329"></a>
<div class="node">
<a name="Gtranslator"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#PO-Mode">PO Mode</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#KBabel">KBabel</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Editing">Editing</a>

</div>

<h3 class="section">8.2 GNOME's PO File Editor</h3>

   <p><a name="index-GNOME-PO-file-editor-330"></a>
<div class="node">
<a name="PO-Mode"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Compendium">Compendium</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Gtranslator">Gtranslator</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Editing">Editing</a>

</div>

<h3 class="section">8.3 Emacs's PO File Editor</h3>

   <p><a name="index-Emacs-PO-Mode-331"></a>
<!-- FIXME: Rewrite. -->

   <p>For those of you being
the lucky users of Emacs, PO mode has been specifically created
for providing a cozy environment for editing or modifying PO files. 
While editing a PO file, PO mode allows for the easy browsing of
auxiliary and compendium PO files, as well as for following references into
the set of C program sources from which PO files have been derived. 
It has a few special features, among which are the interactive marking
of program strings as translatable, and the validation of PO files
with easy repositioning to PO file lines showing errors.

   <p>For the beginning, besides main PO mode commands
(see <a href="#Main-PO-Commands">Main PO Commands</a>), you should know how to move between entries
(see <a href="#Entry-Positioning">Entry Positioning</a>), and how to handle untranslated entries
(see <a href="#Untranslated-Entries">Untranslated Entries</a>).

<ul class="menu">
<li><a accesskey="1" href="#Installation">Installation</a>:                 Completing GNU <code>gettext</code> Installation
<li><a accesskey="2" href="#Main-PO-Commands">Main PO Commands</a>:             Main Commands
<li><a accesskey="3" href="#Entry-Positioning">Entry Positioning</a>:            Entry Positioning
<li><a accesskey="4" href="#Normalizing">Normalizing</a>:                  Normalizing Strings in Entries
<li><a accesskey="5" href="#Translated-Entries">Translated Entries</a>:           Translated Entries
<li><a accesskey="6" href="#Fuzzy-Entries">Fuzzy Entries</a>:                Fuzzy Entries
<li><a accesskey="7" href="#Untranslated-Entries">Untranslated Entries</a>:         Untranslated Entries
<li><a accesskey="8" href="#Obsolete-Entries">Obsolete Entries</a>:             Obsolete Entries
<li><a accesskey="9" href="#Modifying-Translations">Modifying Translations</a>:       Modifying Translations
<li><a href="#Modifying-Comments">Modifying Comments</a>:           Modifying Comments
<li><a href="#Subedit">Subedit</a>:                      Mode for Editing Translations
<li><a href="#C-Sources-Context">C Sources Context</a>:            C Sources Context
<li><a href="#Auxiliary">Auxiliary</a>:                    Consulting Auxiliary PO Files
</ul>

<div class="node">
<a name="Installation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Main-PO-Commands">Main PO Commands</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#PO-Mode">PO Mode</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.1 Completing GNU <code>gettext</code> Installation</h4>

   <p><a name="index-installing-_0040code_007bgettext_007d-332"></a><a name="index-g_t_0040code_007bgettext_007d-installation-333"></a>Once you have received, unpacked, configured and compiled the GNU
<code>gettext</code> distribution, the &lsquo;<samp><span class="samp">make install</span></samp>&rsquo; command puts in
place the programs <code>xgettext</code>, <code>msgfmt</code>, <code>gettext</code>, and
<code>msgmerge</code>, as well as their available message catalogs.  To
top off a comfortable installation, you might also want to make the
PO mode available to your Emacs users.

   <p><a name="index-g_t_0040file_007b_002eemacs_007d-customizations-334"></a><a name="index-installing-PO-mode-335"></a>During the installation of the PO mode, you might want to modify your
file <samp><span class="file">.emacs</span></samp>, once and for all, so it contains a few lines looking
like:

<pre class="example">     (setq auto-mode-alist
           (cons '("\\.po\\'\\|\\.po\\." . po-mode) auto-mode-alist))
     (autoload 'po-mode "po-mode" "Major mode for translators to edit PO files" t)
</pre>
   <p>Later, whenever you edit some <samp><span class="file">.po</span></samp>
file, or any file having the string &lsquo;<samp><span class="samp">.po.</span></samp>&rsquo; within its name,
Emacs loads <samp><span class="file">po-mode.elc</span></samp> (or <samp><span class="file">po-mode.el</span></samp>) as needed, and
automatically activates PO mode commands for the associated buffer. 
The string <em>PO</em> appears in the mode line for any buffer for
which PO mode is active.  Many PO files may be active at once in a
single Emacs session.

   <p>If you are using Emacs version 20 or newer, and have already installed
the appropriate international fonts on your system, you may also tell
Emacs how to determine automatically the coding system of every PO file. 
This will often (but not always) cause the necessary fonts to be loaded
and used for displaying the translations on your Emacs screen.  For this
to happen, add the lines:

<pre class="example">     (modify-coding-system-alist 'file "\\.po\\'\\|\\.po\\."
                                 'po-find-file-coding-system)
     (autoload 'po-find-file-coding-system "po-mode")
</pre>
   <p class="noindent">to your <samp><span class="file">.emacs</span></samp> file.  If, with this, you still see boxes instead
of international characters, try a different font set (via Shift Mouse
button 1).

<div class="node">
<a name="Main-PO-Commands"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Entry-Positioning">Entry Positioning</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Installation">Installation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.2 Main PO mode Commands</h4>

   <p><a name="index-PO-mode-_0028Emacs_0029-commands-336"></a><a name="index-commands-337"></a>After setting up Emacs with something similar to the lines in
<a href="#Installation">Installation</a>, PO mode is activated for a window when Emacs finds a
PO file in that window.  This puts the window read-only and establishes a
po-mode-map, which is a genuine Emacs mode, in a way that is not derived
from text mode in any way.  Functions found on <code>po-mode-hook</code>,
if any, will be executed.

   <p>When PO mode is active in a window, the letters &lsquo;<samp><span class="samp">PO</span></samp>&rsquo; appear
in the mode line for that window.  The mode line also displays how
many entries of each kind are held in the PO file.  For example,
the string &lsquo;<samp><span class="samp">132t+3f+10u+2o</span></samp>&rsquo; would tell the translator that the
PO mode contains 132 translated entries (see <a href="#Translated-Entries">Translated Entries</a>,
3 fuzzy entries (see <a href="#Fuzzy-Entries">Fuzzy Entries</a>), 10 untranslated entries
(see <a href="#Untranslated-Entries">Untranslated Entries</a>) and 2 obsolete entries (see <a href="#Obsolete-Entries">Obsolete Entries</a>).  Zero-coefficients items are not shown.  So, in this example, if
the fuzzy entries were unfuzzied, the untranslated entries were translated
and the obsolete entries were deleted, the mode line would merely display
&lsquo;<samp><span class="samp">145t</span></samp>&rsquo; for the counters.

   <p>The main PO commands are those which do not fit into the other categories of
subsequent sections.  These allow for quitting PO mode or for managing windows
in special ways.

     <dl>
<dt><kbd>_</kbd><dd><a name="index-g_t_005f_0040r_007b_002c-PO-Mode-command_007d-338"></a>Undo last modification to the PO file (<code>po-undo</code>).

     <br><dt><kbd>Q</kbd><dd><a name="index-Q_0040r_007b_002c-PO-Mode-command_007d-339"></a>Quit processing and save the PO file (<code>po-quit</code>).

     <br><dt><kbd>q</kbd><dd><a name="index-q_0040r_007b_002c-PO-Mode-command_007d-340"></a>Quit processing, possibly after confirmation (<code>po-confirm-and-quit</code>).

     <br><dt><kbd>0</kbd><dd><a name="index-g_t0_0040r_007b_002c-PO-Mode-command_007d-341"></a>Temporary leave the PO file window (<code>po-other-window</code>).

     <br><dt><kbd>?</kbd><dt><kbd>h</kbd><dd><a name="index-g_t_003f_0040r_007b_002c-PO-Mode-command_007d-342"></a><a name="index-h_0040r_007b_002c-PO-Mode-command_007d-343"></a>Show help about PO mode (<code>po-help</code>).

     <br><dt><kbd>=</kbd><dd><a name="index-g_t_003d_0040r_007b_002c-PO-Mode-command_007d-344"></a>Give some PO file statistics (<code>po-statistics</code>).

     <br><dt><kbd>V</kbd><dd><a name="index-V_0040r_007b_002c-PO-Mode-command_007d-345"></a>Batch validate the format of the whole PO file (<code>po-validate</code>).

   </dl>

   <p><a name="index-g_t_005f_0040r_007b_002c-PO-Mode-command_007d-346"></a><a name="index-po_002dundo_0040r_007b_002c-PO-Mode-command_007d-347"></a>The command <kbd>_</kbd> (<code>po-undo</code>) interfaces to the Emacs
<em>undo</em> facility.  See <a href="emacs.html#Undo">Undoing Changes</a>.  Each time <kbd>_</kbd> is typed, modifications which the translator
did to the PO file are undone a little more.  For the purpose of
undoing, each PO mode command is atomic.  This is especially true for
the <kbd>&lt;RET&gt;</kbd> command: the whole edition made by using a single
use of this command is undone at once, even if the edition itself
implied several actions.  However, while in the editing window, one
can undo the edition work quite parsimoniously.

   <p><a name="index-Q_0040r_007b_002c-PO-Mode-command_007d-348"></a><a name="index-q_0040r_007b_002c-PO-Mode-command_007d-349"></a><a name="index-po_002dquit_0040r_007b_002c-PO-Mode-command_007d-350"></a><a name="index-po_002dconfirm_002dand_002dquit_0040r_007b_002c-PO-Mode-command_007d-351"></a>The commands <kbd>Q</kbd> (<code>po-quit</code>) and <kbd>q</kbd>
(<code>po-confirm-and-quit</code>) are used when the translator is done with the
PO file.  The former is a bit less verbose than the latter.  If the file
has been modified, it is saved to disk first.  In both cases, and prior to
all this, the commands check if any untranslated messages remain in the
PO file and, if so, the translator is asked if she really wants to leave
off working with this PO file.  This is the preferred way of getting rid
of an Emacs PO file buffer.  Merely killing it through the usual command
<kbd>C-x&nbsp;k</kbd><!-- /@w --> (<code>kill-buffer</code>) is not the tidiest way to proceed.

   <p><a name="index-g_t0_0040r_007b_002c-PO-Mode-command_007d-352"></a><a name="index-po_002dother_002dwindow_0040r_007b_002c-PO-Mode-command_007d-353"></a>The command <kbd>0</kbd> (<code>po-other-window</code>) is another, softer way,
to leave PO mode, temporarily.  It just moves the cursor to some other
Emacs window, and pops one if necessary.  For example, if the translator
just got PO mode to show some source context in some other, she might
discover some apparent bug in the program source that needs correction. 
This command allows the translator to change sex, become a programmer,
and have the cursor right into the window containing the program she
(or rather <em>he</em>) wants to modify.  By later getting the cursor back
in the PO file window, or by asking Emacs to edit this file once again,
PO mode is then recovered.

   <p><a name="index-g_t_003f_0040r_007b_002c-PO-Mode-command_007d-354"></a><a name="index-h_0040r_007b_002c-PO-Mode-command_007d-355"></a><a name="index-po_002dhelp_0040r_007b_002c-PO-Mode-command_007d-356"></a>The command <kbd>h</kbd> (<code>po-help</code>) displays a summary of all available PO
mode commands.  The translator should then type any character to resume
normal PO mode operations.  The command <kbd>?</kbd> has the same effect
as <kbd>h</kbd>.

   <p><a name="index-g_t_003d_0040r_007b_002c-PO-Mode-command_007d-357"></a><a name="index-po_002dstatistics_0040r_007b_002c-PO-Mode-command_007d-358"></a>The command <kbd>=</kbd> (<code>po-statistics</code>) computes the total number of
entries in the PO file, the ordinal of the current entry (counted from
1), the number of untranslated entries, the number of obsolete entries,
and displays all these numbers.

   <p><a name="index-V_0040r_007b_002c-PO-Mode-command_007d-359"></a><a name="index-po_002dvalidate_0040r_007b_002c-PO-Mode-command_007d-360"></a>The command <kbd>V</kbd> (<code>po-validate</code>) launches <code>msgfmt</code> in
checking and verbose
mode over the current PO file.  This command first offers to save the
current PO file on disk.  The <code>msgfmt</code> tool, from GNU <code>gettext</code>,
has the purpose of creating a MO file out of a PO file, and PO mode uses
the features of this program for checking the overall format of a PO file,
as well as all individual entries.

   <p><a name="index-next_002derror_0040r_007b_002c-stepping-through-PO-file-validation-results_007d-361"></a>The program <code>msgfmt</code> runs asynchronously with Emacs, so the
translator regains control immediately while her PO file is being studied. 
Error output is collected in the Emacs &lsquo;<samp><span class="samp">*compilation*</span></samp>&rsquo; buffer,
displayed in another window.  The regular Emacs command <kbd>C-x`</kbd>
(<code>next-error</code>), as well as other usual compile commands, allow the
translator to reposition quickly to the offending parts of the PO file. 
Once the cursor is on the line in error, the translator may decide on
any PO mode action which would help correcting the error.

<div class="node">
<a name="Entry-Positioning"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Normalizing">Normalizing</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Main-PO-Commands">Main PO Commands</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.3 Entry Positioning</h4>

   <p><a name="index-current-entry-of-a-PO-file-362"></a>The cursor in a PO file window is almost always part of
an entry.  The only exceptions are the special case when the cursor
is after the last entry in the file, or when the PO file is
empty.  The entry where the cursor is found to be is said to be the
current entry.  Many PO mode commands operate on the current entry,
so moving the cursor does more than allowing the translator to browse
the PO file, this also selects on which entry commands operate.

   <p><a name="index-moving-through-a-PO-file-363"></a>Some PO mode commands alter the position of the cursor in a specialized
way.  A few of those special purpose positioning are described here,
the others are described in following sections (for a complete list try
<kbd>C-h m</kbd>):

     <dl>
<dt><kbd>.</kbd><dd><a name="index-g_t_002e_0040r_007b_002c-PO-Mode-command_007d-364"></a>Redisplay the current entry (<code>po-current-entry</code>).

     <br><dt><kbd>n</kbd><dd><a name="index-n_0040r_007b_002c-PO-Mode-command_007d-365"></a>Select the entry after the current one (<code>po-next-entry</code>).

     <br><dt><kbd>p</kbd><dd><a name="index-p_0040r_007b_002c-PO-Mode-command_007d-366"></a>Select the entry before the current one (<code>po-previous-entry</code>).

     <br><dt><kbd>&lt;</kbd><dd><a name="index-g_t_003c_0040r_007b_002c-PO-Mode-command_007d-367"></a>Select the first entry in the PO file (<code>po-first-entry</code>).

     <br><dt><kbd>&gt;</kbd><dd><a name="index-g_t_003e_0040r_007b_002c-PO-Mode-command_007d-368"></a>Select the last entry in the PO file (<code>po-last-entry</code>).

     <br><dt><kbd>m</kbd><dd><a name="index-m_0040r_007b_002c-PO-Mode-command_007d-369"></a>Record the location of the current entry for later use
(<code>po-push-location</code>).

     <br><dt><kbd>r</kbd><dd><a name="index-r_0040r_007b_002c-PO-Mode-command_007d-370"></a>Return to a previously saved entry location (<code>po-pop-location</code>).

     <br><dt><kbd>x</kbd><dd><a name="index-x_0040r_007b_002c-PO-Mode-command_007d-371"></a>Exchange the current entry location with the previously saved one
(<code>po-exchange-location</code>).

   </dl>

   <p><a name="index-g_t_002e_0040r_007b_002c-PO-Mode-command_007d-372"></a><a name="index-po_002dcurrent_002dentry_0040r_007b_002c-PO-Mode-command_007d-373"></a>Any Emacs command able to reposition the cursor may be used
to select the current entry in PO mode, including commands which
move by characters, lines, paragraphs, screens or pages, and search
commands.  However, there is a kind of standard way to display the
current entry in PO mode, which usual Emacs commands moving
the cursor do not especially try to enforce.  The command <kbd>.</kbd>
(<code>po-current-entry</code>) has the sole purpose of redisplaying the
current entry properly, after the current entry has been changed by
means external to PO mode, or the Emacs screen otherwise altered.

   <p>It is yet to be decided if PO mode helps the translator, or otherwise
irritates her, by forcing a rigid window disposition while she
is doing her work.  We originally had quite precise ideas about
how windows should behave, but on the other hand, anyone used to
Emacs is often happy to keep full control.  Maybe a fixed window
disposition might be offered as a PO mode option that the translator
might activate or deactivate at will, so it could be offered on an
experimental basis.  If nobody feels a real need for using it, or
a compulsion for writing it, we should drop this whole idea. 
The incentive for doing it should come from translators rather than
programmers, as opinions from an experienced translator are surely
more worth to me than opinions from programmers <em>thinking</em> about
how <em>others</em> should do translation.

   <p><a name="index-n_0040r_007b_002c-PO-Mode-command_007d-374"></a><a name="index-po_002dnext_002dentry_0040r_007b_002c-PO-Mode-command_007d-375"></a><a name="index-p_0040r_007b_002c-PO-Mode-command_007d-376"></a><a name="index-po_002dprevious_002dentry_0040r_007b_002c-PO-Mode-command_007d-377"></a>The commands <kbd>n</kbd> (<code>po-next-entry</code>) and <kbd>p</kbd>
(<code>po-previous-entry</code>) move the cursor the entry following,
or preceding, the current one.  If <kbd>n</kbd> is given while the
cursor is on the last entry of the PO file, or if <kbd>p</kbd>
is given while the cursor is on the first entry, no move is done.

   <p><a name="index-g_t_003c_0040r_007b_002c-PO-Mode-command_007d-378"></a><a name="index-po_002dfirst_002dentry_0040r_007b_002c-PO-Mode-command_007d-379"></a><a name="index-g_t_003e_0040r_007b_002c-PO-Mode-command_007d-380"></a><a name="index-po_002dlast_002dentry_0040r_007b_002c-PO-Mode-command_007d-381"></a>The commands <kbd>&lt;</kbd> (<code>po-first-entry</code>) and <kbd>&gt;</kbd>
(<code>po-last-entry</code>) move the cursor to the first entry, or last
entry, of the PO file.  When the cursor is located past the last
entry in a PO file, most PO mode commands will return an error saying
&lsquo;<samp><span class="samp">After last entry</span></samp>&rsquo;.  Moreover, the commands <kbd>&lt;</kbd> and <kbd>&gt;</kbd>
have the special property of being able to work even when the cursor
is not into some PO file entry, and one may use them for nicely
correcting this situation.  But even these commands will fail on a
truly empty PO file.  There are development plans for the PO mode for it
to interactively fill an empty PO file from sources.  See <a href="#Marking">Marking</a>.

   <p>The translator may decide, before working at the translation of
a particular entry, that she needs to browse the remainder of the
PO file, maybe for finding the terminology or phraseology used
in related entries.  She can of course use the standard Emacs idioms
for saving the current cursor location in some register, and use that
register for getting back, or else, use the location ring.

   <p><a name="index-m_0040r_007b_002c-PO-Mode-command_007d-382"></a><a name="index-po_002dpush_002dlocation_0040r_007b_002c-PO-Mode-command_007d-383"></a><a name="index-r_0040r_007b_002c-PO-Mode-command_007d-384"></a><a name="index-po_002dpop_002dlocation_0040r_007b_002c-PO-Mode-command_007d-385"></a>PO mode offers another approach, by which cursor locations may be saved
onto a special stack.  The command <kbd>m</kbd> (<code>po-push-location</code>)
merely adds the location of current entry to the stack, pushing
the already saved locations under the new one.  The command
<kbd>r</kbd> (<code>po-pop-location</code>) consumes the top stack element and
repositions the cursor to the entry associated with that top element. 
This position is then lost, for the next <kbd>r</kbd> will move the cursor
to the previously saved location, and so on until no locations remain
on the stack.

   <p>If the translator wants the position to be kept on the location stack,
maybe for taking a look at the entry associated with the top
element, then go elsewhere with the intent of getting back later, she
ought to use <kbd>m</kbd> immediately after <kbd>r</kbd>.

   <p><a name="index-x_0040r_007b_002c-PO-Mode-command_007d-386"></a><a name="index-po_002dexchange_002dlocation_0040r_007b_002c-PO-Mode-command_007d-387"></a>The command <kbd>x</kbd> (<code>po-exchange-location</code>) simultaneously
repositions the cursor to the entry associated with the top element of
the stack of saved locations, and replaces that top element with the
location of the current entry before the move.  Consequently, repeating
the <kbd>x</kbd> command toggles alternatively between two entries. 
For achieving this, the translator will position the cursor on the
first entry, use <kbd>m</kbd>, then position to the second entry, and
merely use <kbd>x</kbd> for making the switch.

<div class="node">
<a name="Normalizing"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Translated-Entries">Translated Entries</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Entry-Positioning">Entry Positioning</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.4 Normalizing Strings in Entries</h4>

   <p><a name="index-string-normalization-in-entries-388"></a>
There are many different ways for encoding a particular string into a
PO file entry, because there are so many different ways to split and
quote multi-line strings, and even, to represent special characters
by backslashed escaped sequences.  Some features of PO mode rely on
the ability for PO mode to scan an already existing PO file for a
particular string encoded into the <code>msgid</code> field of some entry. 
Even if PO mode has internally all the built-in machinery for
implementing this recognition easily, doing it fast is technically
difficult.  To facilitate a solution to this efficiency problem,
we decided on a canonical representation for strings.

   <p>A conventional representation of strings in a PO file is currently
under discussion, and PO mode experiments with a canonical representation. 
Having both <code>xgettext</code> and PO mode converging towards a uniform
way of representing equivalent strings would be useful, as the internal
normalization needed by PO mode could be automatically satisfied
when using <code>xgettext</code> from GNU <code>gettext</code>.  An explicit
PO mode normalization should then be only necessary for PO files
imported from elsewhere, or for when the convention itself evolves.

   <p>So, for achieving normalization of at least the strings of a given
PO file needing a canonical representation, the following PO mode
command is available:

   <p><a name="index-string-normalization-in-entries-389"></a>
     <dl>
<dt><kbd>M-x po-normalize</kbd><dd><a name="index-po_002dnormalize_0040r_007b_002c-PO-Mode-command_007d-390"></a>Tidy the whole PO file by making entries more uniform.

   </dl>

   <p>The special command <kbd>M-x po-normalize</kbd>, which has no associated
keys, revises all entries, ensuring that strings of both original
and translated entries use uniform internal quoting in the PO file. 
It also removes any crumb after the last entry.  This command may be
useful for PO files freshly imported from elsewhere, or if we ever
improve on the canonical quoting format we use.  This canonical format
is not only meant for getting cleaner PO files, but also for greatly
speeding up <code>msgid</code> string lookup for some other PO mode commands.

   <p><kbd>M-x po-normalize</kbd> presently makes three passes over the entries. 
The first implements heuristics for converting PO files for GNU
<code>gettext</code> 0.6 and earlier, in which <code>msgid</code> and <code>msgstr</code>
fields were using K&amp;R style C string syntax for multi-line strings. 
These heuristics may fail for comments not related to obsolete
entries and ending with a backslash; they also depend on subsequent
passes for finalizing the proper commenting of continued lines for
obsolete entries.  This first pass might disappear once all oldish PO
files would have been adjusted.  The second and third pass normalize
all <code>msgid</code> and <code>msgstr</code> strings respectively.  They also
clean out those trailing backslashes used by XView's <code>msgfmt</code>
for continued lines.

   <p><a name="index-importing-PO-files-391"></a>Having such an explicit normalizing command allows for importing PO
files from other sources, but also eases the evolution of the current
convention, evolution driven mostly by aesthetic concerns, as of now. 
It is easy to make suggested adjustments at a later time, as the
normalizing command and eventually, other GNU <code>gettext</code> tools
should greatly automate conformance.  A description of the canonical
string format is given below, for the particular benefit of those not
having Emacs handy, and who would nevertheless want to handcraft
their PO files in nice ways.

   <p><a name="index-multi_002dline-strings-392"></a>Right now, in PO mode, strings are single line or multi-line.  A string
goes multi-line if and only if it has <em>embedded</em> newlines, that
is, if it matches &lsquo;<samp><span class="samp">[^\n]\n+[^\n]</span></samp>&rsquo;.  So, we would have:

<pre class="example">     msgstr "\n\nHello, world!\n\n\n"
</pre>
   <p>but, replacing the space by a newline, this becomes:

<pre class="example">     msgstr ""
     "\n"
     "\n"
     "Hello,\n"
     "world!\n"
     "\n"
     "\n"
</pre>
   <p>We are deliberately using a caricatural example, here, to make the
point clearer.  Usually, multi-lines are not that bad looking. 
It is probable that we will implement the following suggestion. 
We might lump together all initial newlines into the empty string,
and also all newlines introducing empty lines (that is, for <var>n</var>&nbsp;&gt;&nbsp;1<!-- /@w -->, the <var>n</var>-1'th last newlines would go together on a separate
string), so making the previous example appear:

<pre class="example">     msgstr "\n\n"
     "Hello,\n"
     "world!\n"
     "\n\n"
</pre>
   <p>There are a few yet undecided little points about string normalization,
to be documented in this manual, once these questions settle.

<div class="node">
<a name="Translated-Entries"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Fuzzy-Entries">Fuzzy Entries</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Normalizing">Normalizing</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.5 Translated Entries</h4>

   <p><a name="index-translated-entries-393"></a>
Each PO file entry for which the <code>msgstr</code> field has been filled with
a translation, and which is not marked as fuzzy (see <a href="#Fuzzy-Entries">Fuzzy Entries</a>),
is said to be a <dfn>translated</dfn> entry.  Only translated entries will
later be compiled by GNU <code>msgfmt</code> and become usable in programs. 
Other entry types will be excluded; translation will not occur for them.

   <p><a name="index-moving-by-translated-entries-394"></a>Some commands are more specifically related to translated entry processing.

     <dl>
<dt><kbd>t</kbd><dd><a name="index-t_0040r_007b_002c-PO-Mode-command_007d-395"></a>Find the next translated entry (<code>po-next-translated-entry</code>).

     <br><dt><kbd>T</kbd><dd><a name="index-T_0040r_007b_002c-PO-Mode-command_007d-396"></a>Find the previous translated entry (<code>po-previous-translated-entry</code>).

   </dl>

   <p><a name="index-t_0040r_007b_002c-PO-Mode-command_007d-397"></a><a name="index-po_002dnext_002dtranslated_002dentry_0040r_007b_002c-PO-Mode-command_007d-398"></a><a name="index-T_0040r_007b_002c-PO-Mode-command_007d-399"></a><a name="index-po_002dprevious_002dtranslated_002dentry_0040r_007b_002c-PO-Mode-command_007d-400"></a>The commands <kbd>t</kbd> (<code>po-next-translated-entry</code>) and <kbd>T</kbd>
(<code>po-previous-translated-entry</code>) move forwards or backwards, chasing
for an translated entry.  If none is found, the search is extended and
wraps around in the PO file buffer.

   <p><a name="index-po_002dauto_002dfuzzy_002don_002dedit_0040r_007b_002c-PO-Mode-variable_007d-401"></a>Translated entries usually result from the translator having edited in
a translation for them, <a href="#Modifying-Translations">Modifying Translations</a>.  However, if the
variable <code>po-auto-fuzzy-on-edit</code> is not <code>nil</code>, the entry having
received a new translation first becomes a fuzzy entry, which ought to
be later unfuzzied before becoming an official, genuine translated entry. 
See <a href="#Fuzzy-Entries">Fuzzy Entries</a>.

<div class="node">
<a name="Fuzzy-Entries"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Untranslated-Entries">Untranslated Entries</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Translated-Entries">Translated Entries</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.6 Fuzzy Entries</h4>

   <p><a name="index-fuzzy-entries-402"></a>
<a name="index-attributes-of-a-PO-file-entry-403"></a><a name="index-attribute_002c-fuzzy-404"></a>Each PO file entry may have a set of <dfn>attributes</dfn>, which are
qualities given a name and explicitly associated with the translation,
using a special system comment.  One of these attributes
has the name <code>fuzzy</code>, and entries having this attribute are said
to have a fuzzy translation.  They are called fuzzy entries, for short.

   <p>Fuzzy entries, even if they account for translated entries for
most other purposes, usually call for revision by the translator. 
Those may be produced by applying the program <code>msgmerge</code> to
update an older translated PO files according to a new PO template
file, when this tool hypothesises that some new <code>msgid</code> has
been modified only slightly out of an older one, and chooses to pair
what it thinks to be the old translation for the new modified entry. 
The slight alteration in the original string (the <code>msgid</code> string)
should often be reflected in the translated string, and this requires
the intervention of the translator.  For this reason, <code>msgmerge</code>
might mark some entries as being fuzzy.

   <p><a name="index-moving-by-fuzzy-entries-405"></a>Also, the translator may decide herself to mark an entry as fuzzy
for her own convenience, when she wants to remember that the entry
has to be later revisited.  So, some commands are more specifically
related to fuzzy entry processing.

     <dl>
<dt><kbd>f</kbd><dd><a name="index-f_0040r_007b_002c-PO-Mode-command_007d-406"></a><!-- better append "-entry" all the time. -ke- -->
Find the next fuzzy entry (<code>po-next-fuzzy-entry</code>).

     <br><dt><kbd>F</kbd><dd><a name="index-F_0040r_007b_002c-PO-Mode-command_007d-407"></a>Find the previous fuzzy entry (<code>po-previous-fuzzy-entry</code>).

     <br><dt><kbd>&lt;TAB&gt;</kbd><dd><a name="index-TAB_0040r_007b_002c-PO-Mode-command_007d-408"></a>Remove the fuzzy attribute of the current entry (<code>po-unfuzzy</code>).

   </dl>

   <p><a name="index-f_0040r_007b_002c-PO-Mode-command_007d-409"></a><a name="index-po_002dnext_002dfuzzy_002dentry_0040r_007b_002c-PO-Mode-command_007d-410"></a><a name="index-F_0040r_007b_002c-PO-Mode-command_007d-411"></a><a name="index-po_002dprevious_002dfuzzy_002dentry_0040r_007b_002c-PO-Mode-command_007d-412"></a>The commands <kbd>f</kbd> (<code>po-next-fuzzy-entry</code>) and <kbd>F</kbd>
(<code>po-previous-fuzzy-entry</code>) move forwards or backwards, chasing for
a fuzzy entry.  If none is found, the search is extended and wraps
around in the PO file buffer.

   <p><a name="index-TAB_0040r_007b_002c-PO-Mode-command_007d-413"></a><a name="index-po_002dunfuzzy_0040r_007b_002c-PO-Mode-command_007d-414"></a><a name="index-po_002dauto_002dselect_002don_002dunfuzzy_0040r_007b_002c-PO-Mode-variable_007d-415"></a>The command <kbd>&lt;TAB&gt;</kbd> (<code>po-unfuzzy</code>) removes the fuzzy
attribute associated with an entry, usually leaving it translated. 
Further, if the variable <code>po-auto-select-on-unfuzzy</code> has not
the <code>nil</code> value, the <kbd>&lt;TAB&gt;</kbd> command will automatically chase
for another interesting entry to work on.  The initial value of
<code>po-auto-select-on-unfuzzy</code> is <code>nil</code>.

   <p>The initial value of <code>po-auto-fuzzy-on-edit</code> is <code>nil</code>.  However,
if the variable <code>po-auto-fuzzy-on-edit</code> is set to <code>t</code>, any entry
edited through the <kbd>&lt;RET&gt;</kbd> command is marked fuzzy, as a way to
ensure some kind of double check, later.  In this case, the usual paradigm
is that an entry becomes fuzzy (if not already) whenever the translator
modifies it.  If she is satisfied with the translation, she then uses
<kbd>&lt;TAB&gt;</kbd> to pick another entry to work on, clearing the fuzzy attribute
on the same blow.  If she is not satisfied yet, she merely uses <kbd>&lt;SPC&gt;</kbd>
to chase another entry, leaving the entry fuzzy.

   <p><a name="index-DEL_0040r_007b_002c-PO-Mode-command_007d-416"></a><a name="index-po_002dfade_002dout_002dentry_0040r_007b_002c-PO-Mode-command_007d-417"></a>The translator may also use the <kbd>&lt;DEL&gt;</kbd> command
(<code>po-fade-out-entry</code>) over any translated entry to mark it as being
fuzzy, when she wants to easily leave a trace she wants to later return
working at this entry.

   <p>Also, when time comes to quit working on a PO file buffer with the <kbd>q</kbd>
command, the translator is asked for confirmation, if fuzzy string
still exists.

<div class="node">
<a name="Untranslated-Entries"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Obsolete-Entries">Obsolete Entries</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Fuzzy-Entries">Fuzzy Entries</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.7 Untranslated Entries</h4>

   <p><a name="index-untranslated-entries-418"></a>
When <code>xgettext</code> originally creates a PO file, unless told
otherwise, it initializes the <code>msgid</code> field with the untranslated
string, and leaves the <code>msgstr</code> string to be empty.  Such entries,
having an empty translation, are said to be <dfn>untranslated</dfn> entries. 
Later, when the programmer slightly modifies some string right in
the program, this change is later reflected in the PO file
by the appearance of a new untranslated entry for the modified string.

   <p>The usual commands moving from entry to entry consider untranslated
entries on the same level as active entries.  Untranslated entries
are easily recognizable by the fact they end with &lsquo;<samp><span class="samp">msgstr&nbsp;""</span></samp>&rsquo;<!-- /@w -->.

   <p><a name="index-moving-by-untranslated-entries-419"></a>The work of the translator might be (quite naively) seen as the process
of seeking for an untranslated entry, editing a translation for
it, and repeating these actions until no untranslated entries remain. 
Some commands are more specifically related to untranslated entry
processing.

     <dl>
<dt><kbd>u</kbd><dd><a name="index-u_0040r_007b_002c-PO-Mode-command_007d-420"></a>Find the next untranslated entry (<code>po-next-untranslated-entry</code>).

     <br><dt><kbd>U</kbd><dd><a name="index-U_0040r_007b_002c-PO-Mode-command_007d-421"></a>Find the previous untranslated entry (<code>po-previous-untransted-entry</code>).

     <br><dt><kbd>k</kbd><dd><a name="index-k_0040r_007b_002c-PO-Mode-command_007d-422"></a>Turn the current entry into an untranslated one (<code>po-kill-msgstr</code>).

   </dl>

   <p><a name="index-u_0040r_007b_002c-PO-Mode-command_007d-423"></a><a name="index-po_002dnext_002duntranslated_002dentry_0040r_007b_002c-PO-Mode-command_007d-424"></a><a name="index-U_0040r_007b_002c-PO-Mode-command_007d-425"></a><a name="index-po_002dprevious_002duntransted_002dentry_0040r_007b_002c-PO-Mode-command_007d-426"></a>The commands <kbd>u</kbd> (<code>po-next-untranslated-entry</code>) and <kbd>U</kbd>
(<code>po-previous-untransted-entry</code>) move forwards or backwards,
chasing for an untranslated entry.  If none is found, the search is
extended and wraps around in the PO file buffer.

   <p><a name="index-k_0040r_007b_002c-PO-Mode-command_007d-427"></a><a name="index-po_002dkill_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-428"></a>An entry can be turned back into an untranslated entry by
merely emptying its translation, using the command <kbd>k</kbd>
(<code>po-kill-msgstr</code>).  See <a href="#Modifying-Translations">Modifying Translations</a>.

   <p>Also, when time comes to quit working on a PO file buffer
with the <kbd>q</kbd> command, the translator is asked for confirmation,
if some untranslated string still exists.

<div class="node">
<a name="Obsolete-Entries"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Modifying-Translations">Modifying Translations</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Untranslated-Entries">Untranslated Entries</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.8 Obsolete Entries</h4>

   <p><a name="index-obsolete-entries-429"></a>
By <dfn>obsolete</dfn> PO file entries, we mean those entries which are
commented out, usually by <code>msgmerge</code> when it found that the
translation is not needed anymore by the package being localized.

   <p>The usual commands moving from entry to entry consider obsolete
entries on the same level as active entries.  Obsolete entries are
easily recognizable by the fact that all their lines start with
<code>#</code>, even those lines containing <code>msgid</code> or <code>msgstr</code>.

   <p>Commands exist for emptying the translation or reinitializing it
to the original untranslated string.  Commands interfacing with the
kill ring may force some previously saved text into the translation. 
The user may interactively edit the translation.  All these commands
may apply to obsolete entries, carefully leaving the entry obsolete
after the fact.

   <p><a name="index-moving-by-obsolete-entries-430"></a>Moreover, some commands are more specifically related to obsolete
entry processing.

     <dl>
<dt><kbd>o</kbd><dd><a name="index-o_0040r_007b_002c-PO-Mode-command_007d-431"></a>Find the next obsolete entry (<code>po-next-obsolete-entry</code>).

     <br><dt><kbd>O</kbd><dd><a name="index-O_0040r_007b_002c-PO-Mode-command_007d-432"></a>Find the previous obsolete entry (<code>po-previous-obsolete-entry</code>).

     <br><dt><kbd>&lt;DEL&gt;</kbd><dd><a name="index-DEL_0040r_007b_002c-PO-Mode-command_007d-433"></a>Make an active entry obsolete, or zap out an obsolete entry
(<code>po-fade-out-entry</code>).

   </dl>

   <p><a name="index-o_0040r_007b_002c-PO-Mode-command_007d-434"></a><a name="index-po_002dnext_002dobsolete_002dentry_0040r_007b_002c-PO-Mode-command_007d-435"></a><a name="index-O_0040r_007b_002c-PO-Mode-command_007d-436"></a><a name="index-po_002dprevious_002dobsolete_002dentry_0040r_007b_002c-PO-Mode-command_007d-437"></a>The commands <kbd>o</kbd> (<code>po-next-obsolete-entry</code>) and <kbd>O</kbd>
(<code>po-previous-obsolete-entry</code>) move forwards or backwards,
chasing for an obsolete entry.  If none is found, the search is
extended and wraps around in the PO file buffer.

   <p>PO mode does not provide ways for un-commenting an obsolete entry
and making it active, because this would reintroduce an original
untranslated string which does not correspond to any marked string
in the program sources.  This goes with the philosophy of never
introducing useless <code>msgid</code> values.

   <p><a name="index-DEL_0040r_007b_002c-PO-Mode-command_007d-438"></a><a name="index-po_002dfade_002dout_002dentry_0040r_007b_002c-PO-Mode-command_007d-439"></a><a name="index-obsolete-active-entry-440"></a><a name="index-comment-out-PO-file-entry-441"></a>However, it is possible to comment out an active entry, so making
it obsolete.  GNU <code>gettext</code> utilities will later react to the
disappearance of a translation by using the untranslated string. 
The command <kbd>&lt;DEL&gt;</kbd> (<code>po-fade-out-entry</code>) pushes the current entry
a little further towards annihilation.  If the entry is active (it is a
translated entry), then it is first made fuzzy.  If it is already fuzzy,
then the entry is merely commented out, with confirmation.  If the entry
is already obsolete, then it is completely deleted from the PO file. 
It is easy to recycle the translation so deleted into some other PO file
entry, usually one which is untranslated.  See <a href="#Modifying-Translations">Modifying Translations</a>.

   <p>Here is a quite interesting problem to solve for later development of
PO mode, for those nights you are not sleepy.  The idea would be that
PO mode might become bright enough, one of these days, to make good
guesses at retrieving the most probable candidate, among all obsolete
entries, for initializing the translation of a newly appeared string. 
I think it might be a quite hard problem to do this algorithmically, as
we have to develop good and efficient measures of string similarity. 
Right now, PO mode completely lets the decision to the translator,
when the time comes to find the adequate obsolete translation, it
merely tries to provide handy tools for helping her to do so.

<div class="node">
<a name="Modifying-Translations"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Modifying-Comments">Modifying Comments</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Obsolete-Entries">Obsolete Entries</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.9 Modifying Translations</h4>

   <p><a name="index-editing-translations-442"></a><a name="index-editing-translations-443"></a>
PO mode prevents direct modification of the PO file, by the usual
means Emacs gives for altering a buffer's contents.  By doing so,
it pretends helping the translator to avoid little clerical errors
about the overall file format, or the proper quoting of strings,
as those errors would be easily made.  Other kinds of errors are
still possible, but some may be caught and diagnosed by the batch
validation process, which the translator may always trigger by the
<kbd>V</kbd> command.  For all other errors, the translator has to rely on
her own judgment, and also on the linguistic reports submitted to her
by the users of the translated package, having the same mother tongue.

   <p>When the time comes to create a translation, correct an error diagnosed
mechanically or reported by a user, the translators have to resort to
using the following commands for modifying the translations.

     <dl>
<dt><kbd>&lt;RET&gt;</kbd><dd><a name="index-RET_0040r_007b_002c-PO-Mode-command_007d-444"></a>Interactively edit the translation (<code>po-edit-msgstr</code>).

     <br><dt><kbd>&lt;LFD&gt;</kbd><dt><kbd>C-j</kbd><dd><a name="index-LFD_0040r_007b_002c-PO-Mode-command_007d-445"></a><a name="index-C_002dj_0040r_007b_002c-PO-Mode-command_007d-446"></a>Reinitialize the translation with the original, untranslated string
(<code>po-msgid-to-msgstr</code>).

     <br><dt><kbd>k</kbd><dd><a name="index-k_0040r_007b_002c-PO-Mode-command_007d-447"></a>Save the translation on the kill ring, and delete it (<code>po-kill-msgstr</code>).

     <br><dt><kbd>w</kbd><dd><a name="index-w_0040r_007b_002c-PO-Mode-command_007d-448"></a>Save the translation on the kill ring, without deleting it
(<code>po-kill-ring-save-msgstr</code>).

     <br><dt><kbd>y</kbd><dd><a name="index-y_0040r_007b_002c-PO-Mode-command_007d-449"></a>Replace the translation, taking the new from the kill ring
(<code>po-yank-msgstr</code>).

   </dl>

   <p><a name="index-RET_0040r_007b_002c-PO-Mode-command_007d-450"></a><a name="index-po_002dedit_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-451"></a>The command <kbd>&lt;RET&gt;</kbd> (<code>po-edit-msgstr</code>) opens a new Emacs
window meant to edit in a new translation, or to modify an already existing
translation.  The new window contains a copy of the translation taken from
the current PO file entry, all ready for edition, expunged of all quoting
marks, fully modifiable and with the complete extent of Emacs modifying
commands.  When the translator is done with her modifications, she may use
<kbd>C-c&nbsp;C-c</kbd><!-- /@w --> to close the subedit window with the automatically requoted
results, or <kbd>C-c&nbsp;C-k</kbd><!-- /@w --> to abort her modifications.  See <a href="#Subedit">Subedit</a>,
for more information.

   <p><a name="index-LFD_0040r_007b_002c-PO-Mode-command_007d-452"></a><a name="index-C_002dj_0040r_007b_002c-PO-Mode-command_007d-453"></a><a name="index-po_002dmsgid_002dto_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-454"></a>The command <kbd>&lt;LFD&gt;</kbd> (<code>po-msgid-to-msgstr</code>) initializes, or
reinitializes the translation with the original string.  This command is
normally used when the translator wants to redo a fresh translation of
the original string, disregarding any previous work.

   <p><a name="index-po_002dauto_002dedit_002dwith_002dmsgid_0040r_007b_002c-PO-Mode-variable_007d-455"></a>It is possible to arrange so, whenever editing an untranslated
entry, the <kbd>&lt;LFD&gt;</kbd> command be automatically executed.  If you set
<code>po-auto-edit-with-msgid</code> to <code>t</code>, the translation gets
initialised with the original string, in case none exists already. 
The default value for <code>po-auto-edit-with-msgid</code> is <code>nil</code>.

   <p><a name="index-starting-a-string-translation-456"></a>In fact, whether it is best to start a translation with an empty
string, or rather with a copy of the original string, is a matter of
taste or habit.  Sometimes, the source language and the
target language are so different that is simply best to start writing
on an empty page.  At other times, the source and target languages
are so close that it would be a waste to retype a number of words
already being written in the original string.  A translator may also
like having the original string right under her eyes, as she will
progressively overwrite the original text with the translation, even
if this requires some extra editing work to get rid of the original.

   <p><a name="index-cut-and-paste-for-translated-strings-457"></a><a name="index-k_0040r_007b_002c-PO-Mode-command_007d-458"></a><a name="index-po_002dkill_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-459"></a><a name="index-w_0040r_007b_002c-PO-Mode-command_007d-460"></a><a name="index-po_002dkill_002dring_002dsave_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-461"></a>The command <kbd>k</kbd> (<code>po-kill-msgstr</code>) merely empties the
translation string, so turning the entry into an untranslated
one.  But while doing so, its previous contents is put apart in
a special place, known as the kill ring.  The command <kbd>w</kbd>
(<code>po-kill-ring-save-msgstr</code>) has also the effect of taking a
copy of the translation onto the kill ring, but it otherwise leaves
the entry alone, and does <em>not</em> remove the translation from the
entry.  Both commands use exactly the Emacs kill ring, which is shared
between buffers, and which is well known already to Emacs lovers.

   <p>The translator may use <kbd>k</kbd> or <kbd>w</kbd> many times in the course
of her work, as the kill ring may hold several saved translations. 
From the kill ring, strings may later be reinserted in various
Emacs buffers.  In particular, the kill ring may be used for moving
translation strings between different entries of a single PO file
buffer, or if the translator is handling many such buffers at once,
even between PO files.

   <p>To facilitate exchanges with buffers which are not in PO mode, the
translation string put on the kill ring by the <kbd>k</kbd> command is fully
unquoted before being saved: external quotes are removed, multi-line
strings are concatenated, and backslash escaped sequences are turned
into their corresponding characters.  In the special case of obsolete
entries, the translation is also uncommented prior to saving.

   <p><a name="index-y_0040r_007b_002c-PO-Mode-command_007d-462"></a><a name="index-po_002dyank_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-463"></a>The command <kbd>y</kbd> (<code>po-yank-msgstr</code>) completely replaces the
translation of the current entry by a string taken from the kill ring. 
Following Emacs terminology, we then say that the replacement
string is <dfn>yanked</dfn> into the PO file buffer. 
See <a href="emacs.html#Yanking">Yanking</a>. 
The first time <kbd>y</kbd> is used, the translation receives the value of
the most recent addition to the kill ring.  If <kbd>y</kbd> is typed once
again, immediately, without intervening keystrokes, the translation
just inserted is taken away and replaced by the second most recent
addition to the kill ring.  By repeating <kbd>y</kbd> many times in a row,
the translator may travel along the kill ring for saved strings,
until she finds the string she really wanted.

   <p>When a string is yanked into a PO file entry, it is fully and
automatically requoted for complying with the format PO files should
have.  Further, if the entry is obsolete, PO mode then appropriately
push the inserted string inside comments.  Once again, translators
should not burden themselves with quoting considerations besides, of
course, the necessity of the translated string itself respective to
the program using it.

   <p>Note that <kbd>k</kbd> or <kbd>w</kbd> are not the only commands pushing strings
on the kill ring, as almost any PO mode command replacing translation
strings (or the translator comments) automatically saves the old string
on the kill ring.  The main exceptions to this general rule are the
yanking commands themselves.

   <p><a name="index-using-obsolete-translations-to-make-new-entries-464"></a>To better illustrate the operation of killing and yanking, let's
use an actual example, taken from a common situation.  When the
programmer slightly modifies some string right in the program, his
change is later reflected in the PO file by the appearance
of a new untranslated entry for the modified string, and the fact
that the entry translating the original or unmodified string becomes
obsolete.  In many cases, the translator might spare herself some work
by retrieving the unmodified translation from the obsolete entry,
then initializing the untranslated entry <code>msgstr</code> field with
this retrieved translation.  Once this done, the obsolete entry is
not wanted anymore, and may be safely deleted.

   <p>When the translator finds an untranslated entry and suspects that a
slight variant of the translation exists, she immediately uses <kbd>m</kbd>
to mark the current entry location, then starts chasing obsolete
entries with <kbd>o</kbd>, hoping to find some translation corresponding
to the unmodified string.  Once found, she uses the <kbd>&lt;DEL&gt;</kbd> command
for deleting the obsolete entry, knowing that <kbd>&lt;DEL&gt;</kbd> also <em>kills</em>
the translation, that is, pushes the translation on the kill ring. 
Then, <kbd>r</kbd> returns to the initial untranslated entry, and <kbd>y</kbd>
then <em>yanks</em> the saved translation right into the <code>msgstr</code>
field.  The translator is then free to use <kbd>&lt;RET&gt;</kbd> for fine
tuning the translation contents, and maybe to later use <kbd>u</kbd>,
then <kbd>m</kbd> again, for going on with the next untranslated string.

   <p>When some sequence of keys has to be typed over and over again, the
translator may find it useful to become better acquainted with the Emacs
capability of learning these sequences and playing them back under request. 
See <a href="emacs.html#Keyboard-Macros">Keyboard Macros</a>.

<div class="node">
<a name="Modifying-Comments"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Subedit">Subedit</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Modifying-Translations">Modifying Translations</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.10 Modifying Comments</h4>

   <p><a name="index-editing-comments-in-PO-files-465"></a><a name="index-editing-comments-466"></a>
Any translation work done seriously will raise many linguistic
difficulties, for which decisions have to be made, and the choices
further documented.  These documents may be saved within the
PO file in form of translator comments, which the translator
is free to create, delete, or modify at will.  These comments may
be useful to herself when she returns to this PO file after a while.

   <p>Comments not having whitespace after the initial &lsquo;<samp><span class="samp">#</span></samp>&rsquo;, for example,
those beginning with &lsquo;<samp><span class="samp">#.</span></samp>&rsquo; or &lsquo;<samp><span class="samp">#:</span></samp>&rsquo;, are <em>not</em> translator
comments, they are exclusively created by other <code>gettext</code> tools. 
So, the commands below will never alter such system added comments,
they are not meant for the translator to modify.  See <a href="#PO-Files">PO Files</a>.

   <p>The following commands are somewhat similar to those modifying translations,
so the general indications given for those apply here.  See <a href="#Modifying-Translations">Modifying Translations</a>.

     <dl>
<dt><kbd>#</kbd><dd><a name="index-g_t_0023_0040r_007b_002c-PO-Mode-command_007d-467"></a>Interactively edit the translator comments (<code>po-edit-comment</code>).

     <br><dt><kbd>K</kbd><dd><a name="index-K_0040r_007b_002c-PO-Mode-command_007d-468"></a>Save the translator comments on the kill ring, and delete it
(<code>po-kill-comment</code>).

     <br><dt><kbd>W</kbd><dd><a name="index-W_0040r_007b_002c-PO-Mode-command_007d-469"></a>Save the translator comments on the kill ring, without deleting it
(<code>po-kill-ring-save-comment</code>).

     <br><dt><kbd>Y</kbd><dd><a name="index-Y_0040r_007b_002c-PO-Mode-command_007d-470"></a>Replace the translator comments, taking the new from the kill ring
(<code>po-yank-comment</code>).

   </dl>

   <p>These commands parallel PO mode commands for modifying the translation
strings, and behave much the same way as they do, except that they handle
this part of PO file comments meant for translator usage, rather
than the translation strings.  So, if the descriptions given below are
slightly succinct, it is because the full details have already been given. 
See <a href="#Modifying-Translations">Modifying Translations</a>.

   <p><a name="index-g_t_0023_0040r_007b_002c-PO-Mode-command_007d-471"></a><a name="index-po_002dedit_002dcomment_0040r_007b_002c-PO-Mode-command_007d-472"></a>The command <kbd>#</kbd> (<code>po-edit-comment</code>) opens a new Emacs window
containing a copy of the translator comments on the current PO file entry. 
If there are no such comments, PO mode understands that the translator wants
to add a comment to the entry, and she is presented with an empty screen. 
Comment marks (<code>#</code>) and the space following them are automatically
removed before edition, and reinstated after.  For translator comments
pertaining to obsolete entries, the uncommenting and recommenting operations
are done twice.  Once in the editing window, the keys <kbd>C-c&nbsp;C-c</kbd><!-- /@w -->
allow the translator to tell she is finished with editing the comment. 
See <a href="#Subedit">Subedit</a>, for further details.

   <p><a name="index-po_002dsubedit_002dmode_002dhook_0040r_007b_002c-PO-Mode-variable_007d-473"></a>Functions found on <code>po-subedit-mode-hook</code>, if any, are executed after
the string has been inserted in the edit buffer.

   <p><a name="index-K_0040r_007b_002c-PO-Mode-command_007d-474"></a><a name="index-po_002dkill_002dcomment_0040r_007b_002c-PO-Mode-command_007d-475"></a><a name="index-W_0040r_007b_002c-PO-Mode-command_007d-476"></a><a name="index-po_002dkill_002dring_002dsave_002dcomment_0040r_007b_002c-PO-Mode-command_007d-477"></a><a name="index-Y_0040r_007b_002c-PO-Mode-command_007d-478"></a><a name="index-po_002dyank_002dcomment_0040r_007b_002c-PO-Mode-command_007d-479"></a>The command <kbd>K</kbd> (<code>po-kill-comment</code>) gets rid of all
translator comments, while saving those comments on the kill ring. 
The command <kbd>W</kbd> (<code>po-kill-ring-save-comment</code>) takes
a copy of the translator comments on the kill ring, but leaves
them undisturbed in the current entry.  The command <kbd>Y</kbd>
(<code>po-yank-comment</code>) completely replaces the translator comments
by a string taken at the front of the kill ring.  When this command
is immediately repeated, the comments just inserted are withdrawn,
and replaced by other strings taken along the kill ring.

   <p>On the kill ring, all strings have the same nature.  There is no
distinction between <em>translation</em> strings and <em>translator
comments</em> strings.  So, for example, let's presume the translator
has just finished editing a translation, and wants to create a new
translator comment to document why the previous translation was
not good, just to remember what was the problem.  Foreseeing that she
will do that in her documentation, the translator may want to quote
the previous translation in her translator comments.  To do so, she
may initialize the translator comments with the previous translation,
still at the head of the kill ring.  Because editing already pushed the
previous translation on the kill ring, she merely has to type <kbd>M-w</kbd>
prior to <kbd>#</kbd>, and the previous translation will be right there,
all ready for being introduced by some explanatory text.

   <p>On the other hand, presume there are some translator comments already
and that the translator wants to add to those comments, instead
of wholly replacing them.  Then, she should edit the comment right
away with <kbd>#</kbd>.  Once inside the editing window, she can use the
regular Emacs commands <kbd>C-y</kbd> (<code>yank</code>) and <kbd>M-y</kbd>
(<code>yank-pop</code>) to get the previous translation where she likes.

<div class="node">
<a name="Subedit"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#C-Sources-Context">C Sources Context</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Modifying-Comments">Modifying Comments</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.11 Details of Sub Edition</h4>

   <p><a name="index-subedit-minor-mode-480"></a>
The PO subedit minor mode has a few peculiarities worth being described
in fuller detail.  It installs a few commands over the usual editing set
of Emacs, which are described below.

     <dl>
<dt><kbd>C-c C-c</kbd><dd><a name="index-C_002dc-C_002dc_0040r_007b_002c-PO-Mode-command_007d-481"></a>Complete edition (<code>po-subedit-exit</code>).

     <br><dt><kbd>C-c C-k</kbd><dd><a name="index-C_002dc-C_002dk_0040r_007b_002c-PO-Mode-command_007d-482"></a>Abort edition (<code>po-subedit-abort</code>).

     <br><dt><kbd>C-c C-a</kbd><dd><a name="index-C_002dc-C_002da_0040r_007b_002c-PO-Mode-command_007d-483"></a>Consult auxiliary PO files (<code>po-subedit-cycle-auxiliary</code>).

   </dl>

   <p><a name="index-exiting-PO-subedit-484"></a><a name="index-C_002dc-C_002dc_0040r_007b_002c-PO-Mode-command_007d-485"></a><a name="index-po_002dsubedit_002dexit_0040r_007b_002c-PO-Mode-command_007d-486"></a>The window's contents represents a translation for a given message,
or a translator comment.  The translator may modify this window to
her heart's content.  Once this is done, the command <kbd>C-c&nbsp;C-c</kbd><!-- /@w -->
(<code>po-subedit-exit</code>) may be used to return the edited translation into
the PO file, replacing the original translation, even if it moved out of
sight or if buffers were switched.

   <p><a name="index-C_002dc-C_002dk_0040r_007b_002c-PO-Mode-command_007d-487"></a><a name="index-po_002dsubedit_002dabort_0040r_007b_002c-PO-Mode-command_007d-488"></a>If the translator becomes unsatisfied with her translation or comment,
to the extent she prefers keeping what was existent prior to the
<kbd>&lt;RET&gt;</kbd> or <kbd>#</kbd> command, she may use the command <kbd>C-c&nbsp;C-k</kbd><!-- /@w -->
(<code>po-subedit-abort</code>) to merely get rid of edition, while preserving
the original translation or comment.  Another way would be for her to exit
normally with <kbd>C-c&nbsp;C-c</kbd><!-- /@w -->, then type <code>U</code> once for undoing the
whole effect of last edition.

   <p><a name="index-C_002dc-C_002da_0040r_007b_002c-PO-Mode-command_007d-489"></a><a name="index-po_002dsubedit_002dcycle_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-490"></a>The command <kbd>C-c&nbsp;C-a</kbd><!-- /@w --> (<code>po-subedit-cycle-auxiliary</code>)
allows for glancing through translations
already achieved in other languages, directly while editing the current
translation.  This may be quite convenient when the translator is fluent
at many languages, but of course, only makes sense when such completed
auxiliary PO files are already available to her (see <a href="#Auxiliary">Auxiliary</a>).

   <p>Functions found on <code>po-subedit-mode-hook</code>, if any, are executed after
the string has been inserted in the edit buffer.

   <p>While editing her translation, the translator should pay attention to not
inserting unwanted <kbd>&lt;RET&gt;</kbd> (newline) characters at the end of
the translated string if those are not meant to be there, or to removing
such characters when they are required.  Since these characters are not
visible in the editing buffer, they are easily introduced by mistake. 
To help her, <kbd>&lt;RET&gt;</kbd> automatically puts the character <code>&lt;</code>
at the end of the string being edited, but this <code>&lt;</code> is not really
part of the string.  On exiting the editing window with <kbd>C-c&nbsp;C-c</kbd><!-- /@w -->,
PO mode automatically removes such <kbd>&lt;</kbd> and all whitespace added after
it.  If the translator adds characters after the terminating <code>&lt;</code>, it
looses its delimiting property and integrally becomes part of the string. 
If she removes the delimiting <code>&lt;</code>, then the edited string is taken
<em>as is</em>, with all trailing newlines, even if invisible.  Also, if
the translated string ought to end itself with a genuine <code>&lt;</code>, then
the delimiting <code>&lt;</code> may not be removed; so the string should appear,
in the editing window, as ending with two <code>&lt;</code> in a row.

   <p><a name="index-editing-multiple-entries-491"></a>When a translation (or a comment) is being edited, the translator may move
the cursor back into the PO file buffer and freely move to other entries,
browsing at will.  If, with an edition pending, the translator wanders in the
PO file buffer, she may decide to start modifying another entry.  Each entry
being edited has its own subedit buffer.  It is possible to simultaneously
edit the translation <em>and</em> the comment of a single entry, or to
edit entries in different PO files, all at once.  Typing <kbd>&lt;RET&gt;</kbd>
on a field already being edited merely resumes that particular edit.  Yet,
the translator should better be comfortable at handling many Emacs windows!

   <p><a name="index-pending-subedits-492"></a>Pending subedits may be completed or aborted in any order, regardless
of how or when they were started.  When many subedits are pending and the
translator asks for quitting the PO file (with the <kbd>q</kbd> command), subedits
are automatically resumed one at a time, so she may decide for each of them.

<div class="node">
<a name="C-Sources-Context"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Auxiliary">Auxiliary</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Subedit">Subedit</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.12 C Sources Context</h4>

   <p><a name="index-consulting-program-sources-493"></a><a name="index-looking-at-the-source-to-aid-translation-494"></a><a name="index-use-the-source_002c-Luke-495"></a>
PO mode is particularly powerful when used with PO files
created through GNU <code>gettext</code> utilities, as those utilities
insert special comments in the PO files they generate. 
Some of these special comments relate the PO file entry to
exactly where the untranslated string appears in the program sources.

   <p>When the translator gets to an untranslated entry, she is fairly
often faced with an original string which is not as informative as
it normally should be, being succinct, cryptic, or otherwise ambiguous. 
Before choosing how to translate the string, she needs to understand
better what the string really means and how tight the translation has
to be.  Most of the time, when problems arise, the only way left to make
her judgment is looking at the true program sources from where this
string originated, searching for surrounding comments the programmer
might have put in there, and looking around for helping clues of
<em>any</em> kind.

   <p>Surely, when looking at program sources, the translator will receive
more help if she is a fluent programmer.  However, even if she is
not versed in programming and feels a little lost in C code, the
translator should not be shy at taking a look, once in a while. 
It is most probable that she will still be able to find some of the
hints she needs.  She will learn quickly to not feel uncomfortable
in program code, paying more attention to programmer's comments,
variable and function names (if he dared choosing them well), and
overall organization, than to the program code itself.

   <p><a name="index-find-source-fragment-for-a-PO-file-entry-496"></a>The following commands are meant to help the translator at getting
program source context for a PO file entry.

     <dl>
<dt><kbd>s</kbd><dd><a name="index-s_0040r_007b_002c-PO-Mode-command_007d-497"></a>Resume the display of a program source context, or cycle through them
(<code>po-cycle-source-reference</code>).

     <br><dt><kbd>M-s</kbd><dd><a name="index-M_002ds_0040r_007b_002c-PO-Mode-command_007d-498"></a>Display of a program source context selected by menu
(<code>po-select-source-reference</code>).

     <br><dt><kbd>S</kbd><dd><a name="index-S_0040r_007b_002c-PO-Mode-command_007d-499"></a>Add a directory to the search path for source files
(<code>po-consider-source-path</code>).

     <br><dt><kbd>M-S</kbd><dd><a name="index-M_002dS_0040r_007b_002c-PO-Mode-command_007d-500"></a>Delete a directory from the search path for source files
(<code>po-ignore-source-path</code>).

   </dl>

   <p><a name="index-s_0040r_007b_002c-PO-Mode-command_007d-501"></a><a name="index-po_002dcycle_002dsource_002dreference_0040r_007b_002c-PO-Mode-command_007d-502"></a><a name="index-M_002ds_0040r_007b_002c-PO-Mode-command_007d-503"></a><a name="index-po_002dselect_002dsource_002dreference_0040r_007b_002c-PO-Mode-command_007d-504"></a>The commands <kbd>s</kbd> (<code>po-cycle-source-reference</code>) and <kbd>M-s</kbd>
(<code>po-select-source-reference</code>) both open another window displaying
some source program file, and already positioned in such a way that
it shows an actual use of the string to be translated.  By doing
so, the command gives source program context for the string.  But if
the entry has no source context references, or if all references
are unresolved along the search path for program sources, then the
command diagnoses this as an error.

   <p>Even if <kbd>s</kbd> (or <kbd>M-s</kbd>) opens a new window, the cursor stays
in the PO file window.  If the translator really wants to
get into the program source window, she ought to do it explicitly,
maybe by using command <kbd>O</kbd>.

   <p>When <kbd>s</kbd> is typed for the first time, or for a PO file entry which
is different of the last one used for getting source context, then the
command reacts by giving the first context available for this entry,
if any.  If some context has already been recently displayed for the
current PO file entry, and the translator wandered off to do other
things, typing <kbd>s</kbd> again will merely resume, in another window,
the context last displayed.  In particular, if the translator moved
the cursor away from the context in the source file, the command will
bring the cursor back to the context.  By using <kbd>s</kbd> many times
in a row, with no other commands intervening, PO mode will cycle to
the next available contexts for this particular entry, getting back
to the first context once the last has been shown.

   <p>The command <kbd>M-s</kbd> behaves differently.  Instead of cycling through
references, it lets the translator choose a particular reference among
many, and displays that reference.  It is best used with completion,
if the translator types <kbd>&lt;TAB&gt;</kbd> immediately after <kbd>M-s</kbd>, in
response to the question, she will be offered a menu of all possible
references, as a reminder of which are the acceptable answers. 
This command is useful only where there are really many contexts
available for a single string to translate.

   <p><a name="index-S_0040r_007b_002c-PO-Mode-command_007d-505"></a><a name="index-po_002dconsider_002dsource_002dpath_0040r_007b_002c-PO-Mode-command_007d-506"></a><a name="index-M_002dS_0040r_007b_002c-PO-Mode-command_007d-507"></a><a name="index-po_002dignore_002dsource_002dpath_0040r_007b_002c-PO-Mode-command_007d-508"></a>Program source files are usually found relative to where the PO
file stands.  As a special provision, when this fails, the file is
also looked for, but relative to the directory immediately above it. 
Those two cases take proper care of most PO files.  However, it might
happen that a PO file has been moved, or is edited in a different
place than its normal location.  When this happens, the translator
should tell PO mode in which directory normally sits the genuine PO
file.  Many such directories may be specified, and all together, they
constitute what is called the <dfn>search path</dfn> for program sources. 
The command <kbd>S</kbd> (<code>po-consider-source-path</code>) is used to interactively
enter a new directory at the front of the search path, and the command
<kbd>M-S</kbd> (<code>po-ignore-source-path</code>) is used to select, with completion,
one of the directories she does not want anymore on the search path.

<div class="node">
<a name="Auxiliary"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#C-Sources-Context">C Sources Context</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#PO-Mode">PO Mode</a>

</div>

<h4 class="subsection">8.3.13 Consulting Auxiliary PO Files</h4>

   <p><a name="index-consulting-translations-to-other-languages-509"></a>
PO mode is able to help the knowledgeable translator, being fluent in
many languages, at taking advantage of translations already achieved
in other languages she just happens to know.  It provides these other
language translations as additional context for her own work.  Moreover,
it has features to ease the production of translations for many languages
at once, for translators preferring to work in this way.

   <p><a name="index-auxiliary-PO-file-510"></a><a name="index-auxiliary-PO-file-511"></a>An <dfn>auxiliary</dfn> PO file is an existing PO file meant for the same
package the translator is working on, but targeted to a different mother
tongue language.  Commands exist for declaring and handling auxiliary
PO files, and also for showing contexts for the entry under work.

   <p>Here are the auxiliary file commands available in PO mode.

     <dl>
<dt><kbd>a</kbd><dd><a name="index-a_0040r_007b_002c-PO-Mode-command_007d-512"></a>Seek auxiliary files for another translation for the same entry
(<code>po-cycle-auxiliary</code>).

     <br><dt><kbd>C-c C-a</kbd><dd><a name="index-C_002dc-C_002da_0040r_007b_002c-PO-Mode-command_007d-513"></a>Switch to a particular auxiliary file (<code>po-select-auxiliary</code>).

     <br><dt><kbd>A</kbd><dd><a name="index-A_0040r_007b_002c-PO-Mode-command_007d-514"></a>Declare this PO file as an auxiliary file (<code>po-consider-as-auxiliary</code>).

     <br><dt><kbd>M-A</kbd><dd><a name="index-M_002dA_0040r_007b_002c-PO-Mode-command_007d-515"></a>Remove this PO file from the list of auxiliary files
(<code>po-ignore-as-auxiliary</code>).

   </dl>

   <p><a name="index-A_0040r_007b_002c-PO-Mode-command_007d-516"></a><a name="index-po_002dconsider_002das_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-517"></a><a name="index-M_002dA_0040r_007b_002c-PO-Mode-command_007d-518"></a><a name="index-po_002dignore_002das_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-519"></a>Command <kbd>A</kbd> (<code>po-consider-as-auxiliary</code>) adds the current
PO file to the list of auxiliary files, while command <kbd>M-A</kbd>
(<code>po-ignore-as-auxiliary</code> just removes it.

   <p><a name="index-a_0040r_007b_002c-PO-Mode-command_007d-520"></a><a name="index-po_002dcycle_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-521"></a>The command <kbd>a</kbd> (<code>po-cycle-auxiliary</code>) seeks all auxiliary PO
files, round-robin, searching for a translated entry in some other language
having an <code>msgid</code> field identical as the one for the current entry. 
The found PO file, if any, takes the place of the current PO file in
the display (its window gets on top).  Before doing so, the current PO
file is also made into an auxiliary file, if not already.  So, <kbd>a</kbd>
in this newly displayed PO file will seek another PO file, and so on,
so repeating <kbd>a</kbd> will eventually yield back the original PO file.

   <p><a name="index-C_002dc-C_002da_0040r_007b_002c-PO-Mode-command_007d-522"></a><a name="index-po_002dselect_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-523"></a>The command <kbd>C-c C-a</kbd> (<code>po-select-auxiliary</code>) asks the translator
for her choice of a particular auxiliary file, with completion, and
then switches to that selected PO file.  The command also checks if
the selected file has an <code>msgid</code> field identical as the one for
the current entry, and if yes, this entry becomes current.  Otherwise,
the cursor of the selected file is left undisturbed.

   <p>For all this to work fully, auxiliary PO files will have to be normalized,
in that way that <code>msgid</code> fields should be written <em>exactly</em>
the same way.  It is possible to write <code>msgid</code> fields in various
ways for representing the same string, different writing would break the
proper behaviour of the auxiliary file commands of PO mode.  This is not
expected to be much a problem in practice, as most existing PO files have
their <code>msgid</code> entries written by the same GNU <code>gettext</code> tools.

   <p><a name="index-normalize_0040r_007b_002c-PO-Mode-command_007d-524"></a>However, PO files initially created by PO mode itself, while marking
strings in source files, are normalised differently.  So are PO
files resulting of the &lsquo;<samp><span class="samp">M-x normalize</span></samp>&rsquo; command.  Until these
discrepancies between PO mode and other GNU <code>gettext</code> tools get
fully resolved, the translator should stay aware of normalisation issues.

<div class="node">
<a name="Compendium"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#PO-Mode">PO Mode</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Editing">Editing</a>

</div>

<h3 class="section">8.4 Using Translation Compendia</h3>

   <p><a name="index-using-translation-compendia-525"></a>
<a name="index-compendium-526"></a>A <dfn>compendium</dfn> is a special PO file containing a set of
translations recurring in many different packages.  The translator can
use gettext tools to build a new compendium, to add entries to her
compendium, and to initialize untranslated entries, or to update
already translated entries, from translations kept in the compendium.

<ul class="menu">
<li><a accesskey="1" href="#Creating-Compendia">Creating Compendia</a>:           Merging translations for later use
<li><a accesskey="2" href="#Using-Compendia">Using Compendia</a>:              Using older translations if they fit
</ul>

<div class="node">
<a name="Creating-Compendia"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Using-Compendia">Using Compendia</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Compendium">Compendium</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Compendium">Compendium</a>

</div>

<h4 class="subsection">8.4.1 Creating Compendia</h4>

   <p><a name="index-creating-compendia-527"></a><a name="index-compendium_002c-creating-528"></a>
Basically every PO file consisting of translated entries only can be
declared as a valid compendium.  Often the translator wants to have
special compendia; let's consider two cases: <cite>concatenating PO
files</cite> and <cite>extracting a message subset from a PO file</cite>.

<h5 class="subsubsection">8.4.1.1 Concatenate PO Files</h5>

   <p><a name="index-concatenating-PO-files-into-a-compendium-529"></a><a name="index-accumulating-translations-530"></a>To concatenate several valid PO files into one compendium file you can
use &lsquo;<samp><span class="samp">msgcomm</span></samp>&rsquo; or &lsquo;<samp><span class="samp">msgcat</span></samp>&rsquo; (the latter preferred):

<pre class="example">     msgcat -o compendium.po file1.po file2.po
</pre>
   <p>By default, <code>msgcat</code> will accumulate divergent translations
for the same string.  Those occurrences will be marked as <code>fuzzy</code>
and highly visible decorated; calling <code>msgcat</code> on
<samp><span class="file">file1.po</span></samp>:

<pre class="example">     #: src/hello.c:200
     #, c-format
     msgid "Report bugs to &lt;%s&gt;.\n"
     msgstr "Comunicar `bugs' a &lt;%s&gt;.\n"
</pre>
   <p class="noindent">and <samp><span class="file">file2.po</span></samp>:

<pre class="example">     #: src/bye.c:100
     #, c-format
     msgid "Report bugs to &lt;%s&gt;.\n"
     msgstr "Comunicar \"bugs\" a &lt;%s&gt;.\n"
</pre>
   <p class="noindent">will result in:

<pre class="example">     #: src/hello.c:200 src/bye.c:100
     #, fuzzy, c-format
     msgid "Report bugs to &lt;%s&gt;.\n"
     msgstr ""
     "#-#-#-#-#  file1.po  #-#-#-#-#\n"
     "Comunicar `bugs' a &lt;%s&gt;.\n"
     "#-#-#-#-#  file2.po  #-#-#-#-#\n"
     "Comunicar \"bugs\" a &lt;%s&gt;.\n"
</pre>
   <p class="noindent">The translator will have to resolve this &ldquo;conflict&rdquo; manually; she
has to decide whether the first or the second version is appropriate
(or provide a new translation), to delete the &ldquo;marker lines&rdquo;, and
finally to remove the <code>fuzzy</code> mark.

   <p>If the translator knows in advance the first found translation of a
message is always the best translation she can make use to the
&lsquo;<samp><span class="samp">--use-first</span></samp>&rsquo; switch:

<pre class="example">     msgcat --use-first -o compendium.po file1.po file2.po
</pre>
   <p>A good compendium file must not contain <code>fuzzy</code> or untranslated
entries.  If input files are &ldquo;dirty&rdquo; you must preprocess the input
files or postprocess the result using &lsquo;<samp><span class="samp">msgattrib --translated --no-fuzzy</span></samp>&rsquo;.

<h5 class="subsubsection">8.4.1.2 Extract a Message Subset from a PO File</h5>

   <p><a name="index-extracting-parts-of-a-PO-file-into-a-compendium-531"></a>
Nobody wants to translate the same messages again and again; thus you
may wish to have a compendium file containing <samp><span class="file">getopt.c</span></samp> messages.

   <p>To extract a message subset (e.g., all <samp><span class="file">getopt.c</span></samp> messages) from an
existing PO file into one compendium file you can use &lsquo;<samp><span class="samp">msggrep</span></samp>&rsquo;:

<pre class="example">     msggrep --location src/getopt.c -o compendium.po file.po
</pre>
   <div class="node">
<a name="Using-Compendia"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Creating-Compendia">Creating Compendia</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Compendium">Compendium</a>

</div>

<h4 class="subsection">8.4.2 Using Compendia</h4>

   <p>You can use a compendium file to initialize a translation from scratch
or to update an already existing translation.

<h5 class="subsubsection">8.4.2.1 Initialize a New Translation File</h5>

   <p><a name="index-initialize-translations-from-a-compendium-532"></a>
Since a PO file with translations does not exist the translator can
merely use <samp><span class="file">/dev/null</span></samp> to fake the &ldquo;old&rdquo; translation file.

<pre class="example">     msgmerge --compendium compendium.po -o file.po /dev/null file.pot
</pre>
   <h5 class="subsubsection">8.4.2.2 Update an Existing Translation File</h5>

   <p><a name="index-update-translations-from-a-compendium-533"></a>
Concatenate the compendium file(s) and the existing PO, merge the
result with the POT file and remove the obsolete entries (optional,
here done using &lsquo;<samp><span class="samp">sed</span></samp>&rsquo;):

<pre class="example">     msgcat --use-first -o update.po compendium1.po compendium2.po file.po
     msgmerge update.po file.pot | msgattrib --no-obsolete &gt; file.po
</pre>
   <div class="node">
<a name="Manipulating"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Binaries">Binaries</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Editing">Editing</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">9 Manipulating PO Files</h2>

   <p><a name="index-manipulating-PO-files-534"></a>
Sometimes it is necessary to manipulate PO files in a way that is better
performed automatically than by hand.  GNU <code>gettext</code> includes a
complete set of tools for this purpose.

   <p><a name="index-merging-two-PO-files-535"></a>When merging two packages into a single package, the resulting POT file
will be the concatenation of the two packages' POT files.  Thus the
maintainer must concatenate the two existing package translations into
a single translation catalog, for each language.  This is best performed
using &lsquo;<samp><span class="samp">msgcat</span></samp>&rsquo;.  It is then the translators' duty to deal with any
possible conflicts that arose during the merge.

   <p><a name="index-encoding-conversion-536"></a>When a translator takes over the translation job from another translator,
but she uses a different character encoding in her locale, she will
convert the catalog to her character encoding.  This is best done through
the &lsquo;<samp><span class="samp">msgconv</span></samp>&rsquo; program.

   <p>When a maintainer takes a source file with tagged messages from another
package, he should also take the existing translations for this source
file (and not let the translators do the same job twice).  One way to do
this is through &lsquo;<samp><span class="samp">msggrep</span></samp>&rsquo;, another is to create a POT file for
that source file and use &lsquo;<samp><span class="samp">msgmerge</span></samp>&rsquo;.

   <p><a name="index-dialect-537"></a><a name="index-orthography-538"></a>When a translator wants to adjust some translation catalog for a special
dialect or orthography &mdash; for example, German as written in Switzerland
versus German as written in Germany &mdash; she needs to apply some text
processing to every message in the catalog.  The tool for doing this is
&lsquo;<samp><span class="samp">msgfilter</span></samp>&rsquo;.

   <p>Another use of <code>msgfilter</code> is to produce approximately the POT file for
which a given PO file was made.  This can be done through a filter command
like &lsquo;<samp><span class="samp">msgfilter sed -e d | sed -e '/^# /d'</span></samp>&rsquo;.  Note that the original
POT file may have had different comments and different plural message counts,
that's why it's better to use the original POT file if available.

   <p><a name="index-checking-of-translations-539"></a>When a translator wants to check her translations, for example according
to orthography rules or using a non-interactive spell checker, she can do
so using the &lsquo;<samp><span class="samp">msgexec</span></samp>&rsquo; program.

   <p><a name="index-duplicate-elimination-540"></a>When third party tools create PO or POT files, sometimes duplicates cannot
be avoided.  But the GNU <code>gettext</code> tools give an error when they
encounter duplicate msgids in the same file and in the same domain. 
To merge duplicates, the &lsquo;<samp><span class="samp">msguniq</span></samp>&rsquo; program can be used.

   <p>&lsquo;<samp><span class="samp">msgcomm</span></samp>&rsquo; is a more general tool for keeping or throwing away
duplicates, occurring in different files.

   <p>&lsquo;<samp><span class="samp">msgcmp</span></samp>&rsquo; can be used to check whether a translation catalog is
completely translated.

   <p><a name="index-attributes_002c-manipulating-541"></a>&lsquo;<samp><span class="samp">msgattrib</span></samp>&rsquo; can be used to select and extract only the fuzzy
or untranslated messages of a translation catalog.

   <p>&lsquo;<samp><span class="samp">msgen</span></samp>&rsquo; is useful as a first step for preparing English translation
catalogs.  It copies each message's msgid to its msgstr.

   <p>Finally, for those applications where all these various programs are not
sufficient, a library &lsquo;<samp><span class="samp">libgettextpo</span></samp>&rsquo; is provided that can be used to
write other specialized programs that process PO files.

<ul class="menu">
<li><a accesskey="1" href="#msgcat-Invocation">msgcat Invocation</a>:            Invoking the <code>msgcat</code> Program
<li><a accesskey="2" href="#msgconv-Invocation">msgconv Invocation</a>:           Invoking the <code>msgconv</code> Program
<li><a accesskey="3" href="#msggrep-Invocation">msggrep Invocation</a>:           Invoking the <code>msggrep</code> Program
<li><a accesskey="4" href="#msgfilter-Invocation">msgfilter Invocation</a>:         Invoking the <code>msgfilter</code> Program
<li><a accesskey="5" href="#msguniq-Invocation">msguniq Invocation</a>:           Invoking the <code>msguniq</code> Program
<li><a accesskey="6" href="#msgcomm-Invocation">msgcomm Invocation</a>:           Invoking the <code>msgcomm</code> Program
<li><a accesskey="7" href="#msgcmp-Invocation">msgcmp Invocation</a>:            Invoking the <code>msgcmp</code> Program
<li><a accesskey="8" href="#msgattrib-Invocation">msgattrib Invocation</a>:         Invoking the <code>msgattrib</code> Program
<li><a accesskey="9" href="#msgen-Invocation">msgen Invocation</a>:             Invoking the <code>msgen</code> Program
<li><a href="#msgexec-Invocation">msgexec Invocation</a>:           Invoking the <code>msgexec</code> Program
<li><a href="#Colorizing">Colorizing</a>:                   Highlighting parts of PO files
<li><a href="#libgettextpo">libgettextpo</a>:                 Writing your own programs that process PO files
</ul>

<div class="node">
<a name="msgcat-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgconv-Invocation">msgconv Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Manipulating">Manipulating</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.1 Invoking the <code>msgcat</code> Program</h3>

   <p><a name="index-msgcat-542"></a><a name="index-g_t_0040code_007bmsgcat_007d-program_002c-usage-543"></a>
<pre class="example">     msgcat [<var>option</var>] [<var>inputfile</var>]...
</pre>
   <p><a name="index-concatenate-PO-files-544"></a><a name="index-merge-PO-files-545"></a>The <code>msgcat</code> program concatenates and merges the specified PO files. 
It finds messages which are common to two or more of the specified PO files. 
By using the <code>--more-than</code> option, greater commonality may be requested
before messages are printed.  Conversely, the <code>--less-than</code> option may be
used to specify less commonality before messages are printed (i.e. 
&lsquo;<samp><span class="samp">--less-than=2</span></samp>&rsquo; will only print the unique messages).  Translations,
comments and extract comments will be cumulated, except that if
<code>--use-first</code> is specified, they will be taken from the first PO file
to define them.  File positions from all PO files will be cumulated.

<h4 class="subsection">9.1.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var><span class="samp"> ...</span></samp>&rsquo;<dd>Input files.

     <br><dt>&lsquo;<samp><span class="samp">-f </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--files-from=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-546"></a><a name="index-g_t_002d_002dfiles_002dfrom_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-547"></a>Read the names of the input files from <var>file</var> instead of getting
them from the command line.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-548"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-549"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If <var>inputfile</var> is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.1.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-550"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-551"></a>Write output to specified file.

   </dl>

   <p><a name="index-standard-output_002c-and-_0040code_007bmsgcat_007d-552"></a>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.1.3 Message selection</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-&lt; </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--less-than=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002d_003c_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-553"></a><a name="index-g_t_002d_002dless_002dthan_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-554"></a>Print messages with less than <var>number</var> definitions, defaults to infinite
if not set.

     <br><dt>&lsquo;<samp><span class="samp">-&gt; </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--more-than=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002d_003e_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-555"></a><a name="index-g_t_002d_002dmore_002dthan_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-556"></a>Print messages with more than <var>number</var> definitions, defaults to 0 if not
set.

     <br><dt>&lsquo;<samp><span class="samp">-u</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--unique</span></samp>&rsquo;<dd><a name="index-g_t_002du_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-557"></a><a name="index-g_t_002d_002dunique_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-558"></a>Shorthand for &lsquo;<samp><span class="samp">--less-than=2</span></samp>&rsquo;.  Requests that only unique messages be
printed.

   </dl>

<h4 class="subsection">9.1.4 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-559"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-560"></a>Assume the input files are Java ResourceBundles in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-561"></a>Assume the input files are NeXTstep/GNUstep localized resource files in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.1.5 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">-t</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--to-code=</span><var>name</var></samp>&rsquo;<dd><a name="index-g_t_002dt_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-562"></a><a name="index-g_t_002d_002dto_002dcode_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-563"></a>Specify encoding for output.

     <br><dt>&lsquo;<samp><span class="samp">--use-first</span></samp>&rsquo;<dd><a name="index-g_t_002d_002duse_002dfirst_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-564"></a>Use first available translation for each message.  Don't merge several
translations into one.

     <br><dt>&lsquo;<samp><span class="samp">--lang=</span><var>catalogname</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dlang_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-565"></a>Specify the &lsquo;<samp><span class="samp">Language</span></samp>&rsquo; field to be used in the header entry.  See
<a href="#Header-Entry">Header Entry</a> for the meaning of this field.  Note: The
&lsquo;<samp><span class="samp">Language-Team</span></samp>&rsquo; and &lsquo;<samp><span class="samp">Plural-Forms</span></samp>&rsquo; fields are left unchanged.

     <br><dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-566"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-567"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-568"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-569"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-570"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-571"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-572"></a><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-573"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-574"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-575"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-576"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-577"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-578"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-579"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-580"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-581"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-582"></a><a name="index-sorting-_0040code_007bmsgcat_007d-output-583"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-584"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-585"></a>Sort output by file location.

   </dl>

<h4 class="subsection">9.1.6 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-586"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-587"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-588"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-589"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="msgconv-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msggrep-Invocation">msggrep Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgcat-Invocation">msgcat Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.2 Invoking the <code>msgconv</code> Program</h3>

   <p><a name="index-msgconv-590"></a><a name="index-g_t_0040code_007bmsgconv_007d-program_002c-usage-591"></a>
<pre class="example">     msgconv [<var>option</var>] [<var>inputfile</var>]
</pre>
   <p><a name="index-convert-translations-to-a-different-encoding-592"></a>The <code>msgconv</code> program converts a translation catalog to a different
character encoding.

<h4 class="subsection">9.2.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var></samp>&rsquo;<dd>Input PO file.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-593"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-594"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If no <var>inputfile</var> is given or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.2.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-595"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-596"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.2.3 Conversion target</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-t</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--to-code=</span><var>name</var></samp>&rsquo;<dd><a name="index-g_t_002dt_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-597"></a><a name="index-g_t_002d_002dto_002dcode_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-598"></a>Specify encoding for output.

   </dl>

   <p>The default encoding is the current locale's encoding.

<h4 class="subsection">9.2.4 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-599"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-600"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgonv_007d-option_007d-601"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.2.5 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-602"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-603"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-604"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-605"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-606"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-607"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-608"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-609"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-610"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-611"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-612"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-613"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-614"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-615"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-616"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-617"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-618"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-619"></a>Sort output by file location.

   </dl>

<h4 class="subsection">9.2.6 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-620"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-621"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-622"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-623"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="msggrep-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgfilter-Invocation">msgfilter Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgconv-Invocation">msgconv Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.3 Invoking the <code>msggrep</code> Program</h3>

   <p><a name="index-msggrep-624"></a><a name="index-g_t_0040code_007bmsggrep_007d-program_002c-usage-625"></a>
<pre class="example">     msggrep [<var>option</var>] [<var>inputfile</var>]
</pre>
   <p><a name="index-search-messages-in-a-catalog-626"></a>The <code>msggrep</code> program extracts all messages of a translation catalog
that match a given pattern or belong to some given source files.

<h4 class="subsection">9.3.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var></samp>&rsquo;<dd>Input PO file.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-627"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-628"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If no <var>inputfile</var> is given or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.3.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-629"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-630"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.3.3 Message selection</h4>

<pre class="example">       [-N <var>sourcefile</var>]... [-M <var>domainname</var>]...
       [-J <var>msgctxt-pattern</var>] [-K <var>msgid-pattern</var>] [-T <var>msgstr-pattern</var>]
       [-C <var>comment-pattern</var>]
</pre>
   <p>A message is selected if
     <ul>
<li>it comes from one of the specified source files,
<li>or if it comes from one of the specified domains,
<li>or if &lsquo;<samp><span class="samp">-J</span></samp>&rsquo; is given and its context (msgctxt) matches
<var>msgctxt-pattern</var>,
<li>or if &lsquo;<samp><span class="samp">-K</span></samp>&rsquo; is given and its key (msgid or msgid_plural) matches
<var>msgid-pattern</var>,
<li>or if &lsquo;<samp><span class="samp">-T</span></samp>&rsquo; is given and its translation (msgstr) matches
<var>msgstr-pattern</var>,
<li>or if &lsquo;<samp><span class="samp">-C</span></samp>&rsquo; is given and the translator's comment matches
<var>comment-pattern</var>. 
</ul>

   <p>When more than one selection criterion is specified, the set of selected
messages is the union of the selected messages of each criterion.

   <p><var>msgctxt-pattern</var> or <var>msgid-pattern</var> or <var>msgstr-pattern</var> syntax:
<pre class="example">       [-E | -F] [-e <var>pattern</var> | -f <var>file</var>]...
</pre>
   <p><var>pattern</var>s are basic regular expressions by default, or extended regular
expressions if -E is given, or fixed strings if -F is given.

     <dl>
<dt>&lsquo;<samp><span class="samp">-N </span><var>sourcefile</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--location=</span><var>sourcefile</var></samp>&rsquo;<dd><a name="index-g_t_002dN_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-631"></a><a name="index-g_t_002d_002dlocation_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-632"></a>Select messages extracted from <var>sourcefile</var>.  <var>sourcefile</var> can be
either a literal file name or a wildcard pattern.

     <br><dt>&lsquo;<samp><span class="samp">-M </span><var>domainname</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--domain=</span><var>domainname</var></samp>&rsquo;<dd><a name="index-g_t_002dM_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-633"></a><a name="index-g_t_002d_002ddomain_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-634"></a>Select messages belonging to domain <var>domainname</var>.

     <br><dt>&lsquo;<samp><span class="samp">-J</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--msgctxt</span></samp>&rsquo;<dd><a name="index-g_t_002dJ_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-635"></a><a name="index-g_t_002d_002dmsgctxt_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-636"></a>Start of patterns for the msgctxt.

     <br><dt>&lsquo;<samp><span class="samp">-K</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--msgid</span></samp>&rsquo;<dd><a name="index-g_t_002dK_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-637"></a><a name="index-g_t_002d_002dmsgid_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-638"></a>Start of patterns for the msgid.

     <br><dt>&lsquo;<samp><span class="samp">-T</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--msgstr</span></samp>&rsquo;<dd><a name="index-g_t_002dT_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-639"></a><a name="index-g_t_002d_002dmsgstr_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-640"></a>Start of patterns for the msgstr.

     <br><dt>&lsquo;<samp><span class="samp">-C</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--comment</span></samp>&rsquo;<dd><a name="index-g_t_002dC_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-641"></a><a name="index-g_t_002d_002dcomment_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-642"></a>Start of patterns for the translator's comment.

     <br><dt>&lsquo;<samp><span class="samp">-X</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--extracted-comment</span></samp>&rsquo;<dd><a name="index-g_t_002dX_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-643"></a><a name="index-g_t_002d_002dextracted_002dcomment_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-644"></a>Start of patterns for the extracted comments.

     <br><dt>&lsquo;<samp><span class="samp">-E</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--extended-regexp</span></samp>&rsquo;<dd><a name="index-g_t_002dE_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-645"></a><a name="index-g_t_002d_002dextended_002dregexp_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-646"></a>Specify that <var>pattern</var> is an extended regular expression.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--fixed-strings</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-647"></a><a name="index-g_t_002d_002dfixed_002dstrings_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-648"></a>Specify that <var>pattern</var> is a set of newline-separated strings.

     <br><dt>&lsquo;<samp><span class="samp">-e </span><var>pattern</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--regexp=</span><var>pattern</var></samp>&rsquo;<dd><a name="index-g_t_002de_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-649"></a><a name="index-g_t_002d_002dregexp_003d_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-650"></a>Use <var>pattern</var> as a regular expression.

     <br><dt>&lsquo;<samp><span class="samp">-f </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-651"></a><a name="index-g_t_002d_002dfile_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-652"></a>Obtain <var>pattern</var> from <var>file</var>.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--ignore-case</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-653"></a><a name="index-g_t_002d_002dignore_002dcase_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-654"></a>Ignore case distinctions.

     <br><dt>&lsquo;<samp><span class="samp">-v</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--invert-match</span></samp>&rsquo;<dd><a name="index-g_t_002dv_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-655"></a><a name="index-g_t_002d_002dinvert_002dmatch_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-656"></a>Output only the messages that do not match any selection criterion, instead
of the messages that match a selection criterion.

   </dl>

<h4 class="subsection">9.3.4 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-657"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-658"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-659"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.3.5 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-660"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-661"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-662"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-663"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-664"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-665"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-666"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-667"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-668"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-669"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-670"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-671"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-672"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-673"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-674"></a>Sort output by file location.

   </dl>

<h4 class="subsection">9.3.6 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-675"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-676"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-677"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-678"></a>Output version information and exit.

   </dl>

<h4 class="subsection">9.3.7 Examples</h4>

   <p>To extract the messages that come from the source files
<code>gnulib-lib/error.c</code> and <code>gnulib-lib/getopt.c</code>:

<pre class="smallexample">     msggrep -N gnulib-lib/error.c -N gnulib-lib/getopt.c input.po
</pre>
   <p>To extract the messages that contain the string &ldquo;Please specify&rdquo; in the
original string:

<pre class="smallexample">     msggrep --msgid -F -e 'Please specify' input.po
</pre>
   <p>To extract the messages that have a context specifier of either &ldquo;Menu&gt;File&rdquo;
or &ldquo;Menu&gt;Edit&rdquo; or a submenu of them:

<pre class="smallexample">     msggrep --msgctxt -E -e '^Menu&gt;(File|Edit)' input.po
</pre>
   <p>To extract the messages whose translation contains one of the strings in the
file <code>wordlist.txt</code>:

<pre class="smallexample">     msggrep --msgstr -F -f wordlist.txt input.po
</pre>
   <div class="node">
<a name="msgfilter-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msguniq-Invocation">msguniq Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msggrep-Invocation">msggrep Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.4 Invoking the <code>msgfilter</code> Program</h3>

   <p><a name="index-msgfilter-679"></a><a name="index-g_t_0040code_007bmsgfilter_007d-program_002c-usage-680"></a>
<pre class="example">     msgfilter [<var>option</var>] <var>filter</var> [<var>filter-option</var>]
</pre>
   <p><a name="index-apply-a-filter-to-translations-681"></a>The <code>msgfilter</code> program applies a filter to all translations of a
translation catalog.

   <p><a name="index-MSGFILTER_005fMSGCTXT_0040r_007b_002c-environment-variable_007d-682"></a><a name="index-MSGFILTER_005fMSGID_0040r_007b_002c-environment-variable_007d-683"></a><a name="index-MSGFILTER_005fLOCATION_0040r_007b_002c-environment-variable_007d-684"></a>During each <var>filter</var> invocation, the environment variable
<code>MSGFILTER_MSGID</code> is bound to the message's msgid, and the environment
variable <code>MSGFILTER_LOCATION</code> is bound to the location in the PO file
of the message.  If the message has a context, the environment variable
<code>MSGFILTER_MSGCTXT</code> is bound to the message's msgctxt, otherwise it is
unbound.

<h4 class="subsection">9.4.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-i </span><var>inputfile</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--input=</span><var>inputfile</var></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-685"></a><a name="index-g_t_002d_002dinput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-686"></a>Input PO file.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-687"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-688"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If no <var>inputfile</var> is given or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.4.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-689"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-690"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.4.3 The filter</h4>

   <p>The <var>filter</var> can be any program that reads a translation from standard
input and writes a modified translation to standard output.  A frequently
used filter is &lsquo;<samp><span class="samp">sed</span></samp>&rsquo;.  A few particular built-in filters are also
recognized.

   <p><a name="index-g_t_0040code_007bmsgfilter_007d-filter-and-catalog-encoding-691"></a>Note: If the filter is not a built-in filter, you have to care about encodings:
It is your responsibility to ensure that the <var>filter</var> can cope
with input encoded in the translation catalog's encoding.  If the
<var>filter</var> wants input in a particular encoding, you can in a first step
convert the translation catalog to that encoding using the &lsquo;<samp><span class="samp">msgconv</span></samp>&rsquo;
program, before invoking &lsquo;<samp><span class="samp">msgfilter</span></samp>&rsquo;.  If the <var>filter</var> wants input
in the locale's encoding, but you want to avoid the locale's encoding, then
you can first convert the translation catalog to UTF-8 using the
&lsquo;<samp><span class="samp">msgconv</span></samp>&rsquo; program and then make &lsquo;<samp><span class="samp">msgfilter</span></samp>&rsquo; work in an UTF-8
locale, by using the <code>LC_ALL</code> environment variable.

   <p><a name="index-portability-problems-with-_0040code_007bsed_007d-692"></a>Note: Most translations in a translation catalog don't end with a newline
character.  For this reason, it is important that the <var>filter</var>
recognizes its last input line even if it ends without a newline, and that
it doesn't add an undesired trailing newline at the end.  The &lsquo;<samp><span class="samp">sed</span></samp>&rsquo;
program on some platforms is known to ignore the last line of input if it
is not terminated with a newline.  You can use GNU <code>sed</code> instead; it
does not have this limitation.

<h4 class="subsection">9.4.4 Useful <var>filter-option</var>s when the <var>filter</var> is &lsquo;<samp><span class="samp">sed</span></samp>&rsquo;</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-e </span><var>script</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--expression=</span><var>script</var></samp>&rsquo;<dd><a name="index-g_t_002de_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-693"></a><a name="index-g_t_002d_002dexpression_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-694"></a>Add <var>script</var> to the commands to be executed.

     <br><dt>&lsquo;<samp><span class="samp">-f </span><var>scriptfile</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--file=</span><var>scriptfile</var></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-695"></a><a name="index-g_t_002d_002dfile_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-696"></a>Add the contents of <var>scriptfile</var> to the commands to be executed.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--quiet</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--silent</span></samp>&rsquo;<dd><a name="index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-697"></a><a name="index-g_t_002d_002dquiet_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-698"></a><a name="index-g_t_002d_002dsilent_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-699"></a>Suppress automatic printing of pattern space.

   </dl>

<h4 class="subsection">9.4.5 Built-in <var>filter</var>s</h4>

   <p><a name="index-recode_002dsr_002dlatin-700"></a><a name="index-g_t_0040code_007brecode_002dsr_002dlatin_007d-program-701"></a>The filter &lsquo;<samp><span class="samp">recode-sr-latin</span></samp>&rsquo; is recognized as a built-in filter. 
The command &lsquo;<samp><span class="samp">recode-sr-latin</span></samp>&rsquo; converts Serbian text, written in the
Cyrillic script, to the Latin script. 
The command &lsquo;<samp><span class="samp">msgfilter recode-sr-latin</span></samp>&rsquo; applies this conversion to the
translations of a PO file.  Thus, it can be used to convert an <samp><span class="file">sr.po</span></samp>
file to an <samp><span class="file">sr@latin.po</span></samp> file.

   <p>The use of built-in filters is not sensitive to the current locale's encoding. 
Moreover, when used with a built-in filter, &lsquo;<samp><span class="samp">msgfilter</span></samp>&rsquo; can automatically
convert the message catalog to the UTF-8 encoding when needed.

<h4 class="subsection">9.4.6 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-702"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-703"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-704"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.4.7 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-705"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-706"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-707"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-708"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--keep-header</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dkeep_002dheader_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-709"></a>Keep the header entry, i.e. the message with &lsquo;<samp><span class="samp">msgid ""</span></samp>&rsquo;, unmodified,
instead of filtering it.  By default, the header entry is subject to
filtering like any other message.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-710"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-711"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-712"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-713"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-714"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-715"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-716"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-717"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-718"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-719"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-720"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-721"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-722"></a>Sort output by file location.

   </dl>

<h4 class="subsection">9.4.8 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-723"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-724"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-725"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-726"></a>Output version information and exit.

   </dl>

<h4 class="subsection">9.4.9 Examples</h4>

   <p>To convert German translations to Swiss orthography (in an UTF-8 locale):

<pre class="smallexample">     msgconv -t UTF-8 de.po | msgfilter sed -e 's/&szlig;/ss/g'
</pre>
   <p>To convert Serbian translations in Cyrillic script to Latin script:

<pre class="smallexample">     msgfilter recode-sr-latin &lt; sr.po
</pre>
   <div class="node">
<a name="msguniq-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgcomm-Invocation">msgcomm Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgfilter-Invocation">msgfilter Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.5 Invoking the <code>msguniq</code> Program</h3>

   <p><a name="index-msguniq-727"></a><a name="index-g_t_0040code_007bmsguniq_007d-program_002c-usage-728"></a>
<pre class="example">     msguniq [<var>option</var>] [<var>inputfile</var>]
</pre>
   <p><a name="index-unify-duplicate-translations-729"></a><a name="index-duplicate-removal-730"></a>The <code>msguniq</code> program unifies duplicate translations in a translation
catalog.  It finds duplicate translations of the same message ID.  Such
duplicates are invalid input for other programs like <code>msgfmt</code>,
<code>msgmerge</code> or <code>msgcat</code>.  By default, duplicates are merged
together.  When using the &lsquo;<samp><span class="samp">--repeated</span></samp>&rsquo; option, only duplicates are
output, and all other messages are discarded.  Comments and extracted
comments will be cumulated, except that if &lsquo;<samp><span class="samp">--use-first</span></samp>&rsquo; is
specified, they will be taken from the first translation.  File positions
will be cumulated.  When using the &lsquo;<samp><span class="samp">--unique</span></samp>&rsquo; option, duplicates are
discarded.

<h4 class="subsection">9.5.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var></samp>&rsquo;<dd>Input PO file.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-731"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-732"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If no <var>inputfile</var> is given or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.5.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-733"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-734"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.5.3 Message selection</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-d</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--repeated</span></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-735"></a><a name="index-g_t_002d_002drepeated_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-736"></a>Print only duplicates.

     <br><dt>&lsquo;<samp><span class="samp">-u</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--unique</span></samp>&rsquo;<dd><a name="index-g_t_002du_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-737"></a><a name="index-g_t_002d_002dunique_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-738"></a>Print only unique messages, discard duplicates.

   </dl>

<h4 class="subsection">9.5.4 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-739"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-740"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-741"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.5.5 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">-t</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--to-code=</span><var>name</var></samp>&rsquo;<dd><a name="index-g_t_002dt_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-742"></a><a name="index-g_t_002d_002dto_002dcode_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-743"></a>Specify encoding for output.

     <br><dt>&lsquo;<samp><span class="samp">--use-first</span></samp>&rsquo;<dd><a name="index-g_t_002d_002duse_002dfirst_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-744"></a>Use first available translation for each message.  Don't merge several
translations into one.

     <br><dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-745"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-746"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-747"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-748"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-749"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-750"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002dn_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-751"></a><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-752"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-753"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-754"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-755"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-756"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-757"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-758"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-759"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-760"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-761"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-762"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-763"></a>Sort output by file location.

   </dl>

<h4 class="subsection">9.5.6 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-764"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-765"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-766"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-767"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="msgcomm-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgcmp-Invocation">msgcmp Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msguniq-Invocation">msguniq Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.6 Invoking the <code>msgcomm</code> Program</h3>

   <p><a name="index-msgcomm-768"></a><a name="index-g_t_0040code_007bmsgcomm_007d-program_002c-usage-769"></a>
<pre class="example">     msgcomm [<var>option</var>] [<var>inputfile</var>]...
</pre>
   <p><a name="index-find-common-messages-770"></a>The <code>msgcomm</code> program finds messages which are common to two or more
of the specified PO files. 
By using the <code>--more-than</code> option, greater commonality may be requested
before messages are printed.  Conversely, the <code>--less-than</code> option may be
used to specify less commonality before messages are printed (i.e. 
&lsquo;<samp><span class="samp">--less-than=2</span></samp>&rsquo; will only print the unique messages).  Translations,
comments and extract comments will be preserved, but only from the first
PO file to define them.  File positions from all PO files will be
cumulated.

<h4 class="subsection">9.6.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var><span class="samp"> ...</span></samp>&rsquo;<dd>Input files.

     <br><dt>&lsquo;<samp><span class="samp">-f </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--files-from=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-771"></a><a name="index-g_t_002d_002dfiles_002dfrom_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-772"></a>Read the names of the input files from <var>file</var> instead of getting
them from the command line.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-773"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-774"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If <var>inputfile</var> is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.6.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-775"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-776"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.6.3 Message selection</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-&lt; </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--less-than=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002d_003c_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-777"></a><a name="index-g_t_002d_002dless_002dthan_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-778"></a>Print messages with less than <var>number</var> definitions, defaults to infinite
if not set.

     <br><dt>&lsquo;<samp><span class="samp">-&gt; </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--more-than=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002d_003e_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-779"></a><a name="index-g_t_002d_002dmore_002dthan_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-780"></a>Print messages with more than <var>number</var> definitions, defaults to 1 if not
set.

     <br><dt>&lsquo;<samp><span class="samp">-u</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--unique</span></samp>&rsquo;<dd><a name="index-g_t_002du_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-781"></a><a name="index-g_t_002d_002dunique_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-782"></a>Shorthand for &lsquo;<samp><span class="samp">--less-than=2</span></samp>&rsquo;.  Requests that only unique messages be
printed.

   </dl>

<h4 class="subsection">9.6.4 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-783"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-784"></a>Assume the input files are Java ResourceBundles in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-785"></a>Assume the input files are NeXTstep/GNUstep localized resource files in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.6.5 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-786"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-787"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-788"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-789"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-790"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-791"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-792"></a><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-793"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-794"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-795"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-796"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-797"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-798"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-799"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-800"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-801"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-802"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-803"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-804"></a>Sort output by file location.

     <br><dt>&lsquo;<samp><span class="samp">--omit-header</span></samp>&rsquo;<dd><a name="index-g_t_002d_002domit_002dheader_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-805"></a>Don't write header with &lsquo;<samp><span class="samp">msgid ""</span></samp>&rsquo; entry.

   </dl>

<h4 class="subsection">9.6.6 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-806"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-807"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-808"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-809"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="msgcmp-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgattrib-Invocation">msgattrib Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgcomm-Invocation">msgcomm Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.7 Invoking the <code>msgcmp</code> Program</h3>

   <p><a name="index-msgcmp-810"></a><a name="index-g_t_0040code_007bmsgcmp_007d-program_002c-usage-811"></a>
<pre class="example">     msgcmp [<var>option</var>] <var>def</var>.po <var>ref</var>.pot
</pre>
   <p><a name="index-compare-PO-files-812"></a>The <code>msgcmp</code> program compares two Uniforum style .po files to check that
both contain the same set of msgid strings.  The <var>def</var>.po file is an
existing PO file with the translations.  The <var>ref</var>.pot file is the last
created PO file, or a PO Template file (generally created by <code>xgettext</code>). 
This is useful for checking that you have translated each and every message
in your program.  Where an exact match cannot be found, fuzzy matching is
used to produce better diagnostics.

<h4 class="subsection">9.7.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>def</var><span class="samp">.po</span></samp>&rsquo;<dd>Translations.

     <br><dt>&lsquo;<samp><var>ref</var><span class="samp">.pot</span></samp>&rsquo;<dd>References to the sources.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-813"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-814"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.

   </dl>

<h4 class="subsection">9.7.2 Operation modifiers</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-m</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--multi-domain</span></samp>&rsquo;<dd><a name="index-g_t_002dm_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-815"></a><a name="index-g_t_002d_002dmulti_002ddomain_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-816"></a>Apply <var>ref</var>.pot to each of the domains in <var>def</var>.po.

     <br><dt>&lsquo;<samp><span class="samp">-N</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--no-fuzzy-matching</span></samp>&rsquo;<dd><a name="index-g_t_002dN_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-817"></a><a name="index-g_t_002d_002dno_002dfuzzy_002dmatching_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-818"></a>Do not use fuzzy matching when an exact match is not found.  This may speed
up the operation considerably.

     <br><dt>&lsquo;<samp><span class="samp">--use-fuzzy</span></samp>&rsquo;<dd><a name="index-g_t_002d_002duse_002dfuzzy_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-819"></a>Consider fuzzy messages in the <var>def</var>.po file like translated messages. 
Note that using this option is usually wrong, because fuzzy messages are
exactly those which have not been validated by a human translator.

     <br><dt>&lsquo;<samp><span class="samp">--use-untranslated</span></samp>&rsquo;<dd><a name="index-g_t_002d_002duse_002duntranslated_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-820"></a>Consider untranslated messages in the <var>def</var>.po file like translated
messages.  Note that using this option is usually wrong.

   </dl>

<h4 class="subsection">9.7.3 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-821"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-822"></a>Assume the input files are Java ResourceBundles in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-823"></a>Assume the input files are NeXTstep/GNUstep localized resource files in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.7.4 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-824"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-825"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-826"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-827"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="msgattrib-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgen-Invocation">msgen Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgcmp-Invocation">msgcmp Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.8 Invoking the <code>msgattrib</code> Program</h3>

   <p><a name="index-msgattrib-828"></a><a name="index-g_t_0040code_007bmsgattrib_007d-program_002c-usage-829"></a>
<pre class="example">     msgattrib [<var>option</var>] [<var>inputfile</var>]
</pre>
   <p><a name="index-filter-messages-according-to-attributes-830"></a><a name="index-attribute-manipulation-831"></a>The <code>msgattrib</code> program filters the messages of a translation catalog
according to their attributes, and manipulates the attributes.

<h4 class="subsection">9.8.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var></samp>&rsquo;<dd>Input PO file.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-832"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-833"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If no <var>inputfile</var> is given or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.8.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-834"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-835"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.8.3 Message selection</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">--translated</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dtranslated_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-836"></a>Keep translated messages, remove untranslated messages.

     <br><dt>&lsquo;<samp><span class="samp">--untranslated</span></samp>&rsquo;<dd><a name="index-g_t_002d_002duntranslated_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-837"></a>Keep untranslated messages, remove translated messages.

     <br><dt>&lsquo;<samp><span class="samp">--no-fuzzy</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-838"></a>Remove
‘fuzzy’
marked messages.

     <br><dt>&lsquo;<samp><span class="samp">--only-fuzzy</span></samp>&rsquo;<dd><a name="index-g_t_002d_002donly_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-839"></a>Keep
‘fuzzy’
marked messages, remove all other messages.

     <br><dt>&lsquo;<samp><span class="samp">--no-obsolete</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-840"></a>Remove obsolete #~ messages.

     <br><dt>&lsquo;<samp><span class="samp">--only-obsolete</span></samp>&rsquo;<dd><a name="index-g_t_002d_002donly_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-841"></a>Keep obsolete #~ messages, remove all other messages.

   </dl>

<h4 class="subsection">9.8.4 Attribute manipulation</h4>

   <p><a name="index-modify-message-attributes-842"></a>Attributes are modified after the message selection/removal has been
performed.  If the &lsquo;<samp><span class="samp">--only-file</span></samp>&rsquo; or &lsquo;<samp><span class="samp">--ignore-file</span></samp>&rsquo; option is
specified, the attribute modification is applied only to those messages
that are listed in the <var>only-file</var> and not listed in the
<var>ignore-file</var>.

     <dl>
<dt>&lsquo;<samp><span class="samp">--set-fuzzy</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dset_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-843"></a>Set all messages
‘fuzzy’.

     <br><dt>&lsquo;<samp><span class="samp">--clear-fuzzy</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dclear_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-844"></a>Set all messages
non-‘fuzzy’.

     <br><dt>&lsquo;<samp><span class="samp">--set-obsolete</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dset_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-845"></a>Set all messages obsolete.

     <br><dt>&lsquo;<samp><span class="samp">--clear-obsolete</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dclear_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-846"></a>Set all messages non-obsolete.

     <br><dt>&lsquo;<samp><span class="samp">--clear-previous</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dclear_002dprevious_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-847"></a>Remove the &ldquo;previous msgid&rdquo; (&lsquo;<samp><span class="samp">#|</span></samp>&rsquo;) comments from all messages.

     <br><dt>&lsquo;<samp><span class="samp">--only-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002donly_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-848"></a>Limit the attribute changes to entries that are listed in <var>file</var>. 
<var>file</var> should be a PO or POT file.

     <br><dt>&lsquo;<samp><span class="samp">--ignore-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dignore_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-849"></a>Limit the attribute changes to entries that are not listed in <var>file</var>. 
<var>file</var> should be a PO or POT file.

     <br><dt>&lsquo;<samp><span class="samp">--fuzzy</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-850"></a>Synonym for &lsquo;<samp><span class="samp">--only-fuzzy --clear-fuzzy</span></samp>&rsquo;: It keeps only the fuzzy
messages and removes their
‘fuzzy’
mark.

     <br><dt>&lsquo;<samp><span class="samp">--obsolete</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-851"></a>Synonym for &lsquo;<samp><span class="samp">--only-obsolete --clear-obsolete</span></samp>&rsquo;: It keeps only the
obsolete messages and makes them non-obsolete.

   </dl>

<h4 class="subsection">9.8.5 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-852"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-853"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-854"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.8.6 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-855"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-856"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-857"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-858"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-859"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-860"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-861"></a><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-862"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-863"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-864"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-865"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-866"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-867"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-868"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-869"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-870"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-871"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-872"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-873"></a>Sort output by file location.

   </dl>

<h4 class="subsection">9.8.7 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-874"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-875"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-876"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-877"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="msgen-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgexec-Invocation">msgexec Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgattrib-Invocation">msgattrib Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.9 Invoking the <code>msgen</code> Program</h3>

   <p><a name="index-msgen-878"></a><a name="index-g_t_0040code_007bmsgen_007d-program_002c-usage-879"></a>
<pre class="example">     msgen [<var>option</var>] <var>inputfile</var>
</pre>
   <p><a name="index-generate-translation-catalog-in-English-880"></a>The <code>msgen</code> program creates an English translation catalog.  The
input file is the last created English PO file, or a PO Template file
(generally created by xgettext).  Untranslated entries are assigned a
translation that is identical to the msgid.

   <p>Note: &lsquo;<samp><span class="samp">msginit --no-translator --locale=en</span></samp>&rsquo; performs a very similar
task.  The main difference is that <code>msginit</code> cares specially about
the header entry, whereas <code>msgen</code> doesn't.

<h4 class="subsection">9.9.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>inputfile</var></samp>&rsquo;<dd>Input PO or POT file.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-881"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-882"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If <var>inputfile</var> is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.9.2 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-883"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-884"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">9.9.3 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-885"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-886"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-887"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.9.4 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--lang=</span><var>catalogname</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dlang_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-888"></a>Specify the &lsquo;<samp><span class="samp">Language</span></samp>&rsquo; field to be used in the header entry.  See
<a href="#Header-Entry">Header Entry</a> for the meaning of this field.  Note: The
&lsquo;<samp><span class="samp">Language-Team</span></samp>&rsquo; and &lsquo;<samp><span class="samp">Plural-Forms</span></samp>&rsquo; fields are not set by this
option.

     <br><dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-889"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-890"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-891"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-892"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-893"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--no-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-894"></a>Do not write &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines.

     <br><dt>&lsquo;<samp><span class="samp">--add-location</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-895"></a>Generate &lsquo;<samp><span class="samp">#: </span><var>filename</var><span class="samp">:</span><var>line</var></samp>&rsquo; lines (default).

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-896"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-897"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-898"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-899"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-900"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-901"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-902"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-903"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-904"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

     <br><dt>&lsquo;<samp><span class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-by-file</span></samp>&rsquo;<dd><a name="index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-905"></a><a name="index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-906"></a>Sort output by file location.

   </dl>

<h4 class="subsection">9.9.5 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-907"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-908"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-909"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-910"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="msgexec-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Colorizing">Colorizing</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgen-Invocation">msgen Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.10 Invoking the <code>msgexec</code> Program</h3>

   <p><a name="index-msgexec-911"></a><a name="index-g_t_0040code_007bmsgexec_007d-program_002c-usage-912"></a>
<pre class="example">     msgexec [<var>option</var>] <var>command</var> [<var>command-option</var>]
</pre>
   <p><a name="index-apply-command-to-all-translations-in-a-catalog-913"></a>The <code>msgexec</code> program applies a command to all translations of a
translation catalog. 
The <var>command</var> can be any program that reads a translation from standard
input.  It is invoked once for each translation.  Its output becomes
msgexec's output.  <code>msgexec</code>'s return code is the maximum return code
across all invocations.

   <p><a name="index-g_t_0040code_007bxargs_007d_002c-and-output-from-_0040code_007bmsgexec_007d-914"></a>A special builtin command called &lsquo;<samp><span class="samp">0</span></samp>&rsquo; outputs the translation, followed
by a null byte.  The output of &lsquo;<samp><span class="samp">msgexec 0</span></samp>&rsquo; is suitable as input for
&lsquo;<samp><span class="samp">xargs -0</span></samp>&rsquo;.

   <p><a name="index-MSGEXEC_005fMSGCTXT_0040r_007b_002c-environment-variable_007d-915"></a><a name="index-MSGEXEC_005fMSGID_0040r_007b_002c-environment-variable_007d-916"></a><a name="index-MSGEXEC_005fLOCATION_0040r_007b_002c-environment-variable_007d-917"></a>During each <var>command</var> invocation, the environment variable
<code>MSGEXEC_MSGID</code> is bound to the message's msgid, and the environment
variable <code>MSGEXEC_LOCATION</code> is bound to the location in the PO file
of the message.  If the message has a context, the environment variable
<code>MSGEXEC_MSGCTXT</code> is bound to the message's msgctxt, otherwise it is
unbound.

   <p><a name="index-catalog-encoding-and-_0040code_007bmsgexec_007d-output-918"></a>Note: It is your responsibility to ensure that the <var>command</var> can cope
with input encoded in the translation catalog's encoding.  If the
<var>command</var> wants input in a particular encoding, you can in a first step
convert the translation catalog to that encoding using the &lsquo;<samp><span class="samp">msgconv</span></samp>&rsquo;
program, before invoking &lsquo;<samp><span class="samp">msgexec</span></samp>&rsquo;.  If the <var>command</var> wants input
in the locale's encoding, but you want to avoid the locale's encoding, then
you can first convert the translation catalog to UTF-8 using the
&lsquo;<samp><span class="samp">msgconv</span></samp>&rsquo; program and then make &lsquo;<samp><span class="samp">msgexec</span></samp>&rsquo; work in an UTF-8
locale, by using the <code>LC_ALL</code> environment variable.

<h4 class="subsection">9.10.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-i </span><var>inputfile</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--input=</span><var>inputfile</var></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-919"></a><a name="index-g_t_002d_002dinput_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-920"></a>Input PO file.

     <br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-921"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-922"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If no <var>inputfile</var> is given or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">9.10.2 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-923"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-924"></a>Assume the input file is a Java ResourceBundle in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-925"></a>Assume the input file is a NeXTstep/GNUstep localized resource file in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">9.10.3 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-926"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-927"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-928"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-929"></a>Output version information and exit.

   </dl>

<div class="node">
<a name="Colorizing"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#libgettextpo">libgettextpo</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgexec-Invocation">msgexec Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.11 Highlighting parts of PO files</h3>

   <p>Translators are usually only interested in seeing the untranslated and
fuzzy messages of a PO file.  Also, when a message is set fuzzy because
the msgid changed, they want to see the differences between the previous
msgid and the current one (especially if the msgid is long and only few
words in it have changed).  Finally, it's always welcome to highlight the
different sections of a message in a PO file (comments, msgid, msgstr, etc.).

   <p>Such highlighting is possible through the <code>msgcat</code> options
&lsquo;<samp><span class="samp">--color</span></samp>&rsquo; and &lsquo;<samp><span class="samp">--style</span></samp>&rsquo;.

<ul class="menu">
<li><a accesskey="1" href="#The-_002d_002dcolor-option">The --color option</a>:           Triggering colorized output
<li><a accesskey="2" href="#The-TERM-variable">The TERM variable</a>:            The environment variable <code>TERM</code>
<li><a accesskey="3" href="#The-_002d_002dstyle-option">The --style option</a>:           The <code>--style</code> option
<li><a accesskey="4" href="#Style-rules">Style rules</a>:                  Style rules for PO files
<li><a accesskey="5" href="#Customizing-less">Customizing less</a>:             Customizing <code>less</code> for viewing PO files
</ul>

<div class="node">
<a name="The---color-option"></a>
<a name="The-_002d_002dcolor-option"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#The-TERM-variable">The TERM variable</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Colorizing">Colorizing</a>

</div>

<h4 class="subsection">9.11.1 The <code>--color</code> option</h4>

   <p><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-930"></a>The &lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo; option specifies under which conditions
colorized output should be generated.  The <var>when</var> part can be one of
the following:

     <dl>
<dt><code>always</code><dt><code>yes</code><dd>The output will be colorized.

     <br><dt><code>never</code><dt><code>no</code><dd>The output will not be colorized.

     <br><dt><code>auto</code><dt><code>tty</code><dd>The output will be colorized if the output device is a tty, i.e. when the
output goes directly to a text screen or terminal emulator window.

     <br><dt><code>html</code><dd>The output will be colorized and be in HTML format. 
</dl>

<p class="noindent">&lsquo;<samp><span class="samp">--color</span></samp>&rsquo; is equivalent to &lsquo;<samp><span class="samp">--color=yes</span></samp>&rsquo;.  The default is
&lsquo;<samp><span class="samp">--color=auto</span></samp>&rsquo;.

   <p>Thus, a command like &lsquo;<samp><span class="samp">msgcat vi.po</span></samp>&rsquo; will produce colorized output
when called by itself in a command window.  Whereas in a pipe, such as
&lsquo;<samp><span class="samp">msgcat vi.po | less -R</span></samp>&rsquo;, it will not produce colorized output.  To
get colorized output in this situation nevertheless, use the command
&lsquo;<samp><span class="samp">msgcat --color vi.po | less -R</span></samp>&rsquo;.

   <p>The &lsquo;<samp><span class="samp">--color=html</span></samp>&rsquo; option will produce output that can be viewed in
a browser.  This can be useful, for example, for Indic languages,
because the renderic of Indic scripts in browser is usually better than
in terminal emulators.

   <p>Note that the output produced with the <code>--color</code> option is <em>not</em>
a valid PO file in itself.  It contains additional terminal-specific escape
sequences or HTML tags.  A PO file reader will give a syntax error when
confronted with such content.  Except for the &lsquo;<samp><span class="samp">--color=html</span></samp>&rsquo; case,
you therefore normally don't need to save output produced with the
<code>--color</code> option in a file.

<div class="node">
<a name="The-TERM-variable"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#The-_002d_002dstyle-option">The --style option</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#The-_002d_002dcolor-option">The --color option</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Colorizing">Colorizing</a>

</div>

<h4 class="subsection">9.11.2 The environment variable <code>TERM</code></h4>

   <p><a name="index-TERM_0040r_007b_002c-environment-variable_007d-931"></a>The environment variable <code>TERM</code> contains a identifier for the text
window's capabilities.  You can get a detailed list of these cababilities
by using the &lsquo;<samp><span class="samp">infocmp</span></samp>&rsquo; command, using &lsquo;<samp><span class="samp">man 5 terminfo</span></samp>&rsquo; as a
reference.

   <p>When producing text with embedded color directives, <code>msgcat</code> looks
at the <code>TERM</code> variable.  Text windows today typically support at least
8 colors.  Often, however, the text window supports 16 or more colors,
even though the <code>TERM</code> variable is set to a identifier denoting only
8 supported colors.  It can be worth setting the <code>TERM</code> variable to
a different value in these cases:

     <dl>
<dt><code>xterm</code><dd><code>xterm</code> is in most cases built with support for 16 colors.  It can also
be built with support for 88 or 256 colors (but not both).  You can try to
set <code>TERM</code> to either <code>xterm-16color</code>, <code>xterm-88color</code>, or
<code>xterm-256color</code>.

     <br><dt><code>rxvt</code><dd><code>rxvt</code> is often built with support for 16 colors.  You can try to set
<code>TERM</code> to <code>rxvt-16color</code>.

     <br><dt><code>konsole</code><dd><code>konsole</code> too is often built with support for 16 colors.  You can try to
set <code>TERM</code> to <code>konsole-16color</code> or <code>xterm-16color</code>. 
</dl>

   <p>After setting <code>TERM</code>, you can verify it by invoking
&lsquo;<samp><span class="samp">msgcat --color=test</span></samp>&rsquo; and seeing whether the output looks like a
reasonable color map.

<div class="node">
<a name="The---style-option"></a>
<a name="The-_002d_002dstyle-option"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Style-rules">Style rules</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#The-TERM-variable">The TERM variable</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Colorizing">Colorizing</a>

</div>

<h4 class="subsection">9.11.3 The <code>--style</code> option</h4>

   <p><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-932"></a>The &lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo; option specifies the style file to use
when colorizing.  It has an effect only when the <code>--color</code> option is
effective.

   <p><a name="index-PO_005fSTYLE_0040r_007b_002c-environment-variable_007d-933"></a>If the <code>--style</code> option is not specified, the environment variable
<code>PO_STYLE</code> is considered.  It is meant to point to the user's
preferred style for PO files.

   <p>The default style file is <samp><span class="file">$prefix/share/gettext/styles/po-default.css</span></samp>,
where <code>$prefix</code> is the installation location.

   <p>A few style files are predefined:
     <dl>
<dt><samp><span class="file">po-vim.css</span></samp><dd>This style imitates the look used by vim 7.

     <br><dt><samp><span class="file">po-emacs-x.css</span></samp><dd>This style imitates the look used by GNU Emacs 21 and 22 in an X11 window.

     <br><dt><samp><span class="file">po-emacs-xterm.css</span></samp><dt><samp><span class="file">po-emacs-xterm16.css</span></samp><dt><samp><span class="file">po-emacs-xterm256.css</span></samp><dd>This style imitates the look used by GNU Emacs 22 in a terminal of type
&lsquo;<samp><span class="samp">xterm</span></samp>&rsquo; (8 colors) or &lsquo;<samp><span class="samp">xterm-16color</span></samp>&rsquo; (16 colors) or
&lsquo;<samp><span class="samp">xterm-256color</span></samp>&rsquo; (256 colors), respectively. 
</dl>

<p class="noindent">You can use these styles without specifying a directory.  They are actually
located in <samp><span class="file">$prefix/share/gettext/styles/</span></samp>, where <code>$prefix</code> is the
installation location.

   <p>You can also design your own styles.  This is described in the next section.

<div class="node">
<a name="Style-rules"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Customizing-less">Customizing less</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#The-_002d_002dstyle-option">The --style option</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Colorizing">Colorizing</a>

</div>

<h4 class="subsection">9.11.4 Style rules for PO files</h4>

   <p>The same style file can be used for styling of a PO file, for terminal
output and for HTML output.  It is written in CSS (Cascading Style Sheet)
syntax.  See <a href="http://www.w3.org/TR/css2/cover.html">http://www.w3.org/TR/css2/cover.html</a> for a formal
definition of CSS.  Many HTML authoring tutorials also contain explanations
of CSS.

   <p>In the case of HTML output, the style file is embedded in the HTML output. 
In the case of text output, the style file is interpreted by the
<code>msgcat</code> program.  This means, in particular, that when
<code>@import</code> is used with relative file names, the file names are

     <ul>
<li>relative to the resulting HTML file, in the case of HTML output,

     <li>relative to the style sheet containing the <code>@import</code>, in the case of
text output.  (Actually, <code>@import</code>s are not yet supported in this case,
due to a limitation in <code>libcroco</code>.) 
</ul>

   <p>CSS rules are built up from selectors and declarations.  The declarations
specify graphical properties; the selectors specify specify when they apply.

   <p>In PO files, the following simple selectors (based on "CSS classes", see
the CSS2 spec, section 5.8.3) are supported.

     <ul>
<li>Selectors that apply to entire messages:

          <dl>
<dt><code>.header</code><dd>This matches the header entry of a PO file.

          <br><dt><code>.translated</code><dd>This matches a translated message.

          <br><dt><code>.untranslated</code><dd>This matches an untranslated message (i.e. a message with empty translation).

          <br><dt><code>.fuzzy</code><dd>This matches a fuzzy message (i.e. a message which has a translation that
needs review by the translator).

          <br><dt><code>.obsolete</code><dd>This matches an obsolete message (i.e. a message that was translated but is
not needed by the current POT file any more). 
</dl>

     <li>Selectors that apply to parts of a message in PO syntax.  Recall the general
structure of a message in PO syntax:

     <pre class="example">          <var>white-space</var>
          #  <var>translator-comments</var>
          #. <var>extracted-comments</var>
          #: <var>reference</var>...
          #, <var>flag</var>...
          #| msgid <var>previous-untranslated-string</var>
          msgid <var>untranslated-string</var>
          msgstr <var>translated-string</var>
</pre>
          <dl>
<dt><code>.comment</code><dd>This matches all comments (translator comments, extracted comments,
source file reference comments, flag comments, previous message comments,
as well as the entire obsolete messages).

          <br><dt><code>.translator-comment</code><dd>This matches the translator comments.

          <br><dt><code>.extracted-comment</code><dd>This matches the extracted comments, i.e. the comments placed by the
programmer at the attention of the translator.

          <br><dt><code>.reference-comment</code><dd>This matches the source file reference comments (entire lines).

          <br><dt><code>.reference</code><dd>This matches the individual source file references inside the source file
reference comment lines.

          <br><dt><code>.flag-comment</code><dd>This matches the flag comment lines (entire lines).

          <br><dt><code>.flag</code><dd>This matches the individual flags inside flag comment lines.

          <br><dt><code>.fuzzy-flag</code><dd>This matches the `fuzzy' flag inside flag comment lines.

          <br><dt><code>.previous-comment</code><dd>This matches the comments containing the previous untranslated string (entire
lines).

          <br><dt><code>.previous</code><dd>This matches the previous untranslated string including the string delimiters,
the associated keywords (<code>msgid</code> etc.) and the spaces between them.

          <br><dt><code>.msgid</code><dd>This matches the untranslated string including the string delimiters,
the associated keywords (<code>msgid</code> etc.) and the spaces between them.

          <br><dt><code>.msgstr</code><dd>This matches the translated string including the string delimiters,
the associated keywords (<code>msgstr</code> etc.) and the spaces between them.

          <br><dt><code>.keyword</code><dd>This matches the keywords (<code>msgid</code>, <code>msgstr</code>, etc.).

          <br><dt><code>.string</code><dd>This matches strings, including the string delimiters (double quotes). 
</dl>

     <li>Selectors that apply to parts of strings:

          <dl>
<dt><code>.text</code><dd>This matches the entire contents of a string (excluding the string delimiters,
i.e. the double quotes).

          <br><dt><code>.escape-sequence</code><dd>This matches an escape sequence (starting with a backslash).

          <br><dt><code>.format-directive</code><dd>This matches a format string directive (starting with a &lsquo;<samp><span class="samp">%</span></samp>&rsquo; sign in the
case of most programming languages, with a &lsquo;<samp><span class="samp">{</span></samp>&rsquo; in the case of
<code>java-format</code> and <code>csharp-format</code>, with a &lsquo;<samp><span class="samp">~</span></samp>&rsquo; in the case of
<code>lisp-format</code> and <code>scheme-format</code>, or with &lsquo;<samp><span class="samp">$</span></samp>&rsquo; in the case of
<code>sh-format</code>).

          <br><dt><code>.invalid-format-directive</code><dd>This matches an invalid format string directive.

          <br><dt><code>.added</code><dd>In an untranslated string, this matches a part of the string that was not
present in the previous untranslated string.  (Not yet implemented in this
release.)

          <br><dt><code>.changed</code><dd>In an untranslated string or in a previous untranslated string, this matches
a part of the string that is changed or replaced.  (Not yet implemented in
this release.)

          <br><dt><code>.removed</code><dd>In a previous untranslated string, this matches a part of the string that
is not present in the current untranslated string.  (Not yet implemented in
this release.) 
</dl>
     </ul>

   <p>These selectors can be combined to hierarchical selectors.  For example,

<pre class="smallexample">     .msgstr .invalid-format-directive { color: red; }
</pre>
   <p class="noindent">will highlight the invalid format directives in the translated strings.

   <p>In text mode, pseudo-classes (CSS2 spec, section 5.11) and pseudo-elements
(CSS2 spec, section 5.12) are not supported.

   <p>The declarations in HTML mode are not limited; any graphical attribute
supported by the browsers can be used.

   <p>The declarations in text mode are limited to the following properties.  Other
properties will be silently ignored.

     <dl>
<dt><code>color</code> (CSS2 spec, section 14.1)<dt><code>background-color</code> (CSS2 spec, section 14.2.1)<dd>These properties is supported.  Colors will be adjusted to match the terminal's
capabilities.  Note that many terminals support only 8 colors.

     <br><dt><code>font-weight</code> (CSS2 spec, section 15.2.3)<dd>This property is supported, but most terminals can only render two different
weights: <code>normal</code> and <code>bold</code>.  Values &gt;= 600 are rendered as
<code>bold</code>.

     <br><dt><code>font-style</code> (CSS2 spec, section 15.2.3)<dd>This property is supported.  The values <code>italic</code> and <code>oblique</code> are
rendered the same way.

     <br><dt><code>text-decoration</code> (CSS2 spec, section 16.3.1)<dd>This property is supported, limited to the values <code>none</code> and
<code>underline</code>. 
</dl>

<div class="node">
<a name="Customizing-less"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Style-rules">Style rules</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Colorizing">Colorizing</a>

</div>

<h4 class="subsection">9.11.5 Customizing <code>less</code> for viewing PO files</h4>

   <p>The &lsquo;<samp><span class="samp">less</span></samp>&rsquo; program is a popular text file browser for use in a text
screen or terminal emulator.  It also supports text with embedded escape
sequences for colors and text decorations.

   <p>You can use <code>less</code> to view a PO file like this (assuming an UTF-8
environment):

<pre class="smallexample">     msgcat --to-code=UTF-8 --color xyz.po | less -R
</pre>
   <p>You can simplify this to this simple command:

<pre class="smallexample">     less xyz.po
</pre>
   <p class="noindent">after these three preparations:

     <ol type=1 start=1>
<li>Add the options &lsquo;<samp><span class="samp">-R</span></samp>&rsquo; and &lsquo;<samp><span class="samp">-f</span></samp>&rsquo; to the <code>LESS</code> environment
variable.  In sh shells:
     <pre class="smallexample">          $ LESS="$LESS -R -f"
          $ export LESS
</pre>
     <li>If your system does not already have the <samp><span class="file">lessopen.sh</span></samp> and
<samp><span class="file">lessclose.sh</span></samp> scripts, create them and set the <code>LESSOPEN</code> and
<code>LESSCLOSE</code> environment variables, as indicated in the manual page
(&lsquo;<samp><span class="samp">man less</span></samp>&rsquo;).

     <li>Add to <samp><span class="file">lessopen.sh</span></samp> a piece of script that recognizes PO files
through their file extension and invokes <code>msgcat</code> on them, producing
a temporary file.  Like this:

     <pre class="smallexample">          case "$1" in
            *.po)
              tmpfile=`mktemp "${TMPDIR-/tmp}/less.XXXXXX"`
              msgcat --to-code=UTF-8 --color "$1" &gt; "$tmpfile"
              echo "$tmpfile"
              exit 0
              ;;
          esac
</pre>
     </ol>

<div class="node">
<a name="libgettextpo"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Colorizing">Colorizing</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Manipulating">Manipulating</a>

</div>

<h3 class="section">9.12 Writing your own programs that process PO files</h3>

   <p>For the tasks for which a combination of &lsquo;<samp><span class="samp">msgattrib</span></samp>&rsquo;, &lsquo;<samp><span class="samp">msgcat</span></samp>&rsquo; etc. 
is not sufficient, a set of C functions is provided in a library, to make it
possible to process PO files in your own programs.  When you use this library,
you don't need to write routines to parse the PO file; instead, you retrieve
a pointer in memory to each of messages contained in the PO file.  Functions
for writing PO files are not provided at this time.

   <p>The functions are declared in the header file &lsquo;<samp><span class="samp">&lt;gettext-po.h&gt;</span></samp>&rsquo;, and are
defined in a library called &lsquo;<samp><span class="samp">libgettextpo</span></samp>&rsquo;.

<div class="defun">
&mdash; Data Type: <b>po_file_t</b><var><a name="index-po_005ffile_005ft-934"></a></var><br>
<blockquote><p>This is a pointer type that refers to the contents of a PO file, after it has
been read into memory. 
</p></blockquote></div>

<div class="defun">
&mdash; Data Type: <b>po_message_iterator_t</b><var><a name="index-po_005fmessage_005fiterator_005ft-935"></a></var><br>
<blockquote><p>This is a pointer type that refers to an iterator that produces a sequence of
messages. 
</p></blockquote></div>

<div class="defun">
&mdash; Data Type: <b>po_message_t</b><var><a name="index-po_005fmessage_005ft-936"></a></var><br>
<blockquote><p>This is a pointer type that refers to a message of a PO file, including its
translation. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: po_file_t <b>po_file_read</b> (<var>const char *filename</var>)<var><a name="index-po_005ffile_005fread-937"></a></var><br>
<blockquote><p>The <code>po_file_read</code> function reads a PO file into memory.  The file name
is given as argument.  The return value is a handle to the PO file's contents,
valid until <code>po_file_free</code> is called on it.  In case of error, the return
value is <code>NULL</code>, and <code>errno</code> is set. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: void <b>po_file_free</b> (<var>po_file_t file</var>)<var><a name="index-po_005ffile_005ffree-938"></a></var><br>
<blockquote><p>The <code>po_file_free</code> function frees a PO file's contents from memory,
including all messages that are only implicitly accessible through iterators. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: const char * const * <b>po_file_domains</b> (<var>po_file_t file</var>)<var><a name="index-po_005ffile_005fdomains-939"></a></var><br>
<blockquote><p>The <code>po_file_domains</code> function returns the domains for which the given
PO file has messages.  The return value is a <code>NULL</code> terminated array
which is valid as long as the <var>file</var> handle is valid.  For PO files which
contain no &lsquo;<samp><span class="samp">domain</span></samp>&rsquo; directive, the return value contains only one domain,
namely the default domain <code>"messages"</code>. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: po_message_iterator_t <b>po_message_iterator</b> (<var>po_file_t file, const char *domain</var>)<var><a name="index-po_005fmessage_005fiterator-940"></a></var><br>
<blockquote><p>The <code>po_message_iterator</code> returns an iterator that will produce the
messages of <var>file</var> that belong to the given <var>domain</var>.  If <var>domain</var>
is <code>NULL</code>, the default domain is used instead.  To list the messages,
use the function <code>po_next_message</code> repeatedly. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: void <b>po_message_iterator_free</b> (<var>po_message_iterator_t iterator</var>)<var><a name="index-po_005fmessage_005fiterator_005ffree-941"></a></var><br>
<blockquote><p>The <code>po_message_iterator_free</code> function frees an iterator previously
allocated through the <code>po_message_iterator</code> function. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: po_message_t <b>po_next_message</b> (<var>po_message_iterator_t iterator</var>)<var><a name="index-po_005fnext_005fmessage-942"></a></var><br>
<blockquote><p>The <code>po_next_message</code> function returns the next message from
<var>iterator</var> and advances the iterator.  It returns <code>NULL</code> when the
iterator has reached the end of its message list. 
</p></blockquote></div>

   <p>The following functions returns details of a <code>po_message_t</code>.  Recall
that the results are valid as long as the <var>file</var> handle is valid.

<div class="defun">
&mdash; Function: const char * <b>po_message_msgid</b> (<var>po_message_t message</var>)<var><a name="index-po_005fmessage_005fmsgid-943"></a></var><br>
<blockquote><p>The <code>po_message_msgid</code> function returns the <code>msgid</code> (untranslated
English string) of a message.  This is guaranteed to be non-<code>NULL</code>. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: const char * <b>po_message_msgid_plural</b> (<var>po_message_t message</var>)<var><a name="index-po_005fmessage_005fmsgid_005fplural-944"></a></var><br>
<blockquote><p>The <code>po_message_msgid_plural</code> function returns the <code>msgid_plural</code>
(untranslated English plural string) of a message with plurals, or <code>NULL</code>
for a message without plural. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: const char * <b>po_message_msgstr</b> (<var>po_message_t message</var>)<var><a name="index-po_005fmessage_005fmsgstr-945"></a></var><br>
<blockquote><p>The <code>po_message_msgstr</code> function returns the <code>msgstr</code> (translation)
of a message.  For an untranslated message, the return value is an empty
string. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: const char * <b>po_message_msgstr_plural</b> (<var>po_message_t message, int index</var>)<var><a name="index-po_005fmessage_005fmsgstr_005fplural-946"></a></var><br>
<blockquote><p>The <code>po_message_msgstr_plural</code> function returns the
<code>msgstr[</code><var>index</var><code>]</code> of a message with plurals, or <code>NULL</code> when
the <var>index</var> is out of range or for a message without plural. 
</p></blockquote></div>

   <p>Here is an example code how these functions can be used.

<pre class="example">     const char *filename = ...;
     po_file_t file = po_file_read (filename);
     
     if (file == NULL)
       error (EXIT_FAILURE, errno, "couldn't open the PO file %s", filename);
     {
       const char * const *domains = po_file_domains (file);
       const char * const *domainp;
     
       for (domainp = domains; *domainp; domainp++)
         {
           const char *domain = *domainp;
           po_message_iterator_t iterator = po_message_iterator (file, domain);
     
           for (;;)
             {
               po_message_t *message = po_next_message (iterator);
     
               if (message == NULL)
                 break;
               {
                 const char *msgid = po_message_msgid (message);
                 const char *msgstr = po_message_msgstr (message);
     
                 ...
               }
             }
           po_message_iterator_free (iterator);
         }
     }
     po_file_free (file);
</pre>
   <div class="node">
<a name="Binaries"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Programmers">Programmers</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Manipulating">Manipulating</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">10 Producing Binary MO Files</h2>

<!-- FIXME: Rewrite. -->
<ul class="menu">
<li><a accesskey="1" href="#msgfmt-Invocation">msgfmt Invocation</a>:            Invoking the <code>msgfmt</code> Program
<li><a accesskey="2" href="#msgunfmt-Invocation">msgunfmt Invocation</a>:          Invoking the <code>msgunfmt</code> Program
<li><a accesskey="3" href="#MO-Files">MO Files</a>:                     The Format of GNU MO Files
</ul>

<div class="node">
<a name="msgfmt-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#msgunfmt-Invocation">msgunfmt Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Binaries">Binaries</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Binaries">Binaries</a>

</div>

<h3 class="section">10.1 Invoking the <code>msgfmt</code> Program</h3>

   <p><a name="index-msgfmt-947"></a><a name="index-g_t_0040code_007bmsgfmt_007d-program_002c-usage-948"></a>
<pre class="example">     msgfmt [<var>option</var>] <var>filename</var>.po ...
</pre>
   <p><a name="index-generate-binary-message-catalog-from-PO-file-949"></a>The <code>msgfmt</code> programs generates a binary message catalog from a textual
translation description.

<h4 class="subsection">10.1.1 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>filename</var><span class="samp">.po ...</span></samp>&rsquo;
<br><dt>&lsquo;<samp><span class="samp">-D </span><var>directory</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--directory=</span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-950"></a><a name="index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-951"></a>Add <var>directory</var> to the list of directories.  Source files are
searched relative to this list of directories.  The resulting <samp><span class="file">.po</span></samp>
file will be written relative to the current directory, though.

   </dl>

   <p>If an input file is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">10.1.2 Operation mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-j</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--java</span></samp>&rsquo;<dd><a name="index-g_t_002dj_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-952"></a><a name="index-g_t_002d_002djava_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-953"></a><a name="index-Java-mode_002c-and-_0040code_007bmsgfmt_007d-program-954"></a>Java mode: generate a Java <code>ResourceBundle</code> class.

     <br><dt>&lsquo;<samp><span class="samp">--java2</span></samp>&rsquo;<dd><a name="index-g_t_002d_002djava2_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-955"></a>Like &ndash;java, and assume Java2 (JDK 1.2 or higher).

     <br><dt>&lsquo;<samp><span class="samp">--csharp</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcsharp_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-956"></a><a name="index-C_0023-mode_002c-and-_0040code_007bmsgfmt_007d-program-957"></a>C# mode: generate a .NET .dll file containing a subclass of
<code>GettextResourceSet</code>.

     <br><dt>&lsquo;<samp><span class="samp">--csharp-resources</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcsharp_002dresources_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-958"></a><a name="index-C_0023-resources-mode_002c-and-_0040code_007bmsgfmt_007d-program-959"></a>C# resources mode: generate a .NET <samp><span class="file">.resources</span></samp> file.

     <br><dt>&lsquo;<samp><span class="samp">--tcl</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dtcl_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-960"></a><a name="index-Tcl-mode_002c-and-_0040code_007bmsgfmt_007d-program-961"></a>Tcl mode: generate a tcl/msgcat <samp><span class="file">.msg</span></samp> file.

     <br><dt>&lsquo;<samp><span class="samp">--qt</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dqt_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-962"></a><a name="index-Qt-mode_002c-and-_0040code_007bmsgfmt_007d-program-963"></a>Qt mode: generate a Qt <samp><span class="file">.qm</span></samp> file.

   </dl>

<h4 class="subsection">10.1.3 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-964"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-965"></a>Write output to specified file.

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-966"></a>Direct the program to work strictly following the Uniforum/Sun
implementation.  Currently this only affects the naming of the output
file.  If this option is not given the name of the output file is the
same as the domain name.  If the strict Uniforum mode is enabled the
suffix <samp><span class="file">.mo</span></samp> is added to the file name if it is not already
present.

     <p>We find this behaviour of Sun's implementation rather silly and so by
default this mode is <em>not</em> selected.

   </dl>

   <p>If the output <var>file</var> is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, output is written to standard output.

<h4 class="subsection">10.1.4 Output file location in Java mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-r </span><var>resource</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--resource=</span><var>resource</var></samp>&rsquo;<dd><a name="index-g_t_002dr_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-967"></a><a name="index-g_t_002d_002dresource_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-968"></a>Specify the resource name.

     <br><dt>&lsquo;<samp><span class="samp">-l </span><var>locale</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--locale=</span><var>locale</var></samp>&rsquo;<dd><a name="index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-969"></a><a name="index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-970"></a>Specify the locale name, either a language specification of the form <var>ll</var>
or a combined language and country specification of the form <var>ll_CC</var>.

     <br><dt>&lsquo;<samp><span class="samp">-d </span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-971"></a>Specify the base directory of classes directory hierarchy.

   </dl>

   <p>The class name is determined by appending the locale name to the resource name,
separated with an underscore.  The &lsquo;<samp><span class="samp">-d</span></samp>&rsquo; option is mandatory.  The class
is written under the specified directory.

<h4 class="subsection">10.1.5 Output file location in C# mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-r </span><var>resource</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--resource=</span><var>resource</var></samp>&rsquo;<dd><a name="index-g_t_002dr_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-972"></a><a name="index-g_t_002d_002dresource_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-973"></a>Specify the resource name.

     <br><dt>&lsquo;<samp><span class="samp">-l </span><var>locale</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--locale=</span><var>locale</var></samp>&rsquo;<dd><a name="index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-974"></a><a name="index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-975"></a>Specify the locale name, either a language specification of the form <var>ll</var>
or a combined language and country specification of the form <var>ll_CC</var>.

     <br><dt>&lsquo;<samp><span class="samp">-d </span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-976"></a>Specify the base directory for locale dependent <samp><span class="file">.dll</span></samp> files.

   </dl>

   <p>The &lsquo;<samp><span class="samp">-l</span></samp>&rsquo; and &lsquo;<samp><span class="samp">-d</span></samp>&rsquo; options are mandatory.  The <samp><span class="file">.dll</span></samp> file is
written in a subdirectory of the specified directory whose name depends on the
locale.

<h4 class="subsection">10.1.6 Output file location in Tcl mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-l </span><var>locale</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--locale=</span><var>locale</var></samp>&rsquo;<dd><a name="index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-977"></a><a name="index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-978"></a>Specify the locale name, either a language specification of the form <var>ll</var>
or a combined language and country specification of the form <var>ll_CC</var>.

     <br><dt>&lsquo;<samp><span class="samp">-d </span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-979"></a>Specify the base directory of <samp><span class="file">.msg</span></samp> message catalogs.

   </dl>

   <p>The &lsquo;<samp><span class="samp">-l</span></samp>&rsquo; and &lsquo;<samp><span class="samp">-d</span></samp>&rsquo; options are mandatory.  The <samp><span class="file">.msg</span></samp> file is
written in the specified directory.

<h4 class="subsection">10.1.7 Input file syntax</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-input</span></samp>&rsquo;<dd><a name="index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-980"></a><a name="index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-981"></a>Assume the input files are Java ResourceBundles in Java <code>.properties</code>
syntax, not in PO file syntax.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-input</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-982"></a>Assume the input files are NeXTstep/GNUstep localized resource files in
<code>.strings</code> syntax, not in PO file syntax.

   </dl>

<h4 class="subsection">10.1.8 Input file interpretation</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-c</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--check</span></samp>&rsquo;<dd><a name="index-g_t_002dc_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-983"></a><a name="index-g_t_002d_002dcheck_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-984"></a>Perform all the checks implied by <code>--check-format</code>, <code>--check-header</code>,
<code>--check-domain</code>.

     <br><dt>&lsquo;<samp><span class="samp">--check-format</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcheck_002dformat_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-985"></a><a name="index-check-format-strings-986"></a>Check language dependent format strings.

     <p>If the string represents a format string used in a
<code>printf</code>-like function both strings should have the same number of
&lsquo;<samp><span class="samp">%</span></samp>&rsquo; format specifiers, with matching types.  If the flag
<code>c-format</code> or <code>possible-c-format</code> appears in the special
comment &lt;#,&gt; for this entry a check is performed.  For example, the
check will diagnose using &lsquo;<samp><span class="samp">%.*s</span></samp>&rsquo; against &lsquo;<samp><span class="samp">%s</span></samp>&rsquo;, or &lsquo;<samp><span class="samp">%d</span></samp>&rsquo;
against &lsquo;<samp><span class="samp">%s</span></samp>&rsquo;, or &lsquo;<samp><span class="samp">%d</span></samp>&rsquo; against &lsquo;<samp><span class="samp">%x</span></samp>&rsquo;.  It can even handle
positional parameters.

     <p>Normally the <code>xgettext</code> program automatically decides whether a
string is a format string or not.  This algorithm is not perfect,
though.  It might regard a string as a format string though it is not
used in a <code>printf</code>-like function and so <code>msgfmt</code> might report
errors where there are none.

     <p>To solve this problem the programmer can dictate the decision to the
<code>xgettext</code> program (see <a href="#c_002dformat">c-format</a>).  The translator should not
consider removing the flag from the &lt;#,&gt; line.  This "fix" would be
reversed again as soon as <code>msgmerge</code> is called the next time.

     <br><dt>&lsquo;<samp><span class="samp">--check-header</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcheck_002dheader_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-987"></a>Verify presence and contents of the header entry.  See <a href="#Header-Entry">Header Entry</a>,
for a description of the various fields in the header entry.

     <br><dt>&lsquo;<samp><span class="samp">--check-domain</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcheck_002ddomain_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-988"></a>Check for conflicts between domain directives and the <code>--output-file</code>
option

     <br><dt>&lsquo;<samp><span class="samp">-C</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--check-compatibility</span></samp>&rsquo;<dd><a name="index-g_t_002dC_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-989"></a><a name="index-g_t_002d_002dcheck_002dcompatibility_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-990"></a><a name="index-compatibility-with-X_002fOpen-_0040code_007bmsgfmt_007d-991"></a>Check that GNU msgfmt behaves like X/Open msgfmt.  This will give an error
when attempting to use the GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">--check-accelerators[=</span><var>char</var><span class="samp">]</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcheck_002daccelerators_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-992"></a><a name="index-keyboard-accelerator-checking-993"></a><a name="index-menu_002c-keyboard-accelerator-support-994"></a><a name="index-mnemonics-of-menu-entries-995"></a>Check presence of keyboard accelerators for menu items.  This is based on
the convention used in some GUIs that a keyboard accelerator in a menu
item string is designated by an immediately preceding &lsquo;<samp><span class="samp">&amp;</span></samp>&rsquo; character. 
Sometimes a keyboard accelerator is also called "keyboard mnemonic". 
This check verifies that if the untranslated string has exactly one
&lsquo;<samp><span class="samp">&amp;</span></samp>&rsquo; character, the translated string has exactly one &lsquo;<samp><span class="samp">&amp;</span></samp>&rsquo; as well. 
If this option is given with a <var>char</var> argument, this <var>char</var> should
be a non-alphanumeric character and is used as keyboard accelerator mark
instead of &lsquo;<samp><span class="samp">&amp;</span></samp>&rsquo;.

     <br><dt>&lsquo;<samp><span class="samp">-f</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--use-fuzzy</span></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-996"></a><a name="index-g_t_002d_002duse_002dfuzzy_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-997"></a><a name="index-force-use-of-fuzzy-entries-998"></a>Use fuzzy entries in output.  Note that using this option is usually wrong,
because fuzzy messages are exactly those which have not been validated by
a human translator.

   </dl>

<h4 class="subsection">10.1.9 Output details</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-a </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--alignment=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002da_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-999"></a><a name="index-g_t_002d_002dalignment_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1000"></a>Align strings to <var>number</var> bytes (default: 1). 
<!-- Currently the README mentions that this constant could be changed by -->
<!-- the installer by changing the value in config.h.  Should this go away? -->

     <br><dt>&lsquo;<samp><span class="samp">--no-hash</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dhash_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1001"></a>Don't include a hash table in the binary file.  Lookup will be more expensive
at run time (binary search instead of hash table lookup).

   </dl>

<h4 class="subsection">10.1.10 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1002"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1003"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1004"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1005"></a>Output version information and exit.

     <br><dt>&lsquo;<samp><span class="samp">--statistics</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstatistics_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1006"></a>Print statistics about translations.  When the option <code>--verbose</code> is used
in combination with <code>--statistics</code>, the input file name is printed in
front of the statistics line.

     <br><dt>&lsquo;<samp><span class="samp">-v</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--verbose</span></samp>&rsquo;<dd><a name="index-g_t_002dv_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1007"></a><a name="index-g_t_002d_002dverbose_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1008"></a>Increase verbosity level.

   </dl>

<div class="node">
<a name="msgunfmt-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#MO-Files">MO Files</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgfmt-Invocation">msgfmt Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Binaries">Binaries</a>

</div>

<h3 class="section">10.2 Invoking the <code>msgunfmt</code> Program</h3>

   <p><a name="index-msgunfmt-1009"></a><a name="index-g_t_0040code_007bmsgunfmt_007d-program_002c-usage-1010"></a>
<pre class="example">     msgunfmt [<var>option</var>] [<var>file</var>]...
</pre>
   <p><a name="index-convert-binary-message-catalog-into-PO-file-1011"></a>The <code>msgunfmt</code> program converts a binary message catalog to a
Uniforum style .po file.

<h4 class="subsection">10.2.1 Operation mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-j</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--java</span></samp>&rsquo;<dd><a name="index-g_t_002dj_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1012"></a><a name="index-g_t_002d_002djava_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1013"></a><a name="index-Java-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1014"></a>Java mode: input is a Java <code>ResourceBundle</code> class.

     <br><dt>&lsquo;<samp><span class="samp">--csharp</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcsharp_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1015"></a><a name="index-C_0023-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1016"></a>C# mode: input is a .NET .dll file containing a subclass of
<code>GettextResourceSet</code>.

     <br><dt>&lsquo;<samp><span class="samp">--csharp-resources</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dcsharp_002dresources_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1017"></a><a name="index-C_0023-resources-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1018"></a>C# resources mode: input is a .NET <samp><span class="file">.resources</span></samp> file.

     <br><dt>&lsquo;<samp><span class="samp">--tcl</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dtcl_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1019"></a><a name="index-Tcl-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1020"></a>Tcl mode: input is a tcl/msgcat <samp><span class="file">.msg</span></samp> file.

   </dl>

<h4 class="subsection">10.2.2 Input file location</h4>

     <dl>
<dt>&lsquo;<samp><var>file</var><span class="samp"> ...</span></samp>&rsquo;<dd>Input .mo files.

   </dl>

   <p>If no input <var>file</var> is given or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;, standard input is read.

<h4 class="subsection">10.2.3 Input file location in Java mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-r </span><var>resource</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--resource=</span><var>resource</var></samp>&rsquo;<dd><a name="index-g_t_002dr_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1021"></a><a name="index-g_t_002d_002dresource_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1022"></a>Specify the resource name.

     <br><dt>&lsquo;<samp><span class="samp">-l </span><var>locale</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--locale=</span><var>locale</var></samp>&rsquo;<dd><a name="index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1023"></a><a name="index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1024"></a>Specify the locale name, either a language specification of the form <var>ll</var>
or a combined language and country specification of the form <var>ll_CC</var>.

   </dl>

   <p>The class name is determined by appending the locale name to the resource name,
separated with an underscore.  The class is located using the <code>CLASSPATH</code>.

<h4 class="subsection">10.2.4 Input file location in C# mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-r </span><var>resource</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--resource=</span><var>resource</var></samp>&rsquo;<dd><a name="index-g_t_002dr_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1025"></a><a name="index-g_t_002d_002dresource_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1026"></a>Specify the resource name.

     <br><dt>&lsquo;<samp><span class="samp">-l </span><var>locale</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--locale=</span><var>locale</var></samp>&rsquo;<dd><a name="index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1027"></a><a name="index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1028"></a>Specify the locale name, either a language specification of the form <var>ll</var>
or a combined language and country specification of the form <var>ll_CC</var>.

     <br><dt>&lsquo;<samp><span class="samp">-d </span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1029"></a>Specify the base directory for locale dependent <samp><span class="file">.dll</span></samp> files.

   </dl>

   <p>The &lsquo;<samp><span class="samp">-l</span></samp>&rsquo; and &lsquo;<samp><span class="samp">-d</span></samp>&rsquo; options are mandatory.  The <samp><span class="file">.msg</span></samp> file is
located in a subdirectory of the specified directory whose name depends on the
locale.

<h4 class="subsection">10.2.5 Input file location in Tcl mode</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-l </span><var>locale</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--locale=</span><var>locale</var></samp>&rsquo;<dd><a name="index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1030"></a><a name="index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1031"></a>Specify the locale name, either a language specification of the form <var>ll</var>
or a combined language and country specification of the form <var>ll_CC</var>.

     <br><dt>&lsquo;<samp><span class="samp">-d </span><var>directory</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1032"></a>Specify the base directory of <samp><span class="file">.msg</span></samp> message catalogs.

   </dl>

   <p>The &lsquo;<samp><span class="samp">-l</span></samp>&rsquo; and &lsquo;<samp><span class="samp">-d</span></samp>&rsquo; options are mandatory.  The <samp><span class="file">.msg</span></samp> file is
located in the specified directory.

<h4 class="subsection">10.2.6 Output file location</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-o </span><var>file</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--output-file=</span><var>file</var></samp>&rsquo;<dd><a name="index-g_t_002do_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1033"></a><a name="index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1034"></a>Write output to specified file.

   </dl>

   <p>The results are written to standard output if no output file is specified
or if it is &lsquo;<samp><span class="samp">-</span></samp>&rsquo;.

<h4 class="subsection">10.2.7 Output details</h4>

<!-- no-escape and -escape omitted on purpose.  They are not useful. -->
     <dl>
<dt>&lsquo;<samp><span class="samp">--color</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--color=</span><var>when</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1035"></a>Specify whether or when to use colors and other text attributes. 
See <a href="#The-_002d_002dcolor-option">The &ndash;color option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--style=</span><var>style_file</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1036"></a>Specify the CSS style rule file to use for <code>--color</code>. 
See <a href="#The-_002d_002dstyle-option">The &ndash;style option</a> for details.

     <br><dt>&lsquo;<samp><span class="samp">--force-po</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1037"></a>Always write an output file even if it contains no message.

     <br><dt>&lsquo;<samp><span class="samp">-i</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--indent</span></samp>&rsquo;<dd><a name="index-g_t_002di_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1038"></a><a name="index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1039"></a>Write the .po file using indented style.

     <br><dt>&lsquo;<samp><span class="samp">--strict</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1040"></a>Write out a strict Uniforum conforming PO file.  Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.

     <br><dt>&lsquo;<samp><span class="samp">-p</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--properties-output</span></samp>&rsquo;<dd><a name="index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1041"></a><a name="index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1042"></a>Write out a Java ResourceBundle in Java <code>.properties</code> syntax.  Note
that this file format doesn't support plural forms and silently drops
obsolete messages.

     <br><dt>&lsquo;<samp><span class="samp">--stringtable-output</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1043"></a>Write out a NeXTstep/GNUstep localized resource file in <code>.strings</code> syntax. 
Note that this file format doesn't support plural forms.

     <br><dt>&lsquo;<samp><span class="samp">-w </span><var>number</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--width=</span><var>number</var></samp>&rsquo;<dd><a name="index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1044"></a><a name="index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1045"></a>Set the output page width.  Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given <var>number</var>.

     <br><dt>&lsquo;<samp><span class="samp">--no-wrap</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1046"></a>Do not break long message lines.  Message lines whose width exceeds the
output page width will not be split into several lines.  Only file reference
lines which are wider than the output page width will be split.

     <br><dt>&lsquo;<samp><span class="samp">-s</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--sort-output</span></samp>&rsquo;<dd><a name="index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1047"></a><a name="index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1048"></a><a name="index-sorting-_0040code_007bmsgunfmt_007d-output-1049"></a>Generate sorted output.  Note that using this option makes it much harder
for the translator to understand each message's context.

   </dl>

<h4 class="subsection">10.2.8 Informative output</h4>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1050"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1051"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1052"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1053"></a>Output version information and exit.

     <br><dt>&lsquo;<samp><span class="samp">-v</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--verbose</span></samp>&rsquo;<dd><a name="index-g_t_002dv_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1054"></a><a name="index-g_t_002d_002dverbose_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1055"></a>Increase verbosity level.

   </dl>

<div class="node">
<a name="MO-Files"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#msgunfmt-Invocation">msgunfmt Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Binaries">Binaries</a>

</div>

<h3 class="section">10.3 The Format of GNU MO Files</h3>

   <p><a name="index-MO-file_0027s-format-1056"></a><a name="index-file-format_002c-_0040file_007b_002emo_007d-1057"></a>
The format of the generated MO files is best described by a picture,
which appears below.

   <p><a name="index-magic-signature-of-MO-files-1058"></a>The first two words serve the identification of the file.  The magic
number will always signal GNU MO files.  The number is stored in the
byte order of the generating machine, so the magic number really is
two numbers: <code>0x950412de</code> and <code>0xde120495</code>.

   <p>The second word describes the current revision of the file format,
composed of a major and a minor revision number.  The revision numbers
ensure that the readers of MO files can distinguish new formats from
old ones and handle their contents, as far as possible.  For now the
major revision is 0 or 1, and the minor revision is also 0 or 1.  More
revisions might be added in the future.  A program seeing an unexpected
major revision number should stop reading the MO file entirely; whereas
an unexpected minor revision number means that the file can be read but
will not reveal its full contents, when parsed by a program that
supports only smaller minor revision numbers.

   <p>The version is kept
separate from the magic number, instead of using different magic
numbers for different formats, mainly because <samp><span class="file">/etc/magic</span></samp> is
not updated often.

   <p>Follow a number of pointers to later tables in the file, allowing
for the extension of the prefix part of MO files without having to
recompile programs reading them.  This might become useful for later
inserting a few flag bits, indication about the charset used, new
tables, or other things.

   <p>Then, at offset <var>O</var> and offset <var>T</var> in the picture, two tables
of string descriptors can be found.  In both tables, each string
descriptor uses two 32 bits integers, one for the string length,
another for the offset of the string in the MO file, counting in bytes
from the start of the file.  The first table contains descriptors
for the original strings, and is sorted so the original strings
are in increasing lexicographical order.  The second table contains
descriptors for the translated strings, and is parallel to the first
table: to find the corresponding translation one has to access the
array slot in the second array with the same index.

   <p>Having the original strings sorted enables the use of simple binary
search, for when the MO file does not contain an hashing table, or
for when it is not practical to use the hashing table provided in
the MO file.  This also has another advantage, as the empty string
in a PO file GNU <code>gettext</code> is usually <em>translated</em> into
some system information attached to that particular MO file, and the
empty string necessarily becomes the first in both the original and
translated tables, making the system information very easy to find.

   <p><a name="index-hash-table_002c-inside-MO-files-1059"></a>The size <var>S</var> of the hash table can be zero.  In this case, the
hash table itself is not contained in the MO file.  Some people might
prefer this because a precomputed hashing table takes disk space, and
does not win <em>that</em> much speed.  The hash table contains indices
to the sorted array of strings in the MO file.  Conflict resolution is
done by double hashing.  The precise hashing algorithm used is fairly
dependent on GNU <code>gettext</code> code, and is not documented here.

   <p>As for the strings themselves, they follow the hash file, and each
is terminated with a &lt;NUL&gt;, and this &lt;NUL&gt; is not counted in
the length which appears in the string descriptor.  The <code>msgfmt</code>
program has an option selecting the alignment for MO file strings. 
With this option, each string is separately aligned so it starts at
an offset which is a multiple of the alignment value.  On some RISC
machines, a correct alignment will speed things up.

   <p><a name="index-context_002c-in-MO-files-1060"></a>Contexts are stored by storing the concatenation of the context, a
&lt;EOT&gt; byte, and the original string, instead of the original string.

   <p><a name="index-plural-forms_002c-in-MO-files-1061"></a>Plural forms are stored by letting the plural of the original string
follow the singular of the original string, separated through a
&lt;NUL&gt; byte.  The length which appears in the string descriptor
includes both.  However, only the singular of the original string
takes part in the hash table lookup.  The plural variants of the
translation are all stored consecutively, separated through a
&lt;NUL&gt; byte.  Here also, the length in the string descriptor
includes all of them.

   <p>Nothing prevents a MO file from having embedded &lt;NUL&gt;s in strings. 
However, the program interface currently used already presumes
that strings are &lt;NUL&gt; terminated, so embedded &lt;NUL&gt;s are
somewhat useless.  But the MO file format is general enough so other
interfaces would be later possible, if for example, we ever want to
implement wide characters right in MO files, where &lt;NUL&gt; bytes may
accidentally appear.  (No, we don't want to have wide characters in MO
files.  They would make the file unnecessarily large, and the
&lsquo;<samp><span class="samp">wchar_t</span></samp>&rsquo; type being platform dependent, MO files would be
platform dependent as well.)

   <p>This particular issue has been strongly debated in the GNU
<code>gettext</code> development forum, and it is expectable that MO file
format will evolve or change over time.  It is even possible that many
formats may later be supported concurrently.  But surely, we have to
start somewhere, and the MO file format described here is a good start. 
Nothing is cast in concrete, and the format may later evolve fairly
easily, so we should feel comfortable with the current approach.

<pre class="example">             byte
                  +------------------------------------------+
               0  | magic number = 0x950412de                |
                  |                                          |
               4  | file format revision = 0                 |
                  |                                          |
               8  | number of strings                        |  == N
                  |                                          |
              12  | offset of table with original strings    |  == O
                  |                                          |
              16  | offset of table with translation strings |  == T
                  |                                          |
              20  | size of hashing table                    |  == S
                  |                                          |
              24  | offset of hashing table                  |  == H
                  |                                          |
                  .                                          .
                  .    (possibly more entries later)         .
                  .                                          .
                  |                                          |
               O  | length &amp; offset 0th string  ----------------.
           O + 8  | length &amp; offset 1st string  ------------------.
                   ...                                    ...   | |
     O + ((N-1)*8)| length &amp; offset (N-1)th string           |  | |
                  |                                          |  | |
               T  | length &amp; offset 0th translation  ---------------.
           T + 8  | length &amp; offset 1st translation  -----------------.
                   ...                                    ...   | | | |
     T + ((N-1)*8)| length &amp; offset (N-1)th translation      |  | | | |
                  |                                          |  | | | |
               H  | start hash table                         |  | | | |
                   ...                                    ...   | | | |
       H + S * 4  | end hash table                           |  | | | |
                  |                                          |  | | | |
                  | NUL terminated 0th string  &lt;----------------' | | |
                  |                                          |    | | |
                  | NUL terminated 1st string  &lt;------------------' | |
                  |                                          |      | |
                   ...                                    ...       | |
                  |                                          |      | |
                  | NUL terminated 0th translation  &lt;---------------' |
                  |                                          |        |
                  | NUL terminated 1st translation  &lt;-----------------'
                  |                                          |
                   ...                                    ...
                  |                                          |
                  +------------------------------------------+
</pre>
   <div class="node">
<a name="Programmers"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Translators">Translators</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Binaries">Binaries</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">11 The Programmer's View</h2>

<!-- FIXME: Reorganize whole chapter. -->
   <p>One aim of the current message catalog implementation provided by
GNU <code>gettext</code> was to use the system's message catalog handling, if the
installer wishes to do so.  So we perhaps should first take a look at
the solutions we know about.  The people in the POSIX committee did not
manage to agree on one of the semi-official standards which we'll
describe below.  In fact they couldn't agree on anything, so they decided
only to include an example of an interface.  The major Unix vendors
are split in the usage of the two most important specifications: X/Open's
catgets vs. Uniforum's gettext interface.  We'll describe them both and
later explain our solution of this dilemma.

<ul class="menu">
<li><a accesskey="1" href="#catgets">catgets</a>:                      About <code>catgets</code>
<li><a accesskey="2" href="#gettext">gettext</a>:                      About <code>gettext</code>
<li><a accesskey="3" href="#Comparison">Comparison</a>:                   Comparing the two interfaces
<li><a accesskey="4" href="#Using-libintl_002ea">Using libintl.a</a>:              Using libintl.a in own programs
<li><a accesskey="5" href="#gettext-grok">gettext grok</a>:                 Being a <code>gettext</code> grok
<li><a accesskey="6" href="#Temp-Programmers">Temp Programmers</a>:             Temporary Notes for the Programmers Chapter
</ul>

<div class="node">
<a name="catgets"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gettext">gettext</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Programmers">Programmers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programmers">Programmers</a>

</div>

<h3 class="section">11.1 About <code>catgets</code></h3>

   <p><a name="index-g_t_0040code_007bcatgets_007d_002c-X_002fOpen-specification-1062"></a>
The <code>catgets</code> implementation is defined in the X/Open Portability
Guide, Volume 3, XSI Supplementary Definitions, Chapter 5.  But the
process of creating this standard seemed to be too slow for some of
the Unix vendors so they created their implementations on preliminary
versions of the standard.  Of course this leads again to problems while
writing platform independent programs: even the usage of <code>catgets</code>
does not guarantee a unique interface.

   <p>Another, personal comment on this that only a bunch of committee members
could have made this interface.  They never really tried to program
using this interface.  It is a fast, memory-saving implementation, an
user can happily live with it.  But programmers hate it (at least I and
some others do<small class="dots">...</small>)

   <p>But we must not forget one point: after all the trouble with transferring
the rights on Unix(tm) they at last came to X/Open, the very same who
published this specification.  This leads me to making the prediction
that this interface will be in future Unix standards (e.g. Spec1170) and
therefore part of all Unix implementation (implementations, which are
<em>allowed</em> to wear this name).

<ul class="menu">
<li><a accesskey="1" href="#Interface-to-catgets">Interface to catgets</a>:         The interface
<li><a accesskey="2" href="#Problems-with-catgets">Problems with catgets</a>:        Problems with the <code>catgets</code> interface?! 
</ul>

<div class="node">
<a name="Interface-to-catgets"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Problems-with-catgets">Problems with catgets</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#catgets">catgets</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#catgets">catgets</a>

</div>

<h4 class="subsection">11.1.1 The Interface</h4>

   <p><a name="index-interface-to-_0040code_007bcatgets_007d-1063"></a>
The interface to the <code>catgets</code> implementation consists of three
functions which correspond to those used in file access: <code>catopen</code>
to open the catalog for using, <code>catgets</code> for accessing the message
tables, and <code>catclose</code> for closing after work is done.  Prototypes
for the functions and the needed definitions are in the
<code>&lt;nl_types.h&gt;</code> header file.

   <p><a name="index-g_t_0040code_007bcatopen_007d_002c-a-_0040code_007bcatgets_007d-function-1064"></a><code>catopen</code> is used like in this:

<pre class="example">     nl_catd catd = catopen ("catalog_name", 0);
</pre>
   <p>The function takes as the argument the name of the catalog.  This usual
refers to the name of the program or the package.  The second parameter
is not further specified in the standard.  I don't even know whether it
is implemented consistently among various systems.  So the common advice
is to use <code>0</code> as the value.  The return value is a handle to the
message catalog, equivalent to handles to file returned by <code>open</code>.

   <p><a name="index-g_t_0040code_007bcatgets_007d_002c-a-_0040code_007bcatgets_007d-function-1065"></a>This handle is of course used in the <code>catgets</code> function which can
be used like this:

<pre class="example">     char *translation = catgets (catd, set_no, msg_id, "original string");
</pre>
   <p>The first parameter is this catalog descriptor.  The second parameter
specifies the set of messages in this catalog, in which the message
described by <code>msg_id</code> is obtained.  <code>catgets</code> therefore uses a
three-stage addressing:

<pre class="display">     catalog name &rArr; set number &rArr; message ID &rArr; translation
</pre>
   <!-- Anybody else loving Haskell??? :-) - Uli -->
   <p>The fourth argument is not used to address the translation.  It is given
as a default value in case when one of the addressing stages fail.  One
important thing to remember is that although the return type of catgets
is <code>char *</code> the resulting string <em>must not</em> be changed.  It
should better be <code>const char *</code>, but the standard is published in
1988, one year before ANSI C.

<p class="noindent"><a name="index-g_t_0040code_007bcatclose_007d_002c-a-_0040code_007bcatgets_007d-function-1066"></a>The last of these functions is used and behaves as expected:

<pre class="example">     catclose (catd);
</pre>
   <p>After this no <code>catgets</code> call using the descriptor is legal anymore.

<div class="node">
<a name="Problems-with-catgets"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Interface-to-catgets">Interface to catgets</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#catgets">catgets</a>

</div>

<h4 class="subsection">11.1.2 Problems with the <code>catgets</code> Interface?!</h4>

   <p><a name="index-problems-with-_0040code_007bcatgets_007d-interface-1067"></a>
Now that this description seemed to be really easy &mdash; where are the
problems we speak of?  In fact the interface could be used in a
reasonable way, but constructing the message catalogs is a pain.  The
reason for this lies in the third argument of <code>catgets</code>: the unique
message ID.  This has to be a numeric value for all messages in a single
set.  Perhaps you could imagine the problems keeping such a list while
changing the source code.  Add a new message here, remove one there.  Of
course there have been developed a lot of tools helping to organize this
chaos but one as the other fails in one aspect or the other.  We don't
want to say that the other approach has no problems but they are far
more easy to manage.

<div class="node">
<a name="gettext"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Comparison">Comparison</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#catgets">catgets</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programmers">Programmers</a>

</div>

<h3 class="section">11.2 About <code>gettext</code></h3>

   <p><a name="index-g_t_0040code_007bgettext_007d_002c-a-programmer_0027s-view-1068"></a>
The definition of the <code>gettext</code> interface comes from a Uniforum
proposal.  It was submitted there by Sun, who had implemented the
<code>gettext</code> function in SunOS 4, around 1990.  Nowadays, the
<code>gettext</code> interface is specified by the OpenI18N standard.

   <p>The main point about this solution is that it does not follow the
method of normal file handling (open-use-close) and that it does not
burden the programmer with so many tasks, especially the unique key handling. 
Of course here also a unique key is needed, but this key is the message
itself (how long or short it is).  See <a href="#Comparison">Comparison</a> for a more
detailed comparison of the two methods.

   <p>The following section contains a rather detailed description of the
interface.  We make it that detailed because this is the interface
we chose for the GNU <code>gettext</code> Library.  Programmers interested
in using this library will be interested in this description.

<ul class="menu">
<li><a accesskey="1" href="#Interface-to-gettext">Interface to gettext</a>:         The interface
<li><a accesskey="2" href="#Ambiguities">Ambiguities</a>:                  Solving ambiguities
<li><a accesskey="3" href="#Locating-Catalogs">Locating Catalogs</a>:            Locating message catalog files
<li><a accesskey="4" href="#Charset-conversion">Charset conversion</a>:           How to request conversion to Unicode
<li><a accesskey="5" href="#Contexts">Contexts</a>:                     Solving ambiguities in GUI programs
<li><a accesskey="6" href="#Plural-forms">Plural forms</a>:                 Additional functions for handling plurals
<li><a accesskey="7" href="#Optimized-gettext">Optimized gettext</a>:            Optimization of the *gettext functions
</ul>

<div class="node">
<a name="Interface-to-gettext"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Ambiguities">Ambiguities</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gettext">gettext</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#gettext">gettext</a>

</div>

<h4 class="subsection">11.2.1 The Interface</h4>

   <p><a name="index-g_t_0040code_007bgettext_007d-interface-1069"></a>
The minimal functionality an interface must have is a) to select a
domain the strings are coming from (a single domain for all programs is
not reasonable because its construction and maintenance is difficult,
perhaps impossible) and b) to access a string in a selected domain.

   <p>This is principally the description of the <code>gettext</code> interface.  It
has a global domain which unqualified usages reference.  Of course this
domain is selectable by the user.

<pre class="example">     char *textdomain (const char *domain_name);
</pre>
   <p>This provides the possibility to change or query the current status of
the current global domain of the <code>LC_MESSAGE</code> category.  The
argument is a null-terminated string, whose characters must be legal in
the use in filenames.  If the <var>domain_name</var> argument is <code>NULL</code>,
the function returns the current value.  If no value has been set
before, the name of the default domain is returned: <em>messages</em>. 
Please note that although the return value of <code>textdomain</code> is of
type <code>char *</code> no changing is allowed.  It is also important to know
that no checks of the availability are made.  If the name is not
available you will see this by the fact that no translations are provided.

<p class="noindent">To use a domain set by <code>textdomain</code> the function

<pre class="example">     char *gettext (const char *msgid);
</pre>
   <p class="noindent">is to be used.  This is the simplest reasonable form one can imagine. 
The translation of the string <var>msgid</var> is returned if it is available
in the current domain.  If it is not available, the argument itself is
returned.  If the argument is <code>NULL</code> the result is undefined.

   <p>One thing which should come into mind is that no explicit dependency to
the used domain is given.  The current value of the domain is used. 
If this changes between two
executions of the same <code>gettext</code> call in the program, both calls
reference a different message catalog.

   <p>For the easiest case, which is normally used in internationalized
packages, once at the beginning of execution a call to <code>textdomain</code>
is issued, setting the domain to a unique name, normally the package
name.  In the following code all strings which have to be translated are
filtered through the gettext function.  That's all, the package speaks
your language.

<div class="node">
<a name="Ambiguities"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Locating-Catalogs">Locating Catalogs</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Interface-to-gettext">Interface to gettext</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#gettext">gettext</a>

</div>

<h4 class="subsection">11.2.2 Solving Ambiguities</h4>

   <p><a name="index-several-domains-1070"></a><a name="index-domain-ambiguities-1071"></a><a name="index-large-package-1072"></a>
While this single name domain works well for most applications there
might be the need to get translations from more than one domain.  Of
course one could switch between different domains with calls to
<code>textdomain</code>, but this is really not convenient nor is it fast.  A
possible situation could be one case subject to discussion during this
writing:  all
error messages of functions in the set of common used functions should
go into a separate domain <code>error</code>.  By this mean we would only need
to translate them once. 
Another case are messages from a library, as these <em>have</em> to be
independent of the current domain set by the application.

<p class="noindent">For this reasons there are two more functions to retrieve strings:

<pre class="example">     char *dgettext (const char *domain_name, const char *msgid);
     char *dcgettext (const char *domain_name, const char *msgid,
                      int category);
</pre>
   <p>Both take an additional argument at the first place, which corresponds
to the argument of <code>textdomain</code>.  The third argument of
<code>dcgettext</code> allows to use another locale category but <code>LC_MESSAGES</code>. 
But I really don't know where this can be useful.  If the
<var>domain_name</var> is <code>NULL</code> or <var>category</var> has an value beside
the known ones, the result is undefined.  It should also be noted that
this function is not part of the second known implementation of this
function family, the one found in Solaris.

   <p>A second ambiguity can arise by the fact, that perhaps more than one
domain has the same name.  This can be solved by specifying where the
needed message catalog files can be found.

<pre class="example">     char *bindtextdomain (const char *domain_name,
                           const char *dir_name);
</pre>
   <p>Calling this function binds the given domain to a file in the specified
directory (how this file is determined follows below).  Especially a
file in the systems default place is not favored against the specified
file anymore (as it would be by solely using <code>textdomain</code>).  A
<code>NULL</code> pointer for the <var>dir_name</var> parameter returns the binding
associated with <var>domain_name</var>.  If <var>domain_name</var> itself is
<code>NULL</code> nothing happens and a <code>NULL</code> pointer is returned.  Here
again as for all the other functions is true that none of the return
value must be changed!

   <p>It is important to remember that relative path names for the
<var>dir_name</var> parameter can be trouble.  Since the path is always
computed relative to the current directory different results will be
achieved when the program executes a <code>chdir</code> command.  Relative
paths should always be avoided to avoid dependencies and
unreliabilities.

<div class="node">
<a name="Locating-Catalogs"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Charset-conversion">Charset conversion</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Ambiguities">Ambiguities</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#gettext">gettext</a>

</div>

<h4 class="subsection">11.2.3 Locating Message Catalog Files</h4>

   <p><a name="index-message-catalog-files-location-1073"></a>
Because many different languages for many different packages have to be
stored we need some way to add these information to file message catalog
files.  The way usually used in Unix environments is have this encoding
in the file name.  This is also done here.  The directory name given in
<code>bindtextdomain</code>s second argument (or the default directory),
followed by the name of the locale, the locale category, and the domain name
are concatenated:

<pre class="example">     <var>dir_name</var>/<var>locale</var>/LC_<var>category</var>/<var>domain_name</var>.mo
</pre>
   <p>The default value for <var>dir_name</var> is system specific.  For the GNU
library, and for packages adhering to its conventions, it's:
<pre class="example">     /usr/local/share/locale
</pre>
   <p class="noindent"><var>locale</var> is the name of the locale category which is designated by
<code>LC_</code><var>category</var>.  For <code>gettext</code> and <code>dgettext</code> this
<code>LC_</code><var>category</var> is always <code>LC_MESSAGES</code>.<a rel="footnote" href="#fn-3" name="fnd-3"><sup>3</sup></a>
The name of the locale category is determined through
<code>setlocale (LC_</code><var>category</var><code>, NULL)</code>. 
<a rel="footnote" href="#fn-4" name="fnd-4"><sup>4</sup></a>
When using the function <code>dcgettext</code>, you can specify the locale category
through the third argument.

<div class="node">
<a name="Charset-conversion"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Contexts">Contexts</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Locating-Catalogs">Locating Catalogs</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#gettext">gettext</a>

</div>

<h4 class="subsection">11.2.4 How to specify the output character set <code>gettext</code> uses</h4>

   <p><a name="index-charset-conversion-at-runtime-1074"></a><a name="index-encoding-conversion-at-runtime-1075"></a>
<code>gettext</code> not only looks up a translation in a message catalog.  It
also converts the translation on the fly to the desired output character
set.  This is useful if the user is working in a different character set
than the translator who created the message catalog, because it avoids
distributing variants of message catalogs which differ only in the
character set.

   <p>The output character set is, by default, the value of <code>nl_langinfo
(CODESET)</code>, which depends on the <code>LC_CTYPE</code> part of the current
locale.  But programs which store strings in a locale independent way
(e.g. UTF-8) can request that <code>gettext</code> and related functions
return the translations in that encoding, by use of the
<code>bind_textdomain_codeset</code> function.

   <p>Note that the <var>msgid</var> argument to <code>gettext</code> is not subject to
character set conversion.  Also, when <code>gettext</code> does not find a
translation for <var>msgid</var>, it returns <var>msgid</var> unchanged &ndash;
independently of the current output character set.  It is therefore
recommended that all <var>msgid</var>s be US-ASCII strings.

<div class="defun">
&mdash; Function: char * <b>bind_textdomain_codeset</b> (<var>const char *domainname, const char *codeset</var>)<var><a name="index-bind_005ftextdomain_005fcodeset-1076"></a></var><br>
<blockquote><p>The <code>bind_textdomain_codeset</code> function can be used to specify the
output character set for message catalogs for domain <var>domainname</var>. 
The <var>codeset</var> argument must be a valid codeset name which can be used
for the <code>iconv_open</code> function, or a null pointer.

        <p>If the <var>codeset</var> parameter is the null pointer,
<code>bind_textdomain_codeset</code> returns the currently selected codeset
for the domain with the name <var>domainname</var>.  It returns <code>NULL</code> if
no codeset has yet been selected.

        <p>The <code>bind_textdomain_codeset</code> function can be used several times. 
If used multiple times with the same <var>domainname</var> argument, the
later call overrides the settings made by the earlier one.

        <p>The <code>bind_textdomain_codeset</code> function returns a pointer to a
string containing the name of the selected codeset.  The string is
allocated internally in the function and must not be changed by the
user.  If the system went out of core during the execution of
<code>bind_textdomain_codeset</code>, the return value is <code>NULL</code> and the
global variable <var>errno</var> is set accordingly. 
</p></blockquote></div>

<div class="node">
<a name="Contexts"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Plural-forms">Plural forms</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Charset-conversion">Charset conversion</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#gettext">gettext</a>

</div>

<h4 class="subsection">11.2.5 Using contexts for solving ambiguities</h4>

   <p><a name="index-context-1077"></a><a name="index-GUI-programs-1078"></a><a name="index-translating-menu-entries-1079"></a><a name="index-menu-entries-1080"></a>
One place where the <code>gettext</code> functions, if used normally, have big
problems is within programs with graphical user interfaces (GUIs).  The
problem is that many of the strings which have to be translated are very
short.  They have to appear in pull-down menus which restricts the
length.  But strings which are not containing entire sentences or at
least large fragments of a sentence may appear in more than one
situation in the program but might have different translations.  This is
especially true for the one-word strings which are frequently used in
GUI programs.

   <p>As a consequence many people say that the <code>gettext</code> approach is
wrong and instead <code>catgets</code> should be used which indeed does not
have this problem.  But there is a very simple and powerful method to
handle this kind of problems with the <code>gettext</code> functions.

   <p>Contexts can be added to strings to be translated.  A context dependent
translation lookup is when a translation for a given string is searched,
that is limited to a given context.  The translation for the same string
in a different context can be different.  The different translations of
the same string in different contexts can be stored in the in the same
MO file, and can be edited by the translator in the same PO file.

   <p>The <samp><span class="file">gettext.h</span></samp> include file contains the lookup macros for strings
with contexts.  They are implemented as thin macros and inline functions
over the functions from <code>&lt;libintl.h&gt;</code>.

   <p><a name="index-pgettext-1081"></a>
<pre class="example">     const char *pgettext (const char *msgctxt, const char *msgid);
</pre>
   <p>In a call of this macro, <var>msgctxt</var> and <var>msgid</var> must be string
literals.  The macro returns the translation of <var>msgid</var>, restricted
to the context given by <var>msgctxt</var>.

   <p>The <var>msgctxt</var> string is visible in the PO file to the translator. 
You should try to make it somehow canonical and never changing.  Because
every time you change an <var>msgctxt</var>, the translator will have to review
the translation of <var>msgid</var>.

   <p>Finding a canonical <var>msgctxt</var> string that doesn't change over time can
be hard.  But you shouldn't use the file name or class name containing the
<code>pgettext</code> call &ndash; because it is a common development task to rename
a file or a class, and it shouldn't cause translator work.  Also you shouldn't
use a comment in the form of a complete English sentence as <var>msgctxt</var> &ndash;
because orthography or grammar changes are often applied to such sentences,
and again, it shouldn't force the translator to do a review.

   <p>The &lsquo;<samp><span class="samp">p</span></samp>&rsquo; in &lsquo;<samp><span class="samp">pgettext</span></samp>&rsquo; stands for &ldquo;particular&rdquo;: <code>pgettext</code>
fetches a particular translation of the <var>msgid</var>.

   <p><a name="index-dpgettext-1082"></a><a name="index-dcpgettext-1083"></a>
<pre class="example">     const char *dpgettext (const char *domain_name,
                            const char *msgctxt, const char *msgid);
     const char *dcpgettext (const char *domain_name,
                             const char *msgctxt, const char *msgid,
                             int category);
</pre>
   <p>These are generalizations of <code>pgettext</code>.  They behave similarly to
<code>dgettext</code> and <code>dcgettext</code>, respectively.  The <var>domain_name</var>
argument defines the translation domain.  The <var>category</var> argument
allows to use another locale category than <code>LC_MESSAGES</code>.

   <p>As as example consider the following fictional situation.  A GUI program
has a menu bar with the following entries:

<pre class="smallexample">     +------------+------------+--------------------------------------+
     | File       | Printer    |                                      |
     +------------+------------+--------------------------------------+
     | Open     | | Select   |
     | New      | | Open     |
     +----------+ | Connect  |
                  +----------+
</pre>
   <p>To have the strings <code>File</code>, <code>Printer</code>, <code>Open</code>,
<code>New</code>, <code>Select</code>, and <code>Connect</code> translated there has to be
at some point in the code a call to a function of the <code>gettext</code>
family.  But in two places the string passed into the function would be
<code>Open</code>.  The translations might not be the same and therefore we
are in the dilemma described above.

   <p>What distinguishes the two places is the menu path from the menu root to
the particular menu entries:

<pre class="smallexample">     Menu|File
     Menu|Printer
     Menu|File|Open
     Menu|File|New
     Menu|Printer|Select
     Menu|Printer|Open
     Menu|Printer|Connect
</pre>
   <p>The context is thus the menu path without its last part.  So, the calls
look like this:

<pre class="smallexample">     pgettext ("Menu|", "File")
     pgettext ("Menu|", "Printer")
     pgettext ("Menu|File|", "Open")
     pgettext ("Menu|File|", "New")
     pgettext ("Menu|Printer|", "Select")
     pgettext ("Menu|Printer|", "Open")
     pgettext ("Menu|Printer|", "Connect")
</pre>
   <p>Whether or not to use the &lsquo;<samp><span class="samp">|</span></samp>&rsquo; character at the end of the context is a
matter of style.

   <p>For more complex cases, where the <var>msgctxt</var> or <var>msgid</var> are not
string literals, more general macros are available:

   <p><a name="index-pgettext_005fexpr-1084"></a><a name="index-dpgettext_005fexpr-1085"></a><a name="index-dcpgettext_005fexpr-1086"></a>
<pre class="example">     const char *pgettext_expr (const char *msgctxt, const char *msgid);
     const char *dpgettext_expr (const char *domain_name,
                                 const char *msgctxt, const char *msgid);
     const char *dcpgettext_expr (const char *domain_name,
                                  const char *msgctxt, const char *msgid,
                                  int category);
</pre>
   <p>Here <var>msgctxt</var> and <var>msgid</var> can be arbitrary string-valued expressions. 
These macros are more general.  But in the case that both argument expressions
are string literals, the macros without the &lsquo;<samp><span class="samp">_expr</span></samp>&rsquo; suffix are more
efficient.

<div class="node">
<a name="Plural-forms"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Optimized-gettext">Optimized gettext</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Contexts">Contexts</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#gettext">gettext</a>

</div>

<h4 class="subsection">11.2.6 Additional functions for plural forms</h4>

   <p><a name="index-plural-forms-1087"></a>
The functions of the <code>gettext</code> family described so far (and all the
<code>catgets</code> functions as well) have one problem in the real world
which have been neglected completely in all existing approaches.  What
is meant here is the handling of plural forms.

   <p>Looking through Unix source code before the time anybody thought about
internationalization (and, sadly, even afterwards) one can often find
code similar to the following:

<pre class="smallexample">        printf ("%d file%s deleted", n, n == 1 ? "" : "s");
</pre>
   <p class="noindent">After the first complaints from people internationalizing the code people
either completely avoided formulations like this or used strings like
<code>"file(s)"</code>.  Both look unnatural and should be avoided.  First
tries to solve the problem correctly looked like this:

<pre class="smallexample">        if (n == 1)
          printf ("%d file deleted", n);
        else
          printf ("%d files deleted", n);
</pre>
   <p>But this does not solve the problem.  It helps languages where the
plural form of a noun is not simply constructed by adding an
‘s’
but that is all.  Once again people fell into the trap of believing the
rules their language is using are universal.  But the handling of plural
forms differs widely between the language families.  For example,
Rafal Maszkowski <code>&lt;rzm@mat.uni.torun.pl&gt;</code> reports:

   <blockquote>
In Polish we use e.g. plik (file) this way:
<pre class="example">     1 plik
     2,3,4 pliki
     5-21 pliko'w
     22-24 pliki
     25-31 pliko'w
</pre>
   <p>and so on (o' means 8859-2 oacute which should be rather okreska,
similar to aogonek). 
</blockquote>

   <p>There are two things which can differ between languages (and even inside
language families);

     <ul>
<li>The form how plural forms are built differs.  This is a problem with
languages which have many irregularities.  German, for instance, is a
drastic case.  Though English and German are part of the same language
family (Germanic), the almost regular forming of plural noun forms
(appending an
‘s’)
is hardly found in German.

     <li>The number of plural forms differ.  This is somewhat surprising for
those who only have experiences with Romanic and Germanic languages
since here the number is the same (there are two).

     <p>But other language families have only one form or many forms.  More
information on this in an extra section. 
</ul>

   <p>The consequence of this is that application writers should not try to
solve the problem in their code.  This would be localization since it is
only usable for certain, hardcoded language environments.  Instead the
extended <code>gettext</code> interface should be used.

   <p>These extra functions are taking instead of the one key string two
strings and a numerical argument.  The idea behind this is that using
the numerical argument and the first string as a key, the implementation
can select using rules specified by the translator the right plural
form.  The two string arguments then will be used to provide a return
value in case no message catalog is found (similar to the normal
<code>gettext</code> behavior).  In this case the rules for Germanic language
is used and it is assumed that the first string argument is the singular
form, the second the plural form.

   <p>This has the consequence that programs without language catalogs can
display the correct strings only if the program itself is written using
a Germanic language.  This is a limitation but since the GNU C library
(as well as the GNU <code>gettext</code> package) are written as part of the
GNU package and the coding standards for the GNU project require program
being written in English, this solution nevertheless fulfills its
purpose.

<div class="defun">
&mdash; Function: char * <b>ngettext</b> (<var>const char *msgid1, const char *msgid2, unsigned long int n</var>)<var><a name="index-ngettext-1088"></a></var><br>
<blockquote><p>The <code>ngettext</code> function is similar to the <code>gettext</code> function
as it finds the message catalogs in the same way.  But it takes two
extra arguments.  The <var>msgid1</var> parameter must contain the singular
form of the string to be converted.  It is also used as the key for the
search in the catalog.  The <var>msgid2</var> parameter is the plural form. 
The parameter <var>n</var> is used to determine the plural form.  If no
message catalog is found <var>msgid1</var> is returned if <code>n == 1</code>,
otherwise <code>msgid2</code>.

        <p>An example for the use of this function is:

     <pre class="smallexample">          printf (ngettext ("%d file removed", "%d files removed", n), n);
</pre>
        <p>Please note that the numeric value <var>n</var> has to be passed to the
<code>printf</code> function as well.  It is not sufficient to pass it only to
<code>ngettext</code>.

        <p>In the English singular case, the number &ndash; always 1 &ndash; can be replaced with
"one":

     <pre class="smallexample">          printf (ngettext ("One file removed", "%d files removed", n), n);
</pre>
        <p class="noindent">This works because the &lsquo;<samp><span class="samp">printf</span></samp>&rsquo; function discards excess arguments that
are not consumed by the format string.

        <p>If this function is meant to yield a format string that takes two or more
arguments, you can not use it like this:

     <pre class="smallexample">          printf (ngettext ("%d file removed from directory %s",
                            "%d files removed from directory %s",
                            n, dir),
                  n);
</pre>
        <p class="noindent">because in many languages the translators want to replace the &lsquo;<samp><span class="samp">%d</span></samp>&rsquo;
with an explicit word in the singular case, just like &ldquo;one&rdquo; in English,
and C format strings cannot consume the second argument but skip the first
argument.  Instead, you have to reorder the arguments so that &lsquo;<samp><span class="samp">n</span></samp>&rsquo;
comes last:

     <pre class="smallexample">          printf (ngettext ("%$2d file removed from directory %$1s",
                            "%$2d files removed from directory %$1s",
                            dir, n),
                  n);
</pre>
        <p class="noindent">See <a href="#c_002dformat">c-format</a> for details about this argument reordering syntax.

        <p>When you know that the value of <code>n</code> is within a given range, you can
specify it as a comment directed to the <code>xgettext</code> tool.  This
information may help translators to use more adequate translations.  Like
this:

     <pre class="smallexample">          if (days &gt; 7 &amp;&amp; days &lt; 14)
            /* xgettext: range: 1..6 */
            printf (ngettext ("one week and one day", "one week and %d days",
                              days - 7),
                    days - 7);
</pre>
        <p>It is also possible to use this function when the strings don't contain a
cardinal number:

     <pre class="smallexample">          puts (ngettext ("Delete the selected file?",
                          "Delete the selected files?",
                          n));
</pre>
        <p>In this case the number <var>n</var> is only used to choose the plural form. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: char * <b>dngettext</b> (<var>const char *domain, const char *msgid1, const char *msgid2, unsigned long int n</var>)<var><a name="index-dngettext-1089"></a></var><br>
<blockquote><p>The <code>dngettext</code> is similar to the <code>dgettext</code> function in the
way the message catalog is selected.  The difference is that it takes
two extra parameter to provide the correct plural form.  These two
parameters are handled in the same way <code>ngettext</code> handles them. 
</p></blockquote></div>

<div class="defun">
&mdash; Function: char * <b>dcngettext</b> (<var>const char *domain, const char *msgid1, const char *msgid2, unsigned long int n, int category</var>)<var><a name="index-dcngettext-1090"></a></var><br>
<blockquote><p>The <code>dcngettext</code> is similar to the <code>dcgettext</code> function in the
way the message catalog is selected.  The difference is that it takes
two extra parameter to provide the correct plural form.  These two
parameters are handled in the same way <code>ngettext</code> handles them. 
</p></blockquote></div>

   <p>Now, how do these functions solve the problem of the plural forms? 
Without the input of linguists (which was not available) it was not
possible to determine whether there are only a few different forms in
which plural forms are formed or whether the number can increase with
every new supported language.

   <p>Therefore the solution implemented is to allow the translator to specify
the rules of how to select the plural form.  Since the formula varies
with every language this is the only viable solution except for
hardcoding the information in the code (which still would require the
possibility of extensions to not prevent the use of new languages).

   <p><a name="index-specifying-plural-form-in-a-PO-file-1091"></a><a name="index-nplurals_0040r_007b_002c-in-a-PO-file-header_007d-1092"></a><a name="index-plural_0040r_007b_002c-in-a-PO-file-header_007d-1093"></a>The information about the plural form selection has to be stored in the
header entry of the PO file (the one with the empty <code>msgid</code> string). 
The plural form information looks like this:

<pre class="smallexample">     Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;
</pre>
   <p>The <code>nplurals</code> value must be a decimal number which specifies how
many different plural forms exist for this language.  The string
following <code>plural</code> is an expression which is using the C language
syntax.  Exceptions are that no negative numbers are allowed, numbers
must be decimal, and the only variable allowed is <code>n</code>.  Spaces are
allowed in the expression, but backslash-newlines are not; in the
examples below the backslash-newlines are present for formatting purposes
only.  This expression will be evaluated whenever one of the functions
<code>ngettext</code>, <code>dngettext</code>, or <code>dcngettext</code> is called.  The
numeric value passed to these functions is then substituted for all uses
of the variable <code>n</code> in the expression.  The resulting value then
must be greater or equal to zero and smaller than the value given as the
value of <code>nplurals</code>.

<p class="noindent"><a name="index-plural-form-formulas-1094"></a>The following rules are known at this point.  The language with families
are listed.  But this does not necessarily mean the information can be
generalized for the whole family (as can be easily seen in the table
below).<a rel="footnote" href="#fn-5" name="fnd-5"><sup>5</sup></a>

     <dl>
<dt>Only one form:<dd>Some languages only require one single form.  There is no distinction
between the singular and plural form.  An appropriate header entry
would look like this:

     <pre class="smallexample">          Plural-Forms: nplurals=1; plural=0;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Asian family<dd>Japanese, <!-- 122.1 million speakers -->
Vietnamese, <!-- 68.6 million speakers -->
Korean <!-- 66.3 million speakers -->
</dl>

     <br><dt>Two forms, singular used for one only<dd>This is the form used in most existing programs since it is what English
is using.  A header entry would look like this:

     <pre class="smallexample">          Plural-Forms: nplurals=2; plural=n != 1;
</pre>
     <p>(Note: this uses the feature of C expressions that boolean expressions
have to value zero or one.)

     <p class="noindent">Languages with this property include:

          <dl>
<dt>Germanic family<dd>English, <!-- 328.0 million speakers -->
German, <!-- 96.9 million speakers -->
Dutch, <!-- 21.7 million speakers -->
Swedish, <!-- 8.3 million speakers -->
Danish, <!-- 5.6 million speakers -->
Norwegian, <!-- 4.6 million speakers -->
Faroese <!-- 0.05 million speakers -->
<br><dt>Romanic family<dd>Spanish, <!-- 328.5 million speakers -->
Portuguese, <!-- 178.0 million speakers - 163 million Brazilian Portuguese -->
Italian, <!-- 61.7 million speakers -->
Bulgarian <!-- 9.1 million speakers -->
<br><dt>Latin/Greek family<dd>Greek <!-- 13.1 million speakers -->
<br><dt>Finno-Ugric family<dd>Finnish, <!-- 5.0 million speakers -->
Estonian <!-- 1.0 million speakers -->
<br><dt>Semitic family<dd>Hebrew <!-- 5.3 million speakers -->
<br><dt>Artificial<dd>Esperanto <!-- 2 million speakers -->
</dl>

     <p class="noindent">Other languages using the same header entry are:

          <dl>
<dt>Finno-Ugric family<dd>Hungarian <!-- 12.5 million speakers -->
<br><dt>Turkic/Altaic family<dd>Turkish <!-- 50.8 million speakers -->
</dl>

     <p>Hungarian does not appear to have a plural if you look at sentences involving
cardinal numbers.  For example, &ldquo;1 apple&rdquo; is &ldquo;1 alma&rdquo;, and &ldquo;123 apples&rdquo; is
&ldquo;123 alma&rdquo;.  But when the number is not explicit, the distinction between
singular and plural exists: &ldquo;the apple&rdquo; is &ldquo;az alma&rdquo;, and &ldquo;the apples&rdquo; is
&ldquo;az alm&aacute;k&rdquo;.  Since <code>ngettext</code> has to support both types of sentences,
it is classified here, under &ldquo;two forms&rdquo;.

     <p>The same holds for Turkish: &ldquo;1 apple&rdquo; is &ldquo;1 elma&rdquo;, and &ldquo;123 apples&rdquo; is
&ldquo;123 elma&rdquo;.  But when the number is omitted, the distinction between singular
and plural exists: &ldquo;the apple&rdquo; is &ldquo;elma&rdquo;, and &ldquo;the apples&rdquo; is
&ldquo;elmalar&rdquo;.

     <br><dt>Two forms, singular used for zero and one<dd>Exceptional case in the language family.  The header entry would be:

     <pre class="smallexample">          Plural-Forms: nplurals=2; plural=n&gt;1;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Romanic family<dd>Brazilian Portuguese, <!-- 163 million speakers -->
French <!-- 67.8 million speakers -->
</dl>

     <br><dt>Three forms, special case for zero<dd>The header entry would be:

     <pre class="smallexample">          Plural-Forms: nplurals=3; plural=n%10==1 &amp;&amp; n%100!=11 ? 0 : n != 0 ? 1 : 2;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Baltic family<dd>Latvian <!-- 1.5 million speakers -->
</dl>

     <br><dt>Three forms, special cases for one and two<dd>The header entry would be:

     <pre class="smallexample">          Plural-Forms: nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Celtic<dd>Gaeilge (Irish) <!-- 0.4 million speakers -->
</dl>

     <br><dt>Three forms, special case for numbers ending in 00 or [2-9][0-9]<dd>The header entry would be:

     <pre class="smallexample">          Plural-Forms: nplurals=3; \
              plural=n==1 ? 0 : (n==0 || (n%100 &gt; 0 &amp;&amp; n%100 &lt; 20)) ? 1 : 2;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Romanic family<dd>Romanian <!-- 23.4 million speakers -->
</dl>

     <br><dt>Three forms, special case for numbers ending in 1[2-9]<dd>The header entry would look like this:

     <pre class="smallexample">          Plural-Forms: nplurals=3; \
              plural=n%10==1 &amp;&amp; n%100!=11 ? 0 : \
                     n%10&gt;=2 &amp;&amp; (n%100&lt;10 || n%100&gt;=20) ? 1 : 2;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Baltic family<dd>Lithuanian <!-- 3.2 million speakers -->
</dl>

     <br><dt>Three forms, special cases for numbers ending in 1 and 2, 3, 4, except those ending in 1[1-4]<dd>The header entry would look like this:

     <pre class="smallexample">          Plural-Forms: nplurals=3; \
              plural=n%10==1 &amp;&amp; n%100!=11 ? 0 : \
                     n%10&gt;=2 &amp;&amp; n%10&lt;=4 &amp;&amp; (n%100&lt;10 || n%100&gt;=20) ? 1 : 2;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Slavic family<dd>Russian, <!-- 143.6 million speakers -->
Ukrainian, <!-- 37.0 million speakers -->
Serbian, <!-- 7.0 million speakers -->
Croatian <!-- 5.5 million speakers -->
</dl>

     <br><dt>Three forms, special cases for 1 and 2, 3, 4<dd>The header entry would look like this:

     <pre class="smallexample">          Plural-Forms: nplurals=3; \
              plural=(n==1) ? 0 : (n&gt;=2 &amp;&amp; n&lt;=4) ? 1 : 2;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Slavic family<dd>Czech, <!-- 9.5 million speakers -->
Slovak <!-- 5.0 million speakers -->
</dl>

     <br><dt>Three forms, special case for one and some numbers ending in 2, 3, or 4<dd>The header entry would look like this:

     <pre class="smallexample">          Plural-Forms: nplurals=3; \
              plural=n==1 ? 0 : \
                     n%10&gt;=2 &amp;&amp; n%10&lt;=4 &amp;&amp; (n%100&lt;10 || n%100&gt;=20) ? 1 : 2;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Slavic family<dd>Polish <!-- 40.0 million speakers -->
</dl>

     <br><dt>Four forms, special case for one and all numbers ending in 02, 03, or 04<dd>The header entry would look like this:

     <pre class="smallexample">          Plural-Forms: nplurals=4; \
              plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;
</pre>
     <p class="noindent">Languages with this property include:

          <dl>
<dt>Slavic family<dd>Slovenian <!-- 1.9 million speakers -->
</dl>
     </dl>

   <p>You might now ask, <code>ngettext</code> handles only numbers <var>n</var> of type
&lsquo;<samp><span class="samp">unsigned long</span></samp>&rsquo;.  What about larger integer types?  What about negative
numbers?  What about floating-point numbers?

   <p>About larger integer types, such as &lsquo;<samp><span class="samp">uintmax_t</span></samp>&rsquo; or
&lsquo;<samp><span class="samp">unsigned long long</span></samp>&rsquo;: they can be handled by reducing the value to a
range that fits in an &lsquo;<samp><span class="samp">unsigned long</span></samp>&rsquo;.  Simply casting the value to
&lsquo;<samp><span class="samp">unsigned long</span></samp>&rsquo; would not do the right thing, since it would treat
<code>ULONG_MAX + 1</code> like zero, <code>ULONG_MAX + 2</code> like singular, and
the like.  Here you can exploit the fact that all mentioned plural form
formulas eventually become periodic, with a period that is a divisor of 100
(or 1000 or 1000000).  So, when you reduce a large value to another one in
the range [1000000, 1999999] that ends in the same 6 decimal digits, you
can assume that it will lead to the same plural form selection.  This code
does this:

<pre class="smallexample">     #include &lt;inttypes.h&gt;
     uintmax_t nbytes = ...;
     printf (ngettext ("The file has %"PRIuMAX" byte.",
                       "The file has %"PRIuMAX" bytes.",
                       (nbytes &gt; ULONG_MAX
                        ? (nbytes % 1000000) + 1000000
                        : nbytes)),
             nbytes);
</pre>
   <p>Negative and floating-point values usually represent physical entities for
which singular and plural don't clearly apply.  In such cases, there is no
need to use <code>ngettext</code>; a simple <code>gettext</code> call with a form suitable
for all values will do.  For example:

<pre class="smallexample">     printf (gettext ("Time elapsed: %.3f seconds"),
             num_milliseconds * 0.001);
</pre>
   <p class="noindent">Even if <var>num_milliseconds</var> happens to be a multiple of 1000, the output
<pre class="smallexample">     Time elapsed: 1.000 seconds
</pre>
   <p class="noindent">is acceptable in English, and similarly for other languages.

   <p>The translators' perspective regarding plural forms is explained in
<a href="#Translating-plural-forms">Translating plural forms</a>.

<div class="node">
<a name="Optimized-gettext"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Plural-forms">Plural forms</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#gettext">gettext</a>

</div>

<h4 class="subsection">11.2.7 Optimization of the *gettext functions</h4>

   <p><a name="index-optimization-of-_0040code_007bgettext_007d-functions-1095"></a>
At this point of the discussion we should talk about an advantage of the
GNU <code>gettext</code> implementation.  Some readers might have pointed out
that an internationalized program might have a poor performance if some
string has to be translated in an inner loop.  While this is unavoidable
when the string varies from one run of the loop to the other it is
simply a waste of time when the string is always the same.  Take the
following example:

<pre class="example">     {
       while (...)
         {
           puts (gettext ("Hello world"));
         }
     }
</pre>
   <p class="noindent">When the locale selection does not change between two runs the resulting
string is always the same.  One way to use this is:

<pre class="example">     {
       str = gettext ("Hello world");
       while (...)
         {
           puts (str);
         }
     }
</pre>
   <p class="noindent">But this solution is not usable in all situation (e.g. when the locale
selection changes) nor does it lead to legible code.

   <p>For this reason, GNU <code>gettext</code> caches previous translation results. 
When the same translation is requested twice, with no new message
catalogs being loaded in between, <code>gettext</code> will, the second time,
find the result through a single cache lookup.

<div class="node">
<a name="Comparison"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Using-libintl_002ea">Using libintl.a</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gettext">gettext</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programmers">Programmers</a>

</div>

<h3 class="section">11.3 Comparing the Two Interfaces</h3>

   <p><a name="index-g_t_0040code_007bgettext_007d-vs-_0040code_007bcatgets_007d-1096"></a><a name="index-comparison-of-interfaces-1097"></a>
<!-- FIXME: arguments to catgets vs. gettext -->
<!-- Partly done 950718 - drepper -->

   <p>The following discussion is perhaps a little bit colored.  As said
above we implemented GNU <code>gettext</code> following the Uniforum
proposal and this surely has its reasons.  But it should show how we
came to this decision.

   <p>First we take a look at the developing process.  When we write an
application using NLS provided by <code>gettext</code> we proceed as always. 
Only when we come to a string which might be seen by the users and thus
has to be translated we use <code>gettext("...")</code> instead of
<code>"..."</code>.  At the beginning of each source file (or in a central
header file) we define

<pre class="example">     #define gettext(String) (String)
</pre>
   <p>Even this definition can be avoided when the system supports the
<code>gettext</code> function in its C library.  When we compile this code the
result is the same as if no NLS code is used.  When  you take a look at
the GNU <code>gettext</code> code you will see that we use <code>_("...")</code>
instead of <code>gettext("...")</code>.  This reduces the number of
additional characters per translatable string to <em>3</em> (in words:
three).

   <p>When now a production version of the program is needed we simply replace
the definition

<pre class="example">     #define _(String) (String)
</pre>
   <p class="noindent">by

   <p><a name="index-include-file-_0040file_007blibintl_002eh_007d-1098"></a>
<pre class="example">     #include &lt;libintl.h&gt;
     #define _(String) gettext (String)
</pre>
   <p class="noindent">Additionally we run the program <samp><span class="file">xgettext</span></samp> on all source code file
which contain translatable strings and that's it: we have a running
program which does not depend on translations to be available, but which
can use any that becomes available.

   <p><a name="index-g_t_0040code_007bN_005f_007d_002c-a-convenience-macro-1099"></a>The same procedure can be done for the <code>gettext_noop</code> invocations
(see <a href="#Special-cases">Special cases</a>).  One usually defines <code>gettext_noop</code> as a
no-op macro.  So you should consider the following code for your project:

<pre class="example">     #define gettext_noop(String) String
     #define N_(String) gettext_noop (String)
</pre>
   <p><code>N_</code> is a short form similar to <code>_</code>.  The <samp><span class="file">Makefile</span></samp> in
the <samp><span class="file">po/</span></samp> directory of GNU <code>gettext</code> knows by default both of the
mentioned short forms so you are invited to follow this proposal for
your own ease.

   <p>Now to <code>catgets</code>.  The main problem is the work for the
programmer.  Every time he comes to a translatable string he has to
define a number (or a symbolic constant) which has also be defined in
the message catalog file.  He also has to take care for duplicate
entries, duplicate message IDs etc.  If he wants to have the same
quality in the message catalog as the GNU <code>gettext</code> program
provides he also has to put the descriptive comments for the strings and
the location in all source code files in the message catalog.  This is
nearly a Mission: Impossible.

   <p>But there are also some points people might call advantages speaking for
<code>catgets</code>.  If you have a single word in a string and this string
is used in different contexts it is likely that in one or the other
language the word has different translations.  Example:

<pre class="example">     printf ("%s: %d", gettext ("number"), number_of_errors)
     
     printf ("you should see %d %s", number_count,
             number_count == 1 ? gettext ("number") : gettext ("numbers"))
</pre>
   <p>Here we have to translate two times the string <code>"number"</code>.  Even
if you do not speak a language beside English it might be possible to
recognize that the two words have a different meaning.  In German the
first appearance has to be translated to <code>"Anzahl"</code> and the second
to <code>"Zahl"</code>.

   <p>Now you can say that this example is really esoteric.  And you are
right!  This is exactly how we felt about this problem and decide that
it does not weight that much.  The solution for the above problem could
be very easy:

<pre class="example">     printf ("%s %d", gettext ("number:"), number_of_errors)
     
     printf (number_count == 1 ? gettext ("you should see %d number")
                               : gettext ("you should see %d numbers"),
             number_count)
</pre>
   <p>We believe that we can solve all conflicts with this method.  If it is
difficult one can also consider changing one of the conflicting string a
little bit.  But it is not impossible to overcome.

   <p><code>catgets</code> allows same original entry to have different translations,
but <code>gettext</code> has another, scalable approach for solving ambiguities
of this kind: See <a href="#Ambiguities">Ambiguities</a>.

<div class="node">
<a name="Using-libintl.a"></a>
<a name="Using-libintl_002ea"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gettext-grok">gettext grok</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Comparison">Comparison</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programmers">Programmers</a>

</div>

<h3 class="section">11.4 Using libintl.a in own programs</h3>

   <p>Starting with version 0.9.4 the library <code>libintl.h</code> should be
self-contained.  I.e., you can use it in your own programs without
providing additional functions.  The <samp><span class="file">Makefile</span></samp> will put the header
and the library in directories selected using the <code>$(prefix)</code>.

<div class="node">
<a name="gettext-grok"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Temp-Programmers">Temp Programmers</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Using-libintl_002ea">Using libintl.a</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programmers">Programmers</a>

</div>

<h3 class="section">11.5 Being a <code>gettext</code> grok</h3>

   <p><strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

   <p>To fully exploit the functionality of the GNU <code>gettext</code> library it
is surely helpful to read the source code.  But for those who don't want
to spend that much time in reading the (sometimes complicated) code here
is a list comments:

     <ul>
<li>Changing the language at runtime
<a name="index-language-selection-at-runtime-1100"></a>
For interactive programs it might be useful to offer a selection of the
used language at runtime.  To understand how to do this one need to know
how the used language is determined while executing the <code>gettext</code>
function.  The method which is presented here only works correctly
with the GNU implementation of the <code>gettext</code> functions.

     <p>In the function <code>dcgettext</code> at every call the current setting of
the highest priority environment variable is determined and used. 
Highest priority means here the following list with decreasing
priority:

          <ol type=1 start=1>
<a name="index-LANGUAGE_0040r_007b_002c-environment-variable_007d-1101"></a><li><code>LANGUAGE</code>
<a name="index-LC_005fALL_0040r_007b_002c-environment-variable_007d-1102"></a><li><code>LC_ALL</code>
<a name="index-LC_005fCTYPE_0040r_007b_002c-environment-variable_007d-1103"></a><a name="index-LC_005fNUMERIC_0040r_007b_002c-environment-variable_007d-1104"></a><a name="index-LC_005fTIME_0040r_007b_002c-environment-variable_007d-1105"></a><a name="index-LC_005fCOLLATE_0040r_007b_002c-environment-variable_007d-1106"></a><a name="index-LC_005fMONETARY_0040r_007b_002c-environment-variable_007d-1107"></a><a name="index-LC_005fMESSAGES_0040r_007b_002c-environment-variable_007d-1108"></a><li><code>LC_xxx</code>, according to selected locale category
<a name="index-LANG_0040r_007b_002c-environment-variable_007d-1109"></a><li><code>LANG</code>
          </ol>

     <p>Afterwards the path is constructed using the found value and the
translation file is loaded if available.

     <p>What happens now when the value for, say, <code>LANGUAGE</code> changes?  According
to the process explained above the new value of this variable is found
as soon as the <code>dcgettext</code> function is called.  But this also means
the (perhaps) different message catalog file is loaded.  In other
words: the used language is changed.

     <p>But there is one little hook.  The code for gcc-2.7.0 and up provides
some optimization.  This optimization normally prevents the calling of
the <code>dcgettext</code> function as long as no new catalog is loaded.  But
if <code>dcgettext</code> is not called the program also cannot find the
<code>LANGUAGE</code> variable be changed (see <a href="#Optimized-gettext">Optimized gettext</a>).  A
solution for this is very easy.  Include the following code in the
language switching function.

     <pre class="example">            /* Change language.  */
            setenv ("LANGUAGE", "fr", 1);
          
            /* Make change known.  */
            {
              extern int  _nl_msg_cat_cntr;
              ++_nl_msg_cat_cntr;
            }
</pre>
     <p><a name="index-g_t_0040code_007b_005fnl_005fmsg_005fcat_005fcntr_007d-1110"></a>The variable <code>_nl_msg_cat_cntr</code> is defined in <samp><span class="file">loadmsgcat.c</span></samp>. 
You don't need to know what this is for.  But it can be used to detect
whether a <code>gettext</code> implementation is GNU gettext and not non-GNU
system's native gettext implementation.

   </ul>

<div class="node">
<a name="Temp-Programmers"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gettext-grok">gettext grok</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programmers">Programmers</a>

</div>

<h3 class="section">11.6 Temporary Notes for the Programmers Chapter</h3>

   <p><strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

<ul class="menu">
<li><a accesskey="1" href="#Temp-Implementations">Temp Implementations</a>:         Temporary - Two Possible Implementations
<li><a accesskey="2" href="#Temp-catgets">Temp catgets</a>:                 Temporary - About <code>catgets</code>
<li><a accesskey="3" href="#Temp-WSI">Temp WSI</a>:                     Temporary - Why a single implementation
<li><a accesskey="4" href="#Temp-Notes">Temp Notes</a>:                   Temporary - Notes
</ul>

<div class="node">
<a name="Temp-Implementations"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Temp-catgets">Temp catgets</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Temp-Programmers">Temp Programmers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Temp-Programmers">Temp Programmers</a>

</div>

<h4 class="subsection">11.6.1 Temporary - Two Possible Implementations</h4>

   <p>There are two competing methods for language independent messages:
the X/Open <code>catgets</code> method, and the Uniforum <code>gettext</code>
method.  The <code>catgets</code> method indexes messages by integers; the
<code>gettext</code> method indexes them by their English translations. 
The <code>catgets</code> method has been around longer and is supported
by more vendors.  The <code>gettext</code> method is supported by Sun,
and it has been heard that the COSE multi-vendor initiative is
supporting it.  Neither method is a POSIX standard; the POSIX.1
committee had a lot of disagreement in this area.

   <p>Neither one is in the POSIX standard.  There was much disagreement
in the POSIX.1 committee about using the <code>gettext</code> routines
vs. <code>catgets</code> (XPG).  In the end the committee couldn't
agree on anything, so no messaging system was included as part
of the standard.  I believe the informative annex of the standard
includes the XPG3 messaging interfaces, &ldquo;<small class="dots">...</small>as an example of
a messaging system that has been implemented<small class="dots">...</small>&rdquo;

   <p>They were very careful not to say anywhere that you should use one
set of interfaces over the other.  For more on this topic please
see the Programming for Internationalization FAQ.

<div class="node">
<a name="Temp-catgets"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Temp-WSI">Temp WSI</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Temp-Implementations">Temp Implementations</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Temp-Programmers">Temp Programmers</a>

</div>

<h4 class="subsection">11.6.2 Temporary - About <code>catgets</code></h4>

   <p>There have been a few discussions of late on the use of
<code>catgets</code> as a base.  I think it important to present both
sides of the argument and hence am opting to play devil's advocate
for a little bit.

   <p>I'll not deny the fact that <code>catgets</code> could have been designed
a lot better.  It currently has quite a number of limitations and
these have already been pointed out.

   <p>However there is a great deal to be said for consistency and
standardization.  A common recurring problem when writing Unix
software is the myriad portability problems across Unix platforms. 
It seems as if every Unix vendor had a look at the operating system
and found parts they could improve upon.  Undoubtedly, these
modifications are probably innovative and solve real problems. 
However, software developers have a hard time keeping up with all
these changes across so many platforms.

   <p>And this has prompted the Unix vendors to begin to standardize their
systems.  Hence the impetus for Spec1170.  Every major Unix vendor
has committed to supporting this standard and every Unix software
developer waits with glee the day they can write software to this
standard and simply recompile (without having to use autoconf)
across different platforms.

   <p>As I understand it, Spec1170 is roughly based upon version 4 of the
X/Open Portability Guidelines (XPG4).  Because <code>catgets</code> and
friends are defined in XPG4, I'm led to believe that <code>catgets</code>
is a part of Spec1170 and hence will become a standardized component
of all Unix systems.

<div class="node">
<a name="Temp-WSI"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Temp-Notes">Temp Notes</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Temp-catgets">Temp catgets</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Temp-Programmers">Temp Programmers</a>

</div>

<h4 class="subsection">11.6.3 Temporary - Why a single implementation</h4>

   <p>Now it seems kind of wasteful to me to have two different systems
installed for accessing message catalogs.  If we do want to remedy
<code>catgets</code> deficiencies why don't we try to expand <code>catgets</code>
(in a compatible manner) rather than implement an entirely new system. 
Otherwise, we'll end up with two message catalog access systems installed
with an operating system - one set of routines for packages using GNU
<code>gettext</code> for their internationalization, and another set of routines
(catgets) for all other software.  Bloated?

   <p>Supposing another catalog access system is implemented.  Which do
we recommend?  At least for Linux, we need to attract as many
software developers as possible.  Hence we need to make it as easy
for them to port their software as possible.  Which means supporting
<code>catgets</code>.  We will be implementing the <code>libintl</code> code
within our <code>libc</code>, but does this mean we also have to incorporate
another message catalog access scheme within our <code>libc</code> as well? 
And what about people who are going to be using the <code>libintl</code>
+ non-<code>catgets</code> routines.  When they port their software to
other platforms, they're now going to have to include the front-end
(<code>libintl</code>) code plus the back-end code (the non-<code>catgets</code>
access routines) with their software instead of just including the
<code>libintl</code> code with their software.

   <p>Message catalog support is however only the tip of the iceberg. 
What about the data for the other locale categories?  They also have
a number of deficiencies.  Are we going to abandon them as well and
develop another duplicate set of routines (should <code>libintl</code>
expand beyond message catalog support)?

   <p>Like many parts of Unix that can be improved upon, we're stuck with balancing
compatibility with the past with useful improvements and innovations for
the future.

<div class="node">
<a name="Temp-Notes"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Temp-WSI">Temp WSI</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Temp-Programmers">Temp Programmers</a>

</div>

<h4 class="subsection">11.6.4 Temporary - Notes</h4>

   <p>X/Open agreed very late on the standard form so that many
implementations differ from the final form.  Both of my system (old
Linux catgets and Ultrix-4) have a strange variation.

   <p>OK.  After incorporating the last changes I have to spend some time on
making the GNU/Linux <code>libc</code> <code>gettext</code> functions.  So in future
Solaris is not the only system having <code>gettext</code>.

<div class="node">
<a name="Translators"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Maintainers">Maintainers</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Programmers">Programmers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">12 The Translator's View</h2>

<!-- FIXME: Reorganize whole chapter. -->
<ul class="menu">
<li><a accesskey="1" href="#Trans-Intro-0">Trans Intro 0</a>:                Introduction 0
<li><a accesskey="2" href="#Trans-Intro-1">Trans Intro 1</a>:                Introduction 1
<li><a accesskey="3" href="#Discussions">Discussions</a>:                  Discussions
<li><a accesskey="4" href="#Organization">Organization</a>:                 Organization
<li><a accesskey="5" href="#Information-Flow">Information Flow</a>:             Information Flow
<li><a accesskey="6" href="#Translating-plural-forms">Translating plural forms</a>:     How to fill in <code>msgstr[0]</code>, <code>msgstr[1]</code>
<li><a accesskey="7" href="#Prioritizing-messages">Prioritizing messages</a>:        How to find which messages to translate first
</ul>

<div class="node">
<a name="Trans-Intro-0"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Trans-Intro-1">Trans Intro 1</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Translators">Translators</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators">Translators</a>

</div>

<h3 class="section">12.1 Introduction 0</h3>

   <p><strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

   <p>Free software is going international!  The Translation Project is a way
to get maintainers, translators and users all together, so free software
will gradually become able to speak many native languages.

   <p>The GNU <code>gettext</code> tool set contains <em>everything</em> maintainers
need for internationalizing their packages for messages.  It also
contains quite useful tools for helping translators at localizing
messages to their native language, once a package has already been
internationalized.

   <p>To achieve the Translation Project, we need many interested
people who like their own language and write it well, and who are also
able to synergize with other translators speaking the same language. 
If you'd like to volunteer to <em>work</em> at translating messages,
please send mail to your translating team.

   <p>Each team has its own mailing list, courtesy of Linux
International.  You may reach your translating team at the address
<samp><var>ll</var><span class="file">@li.org</span></samp>, replacing <var>ll</var> by the two-letter ISO&nbsp;639<!-- /@w -->
code for your language.  Language codes are <em>not</em> the same as
country codes given in ISO&nbsp;3166<!-- /@w -->.  The following translating teams
exist:

   <blockquote>
Chinese <code>zh</code>, Czech <code>cs</code>, Danish <code>da</code>, Dutch <code>nl</code>,
Esperanto <code>eo</code>, Finnish <code>fi</code>, French <code>fr</code>, Irish
<code>ga</code>, German <code>de</code>, Greek <code>el</code>, Italian <code>it</code>,
Japanese <code>ja</code>, Indonesian <code>in</code>, Norwegian <code>no</code>, Polish
<code>pl</code>, Portuguese <code>pt</code>, Russian <code>ru</code>, Spanish <code>es</code>,
Swedish <code>sv</code> and Turkish <code>tr</code>. 
</blockquote>

<p class="noindent">For example, you may reach the Chinese translating team by writing to
<samp><span class="file">zh@li.org</span></samp>.  When you become a member of the translating team
for your own language, you may subscribe to its list.  For example,
Swedish people can send a message to <samp><span class="file">sv-request@li.org</span></samp><!-- /@w -->,
having this message body:

<pre class="example">     subscribe
</pre>
   <p>Keep in mind that team members should be interested in <em>working</em>
at translations, or at solving translational difficulties, rather than
merely lurking around.  If your team does not exist yet and you want to
start one, please write to <samp><span class="file">coordinator@translationproject.org</span></samp><!-- /@w -->;
you will then reach the coordinator for all translator teams.

   <p>A handful of GNU packages have already been adapted and provided
with message translations for several languages.  Translation
teams have begun to organize, using these packages as a starting
point.  But there are many more packages and many languages for
which we have no volunteer translators.  If you would like to
volunteer to work at translating messages, please send mail to
<samp><span class="file">coordinator@translationproject.org</span></samp> indicating what language(s)
you can work on.

<div class="node">
<a name="Trans-Intro-1"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Discussions">Discussions</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Trans-Intro-0">Trans Intro 0</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators">Translators</a>

</div>

<h3 class="section">12.2 Introduction 1</h3>

   <p><strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

   <p>This is now official, GNU is going international!  Here is the
announcement submitted for the January 1995 GNU Bulletin:

   <blockquote>
A handful of GNU packages have already been adapted and provided
with message translations for several languages.  Translation
teams have begun to organize, using these packages as a starting
point.  But there are many more packages and many languages
for which we have no volunteer translators.  If you'd like to
volunteer to work at translating messages, please send mail to
&lsquo;<samp><span class="samp">coordinator@translationproject.org</span></samp>&rsquo; indicating what language(s)
you can work on. 
</blockquote>

   <p>This document should answer many questions for those who are curious about
the process or would like to contribute.  Please at least skim over it,
hoping to cut down a little of the high volume of e-mail generated by this
collective effort towards internationalization of free software.

   <p>Most free programming which is widely shared is done in English, and
currently, English is used as the main communicating language between
national communities collaborating to free software.  This very document
is written in English.  This will not change in the foreseeable future.

   <p>However, there is a strong appetite from national communities for
having more software able to write using national language and habits,
and there is an on-going effort to modify free software in such a way
that it becomes able to do so.  The experiments driven so far raised
an enthusiastic response from pretesters, so we believe that
internationalization of free software is dedicated to succeed.

   <p>For suggestion clarifications, additions or corrections to this
document, please e-mail to <samp><span class="file">coordinator@translationproject.org</span></samp>.

<div class="node">
<a name="Discussions"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Organization">Organization</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Trans-Intro-1">Trans Intro 1</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators">Translators</a>

</div>

<h3 class="section">12.3 Discussions</h3>

   <p><strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

   <p>Facing this internationalization effort, a few users expressed their
concerns.  Some of these doubts are presented and discussed, here.

     <ul>
<li>Smaller groups

     <p>Some languages are not spoken by a very large number of people, so people
speaking them sometimes consider that there may not be all that much
demand such versions of free software packages.  Moreover, many people
being <em>into computers</em>, in some countries, generally seem to prefer
English versions of their software.

     <p>On the other end, people might enjoy their own language a lot, and be
very motivated at providing to themselves the pleasure of having their
beloved free software speaking their mother tongue.  They do themselves
a personal favor, and do not pay that much attention to the number of
people benefiting of their work.

     <li>Misinterpretation

     <p>Other users are shy to push forward their own language, seeing in this
some kind of misplaced propaganda.  Someone thought there must be some
users of the language over the networks pestering other people with it.

     <p>But any spoken language is worth localization, because there are
people behind the language for whom the language is important and
dear to their hearts.

     <li>Odd translations

     <p>The biggest problem is to find the right translations so that
everybody can understand the messages.  Translations are usually a
little odd.  Some people get used to English, to the extent they may
find translations into their own language &ldquo;rather pushy, obnoxious
and sometimes even hilarious.&rdquo;  As a French speaking man, I have
the experience of those instruction manuals for goods, so poorly
translated in French in Korea or Taiwan<small class="dots">...</small>

     <p>The fact is that we sometimes have to create a kind of national
computer culture, and this is not easy without the collaboration of
many people liking their mother tongue.  This is why translations are
better achieved by people knowing and loving their own language, and
ready to work together at improving the results they obtain.

     <li>Dependencies over the GPL or LGPL

     <p>Some people wonder if using GNU <code>gettext</code> necessarily brings their
package under the protective wing of the GNU General Public License or
the GNU Library General Public License, when they do not want to make
their program free, or want other kinds of freedom.  The simplest
answer is &ldquo;normally not&rdquo;.

     <p>The <code>gettext-runtime</code> part of GNU <code>gettext</code>, i.e. the
contents of <code>libintl</code>, is covered by the GNU Library General Public
License.  The <code>gettext-tools</code> part of GNU <code>gettext</code>, i.e. the
rest of the GNU <code>gettext</code> package, is covered by the GNU General
Public License.

     <p>The mere marking of localizable strings in a package, or conditional
inclusion of a few lines for initialization, is not really including
GPL'ed or LGPL'ed code.  However, since the localization routines in
<code>libintl</code> are under the LGPL, the LGPL needs to be considered. 
It gives the right to distribute the complete unmodified source of
<code>libintl</code> even with non-free programs.  It also gives the right
to use <code>libintl</code> as a shared library, even for non-free programs. 
But it gives the right to use <code>libintl</code> as a static library or
to incorporate <code>libintl</code> into another library only to free
software.

   </ul>

<div class="node">
<a name="Organization"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Information-Flow">Information Flow</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Discussions">Discussions</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators">Translators</a>

</div>

<h3 class="section">12.4 Organization</h3>

   <p><strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

   <p>On a larger scale, the true solution would be to organize some kind of
fairly precise set up in which volunteers could participate.  I gave
some thought to this idea lately, and realize there will be some
touchy points.  I thought of writing to Richard Stallman to launch
such a project, but feel it might be good to shake out the ideas
between ourselves first.  Most probably that Linux International has
some experience in the field already, or would like to orchestrate
the volunteer work, maybe.  Food for thought, in any case!

   <p>I guess we have to setup something early, somehow, that will help
many possible contributors of the same language to interlock and avoid
work duplication, and further be put in contact for solving together
problems particular to their tongue (in most languages, there are many
difficulties peculiar to translating technical English).  My Swedish
contributor acknowledged these difficulties, and I'm well aware of
them for French.

   <p>This is surely not a technical issue, but we should manage so the
effort of locale contributors be maximally useful, despite the national
team layer interface between contributors and maintainers.

   <p>The Translation Project needs some setup for coordinating language
coordinators.  Localizing evolving programs will surely
become a permanent and continuous activity in the free software community,
once well started. 
The setup should be minimally completed and tested before GNU
<code>gettext</code> becomes an official reality.  The e-mail address
<samp><span class="file">coordinator@translationproject.org</span></samp> has been set up for receiving
offers from volunteers and general e-mail on these topics.  This address
reaches the Translation Project coordinator.

<ul class="menu">
<li><a accesskey="1" href="#Central-Coordination">Central Coordination</a>:         Central Coordination
<li><a accesskey="2" href="#National-Teams">National Teams</a>:               National Teams
<li><a accesskey="3" href="#Mailing-Lists">Mailing Lists</a>:                Mailing Lists
</ul>

<div class="node">
<a name="Central-Coordination"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#National-Teams">National Teams</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Organization">Organization</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Organization">Organization</a>

</div>

<h4 class="subsection">12.4.1 Central Coordination</h4>

   <p>I also think GNU will need sooner than it thinks, that someone set up
a way to organize and coordinate these groups.  Some kind of group
of groups.  My opinion is that it would be good that GNU delegates
this task to a small group of collaborating volunteers, shortly. 
Perhaps in <samp><span class="file">gnu.announce</span></samp> a list of this national committee's
can be published.

   <p>My role as coordinator would simply be to refer to Ulrich any German
speaking volunteer interested to localization of free software packages, and
maybe helping national groups to initially organize, while maintaining
national registries for until national groups are ready to take over. 
In fact, the coordinator should ease volunteers to get in contact with
one another for creating national teams, which should then select
one coordinator per language, or country (regionalized language). 
If well done, the coordination should be useful without being an
overwhelming task, the time to put delegations in place.

<div class="node">
<a name="National-Teams"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Mailing-Lists">Mailing Lists</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Central-Coordination">Central Coordination</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Organization">Organization</a>

</div>

<h4 class="subsection">12.4.2 National Teams</h4>

   <p>I suggest we look for volunteer coordinators/editors for individual
languages.  These people will scan contributions of translation files
for various programs, for their own languages, and will ensure high
and uniform standards of diction.

   <p>From my current experience with other people in these days, those who
provide localizations are very enthusiastic about the process, and are
more interested in the localization process than in the program they
localize, and want to do many programs, not just one.  This seems
to confirm that having a coordinator/editor for each language is a
good idea.

   <p>We need to choose someone who is good at writing clear and concise
prose in the language in question.  That is hard&mdash;we can't check
it ourselves.  So we need to ask a few people to judge each others'
writing and select the one who is best.

   <p>I announce my prerelease to a few dozen people, and you would not
believe all the discussions it generated already.  I shudder to think
what will happen when this will be launched, for true, officially,
world wide.  Who am I to arbitrate between two Czekolsovak users
contradicting each other, for example?

   <p>I assume that your German is not much better than my French so that
I would not be able to judge about these formulations.  What I would
suggest is that for each language there is a group for people who
maintain the PO files and judge about changes.  I suspect there will
be cultural differences between how such groups of people will behave. 
Some will have relaxed ways, reach consensus easily, and have anyone
of the group relate to the maintainers, while others will fight to
death, organize heavy administrations up to national standards, and
use strict channels.

   <p>The German team is putting out a good example.  Right now, they are
maybe half a dozen people revising translations of each other and
discussing the linguistic issues.  I do not even have all the names. 
Ulrich Drepper is taking care of coordinating the German team. 
He subscribed to all my pretest lists, so I do not even have to warn
him specifically of incoming releases.

   <p>I'm sure, that is a good idea to get teams for each language working
on translations.  That will make the translations better and more
consistent.

<ul class="menu">
<li><a accesskey="1" href="#Sub_002dCultures">Sub-Cultures</a>:                 Sub-Cultures
<li><a accesskey="2" href="#Organizational-Ideas">Organizational Ideas</a>:         Organizational Ideas
</ul>

<div class="node">
<a name="Sub-Cultures"></a>
<a name="Sub_002dCultures"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Organizational-Ideas">Organizational Ideas</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#National-Teams">National Teams</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#National-Teams">National Teams</a>

</div>

<h5 class="subsubsection">12.4.2.1 Sub-Cultures</h5>

   <p>Taking French for example, there are a few sub-cultures around computers
which developed diverging vocabularies.  Picking volunteers here and
there without addressing this problem in an organized way, soon in the
project, might produce a distasteful mix of internationalized programs,
and possibly trigger endless quarrels among those who really care.

   <p>Keeping some kind of unity in the way French localization of
internationalized programs is achieved is a difficult (and delicate) job. 
Knowing the latin character of French people (:-), if we take this
the wrong way, we could end up nowhere, or spoil a lot of energies. 
Maybe we should begin to address this problem seriously <em>before</em>
GNU <code>gettext</code> become officially published.  And I suspect that this
means soon!

<div class="node">
<a name="Organizational-Ideas"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Sub_002dCultures">Sub-Cultures</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#National-Teams">National Teams</a>

</div>

<h5 class="subsubsection">12.4.2.2 Organizational Ideas</h5>

   <p>I expect the next big changes after the official release.  Please note
that I use the German translation of the short GPL message.  We need
to set a few good examples before the localization goes out for true
in the free software community.  Here are a few points to discuss:

     <ul>
<li>Each group should have one FTP server (at least one master).

     <li>The files on the server should reflect the latest version (of
course!) and it should also contain a RCS directory with the
corresponding archives (I don't have this now).

     <li>There should also be a ChangeLog file (this is more useful than the
RCS archive but can be generated automatically from the later by
Emacs).

     <li>A <dfn>core group</dfn> should judge about questionable changes (for now
this group consists solely by me but I ask some others occasionally;
this also seems to work).

   </ul>

<div class="node">
<a name="Mailing-Lists"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#National-Teams">National Teams</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Organization">Organization</a>

</div>

<h4 class="subsection">12.4.3 Mailing Lists</h4>

   <p>If we get any inquiries about GNU <code>gettext</code>, send them on to:

<pre class="example">     <samp><span class="file">coordinator@translationproject.org</span></samp>
</pre>
   <p>The <samp><span class="file">*-pretest</span></samp> lists are quite useful to me, maybe the idea could
be generalized to many GNU, and non-GNU packages.  But each maintainer
his/her way!

   <p>Fran&ccedil;ois, we have a mechanism in place here at
<samp><span class="file">gnu.ai.mit.edu</span></samp> to track teams, support mailing lists for
them and log members.  We have a slight preference that you use it. 
If this is OK with you, I can get you clued in.

   <p>Things are changing!  A few years ago, when Daniel Fekete and I
asked for a mailing list for GNU localization, nested at the FSF, we
were politely invited to organize it anywhere else, and so did we. 
For communicating with my pretesters, I later made a handful of
mailing lists located at iro.umontreal.ca and administrated by
<code>majordomo</code>.  These lists have been <em>very</em> dependable
so far<small class="dots">...</small>

   <p>I suspect that the German team will organize itself a mailing list
located in Germany, and so forth for other countries.  But before they
organize for true, it could surely be useful to offer mailing lists
located at the FSF to each national team.  So yes, please explain me
how I should proceed to create and handle them.

   <p>We should create temporary mailing lists, one per country, to help
people organize.  Temporary, because once regrouped and structured, it
would be fair the volunteers from country bring back <em>their</em> list
in there and manage it as they want.  My feeling is that, in the long
run, each team should run its own list, from within their country. 
There also should be some central list to which all teams could
subscribe as they see fit, as long as each team is represented in it.

<div class="node">
<a name="Information-Flow"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Translating-plural-forms">Translating plural forms</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Organization">Organization</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators">Translators</a>

</div>

<h3 class="section">12.5 Information Flow</h3>

   <p><strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

   <p>There will surely be some discussion about this messages after the
packages are finally released.  If people now send you some proposals
for better messages, how do you proceed?  Jim, please note that
right now, as I put forward nearly a dozen of localizable programs, I
receive both the translations and the coordination concerns about them.

   <p>If I put one of my things to pretest, Ulrich receives the announcement
and passes it on to the German team, who make last minute revisions. 
Then he submits the translation files to me <em>as the maintainer</em>. 
For free packages I do not maintain, I would not even hear about it. 
This scheme could be made to work for the whole Translation Project,
I think.  For security reasons, maybe Ulrich (national coordinators,
in fact) should update central registry kept at the Translation Project
(Jim, me, or Len's recruits) once in a while.

   <p>In December/January, I was aggressively ready to internationalize
all of GNU, giving myself the duty of one small GNU package per week
or so, taking many weeks or months for bigger packages.  But it does
not work this way.  I first did all the things I'm responsible for. 
I've nothing against some missionary work on other maintainers, but
I'm also loosing a lot of energy over it&mdash;same debates over again.

   <p>And when the first localized packages are released we'll get a lot of
responses about ugly translations :-).  Surely, and we need to have
beforehand a fairly good idea about how to handle the information
flow between the national teams and the package maintainers.

   <p>Please start saving somewhere a quick history of each PO file.  I know
for sure that the file format will change, allowing for comments. 
It would be nice that each file has a kind of log, and references for
those who want to submit comments or gripes, or otherwise contribute. 
I sent a proposal for a fast and flexible format, but it is not
receiving acceptance yet by the GNU deciders.  I'll tell you when I
have more information about this.

<div class="node">
<a name="Translating-plural-forms"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Prioritizing-messages">Prioritizing messages</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Information-Flow">Information Flow</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators">Translators</a>

</div>

<h3 class="section">12.6 Translating plural forms</h3>

   <p><a name="index-plural-forms_002c-translating-1111"></a>Suppose you are translating a PO file, and it contains an entry like this:

<pre class="smallexample">     #, c-format
     msgid "One file removed"
     msgid_plural "%d files removed"
     msgstr[0] ""
     msgstr[1] ""
</pre>
   <p class="noindent">What does this mean? How do you fill it in?

   <p>Such an entry denotes a message with plural forms, that is, a message where
the text depends on a cardinal number.  The general form of the message,
in English, is the <code>msgid_plural</code> line.  The <code>msgid</code> line is the
English singular form, that is, the form for when the number is equal to 1. 
More details about plural forms are explained in <a href="#Plural-forms">Plural forms</a>.

   <p>The first thing you need to look at is the <code>Plural-Forms</code> line in the
header entry of the PO file.  It contains the number of plural forms and a
formula.  If the PO file does not yet have such a line, you have to add it. 
It only depends on the language into which you are translating.  You can
get this info by using the <code>msginit</code> command (see <a href="#Creating">Creating</a>) &ndash;
it contains a database of known plural formulas &ndash; or by asking other
members of your translation team.

   <p>Suppose the line looks as follows:

<pre class="smallexample">     "Plural-Forms: nplurals=3; plural=n%10==1 &amp;&amp; n%100!=11 ? 0 : n%10&gt;=2 &amp;&amp; n"
     "%10&lt;=4 &amp;&amp; (n%100&lt;10 || n%100&gt;=20) ? 1 : 2;\n"
</pre>
   <p>It's logically one line; recall that the PO file formatting is allowed to
break long lines so that each physical line fits in 80 monospaced columns.

   <p>The value of <code>nplurals</code> here tells you that there are three plural
forms.  The first thing you need to do is to ensure that the entry contains
an <code>msgstr</code> line for each of the forms:

<pre class="smallexample">     #, c-format
     msgid "One file removed"
     msgid_plural "%d files removed"
     msgstr[0] ""
     msgstr[1] ""
     msgstr[2] ""
</pre>
   <p>Then translate the <code>msgid_plural</code> line and fill it in into each
<code>msgstr</code> line:

<pre class="smallexample">     #, c-format
     msgid "One file removed"
     msgid_plural "%d files removed"
     msgstr[0] "%d slika uklonjenih"
     msgstr[1] "%d slika uklonjenih"
     msgstr[2] "%d slika uklonjenih"
</pre>
   <p>Now you can refine the translation so that it matches the plural form. 
According to the formula above, <code>msgstr[0]</code> is used when the number
ends in 1 but does not end in 11; <code>msgstr[1]</code> is used when the number
ends in 2, 3, 4, but not in 12, 13, 14; and <code>msgstr[2]</code> is used in
all other cases.  With this knowledge, you can refine the translations:

<pre class="smallexample">     #, c-format
     msgid "One file removed"
     msgid_plural "%d files removed"
     msgstr[0] "%d slika je uklonjena"
     msgstr[1] "%d datoteke uklonjenih"
     msgstr[2] "%d slika uklonjenih"
</pre>
   <p>You noticed that in the English singular form (<code>msgid</code>) the number
placeholder could be omitted and replaced by the numeral word &ldquo;one&rdquo;. 
Can you do this in your translation as well?

<pre class="smallexample">     msgstr[0] "jednom datotekom je uklonjen"
</pre>
   <p class="noindent">Well, it depends on whether <code>msgstr[0]</code> applies only to the number 1,
or to other numbers as well.  If, according to the plural formula,
<code>msgstr[0]</code> applies only to <code>n == 1</code>, then you can use the
specialized translation without the number placeholder.  In our case,
however, <code>msgstr[0]</code> also applies to the numbers 21, 31, 41, etc.,
and therefore you cannot omit the placeholder.

<div class="node">
<a name="Prioritizing-messages"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Translating-plural-forms">Translating plural forms</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators">Translators</a>

</div>

<h3 class="section">12.7 Prioritizing messages: How to determine which messages to translate first</h3>

   <p>A translator sometimes has only a limited amount of time per week to
spend on a package, and some packages have quite large message catalogs
(over 1000 messages).  Therefore she wishes to translate the messages
first that are the most visible to the user, or that occur most frequently. 
This section describes how to determine these "most urgent" messages. 
It also applies to determine the "next most urgent" messages after the
message catalog has already been partially translated.

   <p>In a first step, she uses the programs like a user would do.  While she
does this, the GNU <code>gettext</code> library logs into a file the not yet
translated messages for which a translation was requested from the program.

   <p>In a second step, she uses the PO mode to translate precisely this set
of messages.

   <p><a name="index-GETTEXT_005fLOG_005fUNTRANSLATED_0040r_007b_002c-environment-variable_007d-1112"></a>Here a more details.  The GNU <code>libintl</code> library (but not the
corresponding functions in GNU <code>libc</code>) supports an environment variable
<code>GETTEXT_LOG_UNTRANSLATED</code>.  The GNU <code>libintl</code> library will
log into this file the messages for which <code>gettext()</code> and related
functions couldn't find the translation.  If the file doesn't exist, it
will be created as needed.  On systems with GNU <code>libc</code> a shared library
&lsquo;<samp><span class="samp">preloadable_libintl.so</span></samp>&rsquo; is provided that can be used with the ELF
&lsquo;<samp><span class="samp">LD_PRELOAD</span></samp>&rsquo; mechanism.

   <p>So, in the first step, the translator uses these commands on systems with
GNU <code>libc</code>:

<pre class="smallexample">     $ LD_PRELOAD=/usr/local/lib/preloadable_libintl.so
     $ export LD_PRELOAD
     $ GETTEXT_LOG_UNTRANSLATED=$HOME/gettextlogused
     $ export GETTEXT_LOG_UNTRANSLATED
</pre>
   <p class="noindent">and these commands on other systems:

<pre class="smallexample">     $ GETTEXT_LOG_UNTRANSLATED=$HOME/gettextlogused
     $ export GETTEXT_LOG_UNTRANSLATED
</pre>
   <p>Then she uses and peruses the programs.  (It is a good and recommended
practice to use the programs for which you provide translations: it
gives you the needed context.)  When done, she removes the environment
variables:

<pre class="smallexample">     $ unset LD_PRELOAD
     $ unset GETTEXT_LOG_UNTRANSLATED
</pre>
   <p>The second step starts with removing duplicates:

<pre class="smallexample">     $ msguniq $HOME/gettextlogused &gt; missing.po
</pre>
   <p>The result is a PO file, but needs some preprocessing before a PO file editor
can be used with it.  First, it is a multi-domain PO file, containing
messages from many translation domains.  Second, it lacks all translator
comments and source references.  Here is how to get a list of the affected
translation domains:

<pre class="smallexample">     $ sed -n -e 's,^domain "\(.*\)"$,\1,p' &lt; missing.po | sort | uniq
</pre>
   <p>Then the translator can handle the domains one by one.  For simplicity,
let's use environment variables to denote the language, domain and source
package.

<pre class="smallexample">     $ lang=nl             # your language
     $ domain=coreutils    # the name of the domain to be handled
     $ package=/usr/src/gnu/coreutils-4.5.4   # the package where it comes from
</pre>
   <p>She takes the latest copy of <samp><span class="file">$lang.po</span></samp> from the Translation Project,
or from the package (in most cases, <samp><span class="file">$package/po/$lang.po</span></samp>), or
creates a fresh one if she's the first translator (see <a href="#Creating">Creating</a>). 
She then uses the following commands to mark the not urgent messages as
"obsolete".  (This doesn't mean that these messages - translated and
untranslated ones - will go away.  It simply means that the PO file editor
will ignore them in the following editing session.)

<pre class="smallexample">     $ msggrep --domain=$domain missing.po | grep -v '^domain' \
       &gt; $domain-missing.po
     $ msgattrib --set-obsolete --ignore-file $domain-missing.po $domain.$lang.po \
       &gt; $domain.$lang-urgent.po
</pre>
   <p>The she translates <samp><span class="file">$domain.$lang-urgent.po</span></samp> by use of a PO file editor
(see <a href="#Editing">Editing</a>). 
(FIXME: I don't know whether <code>KBabel</code> and <code>gtranslator</code> also
preserve obsolete messages, as they should.) 
Finally she restores the not urgent messages (with their earlier
translations, for those which were already translated) through this command:

<pre class="smallexample">     $ msgmerge --no-fuzzy-matching $domain.$lang-urgent.po $package/po/$domain.pot \
       &gt; $domain.$lang.po
</pre>
   <p>Then she can submit <samp><span class="file">$domain.$lang.po</span></samp> and proceed to the next domain.

<div class="node">
<a name="Maintainers"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Installers">Installers</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Translators">Translators</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">13 The Maintainer's View</h2>

   <p><a name="index-package-maintainer_0027s-view-of-_0040code_007bgettext_007d-1113"></a>
The maintainer of a package has many responsibilities.  One of them
is ensuring that the package will install easily on many platforms,
and that the magic we described earlier (see <a href="#Users">Users</a>) will work
for installers and end users.

   <p>Of course, there are many possible ways by which GNU <code>gettext</code>
might be integrated in a distribution, and this chapter does not cover
them in all generality.  Instead, it details one possible approach which
is especially adequate for many free software distributions following GNU
standards, or even better, Gnits standards, because GNU <code>gettext</code>
is purposely for helping the internationalization of the whole GNU
project, and as many other good free packages as possible.  So, the
maintainer's view presented here presumes that the package already has
a <samp><span class="file">configure.ac</span></samp> file and uses GNU Autoconf.

   <p>Nevertheless, GNU <code>gettext</code> may surely be useful for free packages
not following GNU standards and conventions, but the maintainers of such
packages might have to show imagination and initiative in organizing
their distributions so <code>gettext</code> work for them in all situations. 
There are surely many, out there.

   <p>Even if <code>gettext</code> methods are now stabilizing, slight adjustments
might be needed between successive <code>gettext</code> versions, so you
should ideally revise this chapter in subsequent releases, looking
for changes.

<ul class="menu">
<li><a accesskey="1" href="#Flat-and-Non_002dFlat">Flat and Non-Flat</a>:            Flat or Non-Flat Directory Structures
<li><a accesskey="2" href="#Prerequisites">Prerequisites</a>:                Prerequisite Works
<li><a accesskey="3" href="#gettextize-Invocation">gettextize Invocation</a>:        Invoking the <code>gettextize</code> Program
<li><a accesskey="4" href="#Adjusting-Files">Adjusting Files</a>:              Files You Must Create or Alter
<li><a accesskey="5" href="#autoconf-macros">autoconf macros</a>:              Autoconf macros for use in <samp><span class="file">configure.ac</span></samp>
<li><a accesskey="6" href="#CVS-Issues">CVS Issues</a>:                   Integrating with CVS
<li><a accesskey="7" href="#Release-Management">Release Management</a>:           Creating a Distribution Tarball
</ul>

<div class="node">
<a name="Flat-and-Non-Flat"></a>
<a name="Flat-and-Non_002dFlat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Prerequisites">Prerequisites</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Maintainers">Maintainers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Maintainers">Maintainers</a>

</div>

<h3 class="section">13.1 Flat or Non-Flat Directory Structures</h3>

   <p>Some free software packages are distributed as <code>tar</code> files which unpack
in a single directory, these are said to be <dfn>flat</dfn> distributions. 
Other free software packages have a one level hierarchy of subdirectories, using
for example a subdirectory named <samp><span class="file">doc/</span></samp> for the Texinfo manual and
man pages, another called <samp><span class="file">lib/</span></samp> for holding functions meant to
replace or complement C libraries, and a subdirectory <samp><span class="file">src/</span></samp> for
holding the proper sources for the package.  These other distributions
are said to be <dfn>non-flat</dfn>.

   <p>We cannot say much about flat distributions.  A flat
directory structure has the disadvantage of increasing the difficulty
of updating to a new version of GNU <code>gettext</code>.  Also, if you have
many PO files, this could somewhat pollute your single directory. 
Also, GNU <code>gettext</code>'s libintl sources consist of C sources, shell
scripts, <code>sed</code> scripts and complicated Makefile rules, which don't
fit well into an existing flat structure.  For these reasons, we
recommend to use non-flat approach in this case as well.

   <p>Maybe because GNU <code>gettext</code> itself has a non-flat structure,
we have more experience with this approach, and this is what will be
described in the remaining of this chapter.  Some maintainers might
use this as an opportunity to unflatten their package structure.

<div class="node">
<a name="Prerequisites"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gettextize-Invocation">gettextize Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Flat-and-Non_002dFlat">Flat and Non-Flat</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Maintainers">Maintainers</a>

</div>

<h3 class="section">13.2 Prerequisite Works</h3>

   <p><a name="index-converting-a-package-to-use-_0040code_007bgettext_007d-1114"></a><a name="index-migration-from-earlier-versions-of-_0040code_007bgettext_007d-1115"></a><a name="index-upgrading-to-new-versions-of-_0040code_007bgettext_007d-1116"></a>
There are some works which are required for using GNU <code>gettext</code>
in one of your package.  These works have some kind of generality
that escape the point by point descriptions used in the remainder
of this chapter.  So, we describe them here.

     <ul>
<li>Before attempting to use <code>gettextize</code> you should install some
other packages first. 
Ensure that recent versions of GNU <code>m4</code>, GNU Autoconf and GNU
<code>gettext</code> are already installed at your site, and if not, proceed
to do this first.  If you get to install these things, beware that
GNU <code>m4</code> must be fully installed before GNU Autoconf is even
<em>configured</em>.

     <p>To further ease the task of a package maintainer the <code>automake</code>
package was designed and implemented.  GNU <code>gettext</code> now uses this
tool and the <samp><span class="file">Makefile</span></samp>s in the <samp><span class="file">intl/</span></samp> and <samp><span class="file">po/</span></samp>
therefore know about all the goals necessary for using <code>automake</code>
and <samp><span class="file">libintl</span></samp> in one project.

     <p>Those four packages are only needed by you, as a maintainer; the
installers of your own package and end users do not really need any of
GNU <code>m4</code>, GNU Autoconf, GNU <code>gettext</code>, or GNU <code>automake</code>
for successfully installing and running your package, with messages
properly translated.  But this is not completely true if you provide
internationalized shell scripts within your own package: GNU
<code>gettext</code> shall then be installed at the user site if the end users
want to see the translation of shell script messages.

     <li>Your package should use Autoconf and have a <samp><span class="file">configure.ac</span></samp> or
<samp><span class="file">configure.in</span></samp> file. 
If it does not, you have to learn how.  The Autoconf documentation
is quite well written, it is a good idea that you print it and get
familiar with it.

     <li>Your C sources should have already been modified according to
instructions given earlier in this manual.  See <a href="#Sources">Sources</a>.

     <li>Your <samp><span class="file">po/</span></samp> directory should receive all PO files submitted to you
by the translator teams, each having <samp><var>ll</var><span class="file">.po</span></samp> as a name. 
This is not usually easy to get translation
work done before your package gets internationalized and available! 
Since the cycle has to start somewhere, the easiest for the maintainer
is to start with absolutely no PO files, and wait until various
translator teams get interested in your package, and submit PO files.

   </ul>

   <p>It is worth adding here a few words about how the maintainer should
ideally behave with PO files submissions.  As a maintainer, your role is
to authenticate the origin of the submission as being the representative
of the appropriate translating teams of the Translation Project (forward
the submission to <samp><span class="file">coordinator@translationproject.org</span></samp> in case of doubt),
to ensure that the PO file format is not severely broken and does not
prevent successful installation, and for the rest, to merely put these
PO files in <samp><span class="file">po/</span></samp> for distribution.

   <p>As a maintainer, you do not have to take on your shoulders the
responsibility of checking if the translations are adequate or
complete, and should avoid diving into linguistic matters.  Translation
teams drive themselves and are fully responsible of their linguistic
choices for the Translation Project.  Keep in mind that translator teams are <em>not</em>
driven by maintainers.  You can help by carefully redirecting all
communications and reports from users about linguistic matters to the
appropriate translation team, or explain users how to reach or join
their team.  The simplest might be to send them the <samp><span class="file">ABOUT-NLS</span></samp> file.

   <p>Maintainers should <em>never ever</em> apply PO file bug reports
themselves, short-cutting translation teams.  If some translator has
difficulty to get some of her points through her team, it should not be
an option for her to directly negotiate translations with maintainers. 
Teams ought to settle their problems themselves, if any.  If you, as
a maintainer, ever think there is a real problem with a team, please
never try to <em>solve</em> a team's problem on your own.

<div class="node">
<a name="gettextize-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Adjusting-Files">Adjusting Files</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Prerequisites">Prerequisites</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Maintainers">Maintainers</a>

</div>

<h3 class="section">13.3 Invoking the <code>gettextize</code> Program</h3>

   <p>The <code>gettextize</code> program is an interactive tool that helps the
maintainer of a package internationalized through GNU <code>gettext</code>. 
It is used for two purposes:

     <ul>
<li>As a wizard, when a package is modified to use GNU <code>gettext</code> for
the first time.

     <li>As a migration tool, for upgrading the GNU <code>gettext</code> support in
a package from a previous to a newer version of GNU <code>gettext</code>. 
</ul>

   <p>This program performs the following tasks:

     <ul>
<li>It copies into the package some files that are consistently and
identically needed in every package internationalized through
GNU <code>gettext</code>.

     <li>It performs as many of the tasks mentioned in the next section
<a href="#Adjusting-Files">Adjusting Files</a> as can be performed automatically.

     <li>It removes obsolete files and idioms used for previous GNU
<code>gettext</code> versions to the form recommended for the current GNU
<code>gettext</code> version.

     <li>It prints a summary of the tasks that ought to be done manually
and could not be done automatically by <code>gettextize</code>. 
</ul>

   <p>It can be invoked as follows:

   <p><a name="index-gettextize-1117"></a><a name="index-g_t_0040code_007bgettextize_007d-program_002c-usage-1118"></a>
<pre class="example">     gettextize [ <var>option</var>... ] [ <var>directory</var> ]
</pre>
   <p class="noindent">and accepts the following options:

     <dl>
<dt>&lsquo;<samp><span class="samp">-f</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--force</span></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1119"></a><a name="index-g_t_002d_002dforce_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1120"></a>Force replacement of files which already exist.

     <br><dt>&lsquo;<samp><span class="samp">--intl</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dintl_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1121"></a>Install the libintl sources in a subdirectory named <samp><span class="file">intl/</span></samp>. 
This libintl will be used to provide internationalization on systems
that don't have GNU libintl installed.  If this option is omitted,
the call to <code>AM_GNU_GETTEXT</code> in <samp><span class="file">configure.ac</span></samp> should read:
&lsquo;<samp><span class="samp">AM_GNU_GETTEXT([external])</span></samp>&rsquo;, and internationalization will not
be enabled on systems lacking GNU gettext.

     <br><dt>&lsquo;<samp><span class="samp">--po-dir=</span><var>dir</var></samp>&rsquo;<dd><a name="index-g_t_002d_002dpo_002ddir_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1122"></a>Specify a directory containing PO files.  Such a directory contains the
translations into various languages of a particular POT file.  This
option can be specified multiple times, once for each translation domain. 
If it is not specified, the directory named <samp><span class="file">po/</span></samp> is updated.

     <br><dt>&lsquo;<samp><span class="samp">--no-changelog</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dno_002dchangelog_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1123"></a>Don't update or create ChangeLog files.  By default, <code>gettextize</code>
logs all changes (file additions, modifications and removals) in a
file called &lsquo;<samp><span class="samp">ChangeLog</span></samp>&rsquo; in each affected directory.

     <br><dt>&lsquo;<samp><span class="samp">--symlink</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dsymlink_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1124"></a>Make symbolic links instead of copying the needed files.  This can be
useful to save a few kilobytes of disk space, but it requires extra
effort to create self-contained tarballs, it may disturb some mechanism
the maintainer applies to the sources, and it is likely to introduce
bugs when a newer version of <code>gettext</code> is installed on the system.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--dry-run</span></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1125"></a><a name="index-g_t_002d_002ddry_002drun_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1126"></a>Print modifications but don't perform them.  All actions that
<code>gettextize</code> would normally execute are inhibited and instead only
listed on standard output.

     <br><dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1127"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1128"></a>Output version information and exit.

   </dl>

   <p>If <var>directory</var> is given, this is the top level directory of a
package to prepare for using GNU <code>gettext</code>.  If not given, it
is assumed that the current directory is the top level directory of
such a package.

   <p>The program <code>gettextize</code> provides the following files.  However,
no existing file will be replaced unless the option <code>--force</code>
(<code>-f</code>) is specified.

     <ol type=1 start=1>
<li>The <samp><span class="file">ABOUT-NLS</span></samp> file is copied in the main directory of your package,
the one being at the top level.  This file gives the main indications
about how to install and use the Native Language Support features
of your program.  You might elect to use a more recent copy of this
<samp><span class="file">ABOUT-NLS</span></samp> file than the one provided through <code>gettextize</code>,
if you have one handy.  You may also fetch a more recent copy of file
<samp><span class="file">ABOUT-NLS</span></samp> from Translation Project sites, and from most GNU
archive sites.

     <li>A <samp><span class="file">po/</span></samp> directory is created for eventually holding
all translation files, but initially only containing the file
<samp><span class="file">po/Makefile.in.in</span></samp> from the GNU <code>gettext</code> distribution
(beware the double &lsquo;<samp><span class="samp">.in</span></samp>&rsquo; in the file name) and a few auxiliary
files.  If the <samp><span class="file">po/</span></samp> directory already exists, it will be preserved
along with the files it contains, and only <samp><span class="file">Makefile.in.in</span></samp> and
the auxiliary files will be overwritten.

     <p>If &lsquo;<samp><span class="samp">--po-dir</span></samp>&rsquo; has been specified, this holds for every directory
specified through &lsquo;<samp><span class="samp">--po-dir</span></samp>&rsquo;, instead of <samp><span class="file">po/</span></samp>.

     <li>Only if &lsquo;<samp><span class="samp">--intl</span></samp>&rsquo; has been specified:
A <samp><span class="file">intl/</span></samp> directory is created and filled with most of the files
originally in the <samp><span class="file">intl/</span></samp> directory of the GNU <code>gettext</code>
distribution.  Also, if option <code>--force</code> (<code>-f</code>) is given,
the <samp><span class="file">intl/</span></samp> directory is emptied first.

     <li>The file <samp><span class="file">config.rpath</span></samp> is copied into the directory containing
configuration support files.  It is needed by the <code>AM_GNU_GETTEXT</code>
autoconf macro.

     <li>Only if the project is using GNU <code>automake</code>:
A set of <code>autoconf</code> macro files is copied into the package's
<code>autoconf</code> macro repository, usually in a directory called <samp><span class="file">m4/</span></samp>.
        </ol>

   <p>If your site support symbolic links, <code>gettextize</code> will not
actually copy the files into your package, but establish symbolic
links instead.  This avoids duplicating the disk space needed in
all packages.  Merely using the &lsquo;<samp><span class="samp">-h</span></samp>&rsquo; option while creating the
<code>tar</code> archive of your distribution will resolve each link by an
actual copy in the distribution archive.  So, to insist, you really
should use &lsquo;<samp><span class="samp">-h</span></samp>&rsquo; option with <code>tar</code> within your <code>dist</code>
goal of your main <samp><span class="file">Makefile.in</span></samp>.

   <p>Furthermore, <code>gettextize</code> will update all <samp><span class="file">Makefile.am</span></samp> files
in each affected directory, as well as the top level <samp><span class="file">configure.ac</span></samp>
or <samp><span class="file">configure.in</span></samp> file.

   <p>It is interesting to understand that most new files for supporting
GNU <code>gettext</code> facilities in one package go in <samp><span class="file">intl/</span></samp>,
<samp><span class="file">po/</span></samp> and <samp><span class="file">m4/</span></samp> subdirectories.  One distinction between
<samp><span class="file">intl/</span></samp> and the two other directories is that <samp><span class="file">intl/</span></samp> is
meant to be completely identical in all packages using GNU <code>gettext</code>,
while the other directories will mostly contain package dependent
files.

   <p>The <code>gettextize</code> program makes backup files for all files it
replaces or changes, and also write ChangeLog entries about these
changes.  This way, the careful maintainer can check after running
<code>gettextize</code> whether its changes are acceptable to him, and
possibly adjust them.  An exception to this rule is the <samp><span class="file">intl/</span></samp>
directory, which is added or replaced or removed as a whole.

   <p>It is important to understand that <code>gettextize</code> can not do the
entire job of adapting a package for using GNU <code>gettext</code>.  The
amount of remaining work depends on whether the package uses GNU
<code>automake</code> or not.  But in any case, the maintainer should still
read the section <a href="#Adjusting-Files">Adjusting Files</a> after invoking <code>gettextize</code>.

   <p>In particular, if after using &lsquo;<samp><span class="samp">gettexize</span></samp>&rsquo;, you get an error
&lsquo;<samp><span class="samp">AC_COMPILE_IFELSE was called before AC_GNU_SOURCE</span></samp>&rsquo; or
&lsquo;<samp><span class="samp">AC_RUN_IFELSE was called before AC_GNU_SOURCE</span></samp>&rsquo;, you can fix it
by modifying <samp><span class="file">configure.ac</span></samp>, as described in <a href="#configure_002eac">configure.ac</a>.

   <p>It is also important to understand that <code>gettextize</code> is not part
of the GNU build system, in the sense that it should not be invoked
automatically, and not be invoked by someone who doesn't assume the
responsibilities of a package maintainer.  For the latter purpose, a
separate tool is provided, see <a href="#autopoint-Invocation">autopoint Invocation</a>.

<div class="node">
<a name="Adjusting-Files"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#autoconf-macros">autoconf macros</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gettextize-Invocation">gettextize Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Maintainers">Maintainers</a>

</div>

<h3 class="section">13.4 Files You Must Create or Alter</h3>

   <p><a name="index-g_t_0040code_007bgettext_007d-files-1129"></a>
Besides files which are automatically added through <code>gettextize</code>,
there are many files needing revision for properly interacting with
GNU <code>gettext</code>.  If you are closely following GNU standards for
Makefile engineering and auto-configuration, the adaptations should
be easier to achieve.  Here is a point by point description of the
changes needed in each.

   <p>So, here comes a list of files, each one followed by a description of
all alterations it needs.  Many examples are taken out from the GNU
<code>gettext</code> 0.18 distribution itself, or from the GNU
<code>hello</code> distribution (<a href="http://www.franken.de/users/gnu/ke/hello">http://www.franken.de/users/gnu/ke/hello</a>
or <a href="http://www.gnu.franken.de/ke/hello/">http://www.gnu.franken.de/ke/hello/</a>)  You may indeed
refer to the source code of the GNU <code>gettext</code> and GNU <code>hello</code>
packages, as they are intended to be good examples for using GNU
gettext functionality.

<ul class="menu">
<li><a accesskey="1" href="#po_002fPOTFILES_002ein">po/POTFILES.in</a>:               <samp><span class="file">POTFILES.in</span></samp> in <samp><span class="file">po/</span></samp>
<li><a accesskey="2" href="#po_002fLINGUAS">po/LINGUAS</a>:                   <samp><span class="file">LINGUAS</span></samp> in <samp><span class="file">po/</span></samp>
<li><a accesskey="3" href="#po_002fMakevars">po/Makevars</a>:                  <samp><span class="file">Makevars</span></samp> in <samp><span class="file">po/</span></samp>
<li><a accesskey="4" href="#po_002fRules_002d_002a">po/Rules-*</a>:                   Extending <samp><span class="file">Makefile</span></samp> in <samp><span class="file">po/</span></samp>
<li><a accesskey="5" href="#configure_002eac">configure.ac</a>:                 <samp><span class="file">configure.ac</span></samp> at top level
<li><a accesskey="6" href="#config_002eguess">config.guess</a>:                 <samp><span class="file">config.guess</span></samp>, <samp><span class="file">config.sub</span></samp> at top level
<li><a accesskey="7" href="#mkinstalldirs">mkinstalldirs</a>:                <samp><span class="file">mkinstalldirs</span></samp> at top level
<li><a accesskey="8" href="#aclocal">aclocal</a>:                      <samp><span class="file">aclocal.m4</span></samp> at top level
<li><a accesskey="9" href="#acconfig">acconfig</a>:                     <samp><span class="file">acconfig.h</span></samp> at top level
<li><a href="#config_002eh_002ein">config.h.in</a>:                  <samp><span class="file">config.h.in</span></samp> at top level
<li><a href="#Makefile">Makefile</a>:                     <samp><span class="file">Makefile.in</span></samp> at top level
<li><a href="#src_002fMakefile">src/Makefile</a>:                 <samp><span class="file">Makefile.in</span></samp> in <samp><span class="file">src/</span></samp>
<li><a href="#lib_002fgettext_002eh">lib/gettext.h</a>:                <samp><span class="file">gettext.h</span></samp> in <samp><span class="file">lib/</span></samp>
</ul>

<div class="node">
<a name="po%2fPOTFILES.in"></a>
<a name="po_002fPOTFILES_002ein"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#po_002fLINGUAS">po/LINGUAS</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Adjusting-Files">Adjusting Files</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.1 <samp><span class="file">POTFILES.in</span></samp> in <samp><span class="file">po/</span></samp></h4>

   <p><a name="index-g_t_0040file_007bPOTFILES_002ein_007d-file-1130"></a>
The <samp><span class="file">po/</span></samp> directory should receive a file named
<samp><span class="file">POTFILES.in</span></samp>.  This file tells which files, among all program
sources, have marked strings needing translation.  Here is an example
of such a file:

<pre class="example">     # List of source files containing translatable strings.
     # Copyright (C) 1995 Free Software Foundation, Inc.
     
     # Common library files
     lib/error.c
     lib/getopt.c
     lib/xmalloc.c
     
     # Package source files
     src/gettext.c
     src/msgfmt.c
     src/xgettext.c
</pre>
   <p class="noindent">Hash-marked comments and white lines are ignored.  All other lines
list those source files containing strings marked for translation
(see <a href="#Mark-Keywords">Mark Keywords</a>), in a notation relative to the top level
of your whole distribution, rather than the location of the
<samp><span class="file">POTFILES.in</span></samp> file itself.

   <p>When a C file is automatically generated by a tool, like <code>flex</code> or
<code>bison</code>, that doesn't introduce translatable strings by itself,
it is recommended to list in <samp><span class="file">po/POTFILES.in</span></samp> the real source file
(ending in <samp><span class="file">.l</span></samp> in the case of <code>flex</code>, or in <samp><span class="file">.y</span></samp> in the
case of <code>bison</code>), not the generated C file.

<div class="node">
<a name="po%2fLINGUAS"></a>
<a name="po_002fLINGUAS"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#po_002fMakevars">po/Makevars</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#po_002fPOTFILES_002ein">po/POTFILES.in</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.2 <samp><span class="file">LINGUAS</span></samp> in <samp><span class="file">po/</span></samp></h4>

   <p><a name="index-g_t_0040file_007bLINGUAS_007d-file-1131"></a>
The <samp><span class="file">po/</span></samp> directory should also receive a file named
<samp><span class="file">LINGUAS</span></samp>.  This file contains the list of available translations. 
It is a whitespace separated list.  Hash-marked comments and white lines
are ignored.  Here is an example file:

<pre class="example">     # Set of available languages.
     de fr
</pre>
   <p class="noindent">This example means that German and French PO files are available, so
that these languages are currently supported by your package.  If you
want to further restrict, at installation time, the set of installed
languages, this should not be done by modifying the <samp><span class="file">LINGUAS</span></samp> file,
but rather by using the <code>LINGUAS</code> environment variable
(see <a href="#Installers">Installers</a>).

   <p>It is recommended that you add the "languages" &lsquo;<samp><span class="samp">en@quot</span></samp>&rsquo; and
&lsquo;<samp><span class="samp">en@boldquot</span></samp>&rsquo; to the <code>LINGUAS</code> file.  <code>en@quot</code> is a
variant of English message catalogs (<code>en</code>) which uses real quotation
marks instead of the ugly looking asymmetric ASCII substitutes &lsquo;<samp><span class="samp">`</span></samp>&rsquo;
and &lsquo;<samp><span class="samp">'</span></samp>&rsquo;.  <code>en@boldquot</code> is a variant of <code>en@quot</code> that
additionally outputs quoted pieces of text in a bold font, when used in
a terminal emulator which supports the VT100 escape sequences (such as
<code>xterm</code> or the Linux console, but not Emacs in <kbd>M-x shell</kbd> mode).

   <p>These extra message catalogs &lsquo;<samp><span class="samp">en@quot</span></samp>&rsquo; and &lsquo;<samp><span class="samp">en@boldquot</span></samp>&rsquo;
are constructed automatically, not by translators; to support them, you
need the files <samp><span class="file">Rules-quot</span></samp>, <samp><span class="file">quot.sed</span></samp>, <samp><span class="file">boldquot.sed</span></samp>,
<samp><span class="file">en@quot.header</span></samp>, <samp><span class="file">en@boldquot.header</span></samp>, <samp><span class="file">insert-header.sin</span></samp>
in the <samp><span class="file">po/</span></samp> directory.  You can copy them from GNU gettext's <samp><span class="file">po/</span></samp>
directory; they are also installed by running <code>gettextize</code>.

<div class="node">
<a name="po%2fMakevars"></a>
<a name="po_002fMakevars"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#po_002fRules_002d_002a">po/Rules-*</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#po_002fLINGUAS">po/LINGUAS</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.3 <samp><span class="file">Makevars</span></samp> in <samp><span class="file">po/</span></samp></h4>

   <p><a name="index-g_t_0040file_007bMakevars_007d-file-1132"></a>
The <samp><span class="file">po/</span></samp> directory also has a file named <samp><span class="file">Makevars</span></samp>.  It
contains variables that are specific to your project.  <samp><span class="file">po/Makevars</span></samp>
gets inserted into the <samp><span class="file">po/Makefile</span></samp> when the latter is created. 
The variables thus take effect when the POT file is created or updated,
and when the message catalogs get installed.

   <p>The first three variables can be left unmodified if your package has a
single message domain and, accordingly, a single <samp><span class="file">po/</span></samp> directory. 
Only packages which have multiple <samp><span class="file">po/</span></samp> directories at different
locations need to adjust the three first variables defined in
<samp><span class="file">Makevars</span></samp>.

   <p>As an alternative to the <code>XGETTEXT_OPTIONS</code> variables, it is also
possible to specify <code>xgettext</code> options through the
<code>AM_XGETTEXT_OPTION</code> autoconf macro.  See <a href="#AM_005fXGETTEXT_005fOPTION">AM_XGETTEXT_OPTION</a>.

<div class="node">
<a name="po%2fRules-*"></a>
<a name="po_002fRules_002d_002a"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#configure_002eac">configure.ac</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#po_002fMakevars">po/Makevars</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.4 Extending <samp><span class="file">Makefile</span></samp> in <samp><span class="file">po/</span></samp></h4>

   <p><a name="index-g_t_0040file_007bMakefile_002ein_002ein_007d-extensions-1133"></a>
All files called <samp><span class="file">Rules-*</span></samp> in the <samp><span class="file">po/</span></samp> directory get appended to
the <samp><span class="file">po/Makefile</span></samp> when it is created.  They present an opportunity to
add rules for special PO files to the Makefile, without needing to mess
with <samp><span class="file">po/Makefile.in.in</span></samp>.

   <p><a name="index-quotation-marks-1134"></a><a name="index-LANGUAGE_0040r_007b_002c-environment-variable_007d-1135"></a>GNU gettext comes with a <samp><span class="file">Rules-quot</span></samp> file, containing rules for
building catalogs <samp><span class="file">en@quot.po</span></samp> and <samp><span class="file">en@boldquot.po</span></samp>.  The
effect of <samp><span class="file">en@quot.po</span></samp> is that people who set their <code>LANGUAGE</code>
environment variable to &lsquo;<samp><span class="samp">en@quot</span></samp>&rsquo; will get messages with proper
looking symmetric Unicode quotation marks instead of abusing the ASCII
grave accent and the ASCII apostrophe for indicating quotations.  To
enable this catalog, simply add <code>en@quot</code> to the <samp><span class="file">po/LINGUAS</span></samp>
file.  The effect of <samp><span class="file">en@boldquot.po</span></samp> is that people who set
<code>LANGUAGE</code> to &lsquo;<samp><span class="samp">en@boldquot</span></samp>&rsquo; will get not only proper quotation
marks, but also the quoted text will be shown in a bold font on terminals
and consoles.  This catalog is useful only for command-line programs, not
GUI programs.  To enable it, similarly add <code>en@boldquot</code> to the
<samp><span class="file">po/LINGUAS</span></samp> file.

   <p>Similarly, you can create rules for building message catalogs for the
<samp><span class="file">sr@latin</span></samp> locale &ndash; Serbian written with the Latin alphabet &ndash;
from those for the <samp><span class="file">sr</span></samp> locale &ndash; Serbian written with Cyrillic
letters.  See <a href="#msgfilter-Invocation">msgfilter Invocation</a>.

<div class="node">
<a name="configure.ac"></a>
<a name="configure_002eac"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#config_002eguess">config.guess</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#po_002fRules_002d_002a">po/Rules-*</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.5 <samp><span class="file">configure.ac</span></samp> at top level</h4>

   <p><samp><span class="file">configure.ac</span></samp> or <samp><span class="file">configure.in</span></samp> - this is the source from which
<code>autoconf</code> generates the <samp><span class="file">configure</span></samp> script.

     <ol type=1 start=1>
<li>Declare the package and version. 
<a name="index-package-and-version-declaration-in-_0040file_007bconfigure_002eac_007d-1136"></a>
This is done by a set of lines like these:

     <pre class="example">          PACKAGE=gettext
          VERSION=0.18
          AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
          AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
          AC_SUBST(PACKAGE)
          AC_SUBST(VERSION)
</pre>
     <p class="noindent">or, if you are using GNU <code>automake</code>, by a line like this:

     <pre class="example">          AM_INIT_AUTOMAKE(gettext, 0.18)
</pre>
     <p class="noindent">Of course, you replace &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; with the name of your package,
and &lsquo;<samp><span class="samp">0.18</span></samp>&rsquo; by its version numbers, exactly as they
should appear in the packaged <code>tar</code> file name of your distribution
(<samp><span class="file">gettext-0.18.tar.gz</span></samp>, here).

     <li>Check for internationalization support.

     <p>Here is the main <code>m4</code> macro for triggering internationalization
support.  Just add this line to <samp><span class="file">configure.ac</span></samp>:

     <pre class="example">          AM_GNU_GETTEXT
</pre>
     <p class="noindent">This call is purposely simple, even if it generates a lot of configure
time checking and actions.

     <p>If you have suppressed the <samp><span class="file">intl/</span></samp> subdirectory by calling
<code>gettextize</code> without &lsquo;<samp><span class="samp">--intl</span></samp>&rsquo; option, this call should read

     <pre class="example">          AM_GNU_GETTEXT([external])
</pre>
     <li>Have output files created.

     <p>The <code>AC_OUTPUT</code> directive, at the end of your <samp><span class="file">configure.ac</span></samp>
file, needs to be modified in two ways:

     <pre class="example">          AC_OUTPUT([<var>existing configuration files</var> intl/Makefile po/Makefile.in],
          [<var>existing additional actions</var>])
</pre>
     <p>The modification to the first argument to <code>AC_OUTPUT</code> asks
for substitution in the <samp><span class="file">intl/</span></samp> and <samp><span class="file">po/</span></samp> directories. 
Note the &lsquo;<samp><span class="samp">.in</span></samp>&rsquo; suffix used for <samp><span class="file">po/</span></samp> only.  This is because
the distributed file is really <samp><span class="file">po/Makefile.in.in</span></samp>.

     <p>If you have suppressed the <samp><span class="file">intl/</span></samp> subdirectory by calling
<code>gettextize</code> without &lsquo;<samp><span class="samp">--intl</span></samp>&rsquo; option, then you don't need to
add <code>intl/Makefile</code> to the <code>AC_OUTPUT</code> line.

        </ol>

   <p>If, after doing the recommended modifications, a command like
&lsquo;<samp><span class="samp">aclocal -I m4</span></samp>&rsquo; or &lsquo;<samp><span class="samp">autoconf</span></samp>&rsquo; or &lsquo;<samp><span class="samp">autoreconf</span></samp>&rsquo; fails with
a trace similar to this:

<pre class="smallexample">     configure.ac:44: warning: AC_COMPILE_IFELSE was called before AC_GNU_SOURCE
     ../../lib/autoconf/specific.m4:335: AC_GNU_SOURCE is expanded from...
     m4/lock.m4:224: gl_LOCK is expanded from...
     m4/gettext.m4:571: gt_INTL_SUBDIR_CORE is expanded from...
     m4/gettext.m4:472: AM_INTL_SUBDIR is expanded from...
     m4/gettext.m4:347: AM_GNU_GETTEXT is expanded from...
     configure.ac:44: the top level
     configure.ac:44: warning: AC_RUN_IFELSE was called before AC_GNU_SOURCE
</pre>
   <p class="noindent">you need to add an explicit invocation of &lsquo;<samp><span class="samp">AC_GNU_SOURCE</span></samp>&rsquo; in the
<samp><span class="file">configure.ac</span></samp> file - after &lsquo;<samp><span class="samp">AC_PROG_CC</span></samp>&rsquo; but before
&lsquo;<samp><span class="samp">AM_GNU_GETTEXT</span></samp>&rsquo;, most likely very close to the &lsquo;<samp><span class="samp">AC_PROG_CC</span></samp>&rsquo;
invocation.  This is necessary because of ordering restrictions imposed
by GNU autoconf.

<div class="node">
<a name="config.guess"></a>
<a name="config_002eguess"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#mkinstalldirs">mkinstalldirs</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#configure_002eac">configure.ac</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.6 <samp><span class="file">config.guess</span></samp>, <samp><span class="file">config.sub</span></samp> at top level</h4>

   <p>If you haven't suppressed the <samp><span class="file">intl/</span></samp> subdirectory,
you need to add the GNU <samp><span class="file">config.guess</span></samp> and <samp><span class="file">config.sub</span></samp> files
to your distribution.  They are needed because the <samp><span class="file">intl/</span></samp> directory
has platform dependent support for determining the locale's character
encoding and therefore needs to identify the platform.

   <p>You can obtain the newest version of <samp><span class="file">config.guess</span></samp> and
<samp><span class="file">config.sub</span></samp> from the CVS of the &lsquo;<samp><span class="samp">config</span></samp>&rsquo; project at
<samp><span class="file">http://savannah.gnu.org/</span></samp>. The commands to fetch them are
<pre class="smallexample">     $ wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess'
     $ wget 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub'
</pre>
   <p class="noindent">Less recent versions are also contained in the GNU <code>automake</code> and
GNU <code>libtool</code> packages.

   <p>Normally, <samp><span class="file">config.guess</span></samp> and <samp><span class="file">config.sub</span></samp> are put at the
top level of a distribution.  But it is also possible to put them in a
subdirectory, altogether with other configuration support files like
<samp><span class="file">install-sh</span></samp>, <samp><span class="file">ltconfig</span></samp>, <samp><span class="file">ltmain.sh</span></samp> or <samp><span class="file">missing</span></samp>. 
All you need to do, other than moving the files, is to add the following line
to your <samp><span class="file">configure.ac</span></samp>.

<pre class="example">     AC_CONFIG_AUX_DIR([<var>subdir</var>])
</pre>
   <div class="node">
<a name="mkinstalldirs"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#aclocal">aclocal</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#config_002eguess">config.guess</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.7 <samp><span class="file">mkinstalldirs</span></samp> at top level</h4>

   <p><a name="index-g_t_0040file_007bmkinstalldirs_007d-file-1137"></a>
With earlier versions of GNU gettext, you needed to add the GNU
<samp><span class="file">mkinstalldirs</span></samp> script to your distribution.  This is not needed any
more.  You can remove it if you not also using an automake version older than
automake 1.9.

<div class="node">
<a name="aclocal"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#acconfig">acconfig</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#mkinstalldirs">mkinstalldirs</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.8 <samp><span class="file">aclocal.m4</span></samp> at top level</h4>

   <p><a name="index-g_t_0040file_007baclocal_002em4_007d-file-1138"></a>
If you do not have an <samp><span class="file">aclocal.m4</span></samp> file in your distribution,
the simplest is to concatenate the files <samp><span class="file">codeset.m4</span></samp>, <samp><span class="file">fcntl-o.m4</span></samp>,
<samp><span class="file">gettext.m4</span></samp>, <samp><span class="file">glibc2.m4</span></samp>, <samp><span class="file">glibc21.m4</span></samp>, <samp><span class="file">iconv.m4</span></samp>,
<samp><span class="file">intdiv0.m4</span></samp>, <samp><span class="file">intl.m4</span></samp>, <samp><span class="file">intldir.m4</span></samp>, <samp><span class="file">intlmacosx.m4</span></samp>,
<samp><span class="file">intmax.m4</span></samp>, <samp><span class="file">inttypes_h.m4</span></samp>, <samp><span class="file">inttypes-pri.m4</span></samp>,
<samp><span class="file">lcmessage.m4</span></samp>, <samp><span class="file">lib-ld.m4</span></samp>, <samp><span class="file">lib-link.m4</span></samp>,
<samp><span class="file">lib-prefix.m4</span></samp>, <samp><span class="file">lock.m4</span></samp>, <samp><span class="file">longlong.m4</span></samp>, <samp><span class="file">nls.m4</span></samp>,
<samp><span class="file">po.m4</span></samp>, <samp><span class="file">printf-posix.m4</span></samp>, <samp><span class="file">progtest.m4</span></samp>, <samp><span class="file">size_max.m4</span></samp>,
<samp><span class="file">stdint_h.m4</span></samp>, <samp><span class="file">threadlib.m4</span></samp>, <samp><span class="file">uintmax_t.m4</span></samp>,
<samp><span class="file">visibility.m4</span></samp>, <samp><span class="file">wchar_t.m4</span></samp>, <samp><span class="file">wint_t.m4</span></samp>, <samp><span class="file">xsize.m4</span></samp>
from GNU <code>gettext</code>'s
<samp><span class="file">m4/</span></samp> directory into a single file.  If you have suppressed the
<samp><span class="file">intl/</span></samp> directory, only <samp><span class="file">gettext.m4</span></samp>, <samp><span class="file">iconv.m4</span></samp>,
<samp><span class="file">lib-ld.m4</span></samp>, <samp><span class="file">lib-link.m4</span></samp>, <samp><span class="file">lib-prefix.m4</span></samp>,
<samp><span class="file">nls.m4</span></samp>, <samp><span class="file">po.m4</span></samp>, <samp><span class="file">progtest.m4</span></samp> need to be concatenated.

   <p>If you are not using GNU <code>automake</code> 1.8 or newer, you will need to
add a file <samp><span class="file">mkdirp.m4</span></samp> from a newer automake distribution to the
list of files above.

   <p>If you already have an <samp><span class="file">aclocal.m4</span></samp> file, then you will have
to merge the said macro files into your <samp><span class="file">aclocal.m4</span></samp>.  Note that if
you are upgrading from a previous release of GNU <code>gettext</code>, you
should most probably <em>replace</em> the macros (<code>AM_GNU_GETTEXT</code>,
etc.), as they usually
change a little from one release of GNU <code>gettext</code> to the next. 
Their contents may vary as we get more experience with strange systems
out there.

   <p>If you are using GNU <code>automake</code> 1.5 or newer, it is enough to put
these macro files into a subdirectory named <samp><span class="file">m4/</span></samp> and add the line

<pre class="example">     ACLOCAL_AMFLAGS = -I m4
</pre>
   <p class="noindent">to your top level <samp><span class="file">Makefile.am</span></samp>.

   <p>These macros check for the internationalization support functions
and related informations.  Hopefully, once stabilized, these macros
might be integrated in the standard Autoconf set, because this
piece of <code>m4</code> code will be the same for all projects using GNU
<code>gettext</code>.

<div class="node">
<a name="acconfig"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#config_002eh_002ein">config.h.in</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#aclocal">aclocal</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.9 <samp><span class="file">acconfig.h</span></samp> at top level</h4>

   <p><a name="index-g_t_0040file_007bacconfig_002eh_007d-file-1139"></a>
Earlier GNU <code>gettext</code> releases required to put definitions for
<code>ENABLE_NLS</code>, <code>HAVE_GETTEXT</code> and <code>HAVE_LC_MESSAGES</code>,
<code>HAVE_STPCPY</code>, <code>PACKAGE</code> and <code>VERSION</code> into an
<samp><span class="file">acconfig.h</span></samp> file.  This is not needed any more; you can remove
them from your <samp><span class="file">acconfig.h</span></samp> file unless your package uses them
independently from the <samp><span class="file">intl/</span></samp> directory.

<div class="node">
<a name="config.h.in"></a>
<a name="config_002eh_002ein"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Makefile">Makefile</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#acconfig">acconfig</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.10 <samp><span class="file">config.h.in</span></samp> at top level</h4>

   <p><a name="index-g_t_0040file_007bconfig_002eh_002ein_007d-file-1140"></a>
The include file template that holds the C macros to be defined by
<code>configure</code> is usually called <samp><span class="file">config.h.in</span></samp> and may be
maintained either manually or automatically.

   <p>If <code>gettextize</code> has created an <samp><span class="file">intl/</span></samp> directory, this file
must be called <samp><span class="file">config.h.in</span></samp> and must be at the top level.  If,
however, you have suppressed the <samp><span class="file">intl/</span></samp> directory by calling
<code>gettextize</code> without &lsquo;<samp><span class="samp">--intl</span></samp>&rsquo; option, then you can choose the
name of this file and its location freely.

   <p>If it is maintained automatically, by use of the &lsquo;<samp><span class="samp">autoheader</span></samp>&rsquo;
program, you need to do nothing about it.  This is the case in particular
if you are using GNU <code>automake</code>.

   <p>If it is maintained manually, and if <code>gettextize</code> has created an
<samp><span class="file">intl/</span></samp> directory, you should switch to using &lsquo;<samp><span class="samp">autoheader</span></samp>&rsquo;. 
The list of C macros to be added for the sake of the <samp><span class="file">intl/</span></samp>
directory is just too long to be maintained manually; it also changes
between different versions of GNU <code>gettext</code>.

   <p>If it is maintained manually, and if on the other hand you have
suppressed the <samp><span class="file">intl/</span></samp> directory by calling <code>gettextize</code>
without &lsquo;<samp><span class="samp">--intl</span></samp>&rsquo; option, then you can get away by adding the
following lines to <samp><span class="file">config.h.in</span></samp>:

<pre class="example">     /* Define to 1 if translation of program messages to the user's
        native language is requested. */
     #undef ENABLE_NLS
</pre>
   <div class="node">
<a name="Makefile"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#src_002fMakefile">src/Makefile</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#config_002eh_002ein">config.h.in</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.11 <samp><span class="file">Makefile.in</span></samp> at top level</h4>

   <p>Here are a few modifications you need to make to your main, top-level
<samp><span class="file">Makefile.in</span></samp> file.

     <ol type=1 start=1>
<li>Add the following lines near the beginning of your <samp><span class="file">Makefile.in</span></samp>,
so the &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goal will work properly (as explained further down):

     <pre class="example">          PACKAGE = @PACKAGE@
          VERSION = @VERSION@
</pre>
     <li>Add file <samp><span class="file">ABOUT-NLS</span></samp> to the <code>DISTFILES</code> definition, so the file gets
distributed.

     <li>Wherever you process subdirectories in your <samp><span class="file">Makefile.in</span></samp>, be sure
you also process the subdirectories &lsquo;<samp><span class="samp">intl</span></samp>&rsquo; and &lsquo;<samp><span class="samp">po</span></samp>&rsquo;.  Special
rules in the <samp><span class="file">Makefiles</span></samp> take care for the case where no
internationalization is wanted.

     <p>If you are using Makefiles, either generated by automake, or hand-written
so they carefully follow the GNU coding standards, the effected goals for
which the new subdirectories must be handled include &lsquo;<samp><span class="samp">installdirs</span></samp>&rsquo;,
&lsquo;<samp><span class="samp">install</span></samp>&rsquo;, &lsquo;<samp><span class="samp">uninstall</span></samp>&rsquo;, &lsquo;<samp><span class="samp">clean</span></samp>&rsquo;, &lsquo;<samp><span class="samp">distclean</span></samp>&rsquo;.

     <p>Here is an example of a canonical order of processing.  In this
example, we also define <code>SUBDIRS</code> in <code>Makefile.in</code> for it
to be further used in the &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goal.

     <pre class="example">          SUBDIRS = doc intl lib src po
</pre>
     <p>Note that you must arrange for &lsquo;<samp><span class="samp">make</span></samp>&rsquo; to descend into the
<code>intl</code> directory before descending into other directories containing
code which make use of the <code>libintl.h</code> header file.  For this
reason, here we mention <code>intl</code> before <code>lib</code> and <code>src</code>.

     <li>A delicate point is the &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goal, as both
<samp><span class="file">intl/Makefile</span></samp> and <samp><span class="file">po/Makefile</span></samp> will later assume that the
proper directory has been set up from the main <samp><span class="file">Makefile</span></samp>.  Here is
an example at what the &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goal might look like:

     <pre class="example">          distdir = $(PACKAGE)-$(VERSION)
          dist: Makefile
          	rm -fr $(distdir)
          	mkdir $(distdir)
          	chmod 777 $(distdir)
          	for file in $(DISTFILES); do \
          	  ln $$file $(distdir) 2&gt;/dev/null || cp -p $$file $(distdir); \
          	done
          	for subdir in $(SUBDIRS); do \
          	  mkdir $(distdir)/$$subdir || exit 1; \
          	  chmod 777 $(distdir)/$$subdir; \
          	  (cd $$subdir &amp;&amp; $(MAKE) $@) || exit 1; \
          	done
          	tar chozf $(distdir).tar.gz $(distdir)
          	rm -fr $(distdir)
</pre>
        </ol>

   <p>Note that if you are using GNU <code>automake</code>, <samp><span class="file">Makefile.in</span></samp> is
automatically generated from <samp><span class="file">Makefile.am</span></samp>, and all needed changes
to <samp><span class="file">Makefile.am</span></samp> are already made by running &lsquo;<samp><span class="samp">gettextize</span></samp>&rsquo;.

<div class="node">
<a name="src%2fMakefile"></a>
<a name="src_002fMakefile"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#lib_002fgettext_002eh">lib/gettext.h</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Makefile">Makefile</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.12 <samp><span class="file">Makefile.in</span></samp> in <samp><span class="file">src/</span></samp></h4>

   <p>Some of the modifications made in the main <samp><span class="file">Makefile.in</span></samp> will
also be needed in the <samp><span class="file">Makefile.in</span></samp> from your package sources,
which we assume here to be in the <samp><span class="file">src/</span></samp> subdirectory.  Here are
all the modifications needed in <samp><span class="file">src/Makefile.in</span></samp>:

     <ol type=1 start=1>
<li>In view of the &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goal, you should have these lines near the
beginning of <samp><span class="file">src/Makefile.in</span></samp>:

     <pre class="example">          PACKAGE = @PACKAGE@
          VERSION = @VERSION@
</pre>
     <li>If not done already, you should guarantee that <code>top_srcdir</code>
gets defined.  This will serve for <code>cpp</code> include files.  Just add
the line:

     <pre class="example">          top_srcdir = @top_srcdir@
</pre>
     <li>You might also want to define <code>subdir</code> as &lsquo;<samp><span class="samp">src</span></samp>&rsquo;, later
allowing for almost uniform &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goals in all your
<samp><span class="file">Makefile.in</span></samp>.  At list, the &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goal below assume that
you used:

     <pre class="example">          subdir = src
</pre>
     <li>The <code>main</code> function of your program will normally call
<code>bindtextdomain</code> (see see <a href="#Triggering">Triggering</a>), like this:

     <pre class="example">          bindtextdomain (<var>PACKAGE</var>, LOCALEDIR);
          textdomain (<var>PACKAGE</var>);
</pre>
     <p>To make LOCALEDIR known to the program, add the following lines to
<samp><span class="file">Makefile.in</span></samp> if you are using Autoconf version 2.60 or newer:

     <pre class="example">          datadir = @datadir@
          datarootdir= @datarootdir@
          localedir = @localedir@
          DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
</pre>
     <p>or these lines if your version of Autoconf is older than 2.60:

     <pre class="example">          datadir = @datadir@
          localedir = $(datadir)/locale
          DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
</pre>
     <p>Note that <code>@datadir@</code> defaults to &lsquo;<samp><span class="samp">$(prefix)/share</span></samp>&rsquo;, thus
<code>$(localedir)</code> defaults to &lsquo;<samp><span class="samp">$(prefix)/share/locale</span></samp>&rsquo;.

     <li>You should ensure that the final linking will use <code>@LIBINTL@</code> or
<code>@LTLIBINTL@</code> as a library.  <code>@LIBINTL@</code> is for use without
<code>libtool</code>, <code>@LTLIBINTL@</code> is for use with <code>libtool</code>.  An
easy way to achieve this is to manage that it gets into <code>LIBS</code>, like
this:

     <pre class="example">          LIBS = @LIBINTL@ @LIBS@
</pre>
     <p>In most packages internationalized with GNU <code>gettext</code>, one will
find a directory <samp><span class="file">lib/</span></samp> in which a library containing some helper
functions will be build.  (You need at least the few functions which the
GNU <code>gettext</code> Library itself needs.)  However some of the functions
in the <samp><span class="file">lib/</span></samp> also give messages to the user which of course should be
translated, too.  Taking care of this, the support library (say
<samp><span class="file">libsupport.a</span></samp>) should be placed before <code>@LIBINTL@</code> and
<code>@LIBS@</code> in the above example.  So one has to write this:

     <pre class="example">          LIBS = ../lib/libsupport.a @LIBINTL@ @LIBS@
</pre>
     <li>You should also ensure that directory <samp><span class="file">intl/</span></samp> will be searched for
C preprocessor include files in all circumstances.  So, you have to
manage so both &lsquo;<samp><span class="samp">-I../intl</span></samp>&rsquo; and &lsquo;<samp><span class="samp">-I$(top_srcdir)/intl</span></samp>&rsquo; will
be given to the C compiler.

     <li>Your &lsquo;<samp><span class="samp">dist:</span></samp>&rsquo; goal has to conform with others.  Here is a
reasonable definition for it:

     <pre class="example">          distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
          dist: Makefile $(DISTFILES)
          	for file in $(DISTFILES); do \
          	  ln $$file $(distdir) 2&gt;/dev/null || cp -p $$file $(distdir) || exit 1; \
          	done
</pre>
        </ol>

   <p>Note that if you are using GNU <code>automake</code>, <samp><span class="file">Makefile.in</span></samp> is
automatically generated from <samp><span class="file">Makefile.am</span></samp>, and the first three
changes and the last change are not necessary.  The remaining needed
<samp><span class="file">Makefile.am</span></samp> modifications are the following:

     <ol type=1 start=1>
<li>To make LOCALEDIR known to the program, add the following to
<samp><span class="file">Makefile.am</span></samp>:

     <pre class="example">          &lt;module&gt;_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
</pre>
     <p class="noindent">for each specific module or compilation unit, or

     <pre class="example">          AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
</pre>
     <p>for all modules and compilation units together.  Furthermore, if you are
using an Autoconf version older then 2.60, add this line to define
&lsquo;<samp><span class="samp">localedir</span></samp>&rsquo;:

     <pre class="example">          localedir = $(datadir)/locale
</pre>
     <li>To ensure that the final linking will use <code>@LIBINTL@</code> or
<code>@LTLIBINTL@</code> as a library, add the following to
<samp><span class="file">Makefile.am</span></samp>:

     <pre class="example">          &lt;program&gt;_LDADD = @LIBINTL@
</pre>
     <p class="noindent">for each specific program, or

     <pre class="example">          LDADD = @LIBINTL@
</pre>
     <p>for all programs together.  Remember that when you use <code>libtool</code>
to link a program, you need to use @LTLIBINTL@ instead of @LIBINTL@
for that program.

     <li>If you have an <samp><span class="file">intl/</span></samp> directory, whose contents is created by
<code>gettextize</code>, then to ensure that it will be searched for
C preprocessor include files in all circumstances, add something like
this to <samp><span class="file">Makefile.am</span></samp>:

     <pre class="example">          AM_CPPFLAGS = -I../intl -I$(top_srcdir)/intl
</pre>
        </ol>

<div class="node">
<a name="lib%2fgettext.h"></a>
<a name="lib_002fgettext_002eh"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#src_002fMakefile">src/Makefile</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Adjusting-Files">Adjusting Files</a>

</div>

<h4 class="subsection">13.4.13 <samp><span class="file">gettext.h</span></samp> in <samp><span class="file">lib/</span></samp></h4>

   <p><a name="index-g_t_0040file_007bgettext_002eh_007d-file-1141"></a><a name="index-turning-off-NLS-support-1142"></a><a name="index-disabling-NLS-1143"></a>
Internationalization of packages, as provided by GNU <code>gettext</code>, is
optional.  It can be turned off in two situations:

     <ul>
<li>When the installer has specified &lsquo;<samp><span class="samp">./configure --disable-nls</span></samp>&rsquo;.  This
can be useful when small binaries are more important than features, for
example when building utilities for boot diskettes.  It can also be useful
in order to get some specific C compiler warnings about code quality with
some older versions of GCC (older than 3.0).

     <li>When the package does not include the <code>intl/</code> subdirectory, and the
libintl.h header (with its associated libintl library, if any) is not
already installed on the system, it is preferable that the package builds
without internationalization support, rather than to give a compilation
error. 
</ul>

   <p>A C preprocessor macro can be used to detect these two cases.  Usually,
when <code>libintl.h</code> was found and not explicitly disabled, the
<code>ENABLE_NLS</code> macro will be defined to 1 in the autoconf generated
configuration file (usually called <samp><span class="file">config.h</span></samp>).  In the two negative
situations, however, this macro will not be defined, thus it will evaluate
to 0 in C preprocessor expressions.

   <p><a name="index-include-file-_0040file_007blibintl_002eh_007d-1144"></a><samp><span class="file">gettext.h</span></samp> is a convenience header file for conditional use of
<samp><span class="file">&lt;libintl.h&gt;</span></samp>, depending on the <code>ENABLE_NLS</code> macro.  If
<code>ENABLE_NLS</code> is set, it includes <samp><span class="file">&lt;libintl.h&gt;</span></samp>; otherwise it
defines no-op substitutes for the libintl.h functions.  We recommend
the use of <code>"gettext.h"</code> over direct use of <samp><span class="file">&lt;libintl.h&gt;</span></samp>,
so that portability to older systems is guaranteed and installers can
turn off internationalization if they want to.  In the C code, you will
then write

<pre class="example">     #include "gettext.h"
</pre>
   <p class="noindent">instead of

<pre class="example">     #include &lt;libintl.h&gt;
</pre>
   <p>The location of <code>gettext.h</code> is usually in a directory containing
auxiliary include files.  In many GNU packages, there is a directory
<samp><span class="file">lib/</span></samp> containing helper functions; <samp><span class="file">gettext.h</span></samp> fits there. 
In other packages, it can go into the <samp><span class="file">src</span></samp> directory.

   <p>Do not install the <code>gettext.h</code> file in public locations.  Every
package that needs it should contain a copy of it on its own.

<div class="node">
<a name="autoconf-macros"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#CVS-Issues">CVS Issues</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Adjusting-Files">Adjusting Files</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Maintainers">Maintainers</a>

</div>

<h3 class="section">13.5 Autoconf macros for use in <samp><span class="file">configure.ac</span></samp></h3>

   <p><a name="index-autoconf-macros-for-_0040code_007bgettext_007d-1145"></a>
GNU <code>gettext</code> installs macros for use in a package's
<samp><span class="file">configure.ac</span></samp> or <samp><span class="file">configure.in</span></samp>. 
See <a href="autoconf.html#Top">Introduction</a>. 
The primary macro is, of course, <code>AM_GNU_GETTEXT</code>.

<ul class="menu">
<li><a accesskey="1" href="#AM_005fGNU_005fGETTEXT">AM_GNU_GETTEXT</a>:               AM_GNU_GETTEXT in <samp><span class="file">gettext.m4</span></samp>
<li><a accesskey="2" href="#AM_005fGNU_005fGETTEXT_005fVERSION">AM_GNU_GETTEXT_VERSION</a>:       AM_GNU_GETTEXT_VERSION in <samp><span class="file">gettext.m4</span></samp>
<li><a accesskey="3" href="#AM_005fGNU_005fGETTEXT_005fNEED">AM_GNU_GETTEXT_NEED</a>:          AM_GNU_GETTEXT_NEED in <samp><span class="file">gettext.m4</span></samp>
<li><a accesskey="4" href="#AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR">AM_GNU_GETTEXT_INTL_SUBDIR</a>:   AM_GNU_GETTEXT_INTL_SUBDIR in <samp><span class="file">intldir.m4</span></samp>
<li><a accesskey="5" href="#AM_005fPO_005fSUBDIRS">AM_PO_SUBDIRS</a>:                AM_PO_SUBDIRS in <samp><span class="file">po.m4</span></samp>
<li><a accesskey="6" href="#AM_005fXGETTEXT_005fOPTION">AM_XGETTEXT_OPTION</a>:           AM_XGETTEXT_OPTION in <samp><span class="file">po.m4</span></samp>
<li><a accesskey="7" href="#AM_005fICONV">AM_ICONV</a>:                     AM_ICONV in <samp><span class="file">iconv.m4</span></samp>
</ul>

<div class="node">
<a name="AM_GNU_GETTEXT"></a>
<a name="AM_005fGNU_005fGETTEXT"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#AM_005fGNU_005fGETTEXT_005fVERSION">AM_GNU_GETTEXT_VERSION</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#autoconf-macros">autoconf macros</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#autoconf-macros">autoconf macros</a>

</div>

<h4 class="subsection">13.5.1 AM_GNU_GETTEXT in <samp><span class="file">gettext.m4</span></samp></h4>

   <p><a name="index-AM_005fGNU_005fGETTEXT-1146"></a>The <code>AM_GNU_GETTEXT</code> macro tests for the presence of the GNU gettext
function family in either the C library or a separate <code>libintl</code>
library (shared or static libraries are both supported) or in the package's
<samp><span class="file">intl/</span></samp> directory.  It also invokes <code>AM_PO_SUBDIRS</code>, thus preparing
the <samp><span class="file">po/</span></samp> directories of the package for building.

   <p><code>AM_GNU_GETTEXT</code> accepts up to three optional arguments.  The general
syntax is

<pre class="example">     AM_GNU_GETTEXT([<var>intlsymbol</var>], [<var>needsymbol</var>], [<var>intldir</var>])
</pre>
   <!-- We don't document @var{intlsymbol} = @samp{use-libtool} here, because -->
<!-- it is of no use for packages other than GNU gettext itself.  (Such packages -->
<!-- are not allowed to install the shared libintl.  But if they use libtool, -->
<!-- then it is in order to install shared libraries that depend on libintl.) -->
   <p><var>intlsymbol</var> can be &lsquo;<samp><span class="samp">external</span></samp>&rsquo; or &lsquo;<samp><span class="samp">no-libtool</span></samp>&rsquo;.  The default
(if it is not specified or empty) is &lsquo;<samp><span class="samp">no-libtool</span></samp>&rsquo;.  <var>intlsymbol</var>
should be &lsquo;<samp><span class="samp">external</span></samp>&rsquo; for packages with no <samp><span class="file">intl/</span></samp> directory. 
For packages with an <samp><span class="file">intl/</span></samp> directory, you can either use an
<var>intlsymbol</var> equal to &lsquo;<samp><span class="samp">no-libtool</span></samp>&rsquo;, or you can use &lsquo;<samp><span class="samp">external</span></samp>&rsquo;
and override by using the macro <code>AM_GNU_GETTEXT_INTL_SUBDIR</code> elsewhere. 
The two ways to specify the existence of an <samp><span class="file">intl/</span></samp> directory are
equivalent.  At build time, a static library
<code>$(top_builddir)/intl/libintl.a</code> will then be created.

   <p>If <var>needsymbol</var> is specified and is &lsquo;<samp><span class="samp">need-ngettext</span></samp>&rsquo;, then GNU
gettext implementations (in libc or libintl) without the <code>ngettext()</code>
function will be ignored.  If <var>needsymbol</var> is specified and is
&lsquo;<samp><span class="samp">need-formatstring-macros</span></samp>&rsquo;, then GNU gettext implementations that don't
support the ISO C 99 <samp><span class="file">&lt;inttypes.h&gt;</span></samp> formatstring macros will be ignored. 
Only one <var>needsymbol</var> can be specified.  These requirements can also be
specified by using the macro <code>AM_GNU_GETTEXT_NEED</code> elsewhere.  To specify
more than one requirement, just specify the strongest one among them, or
invoke the <code>AM_GNU_GETTEXT_NEED</code> macro several times.  The hierarchy
among the various alternatives is as follows: &lsquo;<samp><span class="samp">need-formatstring-macros</span></samp>&rsquo;
implies &lsquo;<samp><span class="samp">need-ngettext</span></samp>&rsquo;.

   <p><var>intldir</var> is used to find the intl libraries.  If empty, the value
&lsquo;<samp><span class="samp">$(top_builddir)/intl/</span></samp>&rsquo; is used.

   <p>The <code>AM_GNU_GETTEXT</code> macro determines whether GNU gettext is
available and should be used.  If so, it sets the <code>USE_NLS</code> variable
to &lsquo;<samp><span class="samp">yes</span></samp>&rsquo;; it defines <code>ENABLE_NLS</code> to 1 in the autoconf
generated configuration file (usually called <samp><span class="file">config.h</span></samp>); it sets
the variables <code>LIBINTL</code> and <code>LTLIBINTL</code> to the linker options
for use in a Makefile (<code>LIBINTL</code> for use without libtool,
<code>LTLIBINTL</code> for use with libtool); it adds an &lsquo;<samp><span class="samp">-I</span></samp>&rsquo; option to
<code>CPPFLAGS</code> if necessary.  In the negative case, it sets
<code>USE_NLS</code> to &lsquo;<samp><span class="samp">no</span></samp>&rsquo;; it sets <code>LIBINTL</code> and <code>LTLIBINTL</code>
to empty and doesn't change <code>CPPFLAGS</code>.

   <p>The complexities that <code>AM_GNU_GETTEXT</code> deals with are the following:

     <ul>
<li><a name="index-g_t_0040code_007blibintl_007d-library-1147"></a>Some operating systems have <code>gettext</code> in the C library, for example
glibc.  Some have it in a separate library <code>libintl</code>.  GNU <code>libintl</code>
might have been installed as part of the GNU <code>gettext</code> package.

     <li>GNU <code>libintl</code>, if installed, is not necessarily already in the search
path (<code>CPPFLAGS</code> for the include file search path, <code>LDFLAGS</code> for
the library search path).

     <li>Except for glibc, the operating system's native <code>gettext</code> cannot
exploit the GNU mo files, doesn't have the necessary locale dependency
features, and cannot convert messages from the catalog's text encoding
to the user's locale encoding.

     <li>GNU <code>libintl</code>, if installed, is not necessarily already in the
run time library search path.  To avoid the need for setting an environment
variable like <code>LD_LIBRARY_PATH</code>, the macro adds the appropriate
run time search path options to the <code>LIBINTL</code> and <code>LTLIBINTL</code>
variables.  This works on most systems, but not on some operating systems
with limited shared library support, like SCO.

     <li>GNU <code>libintl</code> relies on POSIX/XSI <code>iconv</code>.  The macro checks for
linker options needed to use iconv and appends them to the <code>LIBINTL</code>
and <code>LTLIBINTL</code> variables. 
</ul>

<div class="node">
<a name="AM_GNU_GETTEXT_VERSION"></a>
<a name="AM_005fGNU_005fGETTEXT_005fVERSION"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#AM_005fGNU_005fGETTEXT_005fNEED">AM_GNU_GETTEXT_NEED</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#AM_005fGNU_005fGETTEXT">AM_GNU_GETTEXT</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#autoconf-macros">autoconf macros</a>

</div>

<h4 class="subsection">13.5.2 AM_GNU_GETTEXT_VERSION in <samp><span class="file">gettext.m4</span></samp></h4>

   <p><a name="index-AM_005fGNU_005fGETTEXT_005fVERSION-1148"></a>The <code>AM_GNU_GETTEXT_VERSION</code> macro declares the version number of
the GNU gettext infrastructure that is used by the package.

   <p>The use of this macro is optional; only the <code>autopoint</code> program makes
use of it (see <a href="#CVS-Issues">CVS Issues</a>).

<div class="node">
<a name="AM_GNU_GETTEXT_NEED"></a>
<a name="AM_005fGNU_005fGETTEXT_005fNEED"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR">AM_GNU_GETTEXT_INTL_SUBDIR</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#AM_005fGNU_005fGETTEXT_005fVERSION">AM_GNU_GETTEXT_VERSION</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#autoconf-macros">autoconf macros</a>

</div>

<h4 class="subsection">13.5.3 AM_GNU_GETTEXT_NEED in <samp><span class="file">gettext.m4</span></samp></h4>

   <p><a name="index-AM_005fGNU_005fGETTEXT_005fNEED-1149"></a>The <code>AM_GNU_GETTEXT_NEED</code> macro declares a constraint regarding the
GNU gettext implementation.  The syntax is

<pre class="example">     AM_GNU_GETTEXT_NEED([<var>needsymbol</var>])
</pre>
   <p>If <var>needsymbol</var> is &lsquo;<samp><span class="samp">need-ngettext</span></samp>&rsquo;, then GNU gettext implementations
(in libc or libintl) without the <code>ngettext()</code> function will be ignored. 
If <var>needsymbol</var> is &lsquo;<samp><span class="samp">need-formatstring-macros</span></samp>&rsquo;, then GNU gettext
implementations that don't support the ISO C 99 <samp><span class="file">&lt;inttypes.h&gt;</span></samp>
formatstring macros will be ignored.

   <p>The optional second argument of <code>AM_GNU_GETTEXT</code> is also taken into
account.

   <p>The <code>AM_GNU_GETTEXT_NEED</code> invocations can occur before or after
the <code>AM_GNU_GETTEXT</code> invocation; the order doesn't matter.

<div class="node">
<a name="AM_GNU_GETTEXT_INTL_SUBDIR"></a>
<a name="AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#AM_005fPO_005fSUBDIRS">AM_PO_SUBDIRS</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#AM_005fGNU_005fGETTEXT_005fNEED">AM_GNU_GETTEXT_NEED</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#autoconf-macros">autoconf macros</a>

</div>

<h4 class="subsection">13.5.4 AM_GNU_GETTEXT_INTL_SUBDIR in <samp><span class="file">intldir.m4</span></samp></h4>

   <p><a name="index-AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR-1150"></a>The <code>AM_GNU_GETTEXT_INTL_SUBDIR</code> macro specifies that the
<code>AM_GNU_GETTEXT</code> macro, although invoked with the first argument
&lsquo;<samp><span class="samp">external</span></samp>&rsquo;, should also prepare for building the <samp><span class="file">intl/</span></samp>
subdirectory.

   <p>The <code>AM_GNU_GETTEXT_INTL_SUBDIR</code> invocation can occur before or after
the <code>AM_GNU_GETTEXT</code> invocation; the order doesn't matter.

   <p>The use of this macro requires GNU automake 1.10 or newer and
GNU autoconf 2.61 or newer.

<div class="node">
<a name="AM_PO_SUBDIRS"></a>
<a name="AM_005fPO_005fSUBDIRS"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#AM_005fXGETTEXT_005fOPTION">AM_XGETTEXT_OPTION</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR">AM_GNU_GETTEXT_INTL_SUBDIR</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#autoconf-macros">autoconf macros</a>

</div>

<h4 class="subsection">13.5.5 AM_PO_SUBDIRS in <samp><span class="file">po.m4</span></samp></h4>

   <p><a name="index-AM_005fPO_005fSUBDIRS-1151"></a>The <code>AM_PO_SUBDIRS</code> macro prepares the <samp><span class="file">po/</span></samp> directories of the
package for building.  This macro should be used in internationalized
programs written in other programming languages than C, C++, Objective C,
for example <code>sh</code>, <code>Python</code>, <code>Lisp</code>.  See <a href="#Programming-Languages">Programming Languages</a> for a list of programming languages that support localization
through PO files.

   <p>The <code>AM_PO_SUBDIRS</code> macro determines whether internationalization
should be used.  If so, it sets the <code>USE_NLS</code> variable to &lsquo;<samp><span class="samp">yes</span></samp>&rsquo;,
otherwise to &lsquo;<samp><span class="samp">no</span></samp>&rsquo;.  It also determines the right values for Makefile
variables in each <samp><span class="file">po/</span></samp> directory.

<div class="node">
<a name="AM_XGETTEXT_OPTION"></a>
<a name="AM_005fXGETTEXT_005fOPTION"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#AM_005fICONV">AM_ICONV</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#AM_005fPO_005fSUBDIRS">AM_PO_SUBDIRS</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#autoconf-macros">autoconf macros</a>

</div>

<h4 class="subsection">13.5.6 AM_XGETTEXT_OPTION in <samp><span class="file">po.m4</span></samp></h4>

   <p><a name="index-AM_005fXGETTEXT_005fOPTION-1152"></a>The <code>AM_XGETTEXT_OPTION</code> macro registers a command-line option to be
used in the invocations of <code>xgettext</code> in the <samp><span class="file">po/</span></samp> directories
of the package.

   <p>For example, if you have a source file that defines a function
&lsquo;<samp><span class="samp">error_at_line</span></samp>&rsquo; whose fifth argument is a format string, you can use
<pre class="example">     AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])
</pre>
   <p class="noindent">to instruct <code>xgettext</code> to mark all translatable strings in &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo;
invocations that occur as fifth argument to this function as &lsquo;<samp><span class="samp">c-format</span></samp>&rsquo;.

   <p>See <a href="#xgettext-Invocation">xgettext Invocation</a> for the list of options that <code>xgettext</code>
accepts.

   <p>The use of this macro is an alternative to the use of the
&lsquo;<samp><span class="samp">XGETTEXT_OPTIONS</span></samp>&rsquo; variable in <samp><span class="file">po/Makevars</span></samp>.

<div class="node">
<a name="AM_ICONV"></a>
<a name="AM_005fICONV"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#AM_005fXGETTEXT_005fOPTION">AM_XGETTEXT_OPTION</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#autoconf-macros">autoconf macros</a>

</div>

<h4 class="subsection">13.5.7 AM_ICONV in <samp><span class="file">iconv.m4</span></samp></h4>

   <p><a name="index-AM_005fICONV-1153"></a>The <code>AM_ICONV</code> macro tests for the presence of the POSIX/XSI
<code>iconv</code> function family in either the C library or a separate
<code>libiconv</code> library.  If found, it sets the <code>am_cv_func_iconv</code>
variable to &lsquo;<samp><span class="samp">yes</span></samp>&rsquo;; it defines <code>HAVE_ICONV</code> to 1 in the autoconf
generated configuration file (usually called <samp><span class="file">config.h</span></samp>); it defines
<code>ICONV_CONST</code> to &lsquo;<samp><span class="samp">const</span></samp>&rsquo; or to empty, depending on whether the
second argument of <code>iconv()</code> is of type &lsquo;<samp><span class="samp">const char **</span></samp>&rsquo; or
&lsquo;<samp><span class="samp">char **</span></samp>&rsquo;; it sets the variables <code>LIBICONV</code> and
<code>LTLIBICONV</code> to the linker options for use in a Makefile
(<code>LIBICONV</code> for use without libtool, <code>LTLIBICONV</code> for use with
libtool); it adds an &lsquo;<samp><span class="samp">-I</span></samp>&rsquo; option to <code>CPPFLAGS</code> if
necessary.  If not found, it sets <code>LIBICONV</code> and <code>LTLIBICONV</code> to
empty and doesn't change <code>CPPFLAGS</code>.

   <p>The complexities that <code>AM_ICONV</code> deals with are the following:

     <ul>
<li><a name="index-g_t_0040code_007blibiconv_007d-library-1154"></a>Some operating systems have <code>iconv</code> in the C library, for example
glibc.  Some have it in a separate library <code>libiconv</code>, for example
OSF/1 or FreeBSD.  Regardless of the operating system, GNU <code>libiconv</code>
might have been installed.  In that case, it should be used instead of the
operating system's native <code>iconv</code>.

     <li>GNU <code>libiconv</code>, if installed, is not necessarily already in the search
path (<code>CPPFLAGS</code> for the include file search path, <code>LDFLAGS</code> for
the library search path).

     <li>GNU <code>libiconv</code> is binary incompatible with some operating system's
native <code>iconv</code>, for example on FreeBSD.  Use of an <samp><span class="file">iconv.h</span></samp>
and <samp><span class="file">libiconv.so</span></samp> that don't fit together would produce program
crashes.

     <li>GNU <code>libiconv</code>, if installed, is not necessarily already in the
run time library search path.  To avoid the need for setting an environment
variable like <code>LD_LIBRARY_PATH</code>, the macro adds the appropriate
run time search path options to the <code>LIBICONV</code> variable.  This works
on most systems, but not on some operating systems with limited shared
library support, like SCO. 
</ul>

   <p><samp><span class="file">iconv.m4</span></samp> is distributed with the GNU gettext package because
<samp><span class="file">gettext.m4</span></samp> relies on it.

<div class="node">
<a name="CVS-Issues"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Release-Management">Release Management</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#autoconf-macros">autoconf macros</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Maintainers">Maintainers</a>

</div>

<h3 class="section">13.6 Integrating with CVS</h3>

   <p>Many projects use CVS for distributed development, version control and
source backup.  This section gives some advice how to manage the uses
of <code>cvs</code>, <code>gettextize</code>, <code>autopoint</code> and <code>autoconf</code>.

<ul class="menu">
<li><a accesskey="1" href="#Distributed-CVS">Distributed CVS</a>:              Avoiding version mismatch in distributed development
<li><a accesskey="2" href="#Files-under-CVS">Files under CVS</a>:              Files to put under CVS version control
<li><a accesskey="3" href="#autopoint-Invocation">autopoint Invocation</a>:         Invoking the <code>autopoint</code> Program
</ul>

<div class="node">
<a name="Distributed-CVS"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Files-under-CVS">Files under CVS</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#CVS-Issues">CVS Issues</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#CVS-Issues">CVS Issues</a>

</div>

<h4 class="subsection">13.6.1 Avoiding version mismatch in distributed development</h4>

   <p>In a project development with multiple developers, using CVS, there
should be a single developer who occasionally - when there is desire to
upgrade to a new <code>gettext</code> version - runs <code>gettextize</code> and
performs the changes listed in <a href="#Adjusting-Files">Adjusting Files</a>, and then commits
his changes to the CVS.

   <p>It is highly recommended that all developers on a project use the same
version of GNU <code>gettext</code> in the package.  In other words, if a
developer runs <code>gettextize</code>, he should go the whole way, make the
necessary remaining changes and commit his changes to the CVS. 
Otherwise the following damages will likely occur:

     <ul>
<li>Apparent version mismatch between developers.  Since some <code>gettext</code>
specific portions in <samp><span class="file">configure.ac</span></samp>, <samp><span class="file">configure.in</span></samp> and
<code>Makefile.am</code>, <code>Makefile.in</code> files depend on the <code>gettext</code>
version, the use of infrastructure files belonging to different
<code>gettext</code> versions can easily lead to build errors.

     <li>Hidden version mismatch.  Such version mismatch can also lead to
malfunctioning of the package, that may be undiscovered by the developers. 
The worst case of hidden version mismatch is that internationalization
of the package doesn't work at all.

     <li>Release risks.  All developers implicitly perform constant testing on
a package.  This is important in the days and weeks before a release. 
If the guy who makes the release tar files uses a different version
of GNU <code>gettext</code> than the other developers, the distribution will
be less well tested than if all had been using the same <code>gettext</code>
version.  For example, it is possible that a platform specific bug goes
undiscovered due to this constellation. 
</ul>

<div class="node">
<a name="Files-under-CVS"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#autopoint-Invocation">autopoint Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Distributed-CVS">Distributed CVS</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#CVS-Issues">CVS Issues</a>

</div>

<h4 class="subsection">13.6.2 Files to put under CVS version control</h4>

   <p>There are basically three ways to deal with generated files in the
context of a CVS repository, such as <samp><span class="file">configure</span></samp> generated from
<samp><span class="file">configure.ac</span></samp>, <var>parser</var><code>.c</code> generated from
<var>parser</var><code>.y</code>, or <code>po/Makefile.in.in</code> autoinstalled by
<code>gettextize</code> or <code>autopoint</code>.

     <ol type=1 start=1>
<li>All generated files are always committed into the repository.

     <li>All generated files are committed into the repository occasionally,
for example each time a release is made.

     <li>Generated files are never committed into the repository.
        </ol>

   <p>Each of these three approaches has different advantages and drawbacks.

     <ol type=1 start=1>
<li>The advantage is that anyone can check out the CVS at any moment and
gets a working build.  The drawbacks are:  1a. It requires some frequent
"cvs commit" actions by the maintainers.  1b. The repository grows in size
quite fast.

     <li>The advantage is that anyone can check out the CVS, and the usual
"./configure; make" will work.  The drawbacks are:  2a. The one who
checks out the repository needs tools like GNU <code>automake</code>,
GNU <code>autoconf</code>, GNU <code>m4</code> installed in his PATH; sometimes
he even needs particular versions of them.  2b. When a release is made
and a commit is made on the generated files, the other developers get
conflicts on the generated files after doing "cvs update".  Although
these conflicts are easy to resolve, they are annoying.

     <li>The advantage is less work for the maintainers.  The drawback is that
anyone who checks out the CVS not only needs tools like GNU <code>automake</code>,
GNU <code>autoconf</code>, GNU <code>m4</code> installed in his PATH, but also that
he needs to perform a package specific pre-build step before being able
to "./configure; make".
        </ol>

   <p>For the first and second approach, all files modified or brought in
by the occasional <code>gettextize</code> invocation and update should be
committed into the CVS.

   <p>For the third approach, the maintainer can omit from the CVS repository
all the files that <code>gettextize</code> mentions as "copy".  Instead, he
adds to the <samp><span class="file">configure.ac</span></samp> or <samp><span class="file">configure.in</span></samp> a line of the
form

<pre class="example">     AM_GNU_GETTEXT_VERSION(0.18)
</pre>
   <p class="noindent">and adds to the package's pre-build script an invocation of
&lsquo;<samp><span class="samp">autopoint</span></samp>&rsquo;.  For everyone who checks out the CVS, this
<code>autopoint</code> invocation will copy into the right place the
<code>gettext</code> infrastructure files that have been omitted from the CVS.

   <p>The version number used as argument to <code>AM_GNU_GETTEXT_VERSION</code> is
the version of the <code>gettext</code> infrastructure that the package wants
to use.  It is also the minimum version number of the &lsquo;<samp><span class="samp">autopoint</span></samp>&rsquo;
program.  So, if you write <code>AM_GNU_GETTEXT_VERSION(0.11.5)</code> then the
developers can have any version &gt;= 0.11.5 installed; the package will work
with the 0.11.5 infrastructure in all developers' builds.  When the
maintainer then runs gettextize from, say, version 0.12.1 on the package,
the occurrence of <code>AM_GNU_GETTEXT_VERSION(0.11.5)</code> will be changed
into <code>AM_GNU_GETTEXT_VERSION(0.12.1)</code>, and all other developers that
use the CVS will henceforth need to have GNU <code>gettext</code> 0.12.1 or newer
installed.

<div class="node">
<a name="autopoint-Invocation"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Files-under-CVS">Files under CVS</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#CVS-Issues">CVS Issues</a>

</div>

<h4 class="subsection">13.6.3 Invoking the <code>autopoint</code> Program</h4>

   <p><a name="index-autopoint-1155"></a><a name="index-g_t_0040code_007bautopoint_007d-program_002c-usage-1156"></a>
<pre class="example">     autopoint [<var>option</var>]...
</pre>
   <p>The <code>autopoint</code> program copies standard gettext infrastructure files
into a source package.  It extracts from a macro call of the form
<code>AM_GNU_GETTEXT_VERSION(</code><var>version</var><code>)</code>, found in the package's
<samp><span class="file">configure.in</span></samp> or <samp><span class="file">configure.ac</span></samp> file, the gettext version
used by the package, and copies the infrastructure files belonging to
this version into the package.

<h5 class="subsubsection">13.6.3.1 Options</h5>

     <dl>
<dt>&lsquo;<samp><span class="samp">-f</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--force</span></samp>&rsquo;<dd><a name="index-g_t_002df_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1157"></a><a name="index-g_t_002d_002dforce_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1158"></a>Force overwriting of files that already exist.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--dry-run</span></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1159"></a><a name="index-g_t_002d_002ddry_002drun_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1160"></a>Print modifications but don't perform them.  All file copying actions that
<code>autopoint</code> would normally execute are inhibited and instead only
listed on standard output.

   </dl>

<h5 class="subsubsection">13.6.3.2 Informative output</h5>

     <dl>
<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1161"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1162"></a>Output version information and exit.

   </dl>

   <p><code>autopoint</code> supports the GNU <code>gettext</code> versions from 0.10.35 to
the current one, 0.18.  In order to apply <code>autopoint</code> to
a package using a <code>gettext</code> version newer than 0.18, you
need to install this same version of GNU <code>gettext</code> at least.

   <p>In packages using GNU <code>automake</code>, an invocation of <code>autopoint</code>
should be followed by invocations of <code>aclocal</code> and then <code>autoconf</code>
and <code>autoheader</code>.  The reason is that <code>autopoint</code> installs some
autoconf macro files, which are used by <code>aclocal</code> to create
<samp><span class="file">aclocal.m4</span></samp>, and the latter is used by <code>autoconf</code> to create the
package's <samp><span class="file">configure</span></samp> script and by <code>autoheader</code> to create the
package's <samp><span class="file">config.h.in</span></samp> include file template.

   <p>The name &lsquo;<samp><span class="samp">autopoint</span></samp>&rsquo; is an abbreviation of &lsquo;<samp><span class="samp">auto-po-intl-m4</span></samp>&rsquo;;
the tool copies or updates mostly files in the <samp><span class="file">po</span></samp>, <samp><span class="file">intl</span></samp>,
<samp><span class="file">m4</span></samp> directories.

<div class="node">
<a name="Release-Management"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#CVS-Issues">CVS Issues</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Maintainers">Maintainers</a>

</div>

<h3 class="section">13.7 Creating a Distribution Tarball</h3>

   <p><a name="index-release-1163"></a><a name="index-distribution-tarball-1164"></a>In projects that use GNU <code>automake</code>, the usual commands for creating
a distribution tarball, &lsquo;<samp><span class="samp">make dist</span></samp>&rsquo; or &lsquo;<samp><span class="samp">make distcheck</span></samp>&rsquo;,
automatically update the PO files as needed.

   <p>If GNU <code>automake</code> is not used, the maintainer needs to perform this
update before making a release:

<pre class="example">     $ ./configure
     $ (cd po; make update-po)
     $ make distclean
</pre>
   <div class="node">
<a name="Installers"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Programming-Languages">Programming Languages</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Maintainers">Maintainers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">14 The Installer's and Distributor's View</h2>

   <p><a name="index-package-installer_0027s-view-of-_0040code_007bgettext_007d-1165"></a><a name="index-package-distributor_0027s-view-of-_0040code_007bgettext_007d-1166"></a><a name="index-package-build-and-installation-options-1167"></a><a name="index-setting-up-_0040code_007bgettext_007d-at-build-time-1168"></a>
By default, packages fully using GNU <code>gettext</code>, internally,
are installed in such a way that they to allow translation of
messages.  At <em>configuration</em> time, those packages should
automatically detect whether the underlying host system already provides
the GNU <code>gettext</code> functions.  If not,
the GNU <code>gettext</code> library should be automatically prepared
and used.  Installers may use special options at configuration
time for changing this behavior.  The command &lsquo;<samp><span class="samp">./configure
--with-included-gettext</span></samp>&rsquo; bypasses system <code>gettext</code> to
use the included GNU <code>gettext</code> instead,
while &lsquo;<samp><span class="samp">./configure --disable-nls</span></samp>&rsquo;
produces programs totally unable to translate messages.

   <p><a name="index-LINGUAS_0040r_007b_002c-environment-variable_007d-1169"></a>Internationalized packages have usually many <samp><var>ll</var><span class="file">.po</span></samp>
files.  Unless
translations are disabled, all those available are installed together
with the package.  However, the environment variable <code>LINGUAS</code>
may be set, prior to configuration, to limit the installed set. 
<code>LINGUAS</code> should then contain a space separated list of two-letter
codes, stating which languages are allowed.

<div class="node">
<a name="Programming-Languages"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Conclusion">Conclusion</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Installers">Installers</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">15 Other Programming Languages</h2>

   <p>While the presentation of <code>gettext</code> focuses mostly on C and
implicitly applies to C++ as well, its scope is far broader than that:
Many programming languages, scripting languages and other textual data
like GUI resources or package descriptions can make use of the gettext
approach.

<ul class="menu">
<li><a accesskey="1" href="#Language-Implementors">Language Implementors</a>:        The Language Implementor's View
<li><a accesskey="2" href="#Programmers-for-other-Languages">Programmers for other Languages</a>:   The Programmer's View
<li><a accesskey="3" href="#Translators-for-other-Languages">Translators for other Languages</a>:   The Translator's View
<li><a accesskey="4" href="#Maintainers-for-other-Languages">Maintainers for other Languages</a>:   The Maintainer's View
<li><a accesskey="5" href="#List-of-Programming-Languages">List of Programming Languages</a>:   Individual Programming Languages
<li><a accesskey="6" href="#List-of-Data-Formats">List of Data Formats</a>:         Internationalizable Data
</ul>

<div class="node">
<a name="Language-Implementors"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Programmers-for-other-Languages">Programmers for other Languages</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Programming-Languages">Programming Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programming-Languages">Programming Languages</a>

</div>

<h3 class="section">15.1 The Language Implementor's View</h3>

   <p><a name="index-programming-languages-1170"></a><a name="index-scripting-languages-1171"></a>
All programming and scripting languages that have the notion of strings
are eligible to supporting <code>gettext</code>.  Supporting <code>gettext</code>
means the following:

     <ol type=1 start=1>
<li>You should add to the language a syntax for translatable strings.  In
principle, a function call of <code>gettext</code> would do, but a shorthand
syntax helps keeping the legibility of internationalized programs.  For
example, in C we use the syntax <code>_("string")</code>, and in GNU awk we use
the shorthand <code>_"string"</code>.

     <li>You should arrange that evaluation of such a translatable string at
runtime calls the <code>gettext</code> function, or performs equivalent
processing.

     <li>Similarly, you should make the functions <code>ngettext</code>,
<code>dcgettext</code>, <code>dcngettext</code> available from within the language. 
These functions are less often used, but are nevertheless necessary for
particular purposes: <code>ngettext</code> for correct plural handling, and
<code>dcgettext</code> and <code>dcngettext</code> for obeying other locale-related
environment variables than <code>LC_MESSAGES</code>, such as <code>LC_TIME</code> or
<code>LC_MONETARY</code>.  For these latter functions, you need to make the
<code>LC_*</code> constants, available in the C header <code>&lt;locale.h&gt;</code>,
referenceable from within the language, usually either as enumeration
values or as strings.

     <li>You should allow the programmer to designate a message domain, either by
making the <code>textdomain</code> function available from within the
language, or by introducing a magic variable called <code>TEXTDOMAIN</code>. 
Similarly, you should allow the programmer to designate where to search
for message catalogs, by providing access to the <code>bindtextdomain</code>
function.

     <li>You should either perform a <code>setlocale (LC_ALL, "")</code> call during
the startup of your language runtime, or allow the programmer to do so. 
Remember that gettext will act as a no-op if the <code>LC_MESSAGES</code> and
<code>LC_CTYPE</code> locale categories are not both set.

     <li>A programmer should have a way to extract translatable strings from a
program into a PO file.  The GNU <code>xgettext</code> program is being
extended to support very different programming languages.  Please
contact the GNU <code>gettext</code> maintainers to help them doing this.  If
the string extractor is best integrated into your language's parser, GNU
<code>xgettext</code> can function as a front end to your string extractor.

     <li>The language's library should have a string formatting facility where
the arguments of a format string are denoted by a positional number or a
name.  This is needed because for some languages and some messages with
more than one substitutable argument, the translation will need to
output the substituted arguments in different order.  See <a href="#c_002dformat-Flag">c-format Flag</a>.

     <li>If the language has more than one implementation, and not all of the
implementations use <code>gettext</code>, but the programs should be portable
across implementations, you should provide a no-i18n emulation, that
makes the other implementations accept programs written for yours,
without actually translating the strings.

     <li>To help the programmer in the task of marking translatable strings,
which is sometimes performed using the Emacs PO mode (see <a href="#Marking">Marking</a>),
you are welcome to
contact the GNU <code>gettext</code> maintainers, so they can add support for
your language to <samp><span class="file">po-mode.el</span></samp>.
        </ol>

   <p>On the implementation side, three approaches are possible, with
different effects on portability and copyright:

     <ul>
<li>You may integrate the GNU <code>gettext</code>'s <samp><span class="file">intl/</span></samp> directory in
your package, as described in <a href="#Maintainers">Maintainers</a>.  This allows you to
have internationalization on all kinds of platforms.  Note that when you
then distribute your package, it legally falls under the GNU General
Public License, and the GNU project will be glad about your contribution
to the Free Software pool.

     <li>You may link against GNU <code>gettext</code> functions if they are found in
the C library.  For example, an autoconf test for <code>gettext()</code> and
<code>ngettext()</code> will detect this situation.  For the moment, this test
will succeed on GNU systems and not on other platforms.  No severe
copyright restrictions apply.

     <li>You may emulate or reimplement the GNU <code>gettext</code> functionality. 
This has the advantage of full portability and no copyright
restrictions, but also the drawback that you have to reimplement the GNU
<code>gettext</code> features (such as the <code>LANGUAGE</code> environment
variable, the locale aliases database, the automatic charset conversion,
and plural handling). 
</ul>

<div class="node">
<a name="Programmers-for-other-Languages"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Translators-for-other-Languages">Translators for other Languages</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Language-Implementors">Language Implementors</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programming-Languages">Programming Languages</a>

</div>

<h3 class="section">15.2 The Programmer's View</h3>

   <p>For the programmer, the general procedure is the same as for the C
language.  The Emacs PO mode marking supports other languages, and the GNU
<code>xgettext</code> string extractor recognizes other languages based on the
file extension or a command-line option.  In some languages,
<code>setlocale</code> is not needed because it is already performed by the
underlying language runtime.

<div class="node">
<a name="Translators-for-other-Languages"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Maintainers-for-other-Languages">Maintainers for other Languages</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Programmers-for-other-Languages">Programmers for other Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programming-Languages">Programming Languages</a>

</div>

<h3 class="section">15.3 The Translator's View</h3>

   <p>The translator works exactly as in the C language case.  The only
difference is that when translating format strings, she has to be aware
of the language's particular syntax for positional arguments in format
strings.

<ul class="menu">
<li><a accesskey="1" href="#c_002dformat">c-format</a>:                     C Format Strings
<li><a accesskey="2" href="#objc_002dformat">objc-format</a>:                  Objective C Format Strings
<li><a accesskey="3" href="#sh_002dformat">sh-format</a>:                    Shell Format Strings
<li><a accesskey="4" href="#python_002dformat">python-format</a>:                Python Format Strings
<li><a accesskey="5" href="#lisp_002dformat">lisp-format</a>:                  Lisp Format Strings
<li><a accesskey="6" href="#elisp_002dformat">elisp-format</a>:                 Emacs Lisp Format Strings
<li><a accesskey="7" href="#librep_002dformat">librep-format</a>:                librep Format Strings
<li><a accesskey="8" href="#scheme_002dformat">scheme-format</a>:                Scheme Format Strings
<li><a accesskey="9" href="#smalltalk_002dformat">smalltalk-format</a>:             Smalltalk Format Strings
<li><a href="#java_002dformat">java-format</a>:                  Java Format Strings
<li><a href="#csharp_002dformat">csharp-format</a>:                C# Format Strings
<li><a href="#awk_002dformat">awk-format</a>:                   awk Format Strings
<li><a href="#object_002dpascal_002dformat">object-pascal-format</a>:         Object Pascal Format Strings
<li><a href="#ycp_002dformat">ycp-format</a>:                   YCP Format Strings
<li><a href="#tcl_002dformat">tcl-format</a>:                   Tcl Format Strings
<li><a href="#perl_002dformat">perl-format</a>:                  Perl Format Strings
<li><a href="#php_002dformat">php-format</a>:                   PHP Format Strings
<li><a href="#gcc_002dinternal_002dformat">gcc-internal-format</a>:          GCC internal Format Strings
<li><a href="#gfc_002dinternal_002dformat">gfc-internal-format</a>:          GFC internal Format Strings
<li><a href="#qt_002dformat">qt-format</a>:                    Qt Format Strings
<li><a href="#qt_002dplural_002dformat">qt-plural-format</a>:             Qt Plural Format Strings
<li><a href="#kde_002dformat">kde-format</a>:                   KDE Format Strings
<li><a href="#boost_002dformat">boost-format</a>:                 Boost Format Strings
</ul>

<div class="node">
<a name="c-format"></a>
<a name="c_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#objc_002dformat">objc-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Translators-for-other-Languages">Translators for other Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.1 C Format Strings</h4>

   <p>C format strings are described in POSIX (IEEE P1003.1 2001), section
XSH 3 fprintf(),
<a href="http://www.opengroup.org/onlinepubs/007904975/functions/fprintf.html">http://www.opengroup.org/onlinepubs/007904975/functions/fprintf.html</a>. 
See also the fprintf() manual page,
<a href="http://www.linuxvalley.it/encyclopedia/ldp/manpage/man3/printf.3.php">http://www.linuxvalley.it/encyclopedia/ldp/manpage/man3/printf.3.php</a>,
<a href="http://informatik.fh-wuerzburg.de/student/i510/man/printf.html">http://informatik.fh-wuerzburg.de/student/i510/man/printf.html</a>.

   <p>Although format strings with positions that reorder arguments, such as

<pre class="example">     "Only %2$d bytes free on '%1$s'."
</pre>
   <p class="noindent">which is semantically equivalent to

<pre class="example">     "'%s' has only %d bytes free."
</pre>
   <p class="noindent">are a POSIX/XSI feature and not specified by ISO C 99, translators can rely
on this reordering ability: On the few platforms where <code>printf()</code>,
<code>fprintf()</code> etc. don't support this feature natively, <samp><span class="file">libintl.a</span></samp>
or <samp><span class="file">libintl.so</span></samp> provides replacement functions, and GNU <code>&lt;libintl.h&gt;</code>
activates these replacement functions automatically.

   <p><a name="index-outdigits-1172"></a><a name="index-Arabic-digits-1173"></a>As a special feature for Farsi (Persian) and maybe Arabic, translators can
insert an &lsquo;<samp><span class="samp">I</span></samp>&rsquo; flag into numeric format directives.  For example, the
translation of <code>"%d"</code> can be <code>"%Id"</code>.  The effect of this flag,
on systems with GNU <code>libc</code>, is that in the output, the ASCII digits are
replaced with the &lsquo;<samp><span class="samp">outdigits</span></samp>&rsquo; defined in the <code>LC_CTYPE</code> locale
category.  On other systems, the <code>gettext</code> function removes this flag,
so that it has no effect.

   <p>Note that the programmer should <em>not</em> put this flag into the
untranslated string.  (Putting the &lsquo;<samp><span class="samp">I</span></samp>&rsquo; format directive flag into an
<var>msgid</var> string would lead to undefined behaviour on platforms without
glibc when NLS is disabled.)

<div class="node">
<a name="objc-format"></a>
<a name="objc_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#sh_002dformat">sh-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#c_002dformat">c-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.2 Objective C Format Strings</h4>

   <p>Objective C format strings are like C format strings.  They support an
additional format directive: "%@", which when executed consumes an argument
of type <code>Object *</code>.

<div class="node">
<a name="sh-format"></a>
<a name="sh_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#python_002dformat">python-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#objc_002dformat">objc-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.3 Shell Format Strings</h4>

   <p>Shell format strings, as supported by GNU gettext and the &lsquo;<samp><span class="samp">envsubst</span></samp>&rsquo;
program, are strings with references to shell variables in the form
<code>$</code><var>variable</var> or <code>${</code><var>variable</var><code>}</code>.  References of the form
<code>${</code><var>variable</var><code>-</code><var>default</var><code>}</code>,
<code>${</code><var>variable</var><code>:-</code><var>default</var><code>}</code>,
<code>${</code><var>variable</var><code>=</code><var>default</var><code>}</code>,
<code>${</code><var>variable</var><code>:=</code><var>default</var><code>}</code>,
<code>${</code><var>variable</var><code>+</code><var>replacement</var><code>}</code>,
<code>${</code><var>variable</var><code>:+</code><var>replacement</var><code>}</code>,
<code>${</code><var>variable</var><code>?</code><var>ignored</var><code>}</code>,
<code>${</code><var>variable</var><code>:?</code><var>ignored</var><code>}</code>,
that would be valid inside shell scripts, are not supported.  The
<var>variable</var> names must consist solely of alphanumeric or underscore
ASCII characters, not start with a digit and be nonempty; otherwise such
a variable reference is ignored.

<div class="node">
<a name="python-format"></a>
<a name="python_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#lisp_002dformat">lisp-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#sh_002dformat">sh-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.4 Python Format Strings</h4>

   <p>Python format strings are described in
Python&nbsp;Library&nbsp;reference<!-- /@w --> /
2.&nbsp;Built-in&nbsp;Types,&nbsp;Exceptions&nbsp;and&nbsp;Functions<!-- /@w --> /
2.2.&nbsp;Built-in&nbsp;Types<!-- /@w --> /
2.2.6.&nbsp;Sequence&nbsp;Types<!-- /@w --> /
2.2.6.2.&nbsp;String&nbsp;Formatting&nbsp;Operations<!-- /@w -->. 
<a href="http://www.python.org/doc/2.2.1/lib/typesseq-strings.html">http://www.python.org/doc/2.2.1/lib/typesseq-strings.html</a>.

<div class="node">
<a name="lisp-format"></a>
<a name="lisp_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#elisp_002dformat">elisp-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#python_002dformat">python-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.5 Lisp Format Strings</h4>

   <p>Lisp format strings are described in the Common Lisp HyperSpec,
chapter 22.3 Formatted&nbsp;Output<!-- /@w -->,
<a href="http://www.lisp.org/HyperSpec/Body/sec_22-3.html">http://www.lisp.org/HyperSpec/Body/sec_22-3.html</a>.

<div class="node">
<a name="elisp-format"></a>
<a name="elisp_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#librep_002dformat">librep-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#lisp_002dformat">lisp-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.6 Emacs Lisp Format Strings</h4>

   <p>Emacs Lisp format strings are documented in the Emacs Lisp reference,
section Formatting&nbsp;Strings<!-- /@w -->,
<a href="http://www.gnu.org/manual/elisp-manual-21-2.8/html_chapter/elisp_4.html#SEC75">http://www.gnu.org/manual/elisp-manual-21-2.8/html_chapter/elisp_4.html#SEC75</a>. 
Note that as of version 21, XEmacs supports numbered argument specifications
in format strings while FSF Emacs doesn't.

<div class="node">
<a name="librep-format"></a>
<a name="librep_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#scheme_002dformat">scheme-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#elisp_002dformat">elisp-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.7 librep Format Strings</h4>

   <p>librep format strings are documented in the librep manual, section
Formatted&nbsp;Output<!-- /@w -->,
<a href="http://librep.sourceforge.net/librep-manual.html#Formatted%20Output">http://librep.sourceforge.net/librep-manual.html#Formatted%20Output</a>,
<a href="http://www.gwinnup.org/research/docs/librep.html#SEC122">http://www.gwinnup.org/research/docs/librep.html#SEC122</a>.

<div class="node">
<a name="scheme-format"></a>
<a name="scheme_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#smalltalk_002dformat">smalltalk-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#librep_002dformat">librep-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.8 Scheme Format Strings</h4>

   <p>Scheme format strings are documented in the SLIB manual, section
Format&nbsp;Specification<!-- /@w -->.

<div class="node">
<a name="smalltalk-format"></a>
<a name="smalltalk_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#java_002dformat">java-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#scheme_002dformat">scheme-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.9 Smalltalk Format Strings</h4>

   <p>Smalltalk format strings are described in the GNU Smalltalk documentation,
class <code>CharArray</code>, methods &lsquo;<samp><span class="samp">bindWith:</span></samp>&rsquo; and
&lsquo;<samp><span class="samp">bindWithArguments:</span></samp>&rsquo;. 
<a href="http://www.gnu.org/software/smalltalk/gst-manual/gst_68.html#SEC238">http://www.gnu.org/software/smalltalk/gst-manual/gst_68.html#SEC238</a>. 
In summary, a directive starts with &lsquo;<samp><span class="samp">%</span></samp>&rsquo; and is followed by &lsquo;<samp><span class="samp">%</span></samp>&rsquo;
or a nonzero digit (&lsquo;<samp><span class="samp">1</span></samp>&rsquo; to &lsquo;<samp><span class="samp">9</span></samp>&rsquo;).

<div class="node">
<a name="java-format"></a>
<a name="java_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#csharp_002dformat">csharp-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#smalltalk_002dformat">smalltalk-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.10 Java Format Strings</h4>

   <p>Java format strings are described in the JDK documentation for class
<code>java.text.MessageFormat</code>,
<a href="http://java.sun.com/j2se/1.4/docs/api/java/text/MessageFormat.html">http://java.sun.com/j2se/1.4/docs/api/java/text/MessageFormat.html</a>. 
See also the ICU documentation
<a href="http://oss.software.ibm.com/icu/apiref/classMessageFormat.html">http://oss.software.ibm.com/icu/apiref/classMessageFormat.html</a>.

<div class="node">
<a name="csharp-format"></a>
<a name="csharp_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#awk_002dformat">awk-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#java_002dformat">java-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.11 C# Format Strings</h4>

   <p>C# format strings are described in the .NET documentation for class
<code>System.String</code> and in
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpConFormattingOverview.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpConFormattingOverview.asp</a>.

<div class="node">
<a name="awk-format"></a>
<a name="awk_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#object_002dpascal_002dformat">object-pascal-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#csharp_002dformat">csharp-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.12 awk Format Strings</h4>

   <p>awk format strings are described in the gawk documentation, section
Printf<!-- /@w -->,
<a href="http://www.gnu.org/manual/gawk/html_node/Printf.html#Printf">http://www.gnu.org/manual/gawk/html_node/Printf.html#Printf</a>.

<div class="node">
<a name="object-pascal-format"></a>
<a name="object_002dpascal_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#ycp_002dformat">ycp-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#awk_002dformat">awk-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.13 Object Pascal Format Strings</h4>

   <p>Object Pascal format strings are described in the documentation of the
Free Pascal runtime library, section Format,
<a href="http://www.freepascal.org/docs-html/rtl/sysutils/format.html">http://www.freepascal.org/docs-html/rtl/sysutils/format.html</a>.

<div class="node">
<a name="ycp-format"></a>
<a name="ycp_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#tcl_002dformat">tcl-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#object_002dpascal_002dformat">object-pascal-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.14 YCP Format Strings</h4>

   <p>YCP sformat strings are described in the libycp documentation
<a href="file:/usr/share/doc/packages/libycp/YCP-builtins.html">file:/usr/share/doc/packages/libycp/YCP-builtins.html</a>. 
In summary, a directive starts with &lsquo;<samp><span class="samp">%</span></samp>&rsquo; and is followed by &lsquo;<samp><span class="samp">%</span></samp>&rsquo;
or a nonzero digit (&lsquo;<samp><span class="samp">1</span></samp>&rsquo; to &lsquo;<samp><span class="samp">9</span></samp>&rsquo;).

<div class="node">
<a name="tcl-format"></a>
<a name="tcl_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#perl_002dformat">perl-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#ycp_002dformat">ycp-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.15 Tcl Format Strings</h4>

   <p>Tcl format strings are described in the <samp><span class="file">format.n</span></samp> manual page,
<a href="http://www.scriptics.com/man/tcl8.3/TclCmd/format.htm">http://www.scriptics.com/man/tcl8.3/TclCmd/format.htm</a>.

<div class="node">
<a name="perl-format"></a>
<a name="perl_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#php_002dformat">php-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#tcl_002dformat">tcl-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.16 Perl Format Strings</h4>

   <p>There are two kinds format strings in Perl: those acceptable to the
Perl built-in function <code>printf</code>, labelled as &lsquo;<samp><span class="samp">perl-format</span></samp>&rsquo;,
and those acceptable to the <code>libintl-perl</code> function <code>__x</code>,
labelled as &lsquo;<samp><span class="samp">perl-brace-format</span></samp>&rsquo;.

   <p>Perl <code>printf</code> format strings are described in the <code>sprintf</code>
section of &lsquo;<samp><span class="samp">man perlfunc</span></samp>&rsquo;.

   <p>Perl brace format strings are described in the
<samp><span class="file">Locale::TextDomain(3pm)</span></samp> manual page of the CPAN package
libintl-perl.  In brief, Perl format uses placeholders put between
braces (&lsquo;<samp><span class="samp">{</span></samp>&rsquo; and &lsquo;<samp><span class="samp">}</span></samp>&rsquo;).  The placeholder must have the syntax
of simple identifiers.

<div class="node">
<a name="php-format"></a>
<a name="php_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gcc_002dinternal_002dformat">gcc-internal-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#perl_002dformat">perl-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.17 PHP Format Strings</h4>

   <p>PHP format strings are described in the documentation of the PHP function
<code>sprintf</code>, in <samp><span class="file">phpdoc/manual/function.sprintf.html</span></samp> or
<a href="http://www.php.net/manual/en/function.sprintf.php">http://www.php.net/manual/en/function.sprintf.php</a>.

<div class="node">
<a name="gcc-internal-format"></a>
<a name="gcc_002dinternal_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gfc_002dinternal_002dformat">gfc-internal-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#php_002dformat">php-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.18 GCC internal Format Strings</h4>

   <p>These format strings are used inside the GCC sources.  In such a format
string, a directive starts with &lsquo;<samp><span class="samp">%</span></samp>&rsquo;, is optionally followed by a
size specifier &lsquo;<samp><span class="samp">l</span></samp>&rsquo;, an optional flag &lsquo;<samp><span class="samp">+</span></samp>&rsquo;, another optional flag
&lsquo;<samp><span class="samp">#</span></samp>&rsquo;, and is finished by a specifier: &lsquo;<samp><span class="samp">%</span></samp>&rsquo; denotes a literal
percent sign, &lsquo;<samp><span class="samp">c</span></samp>&rsquo; denotes a character, &lsquo;<samp><span class="samp">s</span></samp>&rsquo; denotes a string,
&lsquo;<samp><span class="samp">i</span></samp>&rsquo; and &lsquo;<samp><span class="samp">d</span></samp>&rsquo; denote an integer, &lsquo;<samp><span class="samp">o</span></samp>&rsquo;, &lsquo;<samp><span class="samp">u</span></samp>&rsquo;, &lsquo;<samp><span class="samp">x</span></samp>&rsquo;
denote an unsigned integer, &lsquo;<samp><span class="samp">.*s</span></samp>&rsquo; denotes a string preceded by a
width specification, &lsquo;<samp><span class="samp">H</span></samp>&rsquo; denotes a &lsquo;<samp><span class="samp">location_t *</span></samp>&rsquo; pointer,
&lsquo;<samp><span class="samp">D</span></samp>&rsquo; denotes a general declaration, &lsquo;<samp><span class="samp">F</span></samp>&rsquo; denotes a function
declaration, &lsquo;<samp><span class="samp">T</span></samp>&rsquo; denotes a type, &lsquo;<samp><span class="samp">A</span></samp>&rsquo; denotes a function argument,
&lsquo;<samp><span class="samp">C</span></samp>&rsquo; denotes a tree code, &lsquo;<samp><span class="samp">E</span></samp>&rsquo; denotes an expression, &lsquo;<samp><span class="samp">L</span></samp>&rsquo;
denotes a programming language, &lsquo;<samp><span class="samp">O</span></samp>&rsquo; denotes a binary operator,
&lsquo;<samp><span class="samp">P</span></samp>&rsquo; denotes a function parameter, &lsquo;<samp><span class="samp">Q</span></samp>&rsquo; denotes an assignment
operator, &lsquo;<samp><span class="samp">V</span></samp>&rsquo; denotes a const/volatile qualifier.

<div class="node">
<a name="gfc-internal-format"></a>
<a name="gfc_002dinternal_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#qt_002dformat">qt-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gcc_002dinternal_002dformat">gcc-internal-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.19 GFC internal Format Strings</h4>

   <p>These format strings are used inside the GNU Fortran Compiler sources,
that is, the Fortran frontend in the GCC sources.  In such a format
string, a directive starts with &lsquo;<samp><span class="samp">%</span></samp>&rsquo; and is finished by a
specifier: &lsquo;<samp><span class="samp">%</span></samp>&rsquo; denotes a literal percent sign, &lsquo;<samp><span class="samp">C</span></samp>&rsquo; denotes the
current source location, &lsquo;<samp><span class="samp">L</span></samp>&rsquo; denotes a source location, &lsquo;<samp><span class="samp">c</span></samp>&rsquo;
denotes a character, &lsquo;<samp><span class="samp">s</span></samp>&rsquo; denotes a string, &lsquo;<samp><span class="samp">i</span></samp>&rsquo; and &lsquo;<samp><span class="samp">d</span></samp>&rsquo;
denote an integer, &lsquo;<samp><span class="samp">u</span></samp>&rsquo; denotes an unsigned integer.  &lsquo;<samp><span class="samp">i</span></samp>&rsquo;,
&lsquo;<samp><span class="samp">d</span></samp>&rsquo;, and &lsquo;<samp><span class="samp">u</span></samp>&rsquo; may be preceded by a size specifier &lsquo;<samp><span class="samp">l</span></samp>&rsquo;.

<div class="node">
<a name="qt-format"></a>
<a name="qt_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#qt_002dplural_002dformat">qt-plural-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gfc_002dinternal_002dformat">gfc-internal-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.20 Qt Format Strings</h4>

   <p>Qt format strings are described in the documentation of the QString class
<a href="file:/usr/lib/qt-4.3.0/doc/html/qstring.html">file:/usr/lib/qt-4.3.0/doc/html/qstring.html</a>. 
In summary, a directive consists of a &lsquo;<samp><span class="samp">%</span></samp>&rsquo; followed by a digit. The same
directive cannot occur more than once in a format string.

<div class="node">
<a name="qt-plural-format"></a>
<a name="qt_002dplural_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#kde_002dformat">kde-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#qt_002dformat">qt-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.21 Qt Format Strings</h4>

   <p>Qt format strings are described in the documentation of the QObject::tr method
<a href="file:/usr/lib/qt-4.3.0/doc/html/qobject.html">file:/usr/lib/qt-4.3.0/doc/html/qobject.html</a>. 
In summary, the only allowed directive is &lsquo;<samp><span class="samp">%n</span></samp>&rsquo;.

<div class="node">
<a name="kde-format"></a>
<a name="kde_002dformat"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#boost_002dformat">boost-format</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#qt_002dplural_002dformat">qt-plural-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.22 KDE Format Strings</h4>

   <p>KDE 4 format strings are defined as follows:
A directive consists of a &lsquo;<samp><span class="samp">%</span></samp>&rsquo; followed by a non-zero decimal number. 
If a &lsquo;<samp><span class="samp">%n</span></samp>&rsquo; occurs in a format strings, all of &lsquo;<samp><span class="samp">%1</span></samp>&rsquo;, ..., &lsquo;<samp><span class="samp">%(n-1)</span></samp>&rsquo;
must occur as well, except possibly one of them.

<div class="node">
<a name="boost-format"></a>
<a name="boost_002dformat"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#kde_002dformat">kde-format</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Translators-for-other-Languages">Translators for other Languages</a>

</div>

<h4 class="subsection">15.3.23 Boost Format Strings</h4>

   <p>Boost format strings are described in the documentation of the
<code>boost::format</code> class, at
<a href="http://www.boost.org/libs/format/doc/format.html">http://www.boost.org/libs/format/doc/format.html</a>. 
In summary, a directive has either the same syntax as in a C format string,
such as &lsquo;<samp><span class="samp">%1$+5d</span></samp>&rsquo;, or may be surrounded by vertical bars, such as
&lsquo;<samp><span class="samp">%|1$+5d|</span></samp>&rsquo; or &lsquo;<samp><span class="samp">%|1$+5|</span></samp>&rsquo;, or consists of just an argument number
between percent signs, such as &lsquo;<samp><span class="samp">%1%</span></samp>&rsquo;.

<div class="node">
<a name="Maintainers-for-other-Languages"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#List-of-Programming-Languages">List of Programming Languages</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Translators-for-other-Languages">Translators for other Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programming-Languages">Programming Languages</a>

</div>

<h3 class="section">15.4 The Maintainer's View</h3>

   <p>For the maintainer, the general procedure differs from the C language
case in two ways.

     <ul>
<li>For those languages that don't use GNU gettext, the <samp><span class="file">intl/</span></samp> directory
is not needed and can be omitted.  This means that the maintainer calls the
<code>gettextize</code> program without the &lsquo;<samp><span class="samp">--intl</span></samp>&rsquo; option, and that he
invokes the <code>AM_GNU_GETTEXT</code> autoconf macro via
&lsquo;<samp><span class="samp">AM_GNU_GETTEXT([external])</span></samp>&rsquo;.

     <li>If only a single programming language is used, the <code>XGETTEXT_OPTIONS</code>
variable in <samp><span class="file">po/Makevars</span></samp> (see <a href="#po_002fMakevars">po/Makevars</a>) should be adjusted to
match the <code>xgettext</code> options for that particular programming language. 
If the package uses more than one programming language with <code>gettext</code>
support, it becomes necessary to change the POT file construction rule
in <samp><span class="file">po/Makefile.in.in</span></samp>.  It is recommended to make one <code>xgettext</code>
invocation per programming language, each with the options appropriate for
that language, and to combine the resulting files using <code>msgcat</code>. 
</ul>

<div class="node">
<a name="List-of-Programming-Languages"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#List-of-Data-Formats">List of Data Formats</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Maintainers-for-other-Languages">Maintainers for other Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programming-Languages">Programming Languages</a>

</div>

<h3 class="section">15.5 Individual Programming Languages</h3>

<!-- Here is a list of programming languages, as used for Free Software projects -->
<!-- on SourceForge/Freshmeat, as of February 2002.  Those supported by gettext -->
<!-- are marked with a star. -->
<!-- C                       3580     * -->
<!-- Perl                    1911     * -->
<!-- C++                     1379     * -->
<!-- Java                    1200     * -->
<!-- PHP                     1051     * -->
<!-- Python                   613     * -->
<!-- Unix Shell               357     * -->
<!-- Tcl                      266     * -->
<!-- SQL                      174 -->
<!-- JavaScript               118 -->
<!-- Assembly                 108 -->
<!-- Scheme                    51 -->
<!-- Ruby                      47 -->
<!-- Lisp                      45     * -->
<!-- Objective C               39     * -->
<!-- PL/SQL                    29 -->
<!-- Fortran                   25 -->
<!-- Ada                       24 -->
<!-- Delphi                    22 -->
<!-- Awk                       19     * -->
<!-- Pascal                    19 -->
<!-- ML                        19 -->
<!-- Eiffel                    17 -->
<!-- Emacs-Lisp                14     * -->
<!-- Zope                      14 -->
<!-- ASP                       12 -->
<!-- Forth                     12 -->
<!-- Cold Fusion               10 -->
<!-- Haskell                    9 -->
<!-- Visual Basic               9 -->
<!-- C#                         6     * -->
<!-- Smalltalk                  6     * -->
<!-- Basic                      5 -->
<!-- Erlang                     5 -->
<!-- Modula                     5 -->
<!-- Object Pascal              5     * -->
<!-- Rexx                       5 -->
<!-- Dylan                      4 -->
<!-- Prolog                     4 -->
<!-- APL                        3 -->
<!-- PROGRESS                   2 -->
<!-- Euler                      1 -->
<!-- Euphoria                   1 -->
<!-- Pliant                     1 -->
<!-- Simula                     1 -->
<!-- XBasic                     1 -->
<!-- Logo                       0 -->
<!-- Other Scripting Engines   49 -->
<!-- Other                    116 -->
<ul class="menu">
<li><a accesskey="1" href="#C">C</a>:                            C, C++, Objective C
<li><a accesskey="2" href="#sh">sh</a>:                           sh - Shell Script
<li><a accesskey="3" href="#bash">bash</a>:                         bash - Bourne-Again Shell Script
<li><a accesskey="4" href="#Python">Python</a>:                       Python
<li><a accesskey="5" href="#Common-Lisp">Common Lisp</a>:                  GNU clisp - Common Lisp
<li><a accesskey="6" href="#clisp-C">clisp C</a>:                      GNU clisp C sources
<li><a accesskey="7" href="#Emacs-Lisp">Emacs Lisp</a>:                   Emacs Lisp
<li><a accesskey="8" href="#librep">librep</a>:                       librep
<li><a accesskey="9" href="#Scheme">Scheme</a>:                       GNU guile - Scheme
<li><a href="#Smalltalk">Smalltalk</a>:                    GNU Smalltalk
<li><a href="#Java">Java</a>:                         Java
<li><a href="#C_0023">C#</a>:                           C#
<li><a href="#gawk">gawk</a>:                         GNU awk
<li><a href="#Pascal">Pascal</a>:                       Pascal - Free Pascal Compiler
<li><a href="#wxWidgets">wxWidgets</a>:                    wxWidgets library
<li><a href="#YCP">YCP</a>:                          YCP - YaST2 scripting language
<li><a href="#Tcl">Tcl</a>:                          Tcl - Tk's scripting language
<li><a href="#Perl">Perl</a>:                         Perl
<li><a href="#PHP">PHP</a>:                          PHP Hypertext Preprocessor
<li><a href="#Pike">Pike</a>:                         Pike
<li><a href="#GCC_002dsource">GCC-source</a>:                   GNU Compiler Collection sources
</ul>

<div class="node">
<a name="C"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#sh">sh</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#List-of-Programming-Languages">List of Programming Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.1 C, C++, Objective C</h4>

   <p><a name="index-C-and-C_002dlike-languages-1174"></a>
     <dl>
<dt>RPMs<dd>gcc, gpp, gobjc, glibc, gettext

     <br><dt>File extension<dd>For C: <code>c</code>, <code>h</code>. 
<br>For C++: <code>C</code>, <code>c++</code>, <code>cc</code>, <code>cxx</code>, <code>cpp</code>, <code>hpp</code>. 
<br>For Objective C: <code>m</code>.

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>_("abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>, <code>dgettext</code>, <code>dcgettext</code>, <code>ngettext</code>,
<code>dngettext</code>, <code>dcngettext</code>

     <br><dt>textdomain<dd><code>textdomain</code> function

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code> function

     <br><dt>setlocale<dd>Programmer must call <code>setlocale (LC_ALL, "")</code>

     <br><dt>Prerequisite<dd><code>#include &lt;libintl.h&gt;</code>
<br><code>#include &lt;locale.h&gt;</code>
<br><code>#define _(string) gettext (string)</code>

     <br><dt>Use or emulate GNU gettext<dd>Use

     <br><dt>Extractor<dd><code>xgettext -k_</code>

     <br><dt>Formatting with positions<dd><code>fprintf "%2$d %1$d"</code>
<br>In C++: <code>autosprintf "%2$d %1$d"</code>
(see <a href="autosprintf.html#Top">Introduction</a>)

     <br><dt>Portability<dd>autoconf (gettext.m4) and #if ENABLE_NLS

     <br><dt>po-mode marking<dd>yes
</dl>

   <p>The following examples are available in the <samp><span class="file">examples</span></samp> directory:
<code>hello-c</code>, <code>hello-c-gnome</code>, <code>hello-c++</code>, <code>hello-c++-qt</code>,
<code>hello-c++-kde</code>, <code>hello-c++-gnome</code>, <code>hello-c++-wxwidgets</code>,
<code>hello-objc</code>, <code>hello-objc-gnustep</code>, <code>hello-objc-gnome</code>.

<div class="node">
<a name="sh"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#bash">bash</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#C">C</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.2 sh - Shell Script</h4>

   <p><a name="index-shell-scripts-1175"></a>
     <dl>
<dt>RPMs<dd>bash, gettext

     <br><dt>File extension<dd><code>sh</code>

     <br><dt>String syntax<dd><code>"abc"</code>, <code>'abc'</code>, <code>abc</code>

     <br><dt>gettext shorthand<dd><code>"`gettext \"abc\"`"</code>

     <br><dt>gettext/ngettext functions<dd><a name="index-gettext-1176"></a><a name="index-ngettext-1177"></a><code>gettext</code>, <code>ngettext</code> programs
<br><code>eval_gettext</code>, <code>eval_ngettext</code> shell functions

     <br><dt>textdomain<dd><a name="index-TEXTDOMAIN_0040r_007b_002c-environment-variable_007d-1178"></a>environment variable <code>TEXTDOMAIN</code>

     <br><dt>bindtextdomain<dd><a name="index-TEXTDOMAINDIR_0040r_007b_002c-environment-variable_007d-1179"></a>environment variable <code>TEXTDOMAINDIR</code>

     <br><dt>setlocale<dd>automatic

     <br><dt>Prerequisite<dd><code>. gettext.sh</code>

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd>&mdash;

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-sh</code>.

<ul class="menu">
<li><a accesskey="1" href="#Preparing-Shell-Scripts">Preparing Shell Scripts</a>:      Preparing Shell Scripts for Internationalization
<li><a accesskey="2" href="#gettext_002esh">gettext.sh</a>:                   Contents of <code>gettext.sh</code>
<li><a accesskey="3" href="#gettext-Invocation">gettext Invocation</a>:           Invoking the <code>gettext</code> program
<li><a accesskey="4" href="#ngettext-Invocation">ngettext Invocation</a>:          Invoking the <code>ngettext</code> program
<li><a accesskey="5" href="#envsubst-Invocation">envsubst Invocation</a>:          Invoking the <code>envsubst</code> program
<li><a accesskey="6" href="#eval_005fgettext-Invocation">eval_gettext Invocation</a>:      Invoking the <code>eval_gettext</code> function
<li><a accesskey="7" href="#eval_005fngettext-Invocation">eval_ngettext Invocation</a>:     Invoking the <code>eval_ngettext</code> function
</ul>

<div class="node">
<a name="Preparing-Shell-Scripts"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gettext_002esh">gettext.sh</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#sh">sh</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#sh">sh</a>

</div>

<h5 class="subsubsection">15.5.2.1 Preparing Shell Scripts for Internationalization</h5>

   <p><a name="index-preparing-shell-scripts-for-translation-1180"></a>
Preparing a shell script for internationalization is conceptually similar
to the steps described in <a href="#Sources">Sources</a>.  The concrete steps for shell
scripts are as follows.

     <ol type=1 start=1>
<li>Insert the line

     <pre class="smallexample">          . gettext.sh
</pre>
     <p>near the top of the script.  <code>gettext.sh</code> is a shell function library
that provides the functions
<code>eval_gettext</code> (see <a href="#eval_005fgettext-Invocation">eval_gettext Invocation</a>) and
<code>eval_ngettext</code> (see <a href="#eval_005fngettext-Invocation">eval_ngettext Invocation</a>). 
You have to ensure that <code>gettext.sh</code> can be found in the <code>PATH</code>.

     <li>Set and export the <code>TEXTDOMAIN</code> and <code>TEXTDOMAINDIR</code> environment
variables.  Usually <code>TEXTDOMAIN</code> is the package or program name, and
<code>TEXTDOMAINDIR</code> is the absolute pathname corresponding to
<code>$prefix/share/locale</code>, where <code>$prefix</code> is the installation location.

     <pre class="smallexample">          TEXTDOMAIN=@PACKAGE@
          export TEXTDOMAIN
          TEXTDOMAINDIR=@LOCALEDIR@
          export TEXTDOMAINDIR
</pre>
     <li>Prepare the strings for translation, as described in <a href="#Preparing-Strings">Preparing Strings</a>.

     <li>Simplify translatable strings so that they don't contain command substitution
(<code>"`...`"</code> or <code>"$(...)"</code>), variable access with defaulting (like
<code>${</code><var>variable</var><code>-</code><var>default</var><code>}</code>), access to positional arguments
(like <code>$0</code>, <code>$1</code>, ...) or highly volatile shell variables (like
<code>$?</code>). This can always be done through simple local code restructuring. 
For example,

     <pre class="smallexample">          echo "Usage: $0 [OPTION] FILE..."
</pre>
     <p>becomes

     <pre class="smallexample">          program_name=$0
          echo "Usage: $program_name [OPTION] FILE..."
</pre>
     <p>Similarly,

     <pre class="smallexample">          echo "Remaining files: `ls | wc -l`"
</pre>
     <p>becomes

     <pre class="smallexample">          filecount="`ls | wc -l`"
          echo "Remaining files: $filecount"
</pre>
     <li>For each translatable string, change the output command &lsquo;<samp><span class="samp">echo</span></samp>&rsquo; or
&lsquo;<samp><span class="samp">$echo</span></samp>&rsquo; to &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; (if the string contains no references to
shell variables) or to &lsquo;<samp><span class="samp">eval_gettext</span></samp>&rsquo; (if it refers to shell variables),
followed by a no-argument &lsquo;<samp><span class="samp">echo</span></samp>&rsquo; command (to account for the terminating
newline). Similarly, for cases with plural handling, replace a conditional
&lsquo;<samp><span class="samp">echo</span></samp>&rsquo; command with an invocation of &lsquo;<samp><span class="samp">ngettext</span></samp>&rsquo; or
&lsquo;<samp><span class="samp">eval_ngettext</span></samp>&rsquo;, followed by a no-argument &lsquo;<samp><span class="samp">echo</span></samp>&rsquo; command.

     <p>When doing this, you also need to add an extra backslash before the dollar
sign in references to shell variables, so that the &lsquo;<samp><span class="samp">eval_gettext</span></samp>&rsquo;
function receives the translatable string before the variable values are
substituted into it. For example,

     <pre class="smallexample">          echo "Remaining files: $filecount"
</pre>
     <p>becomes

     <pre class="smallexample">          eval_gettext "Remaining files: \$filecount"; echo
</pre>
     <p>If the output command is not &lsquo;<samp><span class="samp">echo</span></samp>&rsquo;, you can make it use &lsquo;<samp><span class="samp">echo</span></samp>&rsquo;
nevertheless, through the use of backquotes. However, note that inside
backquotes, backslashes must be doubled to be effective (because the
backquoting eats one level of backslashes). For example, assuming that
&lsquo;<samp><span class="samp">error</span></samp>&rsquo; is a shell function that signals an error,

     <pre class="smallexample">          error "file not found: $filename"
</pre>
     <p>is first transformed into

     <pre class="smallexample">          error "`echo \"file not found: \$filename\"`"
</pre>
     <p>which then becomes

     <pre class="smallexample">          error "`eval_gettext \"file not found: \\\$filename\"`"
</pre>
     </ol>

<div class="node">
<a name="gettext.sh"></a>
<a name="gettext_002esh"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gettext-Invocation">gettext Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Preparing-Shell-Scripts">Preparing Shell Scripts</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#sh">sh</a>

</div>

<h5 class="subsubsection">15.5.2.2 Contents of <code>gettext.sh</code></h5>

   <p><code>gettext.sh</code>, contained in the run-time package of GNU gettext, provides
the following:

     <ul>
<li>$echo
The variable <code>echo</code> is set to a command that outputs its first argument
and a newline, without interpreting backslashes in the argument string.

     <li>eval_gettext
See <a href="#eval_005fgettext-Invocation">eval_gettext Invocation</a>.

     <li>eval_ngettext
See <a href="#eval_005fngettext-Invocation">eval_ngettext Invocation</a>. 
</ul>

<div class="node">
<a name="gettext-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#ngettext-Invocation">ngettext Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gettext_002esh">gettext.sh</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#sh">sh</a>

</div>

<h5 class="subsubsection">15.5.2.3 Invoking the <code>gettext</code> program</h5>

   <p><a name="index-gettext-1181"></a><a name="index-g_t_0040code_007bgettext_007d-program_002c-usage-1182"></a>
<pre class="example">     gettext [<var>option</var>] [[<var>textdomain</var>] <var>msgid</var>]
     gettext [<var>option</var>] -s [<var>msgid</var>]...
</pre>
   <p><a name="index-lookup-message-translation-1183"></a>The <code>gettext</code> program displays the native language translation of a
textual message.

<p class="noindent"><strong>Arguments</strong>

     <dl>
<dt>&lsquo;<samp><span class="samp">-d </span><var>textdomain</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--domain=</span><var>textdomain</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1184"></a><a name="index-g_t_002d_002ddomain_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1185"></a>Retrieve translated messages from <var>textdomain</var>.  Usually a <var>textdomain</var>
corresponds to a package, a program, or a module of a program.

     <br><dt>&lsquo;<samp><span class="samp">-e</span></samp>&rsquo;<dd><a name="index-g_t_002de_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1186"></a>Enable expansion of some escape sequences.  This option is for compatibility
with the &lsquo;<samp><span class="samp">echo</span></samp>&rsquo; program or shell built-in.  The escape sequences
&lsquo;<samp><span class="samp">\a</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\b</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\c</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\f</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\n</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\r</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\t</span></samp>&rsquo;,
&lsquo;<samp><span class="samp">\v</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\\</span></samp>&rsquo;, and &lsquo;<samp><span class="samp">\</span></samp>&rsquo; followed by one to three octal digits, are
interpreted like the System V &lsquo;<samp><span class="samp">echo</span></samp>&rsquo; program did.

     <br><dt>&lsquo;<samp><span class="samp">-E</span></samp>&rsquo;<dd><a name="index-g_t_002dE_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1187"></a>This option is only for compatibility with the &lsquo;<samp><span class="samp">echo</span></samp>&rsquo; program or shell
built-in.  It has no effect.

     <br><dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1188"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1189"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-n</span></samp>&rsquo;<dd><a name="index-g_t_002dn_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1190"></a>Suppress trailing newline.  By default, <code>gettext</code> adds a newline to
the output.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1191"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1192"></a>Output version information and exit.

     <br><dt>&lsquo;<samp><span class="samp">[</span><var>textdomain</var><span class="samp">] </span><var>msgid</var></samp>&rsquo;<dd>Retrieve translated message corresponding to <var>msgid</var> from <var>textdomain</var>.

   </dl>

   <p>If the <var>textdomain</var> parameter is not given, the domain is determined from
the environment variable <code>TEXTDOMAIN</code>.  If the message catalog is not
found in the regular directory, another location can be specified with the
environment variable <code>TEXTDOMAINDIR</code>.

   <p>When used with the <code>-s</code> option the program behaves like the &lsquo;<samp><span class="samp">echo</span></samp>&rsquo;
command.  But it does not simply copy its arguments to stdout.  Instead those
messages found in the selected catalog are translated.

   <p>Note: <code>xgettext</code> supports only the one-argument form of the
<code>gettext</code> invocation, where no options are present and the
<var>textdomain</var> is implicit, from the environment.

<div class="node">
<a name="ngettext-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#envsubst-Invocation">envsubst Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gettext-Invocation">gettext Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#sh">sh</a>

</div>

<h5 class="subsubsection">15.5.2.4 Invoking the <code>ngettext</code> program</h5>

   <p><a name="index-ngettext-1193"></a><a name="index-g_t_0040code_007bngettext_007d-program_002c-usage-1194"></a>
<pre class="example">     ngettext [<var>option</var>] [<var>textdomain</var>] <var>msgid</var> <var>msgid-plural</var> <var>count</var>
</pre>
   <p><a name="index-lookup-plural-message-translation-1195"></a>The <code>ngettext</code> program displays the native language translation of a
textual message whose grammatical form depends on a number.

<p class="noindent"><strong>Arguments</strong>

     <dl>
<dt>&lsquo;<samp><span class="samp">-d </span><var>textdomain</var></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--domain=</span><var>textdomain</var></samp>&rsquo;<dd><a name="index-g_t_002dd_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1196"></a><a name="index-g_t_002d_002ddomain_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1197"></a>Retrieve translated messages from <var>textdomain</var>.  Usually a <var>textdomain</var>
corresponds to a package, a program, or a module of a program.

     <br><dt>&lsquo;<samp><span class="samp">-e</span></samp>&rsquo;<dd><a name="index-g_t_002de_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1198"></a>Enable expansion of some escape sequences.  This option is for compatibility
with the &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; program.  The escape sequences
&lsquo;<samp><span class="samp">\a</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\b</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\c</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\f</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\n</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\r</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\t</span></samp>&rsquo;,
&lsquo;<samp><span class="samp">\v</span></samp>&rsquo;, &lsquo;<samp><span class="samp">\\</span></samp>&rsquo;, and &lsquo;<samp><span class="samp">\</span></samp>&rsquo; followed by one to three octal digits, are
interpreted like the System V &lsquo;<samp><span class="samp">echo</span></samp>&rsquo; program did.

     <br><dt>&lsquo;<samp><span class="samp">-E</span></samp>&rsquo;<dd><a name="index-g_t_002dE_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1199"></a>This option is only for compatibility with the &lsquo;<samp><span class="samp">gettext</span></samp>&rsquo; program.  It has
no effect.

     <br><dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1200"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1201"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1202"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1203"></a>Output version information and exit.

     <br><dt>&lsquo;<samp><var>textdomain</var></samp>&rsquo;<dd>Retrieve translated message from <var>textdomain</var>.

     <br><dt>&lsquo;<samp><var>msgid</var> <var>msgid-plural</var></samp>&rsquo;<dd>Translate <var>msgid</var> (English singular) / <var>msgid-plural</var> (English plural).

     <br><dt>&lsquo;<samp><var>count</var></samp>&rsquo;<dd>Choose singular/plural form based on this value.

   </dl>

   <p>If the <var>textdomain</var> parameter is not given, the domain is determined from
the environment variable <code>TEXTDOMAIN</code>.  If the message catalog is not
found in the regular directory, another location can be specified with the
environment variable <code>TEXTDOMAINDIR</code>.

   <p>Note: <code>xgettext</code> supports only the three-arguments form of the
<code>ngettext</code> invocation, where no options are present and the
<var>textdomain</var> is implicit, from the environment.

<div class="node">
<a name="envsubst-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#eval_005fgettext-Invocation">eval_gettext Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#ngettext-Invocation">ngettext Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#sh">sh</a>

</div>

<h5 class="subsubsection">15.5.2.5 Invoking the <code>envsubst</code> program</h5>

   <p><a name="index-envsubst-1204"></a><a name="index-g_t_0040code_007benvsubst_007d-program_002c-usage-1205"></a>
<pre class="example">     envsubst [<var>option</var>] [<var>shell-format</var>]
</pre>
   <p><a name="index-shell-format-string-1206"></a><a name="index-dollar-substitution-1207"></a><a name="index-environment-variables-1208"></a>The <code>envsubst</code> program substitutes the values of environment variables.

<p class="noindent"><strong>Operation mode</strong>

     <dl>
<dt>&lsquo;<samp><span class="samp">-v</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--variables</span></samp>&rsquo;<dd><a name="index-g_t_002dv_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1209"></a><a name="index-g_t_002d_002dvariables_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1210"></a>Output the variables occurring in <var>shell-format</var>.

   </dl>

<p class="noindent"><strong>Informative output</strong>

     <dl>
<dt>&lsquo;<samp><span class="samp">-h</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--help</span></samp>&rsquo;<dd><a name="index-g_t_002dh_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1211"></a><a name="index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1212"></a>Display this help and exit.

     <br><dt>&lsquo;<samp><span class="samp">-V</span></samp>&rsquo;<dt>&lsquo;<samp><span class="samp">--version</span></samp>&rsquo;<dd><a name="index-g_t_002dV_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1213"></a><a name="index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1214"></a>Output version information and exit.

   </dl>

   <p>In normal operation mode, standard input is copied to standard output,
with references to environment variables of the form <code>$VARIABLE</code> or
<code>${VARIABLE}</code> being replaced with the corresponding values.  If a
<var>shell-format</var> is given, only those environment variables that are
referenced in <var>shell-format</var> are substituted; otherwise all environment
variables references occurring in standard input are substituted.

   <p>These substitutions are a subset of the substitutions that a shell performs
on unquoted and double-quoted strings.  Other kinds of substitutions done
by a shell, such as <code>${</code><var>variable</var><code>-</code><var>default</var><code>}</code> or
<code>$(</code><var>command-list</var><code>)</code> or <code>`</code><var>command-list</var><code>`</code>, are not performed
by the <code>envsubst</code> program, due to security reasons.

   <p>When <code>--variables</code> is used, standard input is ignored, and the output
consists of the environment variables that are referenced in
<var>shell-format</var>, one per line.

<div class="node">
<a name="eval_gettext-Invocation"></a>
<a name="eval_005fgettext-Invocation"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#eval_005fngettext-Invocation">eval_ngettext Invocation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#envsubst-Invocation">envsubst Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#sh">sh</a>

</div>

<h5 class="subsubsection">15.5.2.6 Invoking the <code>eval_gettext</code> function</h5>

   <p><a name="index-g_t_0040code_007beval_005fgettext_007d-function_002c-usage-1215"></a>
<pre class="example">     eval_gettext <var>msgid</var>
</pre>
   <p><a name="index-lookup-message-translation-1216"></a>This function outputs the native language translation of a textual message,
performing dollar-substitution on the result.  Note that only shell variables
mentioned in <var>msgid</var> will be dollar-substituted in the result.

<div class="node">
<a name="eval_ngettext-Invocation"></a>
<a name="eval_005fngettext-Invocation"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#eval_005fgettext-Invocation">eval_gettext Invocation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#sh">sh</a>

</div>

<h5 class="subsubsection">15.5.2.7 Invoking the <code>eval_ngettext</code> function</h5>

   <p><a name="index-g_t_0040code_007beval_005fngettext_007d-function_002c-usage-1217"></a>
<pre class="example">     eval_ngettext <var>msgid</var> <var>msgid-plural</var> <var>count</var>
</pre>
   <p><a name="index-lookup-plural-message-translation-1218"></a>This function outputs the native language translation of a textual message
whose grammatical form depends on a number, performing dollar-substitution
on the result.  Note that only shell variables mentioned in <var>msgid</var> or
<var>msgid-plural</var> will be dollar-substituted in the result.

<div class="node">
<a name="bash"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Python">Python</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#sh">sh</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.3 bash - Bourne-Again Shell Script</h4>

   <p><a name="index-bash-1219"></a>
GNU <code>bash</code> 2.0 or newer has a special shorthand for translating a
string and substituting variable values in it: <code>$"msgid"</code>.  But
the use of this construct is <strong>discouraged</strong>, due to the security
holes it opens and due to its portability problems.

   <p>The security holes of <code>$"..."</code> come from the fact that after looking up
the translation of the string, <code>bash</code> processes it like it processes
any double-quoted string: dollar and backquote processing, like &lsquo;<samp><span class="samp">eval</span></samp>&rsquo;
does.

     <ol type=1 start=1>
<li>In a locale whose encoding is one of BIG5, BIG5-HKSCS, GBK, GB18030, SHIFT_JIS,
JOHAB, some double-byte characters have a second byte whose value is
<code>0x60</code>.  For example, the byte sequence <code>\xe0\x60</code> is a single
character in these locales.  Many versions of <code>bash</code> (all versions
up to bash-2.05, and newer versions on platforms without <code>mbsrtowcs()</code>
function) don't know about character boundaries and see a backquote character
where there is only a particular Chinese character.  Thus it can start
executing part of the translation as a command list.  This situation can occur
even without the translator being aware of it: if the translator provides
translations in the UTF-8 encoding, it is the <code>gettext()</code> function which
will, during its conversion from the translator's encoding to the user's
locale's encoding, produce the dangerous <code>\x60</code> bytes.

     <li>A translator could - voluntarily or inadvertently - use backquotes
<code>"`...`"</code> or dollar-parentheses <code>"$(...)"</code> in her translations. 
The enclosed strings would be executed as command lists by the shell.
        </ol>

   <p>The portability problem is that <code>bash</code> must be built with
internationalization support; this is normally not the case on systems
that don't have the <code>gettext()</code> function in libc.

<div class="node">
<a name="Python"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Common-Lisp">Common Lisp</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#bash">bash</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.4 Python</h4>

   <p><a name="index-Python-1220"></a>
     <dl>
<dt>RPMs<dd>python

     <br><dt>File extension<dd><code>py</code>

     <br><dt>String syntax<dd><code>'abc'</code>, <code>u'abc'</code>, <code>r'abc'</code>, <code>ur'abc'</code>,
<br><code>"abc"</code>, <code>u"abc"</code>, <code>r"abc"</code>, <code>ur"abc"</code>,
<br><code>'''abc'''</code>, <code>u'''abc'''</code>, <code>r'''abc'''</code>, <code>ur'''abc'''</code>,
<br><code>"""abc"""</code>, <code>u"""abc"""</code>, <code>r"""abc"""</code>, <code>ur"""abc"""</code>

     <br><dt>gettext shorthand<dd><code>_('abc')</code> etc.

     <br><dt>gettext/ngettext functions<dd><code>gettext.gettext</code>, <code>gettext.dgettext</code>,
<code>gettext.ngettext</code>, <code>gettext.dngettext</code>,
also <code>ugettext</code>, <code>ungettext</code>

     <br><dt>textdomain<dd><code>gettext.textdomain</code> function, or
<code>gettext.install(</code><var>domain</var><code>)</code> function

     <br><dt>bindtextdomain<dd><code>gettext.bindtextdomain</code> function, or
<code>gettext.install(</code><var>domain</var><code>,</code><var>localedir</var><code>)</code> function

     <br><dt>setlocale<dd>not used by the gettext emulation

     <br><dt>Prerequisite<dd><code>import gettext</code>

     <br><dt>Use or emulate GNU gettext<dd>emulate

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd><code>'...%(ident)d...' % { 'ident': value }</code>

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-python</code>.

   <p>A note about format strings: Python supports format strings with unnamed
arguments, such as <code>'...%d...'</code>, and format strings with named arguments,
such as <code>'...%(ident)d...'</code>.  The latter are preferable for
internationalized programs, for two reasons:

     <ul>
<li>When a format string takes more than one argument, the translator can provide
a translation that uses the arguments in a different order, if the format
string uses named arguments.  For example, the translator can reformulate
     <pre class="smallexample">          "'%(volume)s' has only %(freespace)d bytes free."
</pre>
     <p class="noindent">to
     <pre class="smallexample">          "Only %(freespace)d bytes free on '%(volume)s'."
</pre>
     <p class="noindent">Additionally, the identifiers also provide some context to the translator.

     <li>In the context of plural forms, the format string used for the singular form
does not use the numeric argument in many languages.  Even in English, one
prefers to write <code>"one hour"</code> instead of <code>"1 hour"</code>.  Omitting
individual arguments from format strings like this is only possible with
the named argument syntax.  (With unnamed arguments, Python &ndash; unlike C &ndash;
verifies that the format string uses all supplied arguments.) 
</ul>

<div class="node">
<a name="Common-Lisp"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#clisp-C">clisp C</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Python">Python</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.5 GNU clisp - Common Lisp</h4>

   <p><a name="index-Common-Lisp-1221"></a><a name="index-Lisp-1222"></a><a name="index-clisp-1223"></a>
     <dl>
<dt>RPMs<dd>clisp 2.28 or newer

     <br><dt>File extension<dd><code>lisp</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>(_ "abc")</code>, <code>(ENGLISH "abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>i18n:gettext</code>, <code>i18n:ngettext</code>

     <br><dt>textdomain<dd><code>i18n:textdomain</code>

     <br><dt>bindtextdomain<dd><code>i18n:textdomaindir</code>

     <br><dt>setlocale<dd>automatic

     <br><dt>Prerequisite<dd>&mdash;

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext -k_ -kENGLISH</code>

     <br><dt>Formatting with positions<dd><code>format "~1@*~D ~0@*~D"</code>

     <br><dt>Portability<dd>On platforms without gettext, no translation.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-clisp</code>.

<div class="node">
<a name="clisp-C"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Emacs-Lisp">Emacs Lisp</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Common-Lisp">Common Lisp</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.6 GNU clisp C sources</h4>

   <p><a name="index-clisp-C-sources-1224"></a>
     <dl>
<dt>RPMs<dd>clisp

     <br><dt>File extension<dd><code>d</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>ENGLISH ? "abc" : ""</code>
<br><code>GETTEXT("abc")</code>
<br><code>GETTEXTL("abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>clgettext</code>, <code>clgettextl</code>

     <br><dt>textdomain<dd>&mdash;

     <br><dt>bindtextdomain<dd>&mdash;

     <br><dt>setlocale<dd>automatic

     <br><dt>Prerequisite<dd><code>#include "lispbibl.c"</code>

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>clisp-xgettext</code>

     <br><dt>Formatting with positions<dd><code>fprintf "%2$d %1$d"</code>

     <br><dt>Portability<dd>On platforms without gettext, no translation.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

<div class="node">
<a name="Emacs-Lisp"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#librep">librep</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#clisp-C">clisp C</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.7 Emacs Lisp</h4>

   <p><a name="index-Emacs-Lisp-1225"></a>
     <dl>
<dt>RPMs<dd>emacs, xemacs

     <br><dt>File extension<dd><code>el</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>(_"abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>, <code>dgettext</code> (xemacs only)

     <br><dt>textdomain<dd><code>domain</code> special form (xemacs only)

     <br><dt>bindtextdomain<dd><code>bind-text-domain</code> function (xemacs only)

     <br><dt>setlocale<dd>automatic

     <br><dt>Prerequisite<dd>&mdash;

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd><code>format "%2$d %1$d"</code>

     <br><dt>Portability<dd>Only XEmacs.  Without <code>I18N3</code> defined at build time, no translation.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

<div class="node">
<a name="librep"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Scheme">Scheme</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Emacs-Lisp">Emacs Lisp</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.8 librep</h4>

   <p><a name="index-g_t_0040code_007blibrep_007d-Lisp-1226"></a>
     <dl>
<dt>RPMs<dd>librep 0.15.3 or newer

     <br><dt>File extension<dd><code>jl</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>(_"abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>

     <br><dt>textdomain<dd><code>textdomain</code> function

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code> function

     <br><dt>setlocale<dd>&mdash;

     <br><dt>Prerequisite<dd><code>(require 'rep.i18n.gettext)</code>

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd><code>format "%2$d %1$d"</code>

     <br><dt>Portability<dd>On platforms without gettext, no translation.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-librep</code>.

<div class="node">
<a name="Scheme"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Smalltalk">Smalltalk</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#librep">librep</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.9 GNU guile - Scheme</h4>

   <p><a name="index-Scheme-1227"></a><a name="index-guile-1228"></a>
     <dl>
<dt>RPMs<dd>guile

     <br><dt>File extension<dd><code>scm</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>(_ "abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>, <code>ngettext</code>

     <br><dt>textdomain<dd><code>textdomain</code>

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code>

     <br><dt>setlocale<dd><code>(catch #t (lambda () (setlocale LC_ALL "")) (lambda args #f))</code>

     <br><dt>Prerequisite<dd><code>(use-modules (ice-9 format))</code>

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext -k_</code>

     <br><dt>Formatting with positions<dd><!-- @code{format "~1@@*~D ~0@@*~D~2@@*"}, requires @code{(use-modules (ice-9 format))} -->
<!-- not yet supported -->
&mdash;

     <br><dt>Portability<dd>On platforms without gettext, no translation.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-guile</code>.

<div class="node">
<a name="Smalltalk"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Java">Java</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Scheme">Scheme</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.10 GNU Smalltalk</h4>

   <p><a name="index-Smalltalk-1229"></a>
     <dl>
<dt>RPMs<dd>smalltalk

     <br><dt>File extension<dd><code>st</code>

     <br><dt>String syntax<dd><code>'abc'</code>

     <br><dt>gettext shorthand<dd><code>NLS ? 'abc'</code>

     <br><dt>gettext/ngettext functions<dd><code>LcMessagesDomain&gt;&gt;#at:</code>, <code>LcMessagesDomain&gt;&gt;#at:plural:with:</code>

     <br><dt>textdomain<dd><code>LcMessages&gt;&gt;#domain:localeDirectory:</code> (returns a <code>LcMessagesDomain</code>
object).<br>
Example: <code>I18N Locale default messages domain: 'gettext' localeDirectory: /usr/local/share/locale'</code>

     <br><dt>bindtextdomain<dd><code>LcMessages&gt;&gt;#domain:localeDirectory:</code>, see above.

     <br><dt>setlocale<dd>Automatic if you use <code>I18N Locale default</code>.

     <br><dt>Prerequisite<dd><code>PackageLoader fileInPackage: 'I18N'!</code>

     <br><dt>Use or emulate GNU gettext<dd>emulate

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd><code>'%1 %2' bindWith: 'Hello' with: 'world'</code>

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory:
<code>hello-smalltalk</code>.

<div class="node">
<a name="Java"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#C_0023">C#</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Smalltalk">Smalltalk</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.11 Java</h4>

   <p><a name="index-Java-1230"></a>
     <dl>
<dt>RPMs<dd>java, java2

     <br><dt>File extension<dd><code>java</code>

     <br><dt>String syntax<dd>"abc"

     <br><dt>gettext shorthand<dd>_("abc")

     <br><dt>gettext/ngettext functions<dd><code>GettextResource.gettext</code>, <code>GettextResource.ngettext</code>,
<code>GettextResource.pgettext</code>, <code>GettextResource.npgettext</code>

     <br><dt>textdomain<dd>&mdash;, use <code>ResourceBundle.getResource</code> instead

     <br><dt>bindtextdomain<dd>&mdash;, use CLASSPATH instead

     <br><dt>setlocale<dd>automatic

     <br><dt>Prerequisite<dd>&mdash;

     <br><dt>Use or emulate GNU gettext<dd>&mdash;, uses a Java specific message catalog format

     <br><dt>Extractor<dd><code>xgettext -k_</code>

     <br><dt>Formatting with positions<dd><code>MessageFormat.format "{1,number} {0,number}"</code>

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>Before marking strings as internationalizable, uses of the string
concatenation operator need to be converted to <code>MessageFormat</code>
applications.  For example, <code>"file "+filename+" not found"</code> becomes
<code>MessageFormat.format("file {0} not found", new Object[] { filename })</code>. 
Only after this is done, can the strings be marked and extracted.

   <p>GNU gettext uses the native Java internationalization mechanism, namely
<code>ResourceBundle</code>s.  There are two formats of <code>ResourceBundle</code>s:
<code>.properties</code> files and <code>.class</code> files.  The <code>.properties</code>
format is a text file which the translators can directly edit, like PO
files, but which doesn't support plural forms.  Whereas the <code>.class</code>
format is compiled from <code>.java</code> source code and can support plural
forms (provided it is accessed through an appropriate API, see below).

   <p>To convert a PO file to a <code>.properties</code> file, the <code>msgcat</code>
program can be used with the option <code>--properties-output</code>.  To convert
a <code>.properties</code> file back to a PO file, the <code>msgcat</code> program
can be used with the option <code>--properties-input</code>.  All the tools
that manipulate PO files can work with <code>.properties</code> files as well,
if given the <code>--properties-input</code> and/or <code>--properties-output</code>
option.

   <p>To convert a PO file to a ResourceBundle class, the <code>msgfmt</code> program
can be used with the option <code>--java</code> or <code>--java2</code>.  To convert a
ResourceBundle back to a PO file, the <code>msgunfmt</code> program can be used
with the option <code>--java</code>.

   <p>Two different programmatic APIs can be used to access ResourceBundles. 
Note that both APIs work with all kinds of ResourceBundles, whether
GNU gettext generated classes, or other <code>.class</code> or <code>.properties</code>
files.

     <ol type=1 start=1>
<li>The <code>java.util.ResourceBundle</code> API.

     <p>In particular, its <code>getString</code> function returns a string translation. 
Note that a missing translation yields a <code>MissingResourceException</code>.

     <p>This has the advantage of being the standard API.  And it does not require
any additional libraries, only the <code>msgcat</code> generated <code>.properties</code>
files or the <code>msgfmt</code> generated <code>.class</code> files.  But it cannot do
plural handling, even if the resource was generated by <code>msgfmt</code> from
a PO file with plural handling.

     <li>The <code>gnu.gettext.GettextResource</code> API.

     <p>Reference documentation in Javadoc 1.1 style format is in the
<a href="javadoc2/index.html">javadoc2 directory</a>.

     <p>Its <code>gettext</code> function returns a string translation.  Note that when
a translation is missing, the <var>msgid</var> argument is returned unchanged.

     <p>This has the advantage of having the <code>ngettext</code> function for plural
handling and the <code>pgettext</code> and <code>npgettext</code> for strings constraint
to a particular context.

     <p><a name="index-g_t_0040code_007blibintl_007d-for-Java-1231"></a>To use this API, one needs the <code>libintl.jar</code> file which is part of
the GNU gettext package and distributed under the LGPL.
        </ol>

   <p>Four examples, using the second API, are available in the <samp><span class="file">examples</span></samp>
directory: <code>hello-java</code>, <code>hello-java-awt</code>, <code>hello-java-swing</code>,
<code>hello-java-qtjambi</code>.

   <p>Now, to make use of the API and define a shorthand for &lsquo;<samp><span class="samp">getString</span></samp>&rsquo;,
there are three idioms that you can choose from:

     <ul>
<li>(This one assumes Java 1.5 or newer.) 
In a unique class of your project, say &lsquo;<samp><span class="samp">Util</span></samp>&rsquo;, define a static variable
holding the <code>ResourceBundle</code> instance and the shorthand:

     <pre class="smallexample">          private static ResourceBundle myResources =
            ResourceBundle.getBundle("domain-name");
          public static String _(String s) {
            return myResources.getString(s);
          }
</pre>
     <p>All classes containing internationalized strings then contain

     <pre class="smallexample">          import static Util._;
</pre>
     <p class="noindent">and the shorthand is used like this:

     <pre class="smallexample">          System.out.println(_("Operation completed."));
</pre>
     <li>In a unique class of your project, say &lsquo;<samp><span class="samp">Util</span></samp>&rsquo;, define a static variable
holding the <code>ResourceBundle</code> instance:

     <pre class="smallexample">          public static ResourceBundle myResources =
            ResourceBundle.getBundle("domain-name");
</pre>
     <p>All classes containing internationalized strings then contain

     <pre class="smallexample">          private static ResourceBundle res = Util.myResources;
          private static String _(String s) { return res.getString(s); }
</pre>
     <p class="noindent">and the shorthand is used like this:

     <pre class="smallexample">          System.out.println(_("Operation completed."));
</pre>
     <li>You add a class with a very short name, say &lsquo;<samp><span class="samp">S</span></samp>&rsquo;, containing just the
definition of the resource bundle and of the shorthand:

     <pre class="smallexample">          public class S {
            public static ResourceBundle myResources =
              ResourceBundle.getBundle("domain-name");
            public static String _(String s) {
              return myResources.getString(s);
            }
          }
</pre>
     <p class="noindent">and the shorthand is used like this:

     <pre class="smallexample">          System.out.println(S._("Operation completed."));
</pre>
     </ul>

   <p>Which of the three idioms you choose, will depend on whether your project
requires portability to Java versions prior to Java 1.5 and, if so, whether
copying two lines of codes into every class is more acceptable in your project
than a class with a single-letter name.

<div class="node">
<a name="C%23"></a>
<a name="C_0023"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#gawk">gawk</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Java">Java</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.12 C#</h4>

   <p><a name="index-C_0023-1232"></a>
     <dl>
<dt>RPMs<dd>pnet, pnetlib 0.6.2 or newer, or mono 0.29 or newer

     <br><dt>File extension<dd><code>cs</code>

     <br><dt>String syntax<dd><code>"abc"</code>, <code>@"abc"</code>

     <br><dt>gettext shorthand<dd>_("abc")

     <br><dt>gettext/ngettext functions<dd><code>GettextResourceManager.GetString</code>,
<code>GettextResourceManager.GetPluralString</code>
<code>GettextResourceManager.GetParticularString</code>
<code>GettextResourceManager.GetParticularPluralString</code>

     <br><dt>textdomain<dd><code>new GettextResourceManager(domain)</code>

     <br><dt>bindtextdomain<dd>&mdash;, compiled message catalogs are located in subdirectories of the directory
containing the executable

     <br><dt>setlocale<dd>automatic

     <br><dt>Prerequisite<dd>&mdash;

     <br><dt>Use or emulate GNU gettext<dd>&mdash;, uses a C# specific message catalog format

     <br><dt>Extractor<dd><code>xgettext -k_</code>

     <br><dt>Formatting with positions<dd><code>String.Format "{1} {0}"</code>

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>Before marking strings as internationalizable, uses of the string
concatenation operator need to be converted to <code>String.Format</code>
invocations.  For example, <code>"file "+filename+" not found"</code> becomes
<code>String.Format("file {0} not found", filename)</code>. 
Only after this is done, can the strings be marked and extracted.

   <p>GNU gettext uses the native C#/.NET internationalization mechanism, namely
the classes <code>ResourceManager</code> and <code>ResourceSet</code>.  Applications
use the <code>ResourceManager</code> methods to retrieve the native language
translation of strings.  An instance of <code>ResourceSet</code> is the in-memory
representation of a message catalog file.  The <code>ResourceManager</code> loads
and accesses <code>ResourceSet</code> instances as needed to look up the
translations.

   <p>There are two formats of <code>ResourceSet</code>s that can be directly loaded by
the C# runtime: <code>.resources</code> files and <code>.dll</code> files.

     <ul>
<li>The <code>.resources</code> format is a binary file usually generated through the
<code>resgen</code> or <code>monoresgen</code> utility, but which doesn't support plural
forms.  <code>.resources</code> files can also be embedded in .NET <code>.exe</code> files. 
This only affects whether a file system access is performed to load the message
catalog; it doesn't affect the contents of the message catalog.

     <li>On the other hand, the <code>.dll</code> format is a binary file that is compiled
from <code>.cs</code> source code and can support plural forms (provided it is
accessed through the GNU gettext API, see below). 
</ul>

   <p>Note that these .NET <code>.dll</code> and <code>.exe</code> files are not tied to a
particular platform; their file format and GNU gettext for C# can be used
on any platform.

   <p>To convert a PO file to a <code>.resources</code> file, the <code>msgfmt</code> program
can be used with the option &lsquo;<samp><span class="samp">--csharp-resources</span></samp>&rsquo;.  To convert a
<code>.resources</code> file back to a PO file, the <code>msgunfmt</code> program can be
used with the option &lsquo;<samp><span class="samp">--csharp-resources</span></samp>&rsquo;.  You can also, in some cases,
use the <code>resgen</code> program (from the <code>pnet</code> package) or the
<code>monoresgen</code> program (from the <code>mono</code>/<code>mcs</code> package).  These
programs can also convert a <code>.resources</code> file back to a PO file.  But
beware: as of this writing (January 2004), the <code>monoresgen</code> converter is
quite buggy and the <code>resgen</code> converter ignores the encoding of the PO
files.

   <p>To convert a PO file to a <code>.dll</code> file, the <code>msgfmt</code> program can be
used with the option <code>--csharp</code>.  The result will be a <code>.dll</code> file
containing a subclass of <code>GettextResourceSet</code>, which itself is a subclass
of <code>ResourceSet</code>.  To convert a <code>.dll</code> file containing a
<code>GettextResourceSet</code> subclass back to a PO file, the <code>msgunfmt</code>
program can be used with the option <code>--csharp</code>.

   <p>The advantages of the <code>.dll</code> format over the <code>.resources</code> format
are:

     <ol type=1 start=1>
<li>Freedom to localize: Users can add their own translations to an application
after it has been built and distributed.  Whereas when the programmer uses
a <code>ResourceManager</code> constructor provided by the system, the set of
<code>.resources</code> files for an application must be specified when the
application is built and cannot be extended afterwards. 
<!-- If this were the only issue with the @code{.resources} format, one could -->
<!-- use the @code{ResourceManager.CreateFileBasedResourceManager} function. -->

     <li>Plural handling: A message catalog in <code>.dll</code> format supports the plural
handling function <code>GetPluralString</code>.  Whereas <code>.resources</code> files can
only contain data and only support lookups that depend on a single string.

     <li>Context handling: A message catalog in <code>.dll</code> format supports the
query-with-context functions <code>GetParticularString</code> and
<code>GetParticularPluralString</code>.  Whereas <code>.resources</code> files can
only contain data and only support lookups that depend on a single string.

     <li>The <code>GettextResourceManager</code> that loads the message catalogs in
<code>.dll</code> format also provides for inheritance on a per-message basis. 
For example, in Austrian (<code>de_AT</code>) locale, translations from the German
(<code>de</code>) message catalog will be used for messages not found in the
Austrian message catalog.  This has the consequence that the Austrian
translators need only translate those few messages for which the translation
into Austrian differs from the German one.  Whereas when working with
<code>.resources</code> files, each message catalog must provide the translations
of all messages by itself.

     <li>The <code>GettextResourceManager</code> that loads the message catalogs in
<code>.dll</code> format also provides for a fallback: The English <var>msgid</var> is
returned when no translation can be found.  Whereas when working with
<code>.resources</code> files, a language-neutral <code>.resources</code> file must
explicitly be provided as a fallback.
        </ol>

   <p>On the side of the programmatic APIs, the programmer can use either the
standard <code>ResourceManager</code> API and the GNU <code>GettextResourceManager</code>
API.  The latter is an extension of the former, because
<code>GettextResourceManager</code> is a subclass of <code>ResourceManager</code>.

     <ol type=1 start=1>
<li>The <code>System.Resources.ResourceManager</code> API.

     <p>This API works with resources in <code>.resources</code> format.

     <p>The creation of the <code>ResourceManager</code> is done through
     <pre class="smallexample">            new ResourceManager(domainname, Assembly.GetExecutingAssembly())
</pre>
     <p class="noindent">The <code>GetString</code> function returns a string's translation.  Note that this
function returns null when a translation is missing (i.e. not even found in
the fallback resource file).

     <li>The <code>GNU.Gettext.GettextResourceManager</code> API.

     <p>This API works with resources in <code>.dll</code> format.

     <p>Reference documentation is in the
<a href="csharpdoc/index.html">csharpdoc directory</a>.

     <p>The creation of the <code>ResourceManager</code> is done through
     <pre class="smallexample">            new GettextResourceManager(domainname)
</pre>
     <p>The <code>GetString</code> function returns a string's translation.  Note that when
a translation is missing, the <var>msgid</var> argument is returned unchanged.

     <p>The <code>GetPluralString</code> function returns a string translation with plural
handling, like the <code>ngettext</code> function in C.

     <p>The <code>GetParticularString</code> function returns a string's translation,
specific to a particular context, like the <code>pgettext</code> function in C. 
Note that when a translation is missing, the <var>msgid</var> argument is returned
unchanged.

     <p>The <code>GetParticularPluralString</code> function returns a string translation,
specific to a particular context, with plural handling, like the
<code>npgettext</code> function in C.

     <p><a name="index-g_t_0040code_007blibintl_007d-for-C_0023-1233"></a>To use this API, one needs the <code>GNU.Gettext.dll</code> file which is part of
the GNU gettext package and distributed under the LGPL.
        </ol>

   <p>You can also mix both approaches: use the
<code>GNU.Gettext.GettextResourceManager</code> constructor, but otherwise use
only the <code>ResourceManager</code> type and only the <code>GetString</code> method. 
This is appropriate when you want to profit from the tools for PO files,
but don't want to change an existing source code that uses
<code>ResourceManager</code> and don't (yet) need the <code>GetPluralString</code> method.

   <p>Two examples, using the second API, are available in the <samp><span class="file">examples</span></samp>
directory: <code>hello-csharp</code>, <code>hello-csharp-forms</code>.

   <p>Now, to make use of the API and define a shorthand for &lsquo;<samp><span class="samp">GetString</span></samp>&rsquo;,
there are two idioms that you can choose from:

     <ul>
<li>In a unique class of your project, say &lsquo;<samp><span class="samp">Util</span></samp>&rsquo;, define a static variable
holding the <code>ResourceManager</code> instance:

     <pre class="smallexample">          public static GettextResourceManager MyResourceManager =
            new GettextResourceManager("domain-name");
</pre>
     <p>All classes containing internationalized strings then contain

     <pre class="smallexample">          private static GettextResourceManager Res = Util.MyResourceManager;
          private static String _(String s) { return Res.GetString(s); }
</pre>
     <p class="noindent">and the shorthand is used like this:

     <pre class="smallexample">          Console.WriteLine(_("Operation completed."));
</pre>
     <li>You add a class with a very short name, say &lsquo;<samp><span class="samp">S</span></samp>&rsquo;, containing just the
definition of the resource manager and of the shorthand:

     <pre class="smallexample">          public class S {
            public static GettextResourceManager MyResourceManager =
              new GettextResourceManager("domain-name");
            public static String _(String s) {
               return MyResourceManager.GetString(s);
            }
          }
</pre>
     <p class="noindent">and the shorthand is used like this:

     <pre class="smallexample">          Console.WriteLine(S._("Operation completed."));
</pre>
     </ul>

   <p>Which of the two idioms you choose, will depend on whether copying two lines
of codes into every class is more acceptable in your project than a class
with a single-letter name.

<div class="node">
<a name="gawk"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Pascal">Pascal</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#C_0023">C#</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.13 GNU awk</h4>

   <p><a name="index-awk-1234"></a><a name="index-gawk-1235"></a>
     <dl>
<dt>RPMs<dd>gawk 3.1 or newer

     <br><dt>File extension<dd><code>awk</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>_"abc"</code>

     <br><dt>gettext/ngettext functions<dd><code>dcgettext</code>, missing <code>dcngettext</code> in gawk-3.1.0

     <br><dt>textdomain<dd><code>TEXTDOMAIN</code> variable

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code> function

     <br><dt>setlocale<dd>automatic, but missing <code>setlocale (LC_MESSAGES, "")</code> in gawk-3.1.0

     <br><dt>Prerequisite<dd>&mdash;

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd><code>printf "%2$d %1$d"</code> (GNU awk only)

     <br><dt>Portability<dd>On platforms without gettext, no translation.  On non-GNU awks, you must
define <code>dcgettext</code>, <code>dcngettext</code> and <code>bindtextdomain</code>
yourself.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-gawk</code>.

<div class="node">
<a name="Pascal"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#wxWidgets">wxWidgets</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#gawk">gawk</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.14 Pascal - Free Pascal Compiler</h4>

   <p><a name="index-Pascal-1236"></a><a name="index-Free-Pascal-1237"></a><a name="index-Object-Pascal-1238"></a>
     <dl>
<dt>RPMs<dd>fpk

     <br><dt>File extension<dd><code>pp</code>, <code>pas</code>

     <br><dt>String syntax<dd><code>'abc'</code>

     <br><dt>gettext shorthand<dd>automatic

     <br><dt>gettext/ngettext functions<dd>&mdash;, use <code>ResourceString</code> data type instead

     <br><dt>textdomain<dd>&mdash;, use <code>TranslateResourceStrings</code> function instead

     <br><dt>bindtextdomain<dd>&mdash;, use <code>TranslateResourceStrings</code> function instead

     <br><dt>setlocale<dd>automatic, but uses only LANG, not LC_MESSAGES or LC_ALL

     <br><dt>Prerequisite<dd><code>{$mode delphi}</code> or <code>{$mode objfpc}</code><br><code>uses gettext;</code>

     <br><dt>Use or emulate GNU gettext<dd>emulate partially

     <br><dt>Extractor<dd><code>ppc386</code> followed by <code>xgettext</code> or <code>rstconv</code>

     <br><dt>Formatting with positions<dd><code>uses sysutils;</code><br><code>format "%1:d %0:d"</code>

     <br><dt>Portability<dd>?

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>The Pascal compiler has special support for the <code>ResourceString</code> data
type.  It generates a <code>.rst</code> file.  This is then converted to a
<code>.pot</code> file by use of <code>xgettext</code> or <code>rstconv</code>.  At runtime,
a <code>.mo</code> file corresponding to translations of this <code>.pot</code> file
can be loaded using the <code>TranslateResourceStrings</code> function in the
<code>gettext</code> unit.

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-pascal</code>.

<div class="node">
<a name="wxWidgets"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#YCP">YCP</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Pascal">Pascal</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.15 wxWidgets library</h4>

   <p><a name="index-g_t_0040code_007bwxWidgets_007d-library-1239"></a>
     <dl>
<dt>RPMs<dd>wxGTK, gettext

     <br><dt>File extension<dd><code>cpp</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>_("abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>wxLocale::GetString</code>, <code>wxGetTranslation</code>

     <br><dt>textdomain<dd><code>wxLocale::AddCatalog</code>

     <br><dt>bindtextdomain<dd><code>wxLocale::AddCatalogLookupPathPrefix</code>

     <br><dt>setlocale<dd><code>wxLocale::Init</code>, <code>wxSetLocale</code>

     <br><dt>Prerequisite<dd><code>#include &lt;wx/intl.h&gt;</code>

     <br><dt>Use or emulate GNU gettext<dd>emulate, see <code>include/wx/intl.h</code> and <code>src/common/intl.cpp</code>

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd>wxString::Format supports positions if and only if the system has
<code>wprintf()</code>, <code>vswprintf()</code> functions and they support positions
according to POSIX.

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>yes
</dl>

<div class="node">
<a name="YCP"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Tcl">Tcl</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#wxWidgets">wxWidgets</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.16 YCP - YaST2 scripting language</h4>

   <p><a name="index-YCP-1240"></a><a name="index-YaST2-scripting-language-1241"></a>
     <dl>
<dt>RPMs<dd>libycp, libycp-devel, yast2-core, yast2-core-devel

     <br><dt>File extension<dd><code>ycp</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>_("abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>_()</code> with 1 or 3 arguments

     <br><dt>textdomain<dd><code>textdomain</code> statement

     <br><dt>bindtextdomain<dd>&mdash;

     <br><dt>setlocale<dd>&mdash;

     <br><dt>Prerequisite<dd>&mdash;

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd><code>sformat "%2 %1"</code>

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-ycp</code>.

<div class="node">
<a name="Tcl"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Perl">Perl</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#YCP">YCP</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.17 Tcl - Tk's scripting language</h4>

   <p><a name="index-Tcl-1242"></a><a name="index-Tk_0027s-scripting-language-1243"></a>
     <dl>
<dt>RPMs<dd>tcl

     <br><dt>File extension<dd><code>tcl</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>[_ "abc"]</code>

     <br><dt>gettext/ngettext functions<dd><code>::msgcat::mc</code>

     <br><dt>textdomain<dd>&mdash;

     <br><dt>bindtextdomain<dd>&mdash;, use <code>::msgcat::mcload</code> instead

     <br><dt>setlocale<dd>automatic, uses LANG, but ignores LC_MESSAGES and LC_ALL

     <br><dt>Prerequisite<dd><code>package require msgcat</code>
<br><code>proc _ {s} {return [::msgcat::mc $s]}</code>

     <br><dt>Use or emulate GNU gettext<dd>&mdash;, uses a Tcl specific message catalog format

     <br><dt>Extractor<dd><code>xgettext -k_</code>

     <br><dt>Formatting with positions<dd><code>format "%2\$d %1\$d"</code>

     <br><dt>Portability<dd>fully portable

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>Two examples are available in the <samp><span class="file">examples</span></samp> directory:
<code>hello-tcl</code>, <code>hello-tcl-tk</code>.

   <p>Before marking strings as internationalizable, substitutions of variables
into the string need to be converted to <code>format</code> applications.  For
example, <code>"file $filename not found"</code> becomes
<code>[format "file %s not found" $filename]</code>. 
Only after this is done, can the strings be marked and extracted. 
After marking, this example becomes
<code>[format [_ "file %s not found"] $filename]</code> or
<code>[msgcat::mc "file %s not found" $filename]</code>.  Note that the
<code>msgcat::mc</code> function implicitly calls <code>format</code> when more than one
argument is given.

<div class="node">
<a name="Perl"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#PHP">PHP</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Tcl">Tcl</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.18 Perl</h4>

   <p><a name="index-Perl-1244"></a>
     <dl>
<dt>RPMs<dd>perl

     <br><dt>File extension<dd><code>pl</code>, <code>PL</code>, <code>pm</code>, <code>cgi</code>

     <br><dt>String syntax<dd>
          <ul>
<li><code>"abc"</code>

          <li><code>'abc'</code>

          <li><code>qq (abc)</code>

          <li><code>q (abc)</code>

          <li><code>qr /abc/</code>

          <li><code>qx (/bin/date)</code>

          <li><code>/pattern match/</code>

          <li><code>?pattern match?</code>

          <li><code>s/substitution/operators/</code>

          <li><code>$tied_hash{"message"}</code>

          <li><code>$tied_hash_reference-&gt;{"message"}</code>

          <li>etc., issue the command &lsquo;<samp><span class="samp">man perlsyn</span></samp>&rsquo; for details

     </ul>

     <br><dt>gettext shorthand<dd><code>__</code> (double underscore)

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>, <code>dgettext</code>, <code>dcgettext</code>, <code>ngettext</code>,
<code>dngettext</code>, <code>dcngettext</code>

     <br><dt>textdomain<dd><code>textdomain</code> function

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code> function

     <br><dt>bind_textdomain_codeset<dd><code>bind_textdomain_codeset</code> function

     <br><dt>setlocale<dd>Use <code>setlocale (LC_ALL, "");</code>

     <br><dt>Prerequisite<dd><code>use POSIX;</code>
<br><code>use Locale::TextDomain;</code> (included in the package libintl-perl
which is available on the Comprehensive Perl Archive Network CPAN,
http://www.cpan.org/).

     <br><dt>Use or emulate GNU gettext<dd>platform dependent: gettext_pp emulates, gettext_xs uses GNU gettext

     <br><dt>Extractor<dd><code>xgettext -k__ -k\$__ -k%__ -k__x -k__n:1,2 -k__nx:1,2 -k__xn:1,2 -kN__ -k</code>

     <br><dt>Formatting with positions<dd>Both kinds of format strings support formatting with positions. 
<br><code>printf "%2\$d %1\$d", ...</code> (requires Perl 5.8.0 or newer)
<br><code>__expand("[new] replaces [old]", old =&gt; $oldvalue, new =&gt; $newvalue)</code>

     <br><dt>Portability<dd>The <code>libintl-perl</code> package is platform independent but is not
part of the Perl core.  The programmer is responsible for
providing a dummy implementation of the required functions if the
package is not installed on the target system.

     <br><dt>po-mode marking<dd>&mdash;

     <br><dt>Documentation<dd>Included in <code>libintl-perl</code>, available on CPAN
(http://www.cpan.org/).

   </dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-perl</code>.

   <p><a name="index-marking-Perl-sources-1245"></a>
The <code>xgettext</code> parser backend for Perl differs significantly from
the parser backends for other programming languages, just as Perl
itself differs significantly from other programming languages.  The
Perl parser backend offers many more string marking facilities than
the other backends but it also has some Perl specific limitations, the
worst probably being its imperfectness.

<ul class="menu">
<li><a accesskey="1" href="#General-Problems">General Problems</a>:             General Problems Parsing Perl Code
<li><a accesskey="2" href="#Default-Keywords">Default Keywords</a>:             Which Keywords Will xgettext Look For? 
<li><a accesskey="3" href="#Special-Keywords">Special Keywords</a>:             How to Extract Hash Keys
<li><a accesskey="4" href="#Quote_002dlike-Expressions">Quote-like Expressions</a>:       What are Strings And Quote-like Expressions? 
<li><a accesskey="5" href="#Interpolation-I">Interpolation I</a>:              Invalid String Interpolation
<li><a accesskey="6" href="#Interpolation-II">Interpolation II</a>:             Valid String Interpolation
<li><a accesskey="7" href="#Parentheses">Parentheses</a>:                  When To Use Parentheses
<li><a accesskey="8" href="#Long-Lines">Long Lines</a>:                   How To Grok with Long Lines
<li><a accesskey="9" href="#Perl-Pitfalls">Perl Pitfalls</a>:                Bugs, Pitfalls, and Things That Do Not Work
</ul>

<div class="node">
<a name="General-Problems"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Default-Keywords">Default Keywords</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.1 General Problems Parsing Perl Code</h5>

   <p>It is often heard that only Perl can parse Perl.  This is not true. 
Perl cannot be <em>parsed</em> at all, it can only be <em>executed</em>. 
Perl has various built-in ambiguities that can only be resolved at runtime.

   <p>The following example may illustrate one common problem:

<pre class="example">     print gettext "Hello World!";
</pre>
   <p>Although this example looks like a bullet-proof case of a function
invocation, it is not:

<pre class="example">     open gettext, "&gt;testfile" or die;
     print gettext "Hello world!"
</pre>
   <p>In this context, the string <code>gettext</code> looks more like a
file handle.  But not necessarily:

<pre class="example">     use Locale::Messages qw (:libintl_h);
     open gettext "&gt;testfile" or die;
     print gettext "Hello world!";
</pre>
   <p>Now, the file is probably syntactically incorrect, provided that the module
<code>Locale::Messages</code> found first in the Perl include path exports a
function <code>gettext</code>.  But what if the module
<code>Locale::Messages</code> really looks like this?

<pre class="example">     use vars qw (*gettext);
     
     1;
</pre>
   <p>In this case, the string <code>gettext</code> will be interpreted as a file
handle again, and the above example will create a file <samp><span class="file">testfile</span></samp>
and write the string &ldquo;Hello world!&rdquo; into it.  Even advanced
control flow analysis will not really help:

<pre class="example">     if (0.5 &lt; rand) {
        eval "use Sane";
     } else {
        eval "use InSane";
     }
     print gettext "Hello world!";
</pre>
   <p>If the module <code>Sane</code> exports a function <code>gettext</code> that does
what we expect, and the module <code>InSane</code> opens a file for writing
and associates the <em>handle</em> <code>gettext</code> with this output
stream, we are clueless again about what will happen at runtime.  It is
completely unpredictable.  The truth is that Perl has so many ways to
fill its symbol table at runtime that it is impossible to interpret a
particular piece of code without executing it.

   <p>Of course, <code>xgettext</code> will not execute your Perl sources while
scanning for translatable strings, but rather use heuristics in order
to guess what you meant.

   <p>Another problem is the ambiguity of the slash and the question mark. 
Their interpretation depends on the context:

<pre class="example">     # A pattern match.
     print "OK\n" if /foobar/;
     
     # A division.
     print 1 / 2;
     
     # Another pattern match.
     print "OK\n" if ?foobar?;
     
     # Conditional.
     print $x ? "foo" : "bar";
</pre>
   <p>The slash may either act as the division operator or introduce a
pattern match, whereas the question mark may act as the ternary
conditional operator or as a pattern match, too.  Other programming
languages like <code>awk</code> present similar problems, but the consequences of a
misinterpretation are particularly nasty with Perl sources.  In <code>awk</code>
for instance, a statement can never exceed one line and the parser
can recover from a parsing error at the next newline and interpret
the rest of the input stream correctly.  Perl is different, as a
pattern match is terminated by the next appearance of the delimiter
(the slash or the question mark) in the input stream, regardless of
the semantic context.  If a slash is really a division sign but
mis-interpreted as a pattern match, the rest of the input file is most
probably parsed incorrectly.

   <p>There are certain cases, where the ambiguity cannot be resolved at all:

<pre class="example">     $x = wantarray ? 1 : 0;
</pre>
   <p>The Perl built-in function <code>wantarray</code> does not accept any arguments. 
The Perl parser therefore knows that the question mark does not start
a regular expression but is the ternary conditional operator.

<pre class="example">     sub wantarrays {}
     $x = wantarrays ? 1 : 0;
</pre>
   <p>Now the situation is different.  The function <code>wantarrays</code> takes
a variable number of arguments (like any non-prototyped Perl function). 
The question mark is now the delimiter of a pattern match, and hence
the piece of code does not compile.

<pre class="example">     sub wantarrays() {}
     $x = wantarrays ? 1 : 0;
</pre>
   <p>Now the function is prototyped, Perl knows that it does not accept any
arguments, and the question mark is therefore interpreted as the
ternaray operator again.  But that unfortunately outsmarts <code>xgettext</code>.

   <p>The Perl parser in <code>xgettext</code> cannot know whether a function has
a prototype and what that prototype would look like.  It therefore makes
an educated guess.  If a function is known to be a Perl built-in and
this function does not accept any arguments, a following question mark
or slash is treated as an operator, otherwise as the delimiter of a
following regular expression.  The Perl built-ins that do not accept
arguments are <code>wantarray</code>, <code>fork</code>, <code>time</code>, <code>times</code>,
<code>getlogin</code>, <code>getppid</code>, <code>getpwent</code>, <code>getgrent</code>,
<code>gethostent</code>, <code>getnetent</code>, <code>getprotoent</code>, <code>getservent</code>,
<code>setpwent</code>, <code>setgrent</code>, <code>endpwent</code>, <code>endgrent</code>,
<code>endhostent</code>, <code>endnetent</code>, <code>endprotoent</code>, and
<code>endservent</code>.

   <p>If you find that <code>xgettext</code> fails to extract strings from
portions of your sources, you should therefore look out for slashes
and/or question marks preceding these sections.  You may have come
across a bug in <code>xgettext</code>'s Perl parser (and of course you
should report that bug).  In the meantime you should consider to
reformulate your code in a manner less challenging to <code>xgettext</code>.

   <p>In particular, if the parser is too dumb to see that a function
does not accept arguments, use parentheses:

<pre class="example">     $x = somefunc() ? 1 : 0;
     $y = (somefunc) ? 1 : 0;
</pre>
   <p>In fact the Perl parser itself has similar problems and warns you
about such constructs.

<div class="node">
<a name="Default-Keywords"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Special-Keywords">Special Keywords</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#General-Problems">General Problems</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.2 Which keywords will xgettext look for?</h5>

   <p><a name="index-Perl-default-keywords-1246"></a>
Unless you instruct <code>xgettext</code> otherwise by invoking it with one
of the options <code>--keyword</code> or <code>-k</code>, it will recognize the
following keywords in your Perl sources:

     <ul>
<li><code>gettext</code>

     <li><code>dgettext</code>

     <li><code>dcgettext</code>

     <li><code>ngettext:1,2</code>

     <p>The first (singular) and the second (plural) argument will be
extracted.

     <li><code>dngettext:1,2</code>

     <p>The first (singular) and the second (plural) argument will be
extracted.

     <li><code>dcngettext:1,2</code>

     <p>The first (singular) and the second (plural) argument will be
extracted.

     <li><code>gettext_noop</code>

     <li><code>%gettext</code>

     <p>The keys of lookups into the hash <code>%gettext</code> will be extracted.

     <li><code>$gettext</code>

     <p>The keys of lookups into the hash reference <code>$gettext</code> will be extracted.

   </ul>

<div class="node">
<a name="Special-Keywords"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Quote_002dlike-Expressions">Quote-like Expressions</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Default-Keywords">Default Keywords</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.3 How to Extract Hash Keys</h5>

   <p><a name="index-Perl-special-keywords-for-hash_002dlookups-1247"></a>
Translating messages at runtime is normally performed by looking up the
original string in the translation database and returning the
translated version.  The &ldquo;natural&rdquo; Perl implementation is a hash
lookup, and, of course, <code>xgettext</code> supports such practice.

<pre class="example">     print __"Hello world!";
     print $__{"Hello world!"};
     print $__-&gt;{"Hello world!"};
     print $$__{"Hello world!"};
</pre>
   <p>The above four lines all do the same thing.  The Perl module
<code>Locale::TextDomain</code> exports by default a hash <code>%__</code> that
is tied to the function <code>__()</code>.  It also exports a reference
<code>$__</code> to <code>%__</code>.

   <p>If an argument to the <code>xgettext</code> option <code>--keyword</code>,
resp. <code>-k</code> starts with a percent sign, the rest of the keyword is
interpreted as the name of a hash.  If it starts with a dollar
sign, the rest of the keyword is interpreted as a reference to a
hash.

   <p>Note that you can omit the quotation marks (single or double) around
the hash key (almost) whenever Perl itself allows it:

<pre class="example">     print $gettext{Error};
</pre>
   <p>The exact rule is: You can omit the surrounding quotes, when the hash
key is a valid C (!) identifier, i.e. when it starts with an
underscore or an ASCII letter and is followed by an arbitrary number
of underscores, ASCII letters or digits.  Other Unicode characters
are <em>not</em> allowed, regardless of the <code>use utf8</code> pragma.

<div class="node">
<a name="Quote-like-Expressions"></a>
<a name="Quote_002dlike-Expressions"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Interpolation-I">Interpolation I</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Special-Keywords">Special Keywords</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.4 What are Strings And Quote-like Expressions?</h5>

   <p><a name="index-Perl-quote_002dlike-expressions-1248"></a>
Perl offers a plethora of different string constructs.  Those that can
be used either as arguments to functions or inside braces for hash
lookups are generally supported by <code>xgettext</code>.

     <ul>
<li><strong>double-quoted strings</strong>
<br>
     <pre class="example">          print gettext "Hello World!";
</pre>
     <li><strong>single-quoted strings</strong>
<br>
     <pre class="example">          print gettext 'Hello World!';
</pre>
     <li><strong>the operator qq</strong>
<br>
     <pre class="example">          print gettext qq |Hello World!|;
          print gettext qq &lt;E-mail: &lt;guido\@imperia.net&gt;&gt;;
</pre>
     <p>The operator <code>qq</code> is fully supported.  You can use arbitrary
delimiters, including the four bracketing delimiters (round, angle,
square, curly) that nest.

     <li><strong>the operator q</strong>
<br>
     <pre class="example">          print gettext q |Hello World!|;
          print gettext q &lt;E-mail: &lt;guido@imperia.net&gt;&gt;;
</pre>
     <p>The operator <code>q</code> is fully supported.  You can use arbitrary
delimiters, including the four bracketing delimiters (round, angle,
square, curly) that nest.

     <li><strong>the operator qx</strong>
<br>
     <pre class="example">          print gettext qx ;LANGUAGE=C /bin/date;
          print gettext qx [/usr/bin/ls | grep '^[A-Z]*'];
</pre>
     <p>The operator <code>qx</code> is fully supported.  You can use arbitrary
delimiters, including the four bracketing delimiters (round, angle,
square, curly) that nest.

     <p>The example is actually a useless use of <code>gettext</code>.  It will
invoke the <code>gettext</code> function on the output of the command
specified with the <code>qx</code> operator.  The feature was included
in order to make the interface consistent (the parser will extract
all strings and quote-like expressions).

     <li><strong>here documents</strong>
<br>
     <pre class="example">          print gettext &lt;&lt;'EOF';
          program not found in $PATH
          EOF
          
          print ngettext &lt;&lt;EOF, &lt;&lt;"EOF";
          one file deleted
          EOF
          several files deleted
          EOF
</pre>
     <p>Here-documents are recognized.  If the delimiter is enclosed in single
quotes, the string is not interpolated.  If it is enclosed in double
quotes or has no quotes at all, the string is interpolated.

     <p>Delimiters that start with a digit are not supported!

   </ul>

<div class="node">
<a name="Interpolation-I"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Interpolation-II">Interpolation II</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Quote_002dlike-Expressions">Quote-like Expressions</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.5 Invalid Uses Of String Interpolation</h5>

   <p><a name="index-Perl-invalid-string-interpolation-1249"></a>
Perl is capable of interpolating variables into strings.  This offers
some nice features in localized programs but can also lead to
problems.

   <p>A common error is a construct like the following:

<pre class="example">     print gettext "This is the program $0!\n";
</pre>
   <p>Perl will interpolate at runtime the value of the variable <code>$0</code>
into the argument of the <code>gettext()</code> function.  Hence, this
argument is not a string constant but a variable argument (<code>$0</code>
is a global variable that holds the name of the Perl script being
executed).  The interpolation is performed by Perl before the string
argument is passed to <code>gettext()</code> and will therefore depend on
the name of the script which can only be determined at runtime. 
Consequently, it is almost impossible that a translation can be looked
up at runtime (except if, by accident, the interpolated string is found
in the message catalog).

   <p>The <code>xgettext</code> program will therefore terminate parsing with a fatal
error if it encounters a variable inside of an extracted string.  In
general, this will happen for all kinds of string interpolations that
cannot be safely performed at compile time.  If you absolutely know
what you are doing, you can always circumvent this behavior:

<pre class="example">     my $know_what_i_am_doing = "This is program $0!\n";
     print gettext $know_what_i_am_doing;
</pre>
   <p>Since the parser only recognizes strings and quote-like expressions,
but not variables or other terms, the above construct will be
accepted.  You will have to find another way, however, to let your
original string make it into your message catalog.

   <p>If invoked with the option <code>--extract-all</code>, resp. <code>-a</code>,
variable interpolation will be accepted.  Rationale: You will
generally use this option in order to prepare your sources for
internationalization.

   <p>Please see the manual page &lsquo;<samp><span class="samp">man perlop</span></samp>&rsquo; for details of strings and
quote-like expressions that are subject to interpolation and those
that are not.  Safe interpolations (that will not lead to a fatal
error) are:

     <ul>
<li>the escape sequences <code>\t</code> (tab, HT, TAB), <code>\n</code>
(newline, NL), <code>\r</code> (return, CR), <code>\f</code> (form feed, FF),
<code>\b</code> (backspace, BS), <code>\a</code> (alarm, bell, BEL), and <code>\e</code>
(escape, ESC).

     <li>octal chars, like <code>\033</code>
<br>
Note that octal escapes in the range of 400-777 are translated into a
UTF-8 representation, regardless of the presence of the <code>use utf8</code> pragma.

     <li>hex chars, like <code>\x1b</code>

     <li>wide hex chars, like <code>\x{263a}</code>
<br>
Note that this escape is translated into a UTF-8 representation,
regardless of the presence of the <code>use utf8</code> pragma.

     <li>control chars, like <code>\c[</code> (CTRL-[)

     <li>named Unicode chars, like <code>\N{LATIN CAPITAL LETTER C WITH CEDILLA}</code>
<br>
Note that this escape is translated into a UTF-8 representation,
regardless of the presence of the <code>use utf8</code> pragma. 
</ul>

   <p>The following escapes are considered partially safe:

     <ul>
<li><code>\l</code> lowercase next char

     <li><code>\u</code> uppercase next char

     <li><code>\L</code> lowercase till \E

     <li><code>\U</code> uppercase till \E

     <li><code>\E</code> end case modification

     <li><code>\Q</code> quote non-word characters till \E

   </ul>

   <p>These escapes are only considered safe if the string consists of
ASCII characters only.  Translation of characters outside the range
defined by ASCII is locale-dependent and can actually only be performed
at runtime; <code>xgettext</code> doesn't do these locale-dependent translations
at extraction time.

   <p>Except for the modifier <code>\Q</code>, these translations, albeit valid,
are generally useless and only obfuscate your sources.  If a
translation can be safely performed at compile time you can just as
well write what you mean.

<div class="node">
<a name="Interpolation-II"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Parentheses">Parentheses</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Interpolation-I">Interpolation I</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.6 Valid Uses Of String Interpolation</h5>

   <p><a name="index-Perl-valid-string-interpolation-1250"></a>
Perl is often used to generate sources for other programming languages
or arbitrary file formats.  Web applications that output HTML code
make a prominent example for such usage.

   <p>You will often come across situations where you want to intersperse
code written in the target (programming) language with translatable
messages, like in the following HTML example:

<pre class="example">     print gettext &lt;&lt;EOF;
     &lt;h1&gt;My Homepage&lt;/h1&gt;
     &lt;script language="JavaScript"&gt;&lt;!--
     for (i = 0; i &lt; 100; ++i) {
         alert ("Thank you so much for visiting my homepage!");
     }
     //--&gt;&lt;/script&gt;
     EOF
</pre>
   <p>The parser will extract the entire here document, and it will appear
entirely in the resulting PO file, including the JavaScript snippet
embedded in the HTML code.  If you exaggerate with constructs like
the above, you will run the risk that the translators of your package
will look out for a less challenging project.  You should consider an
alternative expression here:

<pre class="example">     print &lt;&lt;EOF;
     &lt;h1&gt;$gettext{"My Homepage"}&lt;/h1&gt;
     &lt;script language="JavaScript"&gt;&lt;!--
     for (i = 0; i &lt; 100; ++i) {
         alert ("$gettext{'Thank you so much for visiting my homepage!'}");
     }
     //--&gt;&lt;/script&gt;
     EOF
</pre>
   <p>Only the translatable portions of the code will be extracted here, and
the resulting PO file will begrudgingly improve in terms of readability.

   <p>You can interpolate hash lookups in all strings or quote-like
expressions that are subject to interpolation (see the manual page
&lsquo;<samp><span class="samp">man perlop</span></samp>&rsquo; for details).  Double interpolation is invalid, however:

<pre class="example">     # TRANSLATORS: Replace "the earth" with the name of your planet.
     print gettext qq{Welcome to $gettext-&gt;{"the earth"}};
</pre>
   <p>The <code>qq</code>-quoted string is recognized as an argument to <code>xgettext</code> in
the first place, and checked for invalid variable interpolation.  The
dollar sign of hash-dereferencing will therefore terminate the parser
with an &ldquo;invalid interpolation&rdquo; error.

   <p>It is valid to interpolate hash lookups in regular expressions:

<pre class="example">     if ($var =~ /$gettext{"the earth"}/) {
        print gettext "Match!\n";
     }
     s/$gettext{"U. S. A."}/$gettext{"U. S. A."} $gettext{"(dial +0)"}/g;
</pre>
   <div class="node">
<a name="Parentheses"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Long-Lines">Long Lines</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Interpolation-II">Interpolation II</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.7 When To Use Parentheses</h5>

   <p><a name="index-Perl-parentheses-1251"></a>
In Perl, parentheses around function arguments are mostly optional. 
<code>xgettext</code> will always assume that all
recognized keywords (except for hashes and hash references) are names
of properly prototyped functions, and will (hopefully) only require
parentheses where Perl itself requires them.  All constructs in the
following example are therefore ok to use:

<pre class="example">     print gettext ("Hello World!\n");
     print gettext "Hello World!\n";
     print dgettext ($package =&gt; "Hello World!\n");
     print dgettext $package, "Hello World!\n";
     
     # The "fat comma" =&gt; turns the left-hand side argument into a
     # single-quoted string!
     print dgettext smellovision =&gt; "Hello World!\n";
     
     # The following assignment only works with prototyped functions.
     # Otherwise, the functions will act as "greedy" list operators and
     # eat up all following arguments.
     my $anonymous_hash = {
        planet =&gt; gettext "earth",
        cakes =&gt; ngettext "one cake", "several cakes", $n,
        still =&gt; $works,
     };
     # The same without fat comma:
     my $other_hash = {
        'planet', gettext "earth",
        'cakes', ngettext "one cake", "several cakes", $n,
        'still', $works,
     };
     
     # Parentheses are only significant for the first argument.
     print dngettext 'package', ("one cake", "several cakes", $n), $discarded;
</pre>
   <div class="node">
<a name="Long-Lines"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Perl-Pitfalls">Perl Pitfalls</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Parentheses">Parentheses</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.8 How To Grok with Long Lines</h5>

   <p><a name="index-Perl-long-lines-1252"></a>
The necessity of long messages can often lead to a cumbersome or
unreadable coding style.  Perl has several options that may prevent
you from writing unreadable code, and
<code>xgettext</code> does its best to do likewise.  This is where the dot
operator (the string concatenation operator) may come in handy:

<pre class="example">     print gettext ("This is a very long"
                    . " message that is still"
                    . " readable, because"
                    . " it is split into"
                    . " multiple lines.\n");
</pre>
   <p>Perl is smart enough to concatenate these constant string fragments
into one long string at compile time, and so is
<code>xgettext</code>.  You will only find one long message in the resulting
POT file.

   <p>Note that the future Perl 6 will probably use the underscore
(&lsquo;<samp><span class="samp">_</span></samp>&rsquo;) as the string concatenation operator, and the dot
(&lsquo;<samp><span class="samp">.</span></samp>&rsquo;) for dereferencing.  This new syntax is not yet supported by
<code>xgettext</code>.

   <p>If embedded newline characters are not an issue, or even desired, you
may also insert newline characters inside quoted strings wherever you
feel like it:

<pre class="example">     print gettext ("&lt;em&gt;In HTML output
     embedded newlines are generally no
     problem, since adjacent whitespace
     is always rendered into a single
     space character.&lt;/em&gt;");
</pre>
   <p>You may also consider to use here documents:

<pre class="example">     print gettext &lt;&lt;EOF;
     &lt;em&gt;In HTML output
     embedded newlines are generally no
     problem, since adjacent whitespace
     is always rendered into a single
     space character.&lt;/em&gt;
     EOF
</pre>
   <p>Please do not forget that the line breaks are real, i.e. they
translate into newline characters that will consequently show up in
the resulting POT file.

<div class="node">
<a name="Perl-Pitfalls"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Long-Lines">Long Lines</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Perl">Perl</a>

</div>

<h5 class="subsubsection">15.5.18.9 Bugs, Pitfalls, And Things That Do Not Work</h5>

   <p><a name="index-Perl-pitfalls-1253"></a>
The foregoing sections should have proven that
<code>xgettext</code> is quite smart in extracting translatable strings from
Perl sources.  Yet, some more or less exotic constructs that could be
expected to work, actually do not work.

   <p>One of the more relevant limitations can be found in the
implementation of variable interpolation inside quoted strings.  Only
simple hash lookups can be used there:

<pre class="example">     print &lt;&lt;EOF;
     $gettext{"The dot operator"
               . " does not work"
               . "here!"}
     Likewise, you cannot @{[ gettext ("interpolate function calls") ]}
     inside quoted strings or quote-like expressions.
     EOF
</pre>
   <p>This is valid Perl code and will actually trigger invocations of the
<code>gettext</code> function at runtime.  Yet, the Perl parser in
<code>xgettext</code> will fail to recognize the strings.  A less obvious
example can be found in the interpolation of regular expressions:

<pre class="example">     s/&lt;!--START_OF_WEEK--&gt;/gettext ("Sunday")/e;
</pre>
   <p>The modifier <code>e</code> will cause the substitution to be interpreted as
an evaluable statement.  Consequently, at runtime the function
<code>gettext()</code> is called, but again, the parser fails to extract the
string &ldquo;Sunday&rdquo;.  Use a temporary variable as a simple workaround if
you really happen to need this feature:

<pre class="example">     my $sunday = gettext "Sunday";
     s/&lt;!--START_OF_WEEK--&gt;/$sunday/;
</pre>
   <p>Hash slices would also be handy but are not recognized:

<pre class="example">     my @weekdays = @gettext{'Sunday', 'Monday', 'Tuesday', 'Wednesday',
                             'Thursday', 'Friday', 'Saturday'};
     # Or even:
     @weekdays = @gettext{qw (Sunday Monday Tuesday Wednesday Thursday
                              Friday Saturday) };
</pre>
   <p>This is perfectly valid usage of the tied hash <code>%gettext</code> but the
strings are not recognized and therefore will not be extracted.

   <p>Another caveat of the current version is its rudimentary support for
non-ASCII characters in identifiers.  You may encounter serious
problems if you use identifiers with characters outside the range of
'A'-'Z', 'a'-'z', '0'-'9' and the underscore '_'.

   <p>Maybe some of these missing features will be implemented in future
versions, but since you can always make do without them at minimal effort,
these todos have very low priority.

   <p>A nasty problem are brace format strings that already contain braces
as part of the normal text, for example the usage strings typically
encountered in programs:

<pre class="example">     die "usage: $0 {OPTIONS} FILENAME...\n";
</pre>
   <p>If you want to internationalize this code with Perl brace format strings,
you will run into a problem:

<pre class="example">     die __x ("usage: {program} {OPTIONS} FILENAME...\n", program =&gt; $0);
</pre>
   <p>Whereas &lsquo;<samp><span class="samp">{program}</span></samp>&rsquo; is a placeholder, &lsquo;<samp><span class="samp">{OPTIONS}</span></samp>&rsquo;
is not and should probably be translated. Yet, there is no way to teach
the Perl parser in <code>xgettext</code> to recognize the first one, and leave
the other one alone.

   <p>There are two possible work-arounds for this problem.  If you are
sure that your program will run under Perl 5.8.0 or newer (these
Perl versions handle positional parameters in <code>printf()</code>) or
if you are sure that the translator will not have to reorder the arguments
in her translation &ndash; for example if you have only one brace placeholder
in your string, or if it describes a syntax, like in this one &ndash;, you can
mark the string as <code>no-perl-brace-format</code> and use <code>printf()</code>:

<pre class="example">     # xgettext: no-perl-brace-format
     die sprintf ("usage: %s {OPTIONS} FILENAME...\n", $0);
</pre>
   <p>If you want to use the more portable Perl brace format, you will have to do
put placeholders in place of the literal braces:

<pre class="example">     die __x ("usage: {program} {[}OPTIONS{]} FILENAME...\n",
              program =&gt; $0, '[' =&gt; '{', ']' =&gt; '}');
</pre>
   <p>Perl brace format strings know no escaping mechanism.  No matter how this
escaping mechanism looked like, it would either give the programmer a
hard time, make translating Perl brace format strings heavy-going, or
result in a performance penalty at runtime, when the format directives
get executed.  Most of the time you will happily get along with
<code>printf()</code> for this special case.

<div class="node">
<a name="PHP"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Pike">Pike</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Perl">Perl</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.19 PHP Hypertext Preprocessor</h4>

   <p><a name="index-PHP-1254"></a>
     <dl>
<dt>RPMs<dd>mod_php4, mod_php4-core, phpdoc

     <br><dt>File extension<dd><code>php</code>, <code>php3</code>, <code>php4</code>

     <br><dt>String syntax<dd><code>"abc"</code>, <code>'abc'</code>

     <br><dt>gettext shorthand<dd><code>_("abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>, <code>dgettext</code>, <code>dcgettext</code>; starting with PHP 4.2.0
also <code>ngettext</code>, <code>dngettext</code>, <code>dcngettext</code>

     <br><dt>textdomain<dd><code>textdomain</code> function

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code> function

     <br><dt>setlocale<dd>Programmer must call <code>setlocale (LC_ALL, "")</code>

     <br><dt>Prerequisite<dd>&mdash;

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd><code>xgettext</code>

     <br><dt>Formatting with positions<dd><code>printf "%2\$d %1\$d"</code>

     <br><dt>Portability<dd>On platforms without gettext, the functions are not available.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

   <p>An example is available in the <samp><span class="file">examples</span></samp> directory: <code>hello-php</code>.

<div class="node">
<a name="Pike"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#GCC_002dsource">GCC-source</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#PHP">PHP</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.20 Pike</h4>

   <p><a name="index-Pike-1255"></a>
     <dl>
<dt>RPMs<dd>roxen

     <br><dt>File extension<dd><code>pike</code>

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd>&mdash;

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>, <code>dgettext</code>, <code>dcgettext</code>

     <br><dt>textdomain<dd><code>textdomain</code> function

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code> function

     <br><dt>setlocale<dd><code>setlocale</code> function

     <br><dt>Prerequisite<dd><code>import Locale.Gettext;</code>

     <br><dt>Use or emulate GNU gettext<dd>use

     <br><dt>Extractor<dd>&mdash;

     <br><dt>Formatting with positions<dd>&mdash;

     <br><dt>Portability<dd>On platforms without gettext, the functions are not available.

     <br><dt>po-mode marking<dd>&mdash;
</dl>

<div class="node">
<a name="GCC-source"></a>
<a name="GCC_002dsource"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Pike">Pike</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Programming-Languages">List of Programming Languages</a>

</div>

<h4 class="subsection">15.5.21 GNU Compiler Collection sources</h4>

   <p><a name="index-GCC_002dsource-1256"></a>
     <dl>
<dt>RPMs<dd>gcc

     <br><dt>File extension<dd><code>c</code>, <code>h</code>.

     <br><dt>String syntax<dd><code>"abc"</code>

     <br><dt>gettext shorthand<dd><code>_("abc")</code>

     <br><dt>gettext/ngettext functions<dd><code>gettext</code>, <code>dgettext</code>, <code>dcgettext</code>, <code>ngettext</code>,
<code>dngettext</code>, <code>dcngettext</code>

     <br><dt>textdomain<dd><code>textdomain</code> function

     <br><dt>bindtextdomain<dd><code>bindtextdomain</code> function

     <br><dt>setlocale<dd>Programmer must call <code>setlocale (LC_ALL, "")</code>

     <br><dt>Prerequisite<dd><code>#include "intl.h"</code>

     <br><dt>Use or emulate GNU gettext<dd>Use

     <br><dt>Extractor<dd><code>xgettext -k_</code>

     <br><dt>Formatting with positions<dd>&mdash;

     <br><dt>Portability<dd>Uses autoconf macros

     <br><dt>po-mode marking<dd>yes
</dl>

<!-- This is the template for new languages. -->
<div class="node">
<a name="List-of-Data-Formats"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#List-of-Programming-Languages">List of Programming Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Programming-Languages">Programming Languages</a>

</div>

<h3 class="section">15.6 Internationalizable Data</h3>

   <p>Here is a list of other data formats which can be internationalized
using GNU gettext.

<ul class="menu">
<li><a accesskey="1" href="#POT">POT</a>:                          POT - Portable Object Template
<li><a accesskey="2" href="#RST">RST</a>:                          Resource String Table
<li><a accesskey="3" href="#Glade">Glade</a>:                        Glade - GNOME user interface description
</ul>

<div class="node">
<a name="POT"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#RST">RST</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#List-of-Data-Formats">List of Data Formats</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Data-Formats">List of Data Formats</a>

</div>

<h4 class="subsection">15.6.1 POT - Portable Object Template</h4>

     <dl>
<dt>RPMs<dd>gettext

     <br><dt>File extension<dd><code>pot</code>, <code>po</code>

     <br><dt>Extractor<dd><code>xgettext</code>
</dl>

<div class="node">
<a name="RST"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Glade">Glade</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#POT">POT</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Data-Formats">List of Data Formats</a>

</div>

<h4 class="subsection">15.6.2 Resource String Table</h4>

   <p><a name="index-RST-1257"></a>
     <dl>
<dt>RPMs<dd>fpk

     <br><dt>File extension<dd><code>rst</code>

     <br><dt>Extractor<dd><code>xgettext</code>, <code>rstconv</code>
</dl>

<div class="node">
<a name="Glade"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#RST">RST</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#List-of-Data-Formats">List of Data Formats</a>

</div>

<h4 class="subsection">15.6.3 Glade - GNOME user interface description</h4>

     <dl>
<dt>RPMs<dd>glade, libglade, glade2, libglade2, intltool

     <br><dt>File extension<dd><code>glade</code>, <code>glade2</code>

     <br><dt>Extractor<dd><code>xgettext</code>, <code>libglade-xgettext</code>, <code>xml-i18n-extract</code>, <code>intltool-extract</code>
</dl>

<!-- This is the template for new data formats. -->
<div class="node">
<a name="Conclusion"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Language-Codes">Language Codes</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Programming-Languages">Programming Languages</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="chapter">16 Concluding Remarks</h2>

   <p>We would like to conclude this GNU <code>gettext</code> manual by presenting
an history of the Translation Project so far.  We finally give
a few pointers for those who want to do further research or readings
about Native Language Support matters.

<ul class="menu">
<li><a accesskey="1" href="#History">History</a>:                      History of GNU <code>gettext</code>
<li><a accesskey="2" href="#References">References</a>:                   Related Readings
</ul>

<div class="node">
<a name="History"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#References">References</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Conclusion">Conclusion</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Conclusion">Conclusion</a>

</div>

<h3 class="section">16.1 History of GNU <code>gettext</code></h3>

   <p><a name="index-history-of-GNU-_0040code_007bgettext_007d-1258"></a>
Internationalization concerns and algorithms have been informally
and casually discussed for years in GNU, sometimes around GNU
<code>libc</code>, maybe around the incoming <code>Hurd</code>, or otherwise
(nobody clearly remembers).  And even then, when the work started for
real, this was somewhat independently of these previous discussions.

   <p>This all began in July 1994, when Patrick D'Cruze had the idea and
initiative of internationalizing version 3.9.2 of GNU <code>fileutils</code>. 
He then asked Jim Meyering, the maintainer, how to get those changes
folded into an official release.  That first draft was full of
<code>#ifdef</code>s and somewhat disconcerting, and Jim wanted to find
nicer ways.  Patrick and Jim shared some tries and experimentations
in this area.  Then, feeling that this might eventually have a deeper
impact on GNU, Jim wanted to know what standards were, and contacted
Richard Stallman, who very quickly and verbally described an overall
design for what was meant to become <code>glocale</code>, at that time.

   <p>Jim implemented <code>glocale</code> and got a lot of exhausting feedback
from Patrick and Richard, of course, but also from Mitchum DSouza
(who wrote a <code>catgets</code>-like package), Roland McGrath, maybe David
MacKenzie, Fran&ccedil;ois Pinard, and Paul Eggert, all pushing and
pulling in various directions, not always compatible, to the extent
that after a couple of test releases, <code>glocale</code> was torn apart. 
In particular, Paul Eggert &ndash; always keeping an eye on developments
in Solaris &ndash; advocated the use of the <code>gettext</code> API over
<code>glocale</code>'s <code>catgets</code>-based API.

   <p>While Jim took some distance and time and became dad for a second
time, Roland wanted to get GNU <code>libc</code> internationalized, and
got Ulrich Drepper involved in that project.  Instead of starting
from <code>glocale</code>, Ulrich rewrote something from scratch, but
more conforming to the set of guidelines who emerged out of the
<code>glocale</code> effort.  Then, Ulrich got people from the previous
forum to involve themselves into this new project, and the switch
from <code>glocale</code> to what was first named <code>msgutils</code>, renamed
<code>nlsutils</code>, and later <code>gettext</code>, became officially accepted
by Richard in May 1995 or so.

   <p>Let's summarize by saying that Ulrich Drepper wrote GNU <code>gettext</code>
in April 1995.  The first official release of the package, including
PO mode, occurred in July 1995, and was numbered 0.7.  Other people
contributed to the effort by providing a discussion forum around
Ulrich, writing little pieces of code, or testing.  These are quoted
in the <code>THANKS</code> file which comes with the GNU <code>gettext</code>
distribution.

   <p>While this was being done, Fran&ccedil;ois adapted half a dozen of
GNU packages to <code>glocale</code> first, then later to <code>gettext</code>,
putting them in pretest, so providing along the way an effective
user environment for fine tuning the evolving tools.  He also took
the responsibility of organizing and coordinating the Translation
Project.  After nearly a year of informal exchanges between people from
many countries, translator teams started to exist in May 1995, through
the creation and support by Patrick D'Cruze of twenty unmoderated
mailing lists for that many native languages, and two moderated
lists: one for reaching all teams at once, the other for reaching
all willing maintainers of internationalized free software packages.

   <p>Fran&ccedil;ois also wrote PO mode in June 1995 with the collaboration
of Greg McGary, as a kind of contribution to Ulrich's package. 
He also gave a hand with the GNU <code>gettext</code> Texinfo manual.

   <p>In 1997, Ulrich Drepper released the GNU libc 2.0, which included the
<code>gettext</code>, <code>textdomain</code> and <code>bindtextdomain</code> functions.

   <p>In 2000, Ulrich Drepper added plural form handling (the <code>ngettext</code>
function) to GNU libc.  Later, in 2001, he released GNU libc 2.2.x,
which is the first free C library with full internationalization support.

   <p>Ulrich being quite busy in his role of General Maintainer of GNU libc,
he handed over the GNU <code>gettext</code> maintenance to Bruno Haible in
2000.  Bruno added the plural form handling to the tools as well, added
support for UTF-8 and CJK locales, and wrote a few new tools for
manipulating PO files.

<div class="node">
<a name="References"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#History">History</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Conclusion">Conclusion</a>

</div>

<h3 class="section">16.2 Related Readings</h3>

   <p><a name="index-related-reading-1259"></a><a name="index-bibliography-1260"></a>
<strong> NOTE: </strong> This documentation section is outdated and needs to be
revised.

   <p>Eugene H. Dorr (<samp><span class="file">dorre@well.com</span></samp>) maintains an interesting
bibliography on internationalization matters, called
<cite>Internationalization Reference List</cite>, which is available as:
<pre class="example">     ftp://ftp.ora.com/pub/examples/nutshell/ujip/doc/i18n-books.txt
</pre>
   <p>Michael Gschwind (<samp><span class="file">mike@vlsivie.tuwien.ac.at</span></samp>) maintains a
Frequently Asked Questions (FAQ) list, entitled <cite>Programming for
Internationalisation</cite>.  This FAQ discusses writing programs which
can handle different language conventions, character sets, etc.;
and is applicable to all character set encodings, with particular
emphasis on ISO&nbsp;8859-1<!-- /@w -->.  It is regularly published in Usenet
groups <samp><span class="file">comp.unix.questions</span></samp>, <samp><span class="file">comp.std.internat</span></samp>,
<samp><span class="file">comp.software.international</span></samp>, <samp><span class="file">comp.lang.c</span></samp>,
<samp><span class="file">comp.windows.x</span></samp>, <samp><span class="file">comp.std.c</span></samp>, <samp><span class="file">comp.answers</span></samp>
and <samp><span class="file">news.answers</span></samp>.  The home location of this document is:
<pre class="example">     ftp://ftp.vlsivie.tuwien.ac.at/pub/8bit/ISO-programming
</pre>
   <p>Patrick D'Cruze (<samp><span class="file">pdcruze@li.org</span></samp>) wrote a tutorial about NLS
matters, and Jochen Hein (<samp><span class="file">Hein@student.tu-clausthal.de</span></samp>) took
over the responsibility of maintaining it.  It may be found as:
<pre class="example">     ftp://sunsite.unc.edu/pub/Linux/utils/nls/catalogs/Incoming/...
          ...locale-tutorial-0.8.txt.gz
</pre>
   <p class="noindent">This site is mirrored in:
<pre class="example">     ftp://ftp.ibp.fr/pub/linux/sunsite/
</pre>
   <p>A French version of the same tutorial should be findable at:
<pre class="example">     ftp://ftp.ibp.fr/pub/linux/french/docs/
</pre>
   <p class="noindent">together with French translations of many Linux-related documents.

<div class="node">
<a name="Language-Codes"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Country-Codes">Country Codes</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Conclusion">Conclusion</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="appendix">Appendix A Language Codes</h2>

   <p><a name="index-language-codes-1261"></a><a name="index-ISO-639-1262"></a>
The ISO&nbsp;639<!-- /@w --> standard defines two-letter codes for many languages, and
three-letter codes for more rarely used languages. 
All abbreviations for languages used in the Translation Project should
come from this standard.

<ul class="menu">
<li><a accesskey="1" href="#Usual-Language-Codes">Usual Language Codes</a>:         Two-letter ISO 639 language codes
<li><a accesskey="2" href="#Rare-Language-Codes">Rare Language Codes</a>:          Three-letter ISO 639 language codes
</ul>

<div class="node">
<a name="Usual-Language-Codes"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Rare-Language-Codes">Rare Language Codes</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Language-Codes">Language Codes</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Language-Codes">Language Codes</a>

</div>

<h3 class="appendixsec">A.1 Usual Language Codes</h3>

   <p>For the commonly used languages, the ISO&nbsp;639-1<!-- /@w --> standard defines two-letter
codes.

     <dl>
<dt>&lsquo;<samp><span class="samp">aa</span></samp>&rsquo;<dd>Afar. 
<br><dt>&lsquo;<samp><span class="samp">ab</span></samp>&rsquo;<dd>Abkhazian. 
<br><dt>&lsquo;<samp><span class="samp">ae</span></samp>&rsquo;<dd>Avestan. 
<br><dt>&lsquo;<samp><span class="samp">af</span></samp>&rsquo;<dd>Afrikaans. 
<br><dt>&lsquo;<samp><span class="samp">ak</span></samp>&rsquo;<dd>Akan. 
<br><dt>&lsquo;<samp><span class="samp">am</span></samp>&rsquo;<dd>Amharic. 
<br><dt>&lsquo;<samp><span class="samp">an</span></samp>&rsquo;<dd>Aragonese. 
<br><dt>&lsquo;<samp><span class="samp">ar</span></samp>&rsquo;<dd>Arabic. 
<br><dt>&lsquo;<samp><span class="samp">as</span></samp>&rsquo;<dd>Assamese. 
<br><dt>&lsquo;<samp><span class="samp">av</span></samp>&rsquo;<dd>Avaric. 
<br><dt>&lsquo;<samp><span class="samp">ay</span></samp>&rsquo;<dd>Aymara. 
<br><dt>&lsquo;<samp><span class="samp">az</span></samp>&rsquo;<dd>Azerbaijani. 
<br><dt>&lsquo;<samp><span class="samp">ba</span></samp>&rsquo;<dd>Bashkir. 
<br><dt>&lsquo;<samp><span class="samp">be</span></samp>&rsquo;<dd>Belarusian. 
<br><dt>&lsquo;<samp><span class="samp">bg</span></samp>&rsquo;<dd>Bulgarian. 
<br><dt>&lsquo;<samp><span class="samp">bh</span></samp>&rsquo;<dd>Bihari. 
<br><dt>&lsquo;<samp><span class="samp">bi</span></samp>&rsquo;<dd>Bislama. 
<br><dt>&lsquo;<samp><span class="samp">bm</span></samp>&rsquo;<dd>Bambara. 
<br><dt>&lsquo;<samp><span class="samp">bn</span></samp>&rsquo;<dd>Bengali; Bangla. 
<br><dt>&lsquo;<samp><span class="samp">bo</span></samp>&rsquo;<dd>Tibetan. 
<br><dt>&lsquo;<samp><span class="samp">br</span></samp>&rsquo;<dd>Breton. 
<br><dt>&lsquo;<samp><span class="samp">bs</span></samp>&rsquo;<dd>Bosnian. 
<br><dt>&lsquo;<samp><span class="samp">ca</span></samp>&rsquo;<dd>Catalan. 
<br><dt>&lsquo;<samp><span class="samp">ce</span></samp>&rsquo;<dd>Chechen. 
<br><dt>&lsquo;<samp><span class="samp">ch</span></samp>&rsquo;<dd>Chamorro. 
<br><dt>&lsquo;<samp><span class="samp">co</span></samp>&rsquo;<dd>Corsican. 
<br><dt>&lsquo;<samp><span class="samp">cr</span></samp>&rsquo;<dd>Cree. 
<br><dt>&lsquo;<samp><span class="samp">cs</span></samp>&rsquo;<dd>Czech. 
<br><dt>&lsquo;<samp><span class="samp">cu</span></samp>&rsquo;<dd>Church Slavic. 
<br><dt>&lsquo;<samp><span class="samp">cv</span></samp>&rsquo;<dd>Chuvash. 
<br><dt>&lsquo;<samp><span class="samp">cy</span></samp>&rsquo;<dd>Welsh. 
<br><dt>&lsquo;<samp><span class="samp">da</span></samp>&rsquo;<dd>Danish. 
<br><dt>&lsquo;<samp><span class="samp">de</span></samp>&rsquo;<dd>German. 
<br><dt>&lsquo;<samp><span class="samp">dv</span></samp>&rsquo;<dd>Divehi; Maldivian. 
<br><dt>&lsquo;<samp><span class="samp">dz</span></samp>&rsquo;<dd>Dzongkha; Bhutani. 
<br><dt>&lsquo;<samp><span class="samp">ee</span></samp>&rsquo;<dd>&Eacute;w&eacute;. 
<br><dt>&lsquo;<samp><span class="samp">el</span></samp>&rsquo;<dd>Greek. 
<br><dt>&lsquo;<samp><span class="samp">en</span></samp>&rsquo;<dd>English. 
<br><dt>&lsquo;<samp><span class="samp">eo</span></samp>&rsquo;<dd>Esperanto. 
<br><dt>&lsquo;<samp><span class="samp">es</span></samp>&rsquo;<dd>Spanish. 
<br><dt>&lsquo;<samp><span class="samp">et</span></samp>&rsquo;<dd>Estonian. 
<br><dt>&lsquo;<samp><span class="samp">eu</span></samp>&rsquo;<dd>Basque. 
<br><dt>&lsquo;<samp><span class="samp">fa</span></samp>&rsquo;<dd>Persian. 
<br><dt>&lsquo;<samp><span class="samp">ff</span></samp>&rsquo;<dd>Fulah. 
<br><dt>&lsquo;<samp><span class="samp">fi</span></samp>&rsquo;<dd>Finnish. 
<br><dt>&lsquo;<samp><span class="samp">fj</span></samp>&rsquo;<dd>Fijian; Fiji. 
<br><dt>&lsquo;<samp><span class="samp">fo</span></samp>&rsquo;<dd>Faroese. 
<br><dt>&lsquo;<samp><span class="samp">fr</span></samp>&rsquo;<dd>French. 
<br><dt>&lsquo;<samp><span class="samp">fy</span></samp>&rsquo;<dd>Western Frisian. 
<br><dt>&lsquo;<samp><span class="samp">ga</span></samp>&rsquo;<dd>Irish. 
<br><dt>&lsquo;<samp><span class="samp">gd</span></samp>&rsquo;<dd>Scottish Gaelic. 
<br><dt>&lsquo;<samp><span class="samp">gl</span></samp>&rsquo;<dd>Galician. 
<br><dt>&lsquo;<samp><span class="samp">gn</span></samp>&rsquo;<dd>Guarani. 
<br><dt>&lsquo;<samp><span class="samp">gu</span></samp>&rsquo;<dd>Gujarati. 
<br><dt>&lsquo;<samp><span class="samp">gv</span></samp>&rsquo;<dd>Manx. 
<br><dt>&lsquo;<samp><span class="samp">ha</span></samp>&rsquo;<dd>Hausa. 
<br><dt>&lsquo;<samp><span class="samp">he</span></samp>&rsquo;<dd>Hebrew (formerly iw). 
<br><dt>&lsquo;<samp><span class="samp">hi</span></samp>&rsquo;<dd>Hindi. 
<br><dt>&lsquo;<samp><span class="samp">ho</span></samp>&rsquo;<dd>Hiri Motu. 
<br><dt>&lsquo;<samp><span class="samp">hr</span></samp>&rsquo;<dd>Croatian. 
<br><dt>&lsquo;<samp><span class="samp">ht</span></samp>&rsquo;<dd>Haitian; Haitian Creole. 
<br><dt>&lsquo;<samp><span class="samp">hu</span></samp>&rsquo;<dd>Hungarian. 
<br><dt>&lsquo;<samp><span class="samp">hy</span></samp>&rsquo;<dd>Armenian. 
<br><dt>&lsquo;<samp><span class="samp">hz</span></samp>&rsquo;<dd>Herero. 
<br><dt>&lsquo;<samp><span class="samp">ia</span></samp>&rsquo;<dd>Interlingua. 
<br><dt>&lsquo;<samp><span class="samp">id</span></samp>&rsquo;<dd>Indonesian (formerly in). 
<br><dt>&lsquo;<samp><span class="samp">ie</span></samp>&rsquo;<dd>Interlingue; Occidental. 
<br><dt>&lsquo;<samp><span class="samp">ig</span></samp>&rsquo;<dd>Igbo. 
<br><dt>&lsquo;<samp><span class="samp">ii</span></samp>&rsquo;<dd>Sichuan Yi; Nuosu. 
<br><dt>&lsquo;<samp><span class="samp">ik</span></samp>&rsquo;<dd>Inupiak; Inupiaq. 
<br><dt>&lsquo;<samp><span class="samp">io</span></samp>&rsquo;<dd>Ido. 
<br><dt>&lsquo;<samp><span class="samp">is</span></samp>&rsquo;<dd>Icelandic. 
<br><dt>&lsquo;<samp><span class="samp">it</span></samp>&rsquo;<dd>Italian. 
<br><dt>&lsquo;<samp><span class="samp">iu</span></samp>&rsquo;<dd>Inuktitut. 
<br><dt>&lsquo;<samp><span class="samp">ja</span></samp>&rsquo;<dd>Japanese. 
<br><dt>&lsquo;<samp><span class="samp">jv</span></samp>&rsquo;<dd>Javanese. 
<br><dt>&lsquo;<samp><span class="samp">ka</span></samp>&rsquo;<dd>Georgian. 
<br><dt>&lsquo;<samp><span class="samp">kg</span></samp>&rsquo;<dd>Kongo. 
<br><dt>&lsquo;<samp><span class="samp">ki</span></samp>&rsquo;<dd>Kikuyu; Gikuyu. 
<br><dt>&lsquo;<samp><span class="samp">kj</span></samp>&rsquo;<dd>Kuanyama; Kwanyama. 
<br><dt>&lsquo;<samp><span class="samp">kk</span></samp>&rsquo;<dd>Kazakh. 
<br><dt>&lsquo;<samp><span class="samp">kl</span></samp>&rsquo;<dd>Kalaallisut; Greenlandic. 
<br><dt>&lsquo;<samp><span class="samp">km</span></samp>&rsquo;<dd>Central Khmer; Cambodian. 
<br><dt>&lsquo;<samp><span class="samp">kn</span></samp>&rsquo;<dd>Kannada. 
<br><dt>&lsquo;<samp><span class="samp">ko</span></samp>&rsquo;<dd>Korean. 
<br><dt>&lsquo;<samp><span class="samp">kr</span></samp>&rsquo;<dd>Kanuri. 
<br><dt>&lsquo;<samp><span class="samp">ks</span></samp>&rsquo;<dd>Kashmiri. 
<br><dt>&lsquo;<samp><span class="samp">ku</span></samp>&rsquo;<dd>Kurdish. 
<br><dt>&lsquo;<samp><span class="samp">kv</span></samp>&rsquo;<dd>Komi. 
<br><dt>&lsquo;<samp><span class="samp">kw</span></samp>&rsquo;<dd>Cornish. 
<br><dt>&lsquo;<samp><span class="samp">ky</span></samp>&rsquo;<dd>Kirghiz. 
<br><dt>&lsquo;<samp><span class="samp">la</span></samp>&rsquo;<dd>Latin. 
<br><dt>&lsquo;<samp><span class="samp">lb</span></samp>&rsquo;<dd>Letzeburgesch; Luxembourgish. 
<br><dt>&lsquo;<samp><span class="samp">lg</span></samp>&rsquo;<dd>Ganda. 
<br><dt>&lsquo;<samp><span class="samp">li</span></samp>&rsquo;<dd>Limburgish; Limburger; Limburgan. 
<br><dt>&lsquo;<samp><span class="samp">ln</span></samp>&rsquo;<dd>Lingala. 
<br><dt>&lsquo;<samp><span class="samp">lo</span></samp>&rsquo;<dd>Lao; Laotian. 
<br><dt>&lsquo;<samp><span class="samp">lt</span></samp>&rsquo;<dd>Lithuanian. 
<br><dt>&lsquo;<samp><span class="samp">lu</span></samp>&rsquo;<dd>Luba-Katanga. 
<br><dt>&lsquo;<samp><span class="samp">lv</span></samp>&rsquo;<dd>Latvian; Lettish. 
<br><dt>&lsquo;<samp><span class="samp">mg</span></samp>&rsquo;<dd>Malagasy. 
<br><dt>&lsquo;<samp><span class="samp">mh</span></samp>&rsquo;<dd>Marshallese. 
<br><dt>&lsquo;<samp><span class="samp">mi</span></samp>&rsquo;<dd>Maori. 
<br><dt>&lsquo;<samp><span class="samp">mk</span></samp>&rsquo;<dd>Macedonian. 
<br><dt>&lsquo;<samp><span class="samp">ml</span></samp>&rsquo;<dd>Malayalam. 
<br><dt>&lsquo;<samp><span class="samp">mn</span></samp>&rsquo;<dd>Mongolian. 
<br><dt>&lsquo;<samp><span class="samp">mo</span></samp>&rsquo;<dd>Moldavian. 
<br><dt>&lsquo;<samp><span class="samp">mr</span></samp>&rsquo;<dd>Marathi. 
<br><dt>&lsquo;<samp><span class="samp">ms</span></samp>&rsquo;<dd>Malay. 
<br><dt>&lsquo;<samp><span class="samp">mt</span></samp>&rsquo;<dd>Maltese. 
<br><dt>&lsquo;<samp><span class="samp">my</span></samp>&rsquo;<dd>Burmese. 
<br><dt>&lsquo;<samp><span class="samp">na</span></samp>&rsquo;<dd>Nauru. 
<br><dt>&lsquo;<samp><span class="samp">nb</span></samp>&rsquo;<dd>Norwegian Bokm&aring;l. 
<br><dt>&lsquo;<samp><span class="samp">nd</span></samp>&rsquo;<dd>Ndebele, North. 
<br><dt>&lsquo;<samp><span class="samp">ne</span></samp>&rsquo;<dd>Nepali. 
<br><dt>&lsquo;<samp><span class="samp">ng</span></samp>&rsquo;<dd>Ndonga. 
<br><dt>&lsquo;<samp><span class="samp">nl</span></samp>&rsquo;<dd>Dutch. 
<br><dt>&lsquo;<samp><span class="samp">nn</span></samp>&rsquo;<dd>Norwegian Nynorsk. 
<br><dt>&lsquo;<samp><span class="samp">no</span></samp>&rsquo;<dd>Norwegian. 
<br><dt>&lsquo;<samp><span class="samp">nr</span></samp>&rsquo;<dd>Ndebele, South. 
<br><dt>&lsquo;<samp><span class="samp">nv</span></samp>&rsquo;<dd>Navajo; Navaho. 
<br><dt>&lsquo;<samp><span class="samp">ny</span></samp>&rsquo;<dd>Chichewa; Nyanja. 
<br><dt>&lsquo;<samp><span class="samp">oc</span></samp>&rsquo;<dd>Occitan; Proven&ccedil;al. 
<br><dt>&lsquo;<samp><span class="samp">oj</span></samp>&rsquo;<dd>Ojibwa. 
<br><dt>&lsquo;<samp><span class="samp">om</span></samp>&rsquo;<dd>(Afan) Oromo. 
<br><dt>&lsquo;<samp><span class="samp">or</span></samp>&rsquo;<dd>Oriya. 
<br><dt>&lsquo;<samp><span class="samp">os</span></samp>&rsquo;<dd>Ossetian; Ossetic. 
<br><dt>&lsquo;<samp><span class="samp">pa</span></samp>&rsquo;<dd>Panjabi; Punjabi. 
<br><dt>&lsquo;<samp><span class="samp">pi</span></samp>&rsquo;<dd>Pali. 
<br><dt>&lsquo;<samp><span class="samp">pl</span></samp>&rsquo;<dd>Polish. 
<br><dt>&lsquo;<samp><span class="samp">ps</span></samp>&rsquo;<dd>Pashto; Pushto. 
<br><dt>&lsquo;<samp><span class="samp">pt</span></samp>&rsquo;<dd>Portuguese. 
<br><dt>&lsquo;<samp><span class="samp">qu</span></samp>&rsquo;<dd>Quechua. 
<br><dt>&lsquo;<samp><span class="samp">rm</span></samp>&rsquo;<dd>Romansh. 
<br><dt>&lsquo;<samp><span class="samp">rn</span></samp>&rsquo;<dd>Rundi; Kirundi. 
<br><dt>&lsquo;<samp><span class="samp">ro</span></samp>&rsquo;<dd>Romanian. 
<br><dt>&lsquo;<samp><span class="samp">ru</span></samp>&rsquo;<dd>Russian. 
<br><dt>&lsquo;<samp><span class="samp">rw</span></samp>&rsquo;<dd>Kinyarwanda. 
<br><dt>&lsquo;<samp><span class="samp">sa</span></samp>&rsquo;<dd>Sanskrit. 
<br><dt>&lsquo;<samp><span class="samp">sc</span></samp>&rsquo;<dd>Sardinian. 
<br><dt>&lsquo;<samp><span class="samp">sd</span></samp>&rsquo;<dd>Sindhi. 
<br><dt>&lsquo;<samp><span class="samp">se</span></samp>&rsquo;<dd>Northern Sami. 
<br><dt>&lsquo;<samp><span class="samp">sg</span></samp>&rsquo;<dd>Sango; Sangro. 
<br><dt>&lsquo;<samp><span class="samp">si</span></samp>&rsquo;<dd>Sinhala; Sinhalese. 
<br><dt>&lsquo;<samp><span class="samp">sk</span></samp>&rsquo;<dd>Slovak. 
<br><dt>&lsquo;<samp><span class="samp">sl</span></samp>&rsquo;<dd>Slovenian. 
<br><dt>&lsquo;<samp><span class="samp">sm</span></samp>&rsquo;<dd>Samoan. 
<br><dt>&lsquo;<samp><span class="samp">sn</span></samp>&rsquo;<dd>Shona. 
<br><dt>&lsquo;<samp><span class="samp">so</span></samp>&rsquo;<dd>Somali. 
<br><dt>&lsquo;<samp><span class="samp">sq</span></samp>&rsquo;<dd>Albanian. 
<br><dt>&lsquo;<samp><span class="samp">sr</span></samp>&rsquo;<dd>Serbian. 
<br><dt>&lsquo;<samp><span class="samp">ss</span></samp>&rsquo;<dd>Swati; Siswati. 
<br><dt>&lsquo;<samp><span class="samp">st</span></samp>&rsquo;<dd>Sesotho; Sotho, Southern. 
<br><dt>&lsquo;<samp><span class="samp">su</span></samp>&rsquo;<dd>Sundanese. 
<br><dt>&lsquo;<samp><span class="samp">sv</span></samp>&rsquo;<dd>Swedish. 
<br><dt>&lsquo;<samp><span class="samp">sw</span></samp>&rsquo;<dd>Swahili. 
<br><dt>&lsquo;<samp><span class="samp">ta</span></samp>&rsquo;<dd>Tamil. 
<br><dt>&lsquo;<samp><span class="samp">te</span></samp>&rsquo;<dd>Telugu. 
<br><dt>&lsquo;<samp><span class="samp">tg</span></samp>&rsquo;<dd>Tajik. 
<br><dt>&lsquo;<samp><span class="samp">th</span></samp>&rsquo;<dd>Thai. 
<br><dt>&lsquo;<samp><span class="samp">ti</span></samp>&rsquo;<dd>Tigrinya. 
<br><dt>&lsquo;<samp><span class="samp">tk</span></samp>&rsquo;<dd>Turkmen. 
<br><dt>&lsquo;<samp><span class="samp">tl</span></samp>&rsquo;<dd>Tagalog. 
<br><dt>&lsquo;<samp><span class="samp">tn</span></samp>&rsquo;<dd>Tswana; Setswana. 
<br><dt>&lsquo;<samp><span class="samp">to</span></samp>&rsquo;<dd>Tonga. 
<br><dt>&lsquo;<samp><span class="samp">tr</span></samp>&rsquo;<dd>Turkish. 
<br><dt>&lsquo;<samp><span class="samp">ts</span></samp>&rsquo;<dd>Tsonga. 
<br><dt>&lsquo;<samp><span class="samp">tt</span></samp>&rsquo;<dd>Tatar. 
<br><dt>&lsquo;<samp><span class="samp">tw</span></samp>&rsquo;<dd>Twi. 
<br><dt>&lsquo;<samp><span class="samp">ty</span></samp>&rsquo;<dd>Tahitian. 
<br><dt>&lsquo;<samp><span class="samp">ug</span></samp>&rsquo;<dd>Uighur. 
<br><dt>&lsquo;<samp><span class="samp">uk</span></samp>&rsquo;<dd>Ukrainian. 
<br><dt>&lsquo;<samp><span class="samp">ur</span></samp>&rsquo;<dd>Urdu. 
<br><dt>&lsquo;<samp><span class="samp">uz</span></samp>&rsquo;<dd>Uzbek. 
<br><dt>&lsquo;<samp><span class="samp">ve</span></samp>&rsquo;<dd>Venda. 
<br><dt>&lsquo;<samp><span class="samp">vi</span></samp>&rsquo;<dd>Vietnamese. 
<br><dt>&lsquo;<samp><span class="samp">vo</span></samp>&rsquo;<dd>Volap&uuml;k; Volapuk. 
<br><dt>&lsquo;<samp><span class="samp">wa</span></samp>&rsquo;<dd>Walloon. 
<br><dt>&lsquo;<samp><span class="samp">wo</span></samp>&rsquo;<dd>Wolof. 
<br><dt>&lsquo;<samp><span class="samp">xh</span></samp>&rsquo;<dd>Xhosa. 
<br><dt>&lsquo;<samp><span class="samp">yi</span></samp>&rsquo;<dd>Yiddish (formerly ji). 
<br><dt>&lsquo;<samp><span class="samp">yo</span></samp>&rsquo;<dd>Yoruba. 
<br><dt>&lsquo;<samp><span class="samp">za</span></samp>&rsquo;<dd>Zhuang. 
<br><dt>&lsquo;<samp><span class="samp">zh</span></samp>&rsquo;<dd>Chinese. 
<br><dt>&lsquo;<samp><span class="samp">zu</span></samp>&rsquo;<dd>Zulu. 
</dl>

<div class="node">
<a name="Rare-Language-Codes"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Usual-Language-Codes">Usual Language Codes</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Language-Codes">Language Codes</a>

</div>

<h3 class="appendixsec">A.2 Rare Language Codes</h3>

   <p>For rarely used languages, the ISO&nbsp;639-2<!-- /@w --> standard defines three-letter
codes.  Here is the current list, reduced to only living languages with at least
one million of speakers.

     <dl>
<dt>&lsquo;<samp><span class="samp">ace</span></samp>&rsquo;<dd>Achinese. 
<br><dt>&lsquo;<samp><span class="samp">awa</span></samp>&rsquo;<dd>Awadhi. 
<br><dt>&lsquo;<samp><span class="samp">bal</span></samp>&rsquo;<dd>Baluchi. 
<br><dt>&lsquo;<samp><span class="samp">ban</span></samp>&rsquo;<dd>Balinese. 
<br><dt>&lsquo;<samp><span class="samp">bej</span></samp>&rsquo;<dd>Beja; Bedawiyet. 
<br><dt>&lsquo;<samp><span class="samp">bem</span></samp>&rsquo;<dd>Bemba. 
<br><dt>&lsquo;<samp><span class="samp">bho</span></samp>&rsquo;<dd>Bhojpuri. 
<br><dt>&lsquo;<samp><span class="samp">bik</span></samp>&rsquo;<dd>Bikol. 
<br><dt>&lsquo;<samp><span class="samp">bin</span></samp>&rsquo;<dd>Bini; Edo. 
<br><dt>&lsquo;<samp><span class="samp">bug</span></samp>&rsquo;<dd>Buginese. 
<br><dt>&lsquo;<samp><span class="samp">ceb</span></samp>&rsquo;<dd>Cebuano. 
<br><dt>&lsquo;<samp><span class="samp">din</span></samp>&rsquo;<dd>Dinka. 
<br><dt>&lsquo;<samp><span class="samp">doi</span></samp>&rsquo;<dd>Dogri. 
<br><dt>&lsquo;<samp><span class="samp">fil</span></samp>&rsquo;<dd>Filipino; Pilipino. 
<br><dt>&lsquo;<samp><span class="samp">fon</span></samp>&rsquo;<dd>Fon. 
<br><dt>&lsquo;<samp><span class="samp">gon</span></samp>&rsquo;<dd>Gondi. 
<br><dt>&lsquo;<samp><span class="samp">gsw</span></samp>&rsquo;<dd>Swiss German; Alemannic; Alsatian. 
<br><dt>&lsquo;<samp><span class="samp">hil</span></samp>&rsquo;<dd>Hiligaynon. 
<br><dt>&lsquo;<samp><span class="samp">hmn</span></samp>&rsquo;<dd>Hmong. 
<br><dt>&lsquo;<samp><span class="samp">ilo</span></samp>&rsquo;<dd>Iloko. 
<br><dt>&lsquo;<samp><span class="samp">kab</span></samp>&rsquo;<dd>Kabyle. 
<br><dt>&lsquo;<samp><span class="samp">kam</span></samp>&rsquo;<dd>Kamba. 
<br><dt>&lsquo;<samp><span class="samp">kbd</span></samp>&rsquo;<dd>Kabardian. 
<br><dt>&lsquo;<samp><span class="samp">kmb</span></samp>&rsquo;<dd>Kimbundu. 
<br><dt>&lsquo;<samp><span class="samp">kok</span></samp>&rsquo;<dd>Konkani. 
<br><dt>&lsquo;<samp><span class="samp">kru</span></samp>&rsquo;<dd>Kurukh. 
<br><dt>&lsquo;<samp><span class="samp">lua</span></samp>&rsquo;<dd>Luba-Lulua. 
<br><dt>&lsquo;<samp><span class="samp">luo</span></samp>&rsquo;<dd>Luo (Kenya and Tanzania). 
<br><dt>&lsquo;<samp><span class="samp">mad</span></samp>&rsquo;<dd>Madurese. 
<br><dt>&lsquo;<samp><span class="samp">mag</span></samp>&rsquo;<dd>Magahi. 
<br><dt>&lsquo;<samp><span class="samp">mai</span></samp>&rsquo;<dd>Maithili. 
<br><dt>&lsquo;<samp><span class="samp">mak</span></samp>&rsquo;<dd>Makasar. 
<br><dt>&lsquo;<samp><span class="samp">man</span></samp>&rsquo;<dd>Mandingo. 
<br><dt>&lsquo;<samp><span class="samp">men</span></samp>&rsquo;<dd>Mende. 
<br><dt>&lsquo;<samp><span class="samp">min</span></samp>&rsquo;<dd>Minangkabau. 
<br><dt>&lsquo;<samp><span class="samp">mni</span></samp>&rsquo;<dd>Manipuri. 
<br><dt>&lsquo;<samp><span class="samp">mos</span></samp>&rsquo;<dd>Mossi. 
<br><dt>&lsquo;<samp><span class="samp">mwr</span></samp>&rsquo;<dd>Marwari. 
<br><dt>&lsquo;<samp><span class="samp">nap</span></samp>&rsquo;<dd>Neapolitan. 
<br><dt>&lsquo;<samp><span class="samp">nso</span></samp>&rsquo;<dd>Pedi; Sepedi; Northern Sotho. 
<br><dt>&lsquo;<samp><span class="samp">nym</span></samp>&rsquo;<dd>Nyamwezi. 
<br><dt>&lsquo;<samp><span class="samp">nyn</span></samp>&rsquo;<dd>Nyankole. 
<br><dt>&lsquo;<samp><span class="samp">pag</span></samp>&rsquo;<dd>Pangasinan. 
<br><dt>&lsquo;<samp><span class="samp">pam</span></samp>&rsquo;<dd>Pampanga; Kapampangan. 
<br><dt>&lsquo;<samp><span class="samp">raj</span></samp>&rsquo;<dd>Rajasthani. 
<br><dt>&lsquo;<samp><span class="samp">sas</span></samp>&rsquo;<dd>Sasak. 
<br><dt>&lsquo;<samp><span class="samp">sat</span></samp>&rsquo;<dd>Santali. 
<br><dt>&lsquo;<samp><span class="samp">scn</span></samp>&rsquo;<dd>Sicilian. 
<br><dt>&lsquo;<samp><span class="samp">shn</span></samp>&rsquo;<dd>Shan. 
<br><dt>&lsquo;<samp><span class="samp">sid</span></samp>&rsquo;<dd>Sidamo. 
<br><dt>&lsquo;<samp><span class="samp">srr</span></samp>&rsquo;<dd>Serer. 
<br><dt>&lsquo;<samp><span class="samp">suk</span></samp>&rsquo;<dd>Sukuma. 
<br><dt>&lsquo;<samp><span class="samp">sus</span></samp>&rsquo;<dd>Susu. 
<br><dt>&lsquo;<samp><span class="samp">tem</span></samp>&rsquo;<dd>Timne. 
<br><dt>&lsquo;<samp><span class="samp">tiv</span></samp>&rsquo;<dd>Tiv. 
<br><dt>&lsquo;<samp><span class="samp">tum</span></samp>&rsquo;<dd>Tumbuka. 
<br><dt>&lsquo;<samp><span class="samp">umb</span></samp>&rsquo;<dd>Umbundu. 
<br><dt>&lsquo;<samp><span class="samp">wal</span></samp>&rsquo;<dd>Walamo. 
<br><dt>&lsquo;<samp><span class="samp">war</span></samp>&rsquo;<dd>Waray. 
<br><dt>&lsquo;<samp><span class="samp">yao</span></samp>&rsquo;<dd>Yao. 
</dl>

<div class="node">
<a name="Country-Codes"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Licenses">Licenses</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Language-Codes">Language Codes</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="appendix">Appendix B Country Codes</h2>

   <p><a name="index-country-codes-1263"></a><a name="index-ISO-3166-1264"></a>
The ISO&nbsp;3166<!-- /@w --> standard defines two character codes for many countries
and territories.  All abbreviations for countries used in the Translation
Project should come from this standard.

     <dl>
<dt>&lsquo;<samp><span class="samp">AD</span></samp>&rsquo;<dd>Andorra. 
<br><dt>&lsquo;<samp><span class="samp">AE</span></samp>&rsquo;<dd>United Arab Emirates. 
<br><dt>&lsquo;<samp><span class="samp">AF</span></samp>&rsquo;<dd>Afghanistan. 
<br><dt>&lsquo;<samp><span class="samp">AG</span></samp>&rsquo;<dd>Antigua and Barbuda. 
<br><dt>&lsquo;<samp><span class="samp">AI</span></samp>&rsquo;<dd>Anguilla. 
<br><dt>&lsquo;<samp><span class="samp">AL</span></samp>&rsquo;<dd>Albania. 
<br><dt>&lsquo;<samp><span class="samp">AM</span></samp>&rsquo;<dd>Armenia. 
<br><dt>&lsquo;<samp><span class="samp">AN</span></samp>&rsquo;<dd>Netherlands Antilles. 
<br><dt>&lsquo;<samp><span class="samp">AO</span></samp>&rsquo;<dd>Angola. 
<br><dt>&lsquo;<samp><span class="samp">AQ</span></samp>&rsquo;<dd>Antarctica. 
<br><dt>&lsquo;<samp><span class="samp">AR</span></samp>&rsquo;<dd>Argentina. 
<br><dt>&lsquo;<samp><span class="samp">AS</span></samp>&rsquo;<dd>Samoa (American). 
<br><dt>&lsquo;<samp><span class="samp">AT</span></samp>&rsquo;<dd>Austria. 
<br><dt>&lsquo;<samp><span class="samp">AU</span></samp>&rsquo;<dd>Australia. 
<br><dt>&lsquo;<samp><span class="samp">AW</span></samp>&rsquo;<dd>Aruba. 
<br><dt>&lsquo;<samp><span class="samp">AX</span></samp>&rsquo;<dd>Aaland Islands. 
<br><dt>&lsquo;<samp><span class="samp">AZ</span></samp>&rsquo;<dd>Azerbaijan. 
<br><dt>&lsquo;<samp><span class="samp">BA</span></samp>&rsquo;<dd>Bosnia and Herzegovina. 
<br><dt>&lsquo;<samp><span class="samp">BB</span></samp>&rsquo;<dd>Barbados. 
<br><dt>&lsquo;<samp><span class="samp">BD</span></samp>&rsquo;<dd>Bangladesh. 
<br><dt>&lsquo;<samp><span class="samp">BE</span></samp>&rsquo;<dd>Belgium. 
<br><dt>&lsquo;<samp><span class="samp">BF</span></samp>&rsquo;<dd>Burkina Faso. 
<br><dt>&lsquo;<samp><span class="samp">BG</span></samp>&rsquo;<dd>Bulgaria. 
<br><dt>&lsquo;<samp><span class="samp">BH</span></samp>&rsquo;<dd>Bahrain. 
<br><dt>&lsquo;<samp><span class="samp">BI</span></samp>&rsquo;<dd>Burundi. 
<br><dt>&lsquo;<samp><span class="samp">BJ</span></samp>&rsquo;<dd>Benin. 
<br><dt>&lsquo;<samp><span class="samp">BM</span></samp>&rsquo;<dd>Bermuda. 
<br><dt>&lsquo;<samp><span class="samp">BN</span></samp>&rsquo;<dd>Brunei. 
<br><dt>&lsquo;<samp><span class="samp">BO</span></samp>&rsquo;<dd>Bolivia. 
<br><dt>&lsquo;<samp><span class="samp">BR</span></samp>&rsquo;<dd>Brazil. 
<br><dt>&lsquo;<samp><span class="samp">BS</span></samp>&rsquo;<dd>Bahamas. 
<br><dt>&lsquo;<samp><span class="samp">BT</span></samp>&rsquo;<dd>Bhutan. 
<br><dt>&lsquo;<samp><span class="samp">BV</span></samp>&rsquo;<dd>Bouvet Island. 
<br><dt>&lsquo;<samp><span class="samp">BW</span></samp>&rsquo;<dd>Botswana. 
<br><dt>&lsquo;<samp><span class="samp">BY</span></samp>&rsquo;<dd>Belarus. 
<br><dt>&lsquo;<samp><span class="samp">BZ</span></samp>&rsquo;<dd>Belize. 
<br><dt>&lsquo;<samp><span class="samp">CA</span></samp>&rsquo;<dd>Canada. 
<br><dt>&lsquo;<samp><span class="samp">CC</span></samp>&rsquo;<dd>Cocos (Keeling) Islands. 
<br><dt>&lsquo;<samp><span class="samp">CD</span></samp>&rsquo;<dd>Congo (Dem. Rep.). 
<br><dt>&lsquo;<samp><span class="samp">CF</span></samp>&rsquo;<dd>Central African Republic. 
<br><dt>&lsquo;<samp><span class="samp">CG</span></samp>&rsquo;<dd>Congo (Rep.). 
<br><dt>&lsquo;<samp><span class="samp">CH</span></samp>&rsquo;<dd>Switzerland. 
<br><dt>&lsquo;<samp><span class="samp">CI</span></samp>&rsquo;<dd>C&ocirc;te d'Ivoire. 
<br><dt>&lsquo;<samp><span class="samp">CK</span></samp>&rsquo;<dd>Cook Islands. 
<br><dt>&lsquo;<samp><span class="samp">CL</span></samp>&rsquo;<dd>Chile. 
<br><dt>&lsquo;<samp><span class="samp">CM</span></samp>&rsquo;<dd>Cameroon. 
<br><dt>&lsquo;<samp><span class="samp">CN</span></samp>&rsquo;<dd>China. 
<br><dt>&lsquo;<samp><span class="samp">CO</span></samp>&rsquo;<dd>Colombia. 
<br><dt>&lsquo;<samp><span class="samp">CR</span></samp>&rsquo;<dd>Costa Rica. 
<br><dt>&lsquo;<samp><span class="samp">CU</span></samp>&rsquo;<dd>Cuba. 
<br><dt>&lsquo;<samp><span class="samp">CV</span></samp>&rsquo;<dd>Cape Verde. 
<br><dt>&lsquo;<samp><span class="samp">CX</span></samp>&rsquo;<dd>Christmas Island. 
<br><dt>&lsquo;<samp><span class="samp">CY</span></samp>&rsquo;<dd>Cyprus. 
<br><dt>&lsquo;<samp><span class="samp">CZ</span></samp>&rsquo;<dd>Czech Republic. 
<br><dt>&lsquo;<samp><span class="samp">DE</span></samp>&rsquo;<dd>Germany. 
<br><dt>&lsquo;<samp><span class="samp">DJ</span></samp>&rsquo;<dd>Djibouti. 
<br><dt>&lsquo;<samp><span class="samp">DK</span></samp>&rsquo;<dd>Denmark. 
<br><dt>&lsquo;<samp><span class="samp">DM</span></samp>&rsquo;<dd>Dominica. 
<br><dt>&lsquo;<samp><span class="samp">DO</span></samp>&rsquo;<dd>Dominican Republic. 
<br><dt>&lsquo;<samp><span class="samp">DZ</span></samp>&rsquo;<dd>Algeria. 
<br><dt>&lsquo;<samp><span class="samp">EC</span></samp>&rsquo;<dd>Ecuador. 
<br><dt>&lsquo;<samp><span class="samp">EE</span></samp>&rsquo;<dd>Estonia. 
<br><dt>&lsquo;<samp><span class="samp">EG</span></samp>&rsquo;<dd>Egypt. 
<br><dt>&lsquo;<samp><span class="samp">EH</span></samp>&rsquo;<dd>Western Sahara. 
<br><dt>&lsquo;<samp><span class="samp">ER</span></samp>&rsquo;<dd>Eritrea. 
<br><dt>&lsquo;<samp><span class="samp">ES</span></samp>&rsquo;<dd>Spain. 
<br><dt>&lsquo;<samp><span class="samp">ET</span></samp>&rsquo;<dd>Ethiopia. 
<br><dt>&lsquo;<samp><span class="samp">FI</span></samp>&rsquo;<dd>Finland. 
<br><dt>&lsquo;<samp><span class="samp">FJ</span></samp>&rsquo;<dd>Fiji. 
<br><dt>&lsquo;<samp><span class="samp">FK</span></samp>&rsquo;<dd>Falkland Islands. 
<br><dt>&lsquo;<samp><span class="samp">FM</span></samp>&rsquo;<dd>Micronesia. 
<br><dt>&lsquo;<samp><span class="samp">FO</span></samp>&rsquo;<dd>Faeroe Islands. 
<br><dt>&lsquo;<samp><span class="samp">FR</span></samp>&rsquo;<dd>France. 
<br><dt>&lsquo;<samp><span class="samp">GA</span></samp>&rsquo;<dd>Gabon. 
<br><dt>&lsquo;<samp><span class="samp">GB</span></samp>&rsquo;<dd>Britain (United Kingdom). 
<br><dt>&lsquo;<samp><span class="samp">GD</span></samp>&rsquo;<dd>Grenada. 
<br><dt>&lsquo;<samp><span class="samp">GE</span></samp>&rsquo;<dd>Georgia. 
<br><dt>&lsquo;<samp><span class="samp">GF</span></samp>&rsquo;<dd>French Guiana. 
<br><dt>&lsquo;<samp><span class="samp">GG</span></samp>&rsquo;<dd>Guernsey. 
<br><dt>&lsquo;<samp><span class="samp">GH</span></samp>&rsquo;<dd>Ghana. 
<br><dt>&lsquo;<samp><span class="samp">GI</span></samp>&rsquo;<dd>Gibraltar. 
<br><dt>&lsquo;<samp><span class="samp">GL</span></samp>&rsquo;<dd>Greenland. 
<br><dt>&lsquo;<samp><span class="samp">GM</span></samp>&rsquo;<dd>Gambia. 
<br><dt>&lsquo;<samp><span class="samp">GN</span></samp>&rsquo;<dd>Guinea. 
<br><dt>&lsquo;<samp><span class="samp">GP</span></samp>&rsquo;<dd>Guadeloupe. 
<br><dt>&lsquo;<samp><span class="samp">GQ</span></samp>&rsquo;<dd>Equatorial Guinea. 
<br><dt>&lsquo;<samp><span class="samp">GR</span></samp>&rsquo;<dd>Greece. 
<br><dt>&lsquo;<samp><span class="samp">GS</span></samp>&rsquo;<dd>South Georgia and the South Sandwich Islands. 
<br><dt>&lsquo;<samp><span class="samp">GT</span></samp>&rsquo;<dd>Guatemala. 
<br><dt>&lsquo;<samp><span class="samp">GU</span></samp>&rsquo;<dd>Guam. 
<br><dt>&lsquo;<samp><span class="samp">GW</span></samp>&rsquo;<dd>Guinea-Bissau. 
<br><dt>&lsquo;<samp><span class="samp">GY</span></samp>&rsquo;<dd>Guyana. 
<br><dt>&lsquo;<samp><span class="samp">HK</span></samp>&rsquo;<dd>Hong Kong. 
<br><dt>&lsquo;<samp><span class="samp">HM</span></samp>&rsquo;<dd>Heard Island and McDonald Islands. 
<br><dt>&lsquo;<samp><span class="samp">HN</span></samp>&rsquo;<dd>Honduras. 
<br><dt>&lsquo;<samp><span class="samp">HR</span></samp>&rsquo;<dd>Croatia. 
<br><dt>&lsquo;<samp><span class="samp">HT</span></samp>&rsquo;<dd>Haiti. 
<br><dt>&lsquo;<samp><span class="samp">HU</span></samp>&rsquo;<dd>Hungary. 
<br><dt>&lsquo;<samp><span class="samp">ID</span></samp>&rsquo;<dd>Indonesia. 
<br><dt>&lsquo;<samp><span class="samp">IE</span></samp>&rsquo;<dd>Ireland. 
<br><dt>&lsquo;<samp><span class="samp">IL</span></samp>&rsquo;<dd>Israel. 
<br><dt>&lsquo;<samp><span class="samp">IM</span></samp>&rsquo;<dd>Isle of Man. 
<br><dt>&lsquo;<samp><span class="samp">IN</span></samp>&rsquo;<dd>India. 
<br><dt>&lsquo;<samp><span class="samp">IO</span></samp>&rsquo;<dd>British Indian Ocean Territory. 
<br><dt>&lsquo;<samp><span class="samp">IQ</span></samp>&rsquo;<dd>Iraq. 
<br><dt>&lsquo;<samp><span class="samp">IR</span></samp>&rsquo;<dd>Iran. 
<br><dt>&lsquo;<samp><span class="samp">IS</span></samp>&rsquo;<dd>Iceland. 
<br><dt>&lsquo;<samp><span class="samp">IT</span></samp>&rsquo;<dd>Italy. 
<br><dt>&lsquo;<samp><span class="samp">JE</span></samp>&rsquo;<dd>Jersey. 
<br><dt>&lsquo;<samp><span class="samp">JM</span></samp>&rsquo;<dd>Jamaica. 
<br><dt>&lsquo;<samp><span class="samp">JO</span></samp>&rsquo;<dd>Jordan. 
<br><dt>&lsquo;<samp><span class="samp">JP</span></samp>&rsquo;<dd>Japan. 
<br><dt>&lsquo;<samp><span class="samp">KE</span></samp>&rsquo;<dd>Kenya. 
<br><dt>&lsquo;<samp><span class="samp">KG</span></samp>&rsquo;<dd>Kyrgyzstan. 
<br><dt>&lsquo;<samp><span class="samp">KH</span></samp>&rsquo;<dd>Cambodia. 
<br><dt>&lsquo;<samp><span class="samp">KI</span></samp>&rsquo;<dd>Kiribati. 
<br><dt>&lsquo;<samp><span class="samp">KM</span></samp>&rsquo;<dd>Comoros. 
<br><dt>&lsquo;<samp><span class="samp">KN</span></samp>&rsquo;<dd>St Kitts and Nevis. 
<br><dt>&lsquo;<samp><span class="samp">KP</span></samp>&rsquo;<dd>Korea (North). 
<br><dt>&lsquo;<samp><span class="samp">KR</span></samp>&rsquo;<dd>Korea (South). 
<br><dt>&lsquo;<samp><span class="samp">KW</span></samp>&rsquo;<dd>Kuwait. 
<br><dt>&lsquo;<samp><span class="samp">KY</span></samp>&rsquo;<dd>Cayman Islands. 
<br><dt>&lsquo;<samp><span class="samp">KZ</span></samp>&rsquo;<dd>Kazakhstan. 
<br><dt>&lsquo;<samp><span class="samp">LA</span></samp>&rsquo;<dd>Laos. 
<br><dt>&lsquo;<samp><span class="samp">LB</span></samp>&rsquo;<dd>Lebanon. 
<br><dt>&lsquo;<samp><span class="samp">LC</span></samp>&rsquo;<dd>St Lucia. 
<br><dt>&lsquo;<samp><span class="samp">LI</span></samp>&rsquo;<dd>Liechtenstein. 
<br><dt>&lsquo;<samp><span class="samp">LK</span></samp>&rsquo;<dd>Sri Lanka. 
<br><dt>&lsquo;<samp><span class="samp">LR</span></samp>&rsquo;<dd>Liberia. 
<br><dt>&lsquo;<samp><span class="samp">LS</span></samp>&rsquo;<dd>Lesotho. 
<br><dt>&lsquo;<samp><span class="samp">LT</span></samp>&rsquo;<dd>Lithuania. 
<br><dt>&lsquo;<samp><span class="samp">LU</span></samp>&rsquo;<dd>Luxembourg. 
<br><dt>&lsquo;<samp><span class="samp">LV</span></samp>&rsquo;<dd>Latvia. 
<br><dt>&lsquo;<samp><span class="samp">LY</span></samp>&rsquo;<dd>Libya. 
<br><dt>&lsquo;<samp><span class="samp">MA</span></samp>&rsquo;<dd>Morocco. 
<br><dt>&lsquo;<samp><span class="samp">MC</span></samp>&rsquo;<dd>Monaco. 
<br><dt>&lsquo;<samp><span class="samp">MD</span></samp>&rsquo;<dd>Moldova. 
<br><dt>&lsquo;<samp><span class="samp">ME</span></samp>&rsquo;<dd>Montenegro. 
<br><dt>&lsquo;<samp><span class="samp">MG</span></samp>&rsquo;<dd>Madagascar. 
<br><dt>&lsquo;<samp><span class="samp">MH</span></samp>&rsquo;<dd>Marshall Islands. 
<br><dt>&lsquo;<samp><span class="samp">MK</span></samp>&rsquo;<dd>Macedonia. 
<br><dt>&lsquo;<samp><span class="samp">ML</span></samp>&rsquo;<dd>Mali. 
<br><dt>&lsquo;<samp><span class="samp">MM</span></samp>&rsquo;<dd>Myanmar (Burma). 
<br><dt>&lsquo;<samp><span class="samp">MN</span></samp>&rsquo;<dd>Mongolia. 
<br><dt>&lsquo;<samp><span class="samp">MO</span></samp>&rsquo;<dd>Macao. 
<br><dt>&lsquo;<samp><span class="samp">MP</span></samp>&rsquo;<dd>Northern Mariana Islands. 
<br><dt>&lsquo;<samp><span class="samp">MQ</span></samp>&rsquo;<dd>Martinique. 
<br><dt>&lsquo;<samp><span class="samp">MR</span></samp>&rsquo;<dd>Mauritania. 
<br><dt>&lsquo;<samp><span class="samp">MS</span></samp>&rsquo;<dd>Montserrat. 
<br><dt>&lsquo;<samp><span class="samp">MT</span></samp>&rsquo;<dd>Malta. 
<br><dt>&lsquo;<samp><span class="samp">MU</span></samp>&rsquo;<dd>Mauritius. 
<br><dt>&lsquo;<samp><span class="samp">MV</span></samp>&rsquo;<dd>Maldives. 
<br><dt>&lsquo;<samp><span class="samp">MW</span></samp>&rsquo;<dd>Malawi. 
<br><dt>&lsquo;<samp><span class="samp">MX</span></samp>&rsquo;<dd>Mexico. 
<br><dt>&lsquo;<samp><span class="samp">MY</span></samp>&rsquo;<dd>Malaysia. 
<br><dt>&lsquo;<samp><span class="samp">MZ</span></samp>&rsquo;<dd>Mozambique. 
<br><dt>&lsquo;<samp><span class="samp">NA</span></samp>&rsquo;<dd>Namibia. 
<br><dt>&lsquo;<samp><span class="samp">NC</span></samp>&rsquo;<dd>New Caledonia. 
<br><dt>&lsquo;<samp><span class="samp">NE</span></samp>&rsquo;<dd>Niger. 
<br><dt>&lsquo;<samp><span class="samp">NF</span></samp>&rsquo;<dd>Norfolk Island. 
<br><dt>&lsquo;<samp><span class="samp">NG</span></samp>&rsquo;<dd>Nigeria. 
<br><dt>&lsquo;<samp><span class="samp">NI</span></samp>&rsquo;<dd>Nicaragua. 
<br><dt>&lsquo;<samp><span class="samp">NL</span></samp>&rsquo;<dd>Netherlands. 
<br><dt>&lsquo;<samp><span class="samp">NO</span></samp>&rsquo;<dd>Norway. 
<br><dt>&lsquo;<samp><span class="samp">NP</span></samp>&rsquo;<dd>Nepal. 
<br><dt>&lsquo;<samp><span class="samp">NR</span></samp>&rsquo;<dd>Nauru. 
<br><dt>&lsquo;<samp><span class="samp">NU</span></samp>&rsquo;<dd>Niue. 
<br><dt>&lsquo;<samp><span class="samp">NZ</span></samp>&rsquo;<dd>New Zealand. 
<br><dt>&lsquo;<samp><span class="samp">OM</span></samp>&rsquo;<dd>Oman. 
<br><dt>&lsquo;<samp><span class="samp">PA</span></samp>&rsquo;<dd>Panama. 
<br><dt>&lsquo;<samp><span class="samp">PE</span></samp>&rsquo;<dd>Peru. 
<br><dt>&lsquo;<samp><span class="samp">PF</span></samp>&rsquo;<dd>French Polynesia. 
<br><dt>&lsquo;<samp><span class="samp">PG</span></samp>&rsquo;<dd>Papua New Guinea. 
<br><dt>&lsquo;<samp><span class="samp">PH</span></samp>&rsquo;<dd>Philippines. 
<br><dt>&lsquo;<samp><span class="samp">PK</span></samp>&rsquo;<dd>Pakistan. 
<br><dt>&lsquo;<samp><span class="samp">PL</span></samp>&rsquo;<dd>Poland. 
<br><dt>&lsquo;<samp><span class="samp">PM</span></samp>&rsquo;<dd>St Pierre and Miquelon. 
<br><dt>&lsquo;<samp><span class="samp">PN</span></samp>&rsquo;<dd>Pitcairn. 
<br><dt>&lsquo;<samp><span class="samp">PR</span></samp>&rsquo;<dd>Puerto Rico. 
<br><dt>&lsquo;<samp><span class="samp">PS</span></samp>&rsquo;<dd>Palestine. 
<br><dt>&lsquo;<samp><span class="samp">PT</span></samp>&rsquo;<dd>Portugal. 
<br><dt>&lsquo;<samp><span class="samp">PW</span></samp>&rsquo;<dd>Palau. 
<br><dt>&lsquo;<samp><span class="samp">PY</span></samp>&rsquo;<dd>Paraguay. 
<br><dt>&lsquo;<samp><span class="samp">QA</span></samp>&rsquo;<dd>Qatar. 
<br><dt>&lsquo;<samp><span class="samp">RE</span></samp>&rsquo;<dd>Reunion. 
<br><dt>&lsquo;<samp><span class="samp">RO</span></samp>&rsquo;<dd>Romania. 
<br><dt>&lsquo;<samp><span class="samp">RS</span></samp>&rsquo;<dd>Serbia. 
<br><dt>&lsquo;<samp><span class="samp">RU</span></samp>&rsquo;<dd>Russia. 
<br><dt>&lsquo;<samp><span class="samp">RW</span></samp>&rsquo;<dd>Rwanda. 
<br><dt>&lsquo;<samp><span class="samp">SA</span></samp>&rsquo;<dd>Saudi Arabia. 
<br><dt>&lsquo;<samp><span class="samp">SB</span></samp>&rsquo;<dd>Solomon Islands. 
<br><dt>&lsquo;<samp><span class="samp">SC</span></samp>&rsquo;<dd>Seychelles. 
<br><dt>&lsquo;<samp><span class="samp">SD</span></samp>&rsquo;<dd>Sudan. 
<br><dt>&lsquo;<samp><span class="samp">SE</span></samp>&rsquo;<dd>Sweden. 
<br><dt>&lsquo;<samp><span class="samp">SG</span></samp>&rsquo;<dd>Singapore. 
<br><dt>&lsquo;<samp><span class="samp">SH</span></samp>&rsquo;<dd>St Helena. 
<br><dt>&lsquo;<samp><span class="samp">SI</span></samp>&rsquo;<dd>Slovenia. 
<br><dt>&lsquo;<samp><span class="samp">SJ</span></samp>&rsquo;<dd>Svalbard and Jan Mayen. 
<br><dt>&lsquo;<samp><span class="samp">SK</span></samp>&rsquo;<dd>Slovakia. 
<br><dt>&lsquo;<samp><span class="samp">SL</span></samp>&rsquo;<dd>Sierra Leone. 
<br><dt>&lsquo;<samp><span class="samp">SM</span></samp>&rsquo;<dd>San Marino. 
<br><dt>&lsquo;<samp><span class="samp">SN</span></samp>&rsquo;<dd>Senegal. 
<br><dt>&lsquo;<samp><span class="samp">SO</span></samp>&rsquo;<dd>Somalia. 
<br><dt>&lsquo;<samp><span class="samp">SR</span></samp>&rsquo;<dd>Suriname. 
<br><dt>&lsquo;<samp><span class="samp">ST</span></samp>&rsquo;<dd>Sao Tome and Principe. 
<br><dt>&lsquo;<samp><span class="samp">SV</span></samp>&rsquo;<dd>El Salvador. 
<br><dt>&lsquo;<samp><span class="samp">SY</span></samp>&rsquo;<dd>Syria. 
<br><dt>&lsquo;<samp><span class="samp">SZ</span></samp>&rsquo;<dd>Swaziland. 
<br><dt>&lsquo;<samp><span class="samp">TC</span></samp>&rsquo;<dd>Turks and Caicos Islands. 
<br><dt>&lsquo;<samp><span class="samp">TD</span></samp>&rsquo;<dd>Chad. 
<br><dt>&lsquo;<samp><span class="samp">TF</span></samp>&rsquo;<dd>French Southern and Antarctic Lands. 
<br><dt>&lsquo;<samp><span class="samp">TG</span></samp>&rsquo;<dd>Togo. 
<br><dt>&lsquo;<samp><span class="samp">TH</span></samp>&rsquo;<dd>Thailand. 
<br><dt>&lsquo;<samp><span class="samp">TJ</span></samp>&rsquo;<dd>Tajikistan. 
<br><dt>&lsquo;<samp><span class="samp">TK</span></samp>&rsquo;<dd>Tokelau. 
<br><dt>&lsquo;<samp><span class="samp">TL</span></samp>&rsquo;<dd>Timor-Leste. 
<br><dt>&lsquo;<samp><span class="samp">TM</span></samp>&rsquo;<dd>Turkmenistan. 
<br><dt>&lsquo;<samp><span class="samp">TN</span></samp>&rsquo;<dd>Tunisia. 
<br><dt>&lsquo;<samp><span class="samp">TO</span></samp>&rsquo;<dd>Tonga. 
<br><dt>&lsquo;<samp><span class="samp">TR</span></samp>&rsquo;<dd>Turkey. 
<br><dt>&lsquo;<samp><span class="samp">TT</span></samp>&rsquo;<dd>Trinidad and Tobago. 
<br><dt>&lsquo;<samp><span class="samp">TV</span></samp>&rsquo;<dd>Tuvalu. 
<br><dt>&lsquo;<samp><span class="samp">TW</span></samp>&rsquo;<dd>Taiwan. 
<br><dt>&lsquo;<samp><span class="samp">TZ</span></samp>&rsquo;<dd>Tanzania. 
<br><dt>&lsquo;<samp><span class="samp">UA</span></samp>&rsquo;<dd>Ukraine. 
<br><dt>&lsquo;<samp><span class="samp">UG</span></samp>&rsquo;<dd>Uganda. 
<br><dt>&lsquo;<samp><span class="samp">UM</span></samp>&rsquo;<dd>US minor outlying islands. 
<br><dt>&lsquo;<samp><span class="samp">US</span></samp>&rsquo;<dd>United States. 
<br><dt>&lsquo;<samp><span class="samp">UY</span></samp>&rsquo;<dd>Uruguay. 
<br><dt>&lsquo;<samp><span class="samp">UZ</span></samp>&rsquo;<dd>Uzbekistan. 
<br><dt>&lsquo;<samp><span class="samp">VA</span></samp>&rsquo;<dd>Vatican City. 
<br><dt>&lsquo;<samp><span class="samp">VC</span></samp>&rsquo;<dd>St Vincent and the Grenadines. 
<br><dt>&lsquo;<samp><span class="samp">VE</span></samp>&rsquo;<dd>Venezuela. 
<br><dt>&lsquo;<samp><span class="samp">VG</span></samp>&rsquo;<dd>Virgin Islands (UK). 
<br><dt>&lsquo;<samp><span class="samp">VI</span></samp>&rsquo;<dd>Virgin Islands (US). 
<br><dt>&lsquo;<samp><span class="samp">VN</span></samp>&rsquo;<dd>Vietnam. 
<br><dt>&lsquo;<samp><span class="samp">VU</span></samp>&rsquo;<dd>Vanuatu. 
<br><dt>&lsquo;<samp><span class="samp">WF</span></samp>&rsquo;<dd>Wallis and Futuna. 
<br><dt>&lsquo;<samp><span class="samp">WS</span></samp>&rsquo;<dd>Samoa (Western). 
<br><dt>&lsquo;<samp><span class="samp">YE</span></samp>&rsquo;<dd>Yemen. 
<br><dt>&lsquo;<samp><span class="samp">YT</span></samp>&rsquo;<dd>Mayotte. 
<br><dt>&lsquo;<samp><span class="samp">ZA</span></samp>&rsquo;<dd>South Africa. 
<br><dt>&lsquo;<samp><span class="samp">ZM</span></samp>&rsquo;<dd>Zambia. 
<br><dt>&lsquo;<samp><span class="samp">ZW</span></samp>&rsquo;<dd>Zimbabwe. 
</dl>

<div class="node">
<a name="Licenses"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Program-Index">Program Index</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Country-Codes">Country Codes</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="appendix">Appendix C Licenses</h2>

   <p><a name="index-Licenses-1265"></a>
The files of this package are covered by the licenses indicated in each
particular file or directory.  Here is a summary:

     <ul>
<li>The <code>libintl</code> and <code>libasprintf</code> libraries are covered by the
GNU Library General Public License (LGPL). 
A copy of the license is included in <a href="#GNU-LGPL">GNU LGPL</a>.

     <li>The executable programs of this package and the <code>libgettextpo</code> library
are covered by the GNU General Public License (GPL). 
A copy of the license is included in <a href="#GNU-GPL">GNU GPL</a>.

     <li>This manual is free documentation.  It is dually licensed under the
GNU FDL and the GNU GPL.  This means that you can redistribute this
manual under either of these two licenses, at your choice. 
<br>
This manual is covered by the GNU FDL.  Permission is granted to copy,
distribute and/or modify this document under the terms of the
GNU Free Documentation License (FDL), either version 1.2 of the
License, or (at your option) any later version published by the
Free Software Foundation (FSF); with no Invariant Sections, with no
Front-Cover Text, and with no Back-Cover Texts. 
A copy of the license is included in <a href="#GNU-FDL">GNU FDL</a>. 
<br>
This manual is covered by the GNU GPL.  You can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL), either
version 2 of the License, or (at your option) any later version published
by the Free Software Foundation (FSF). 
A copy of the license is included in <a href="#GNU-GPL">GNU GPL</a>. 
</ul>

<ul class="menu">
<li><a accesskey="1" href="#GNU-GPL">GNU GPL</a>:                      GNU General Public License
<li><a accesskey="2" href="#GNU-LGPL">GNU LGPL</a>:                     GNU Lesser General Public License
<li><a accesskey="3" href="#GNU-FDL">GNU FDL</a>:                      GNU Free Documentation License
</ul>

<div class="node">
<a name="GNU-GPL"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#GNU-LGPL">GNU LGPL</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Licenses">Licenses</a>

</div>

<h3 class="appendixsec">C.1 GNU GENERAL PUBLIC LICENSE</h3>

   <p><a name="index-GPL_002c-GNU-General-Public-License-1266"></a><a name="index-License_002c-GNU-GPL-1267"></a><div align="center">Version 2, June 1991</div>

<!-- This file is intended to be included in another file. -->
<pre class="display">     Copyright &copy; 1989, 1991 Free Software Foundation, Inc.
     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
     
     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
</pre>
<h4 class="unnumberedsubsec">Preamble</h4>

   <p>The licenses for most software are designed to take away your
freedom to share and change it.  By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software&mdash;to make sure the software is free for all its users.  This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it.  (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.)  You can apply it to
your programs, too.

   <p>When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

   <p>To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights. 
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

   <p>For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have.  You must make sure that they, too, receive or can get the
source code.  And you must show them these terms so they know their
rights.

   <p>We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

   <p>Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software.  If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

   <p>Finally, any free program is threatened constantly by software
patents.  We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary.  To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

   <p>The precise terms and conditions for copying, distribution and
modification follow.

     <ol type=1 start=0>
<li>This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License.  The &ldquo;Program&rdquo;, below,
refers to any such program or work, and a &ldquo;work based on the Program&rdquo;
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.  (Hereinafter, translation is included without limitation in
the term &ldquo;modification&rdquo;.)  Each licensee is addressed as &ldquo;you&rdquo;.

     <p>Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program). 
Whether that is true depends on what the Program does.

     <li>You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

     <p>You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

     <li>You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

          <ol type=a start=1>
<li>You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.

          <li>You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.

          <li>If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License.  (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
          </ol>

     <p>These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

     <p>Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

     <p>In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

     <li>You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

          <ol type=a start=1>
<li>Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,

          <li>Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,

          <li>Accompany it with the information you received as to the offer
to distribute corresponding source code.  (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
          </ol>

     <p>The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

     <p>If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

     <li>You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License. 
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

     <li>You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Program or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

     <li>Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein. 
You are not responsible for enforcing compliance by third parties to
this License.

     <li>If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all.  For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

     <p>If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

     <p>It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

     <p>This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

     <li>If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded.  In such case, this License incorporates
the limitation as if written in the body of this License.

     <li>The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

     <p>Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and &ldquo;any
later version&rdquo;, you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

     <li>If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission.  For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this.  Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

     <li>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM &ldquo;AS IS&rdquo; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

     <li>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
        </ol>

<h4 class="unnumberedsubsec">Appendix: How to Apply These Terms to Your New Programs</h4>

   <p>If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

   <p>To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the &ldquo;copyright&rdquo; line and a pointer to where the full notice is found.

<pre class="smallexample">     <var>one line to give the program's name and a brief idea of what it does.</var>
     Copyright (C) <var>yyyy</var>  <var>name of author</var>
     
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
     
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
     
     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
</pre>
   <p>Also add information on how to contact you by electronic and paper mail.

   <p>If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

<pre class="smallexample">     Gnomovision version 69, Copyright (C) 19<var>yy</var> <var>name of author</var>
     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
     This is free software, and you are welcome to redistribute it
     under certain conditions; type `show c' for details.
</pre>
   <p>The hypothetical commands &lsquo;<samp><span class="samp">show w</span></samp>&rsquo; and &lsquo;<samp><span class="samp">show c</span></samp>&rsquo; should show
the appropriate parts of the General Public License.  Of course, the
commands you use may be called something other than &lsquo;<samp><span class="samp">show w</span></samp>&rsquo; and
&lsquo;<samp><span class="samp">show c</span></samp>&rsquo;; they could even be mouse-clicks or menu items&mdash;whatever
suits your program.

   <p>You should also get your employer (if you work as a programmer) or your
school, if any, to sign a &ldquo;copyright disclaimer&rdquo; for the program, if
necessary.  Here is a sample; alter the names:

<pre class="example">     Yoyodyne, Inc., hereby disclaims all copyright interest in the program
     `Gnomovision' (which makes passes at compilers) written by James Hacker.
     
     <var>signature of Ty Coon</var>, 1 April 1989
     Ty Coon, President of Vice
</pre>
   <p>This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Library General
Public License instead of this License.

<div class="node">
<a name="GNU-LGPL"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#GNU-FDL">GNU FDL</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#GNU-GPL">GNU GPL</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Licenses">Licenses</a>

</div>

<h3 class="appendixsec">C.2 GNU LESSER GENERAL PUBLIC LICENSE</h3>

   <p><a name="index-LGPL_002c-GNU-Lesser-General-Public-License-1268"></a><a name="index-License_002c-GNU-LGPL-1269"></a><div align="center">Version 2.1, February 1999</div>

<pre class="display">     Copyright &copy; 1991, 1999 Free Software Foundation, Inc.
     51 Franklin St &ndash; Fifth Floor, Boston, MA 02110-1301, USA
     
     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
     
     [This is the first released version of the Lesser GPL.  It also counts
     as the successor of the GNU Library Public License, version 2, hence the
     version number 2.1.]
</pre>
<h4 class="unnumberedsubsec">Preamble</h4>

   <p>The licenses for most software are designed to take away your
freedom to share and change it.  By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software&mdash;to make sure the software is free for all its users.

   <p>This license, the Lesser General Public License, applies to some
specially designated software&mdash;typically libraries&mdash;of the Free
Software Foundation and other authors who decide to use it.  You can use
it too, but we suggest you first think carefully about whether this
license or the ordinary General Public License is the better strategy to
use in any particular case, based on the explanations below.

   <p>When we speak of free software, we are referring to freedom of use,
not price.  Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of it
in new free programs; and that you are informed that you can do these
things.

   <p>To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights.  These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.

   <p>For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you.  You must make sure that they, too, receive or can get the source
code.  If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it.  And you must show them these terms so they know their rights.

   <p>We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.

   <p>To protect each distributor, we want to make it very clear that
there is no warranty for the free library.  Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.

   <p>Finally, software patents pose a constant threat to the existence of
any free program.  We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder.  Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.

   <p>Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License.  This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License.  We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.

   <p>When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library.  The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom.  The Lesser General
Public License permits more lax criteria for linking other code with
the library.

   <p>We call this license the <dfn>Lesser</dfn> General Public License because it
does <em>Less</em> to protect the user's freedom than the ordinary General
Public License.  It also provides other free software developers Less
of an advantage over competing non-free programs.  These disadvantages
are the reason we use the ordinary General Public License for many
libraries.  However, the Lesser license provides advantages in certain
special circumstances.

   <p>For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard.  To achieve this, non-free programs must be
allowed to use the library.  A more frequent case is that a free
library does the same job as widely used non-free libraries.  In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.

   <p>In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software.  For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.

   <p>Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.

   <p>The precise terms and conditions for copying, distribution and
modification follow.  Pay close attention to the difference between a
&ldquo;work based on the library&rdquo; and a &ldquo;work that uses the library&rdquo;.  The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.

     <ol type=1 start=0>
<li>This License Agreement applies to any software library or other program
which contains a notice placed by the copyright holder or other
authorized party saying it may be distributed under the terms of this
Lesser General Public License (also called &ldquo;this License&rdquo;).  Each
licensee is addressed as &ldquo;you&rdquo;.

     <p>A &ldquo;library&rdquo; means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.

     <p>The &ldquo;Library&rdquo;, below, refers to any such software library or work
which has been distributed under these terms.  A &ldquo;work based on the
Library&rdquo; means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language.  (Hereinafter, translation is
included without limitation in the term &ldquo;modification&rdquo;.)

     <p>&ldquo;Source code&rdquo; for a work means the preferred form of the work for
making modifications to it.  For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.

     <p>Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it).  Whether that is true depends on what the Library does
and what the program that uses the Library does.

     <li>You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.

     <p>You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.

     <li>You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

          <ol type=a start=1>
<li>The modified work must itself be a software library.

          <li>You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.

          <li>You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.

          <li>If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.

          <p>(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application.  Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
          </ol>

     <p>These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.

     <p>Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.

     <p>In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

     <li>You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library.  To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License.  (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.)  Do not make any other change in
these notices.

     <p>Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.

     <p>This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.

     <li>You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.

     <p>If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.

     <li>A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a &ldquo;work that uses the Library&rdquo;.  Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.

     <p>However, linking a &ldquo;work that uses the Library&rdquo; with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a &ldquo;work that uses the
library&rdquo;.  The executable is therefore covered by this License. 
Section 6 states terms for distribution of such executables.

     <p>When a &ldquo;work that uses the Library&rdquo; uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not. 
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library.  The
threshold for this to be true is not precisely defined by law.

     <p>If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work.  (Executables containing this object code plus portions of the
Library will still fall under Section 6.)

     <p>Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6. 
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.

     <li>As an exception to the Sections above, you may also combine or
link a &ldquo;work that uses the Library&rdquo; with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.

     <p>You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License.  You must supply a copy of this License.  If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License.  Also, you must do one
of these things:

          <ol type=a start=1>
<li>Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable &ldquo;work that
uses the Library&rdquo;, as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library.  (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)

          <li>Use a suitable shared library mechanism for linking with the Library.  A
suitable mechanism is one that (1) uses at run time a copy of the
library already present on the user's computer system, rather than
copying library functions into the executable, and (2) will operate
properly with a modified version of the library, if the user installs
one, as long as the modified version is interface-compatible with the
version that the work was made with.

          <li>Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.

          <li>If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.

          <li>Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
          </ol>

     <p>For an executable, the required form of the &ldquo;work that uses the
Library&rdquo; must include any data and utility programs needed for
reproducing the executable from it.  However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies the
executable.

     <p>It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system.  Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.

     <li>You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:

          <ol type=a start=1>
<li>Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities.  This must be distributed under the terms of the
Sections above.

          <li>Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
          </ol>

     <li>You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License.  Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License.  However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.

     <li>You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Library or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.

     <li>Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein. 
You are not responsible for enforcing compliance by third parties with
this License.

     <li>If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all.  For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.

     <p>If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.

     <p>It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

     <p>This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

     <li>If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded.  In such case, this License incorporates the limitation as if
written in the body of this License.

     <li>The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time. 
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.

     <p>Each version is given a distinguishing version number.  If the Library
specifies a version number of this License which applies to it and
&ldquo;any later version&rdquo;, you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation.  If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.

     <li>If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission.  For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this.  Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.

     <li>BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY &ldquo;AS IS&rdquo; WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

     <li>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
        </ol>

<h4 class="unnumberedsubsec">How to Apply These Terms to Your New Libraries</h4>

   <p>If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change.  You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).

   <p>To apply these terms, attach the following notices to the library.  It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
&ldquo;copyright&rdquo; line and a pointer to where the full notice is found.

<pre class="smallexample">     <var>one line to give the library's name and an idea of what it does.</var>
     Copyright (C) <var>year</var>  <var>name of author</var>
     
     This library is free software; you can redistribute it and/or modify it
     under the terms of the GNU Lesser General Public License as published by
     the Free Software Foundation; either version 2.1 of the License, or (at
     your option) any later version.
     
     This library is distributed in the hope that it will be useful, but
     WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     Lesser General Public License for more details.
     
     You should have received a copy of the GNU Lesser General Public
     License along with this library; if not, write to the Free Software
     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
     USA.
</pre>
   <p>Also add information on how to contact you by electronic and paper mail.

   <p>You should also get your employer (if you work as a programmer) or your
school, if any, to sign a &ldquo;copyright disclaimer&rdquo; for the library, if
necessary.  Here is a sample; alter the names:

<pre class="smallexample">     Yoyodyne, Inc., hereby disclaims all copyright interest in the library
     `Frob' (a library for tweaking knobs) written by James Random Hacker.
     
     <var>signature of Ty Coon</var>, 1 April 1990
     Ty Coon, President of Vice
</pre>
   <p>That's all there is to it!

<div class="node">
<a name="GNU-FDL"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#GNU-LGPL">GNU LGPL</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Licenses">Licenses</a>

</div>

<h3 class="appendixsec">C.3 GNU Free Documentation License</h3>

   <p><a name="index-FDL_002c-GNU-Free-Documentation-License-1270"></a><a name="index-License_002c-GNU-FDL-1271"></a><div align="center">Version 1.2, November 2002</div>

<pre class="display">     Copyright &copy; 2000,2001,2002 Free Software Foundation, Inc.
     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
     
     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
</pre>
     <ol type=1 start=0>
<li>PREAMBLE

     <p>The purpose of this License is to make a manual, textbook, or other
functional and useful document <dfn>free</dfn> in the sense of freedom: to
assure everyone the effective freedom to copy and redistribute it,
with or without modifying it, either commercially or noncommercially. 
Secondarily, this License preserves for the author and publisher a way
to get credit for their work, while not being considered responsible
for modifications made by others.

     <p>This License is a kind of &ldquo;copyleft&rdquo;, which means that derivative
works of the document must themselves be free in the same sense.  It
complements the GNU General Public License, which is a copyleft
license designed for free software.

     <p>We have designed this License in order to use it for manuals for free
software, because free software needs free documentation: a free
program should come with manuals providing the same freedoms that the
software does.  But this License is not limited to software manuals;
it can be used for any textual work, regardless of subject matter or
whether it is published as a printed book.  We recommend this License
principally for works whose purpose is instruction or reference.

     <li>APPLICABILITY AND DEFINITIONS

     <p>This License applies to any manual or other work, in any medium, that
contains a notice placed by the copyright holder saying it can be
distributed under the terms of this License.  Such a notice grants a
world-wide, royalty-free license, unlimited in duration, to use that
work under the conditions stated herein.  The &ldquo;Document&rdquo;, below,
refers to any such manual or work.  Any member of the public is a
licensee, and is addressed as &ldquo;you&rdquo;.  You accept the license if you
copy, modify or distribute the work in a way requiring permission
under copyright law.

     <p>A &ldquo;Modified Version&rdquo; of the Document means any work containing the
Document or a portion of it, either copied verbatim, or with
modifications and/or translated into another language.

     <p>A &ldquo;Secondary Section&rdquo; is a named appendix or a front-matter section
of the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document's overall
subject (or to related matters) and contains nothing that could fall
directly within that overall subject.  (Thus, if the Document is in
part a textbook of mathematics, a Secondary Section may not explain
any mathematics.)  The relationship could be a matter of historical
connection with the subject or with related matters, or of legal,
commercial, philosophical, ethical or political position regarding
them.

     <p>The &ldquo;Invariant Sections&rdquo; are certain Secondary Sections whose titles
are designated, as being those of Invariant Sections, in the notice
that says that the Document is released under this License.  If a
section does not fit the above definition of Secondary then it is not
allowed to be designated as Invariant.  The Document may contain zero
Invariant Sections.  If the Document does not identify any Invariant
Sections then there are none.

     <p>The &ldquo;Cover Texts&rdquo; are certain short passages of text that are listed,
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
the Document is released under this License.  A Front-Cover Text may
be at most 5 words, and a Back-Cover Text may be at most 25 words.

     <p>A &ldquo;Transparent&rdquo; copy of the Document means a machine-readable copy,
represented in a format whose specification is available to the
general public, that is suitable for revising the document
straightforwardly with generic text editors or (for images composed of
pixels) generic paint programs or (for drawings) some widely available
drawing editor, and that is suitable for input to text formatters or
for automatic translation to a variety of formats suitable for input
to text formatters.  A copy made in an otherwise Transparent file
format whose markup, or absence of markup, has been arranged to thwart
or discourage subsequent modification by readers is not Transparent. 
An image format is not Transparent if used for any substantial amount
of text.  A copy that is not &ldquo;Transparent&rdquo; is called &ldquo;Opaque&rdquo;.

     <p>Examples of suitable formats for Transparent copies include plain
<span class="sc">ascii</span> without markup, Texinfo input format, LaTeX input
format, SGML or XML using a publicly available
DTD, and standard-conforming simple HTML,
PostScript or PDF designed for human modification.  Examples
of transparent image formats include PNG, XCF and
JPG.  Opaque formats include proprietary formats that can be
read and edited only by proprietary word processors, SGML or
XML for which the DTD and/or processing tools are
not generally available, and the machine-generated HTML,
PostScript or PDF produced by some word processors for
output purposes only.

     <p>The &ldquo;Title Page&rdquo; means, for a printed book, the title page itself,
plus such following pages as are needed to hold, legibly, the material
this License requires to appear in the title page.  For works in
formats which do not have any title page as such, &ldquo;Title Page&rdquo; means
the text near the most prominent appearance of the work's title,
preceding the beginning of the body of the text.

     <p>A section &ldquo;Entitled XYZ&rdquo; means a named subunit of the Document whose
title either is precisely XYZ or contains XYZ in parentheses following
text that translates XYZ in another language.  (Here XYZ stands for a
specific section name mentioned below, such as &ldquo;Acknowledgements&rdquo;,
&ldquo;Dedications&rdquo;, &ldquo;Endorsements&rdquo;, or &ldquo;History&rdquo;.)  To &ldquo;Preserve the Title&rdquo;
of such a section when you modify the Document means that it remains a
section &ldquo;Entitled XYZ&rdquo; according to this definition.

     <p>The Document may include Warranty Disclaimers next to the notice which
states that this License applies to the Document.  These Warranty
Disclaimers are considered to be included by reference in this
License, but only as regards disclaiming warranties: any other
implication that these Warranty Disclaimers may have is void and has
no effect on the meaning of this License.

     <li>VERBATIM COPYING

     <p>You may copy and distribute the Document in any medium, either
commercially or noncommercially, provided that this License, the
copyright notices, and the license notice saying this License applies
to the Document are reproduced in all copies, and that you add no other
conditions whatsoever to those of this License.  You may not use
technical measures to obstruct or control the reading or further
copying of the copies you make or distribute.  However, you may accept
compensation in exchange for copies.  If you distribute a large enough
number of copies you must also follow the conditions in section 3.

     <p>You may also lend copies, under the same conditions stated above, and
you may publicly display copies.

     <li>COPYING IN QUANTITY

     <p>If you publish printed copies (or copies in media that commonly have
printed covers) of the Document, numbering more than 100, and the
Document's license notice requires Cover Texts, you must enclose the
copies in covers that carry, clearly and legibly, all these Cover
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
the back cover.  Both covers must also clearly and legibly identify
you as the publisher of these copies.  The front cover must present
the full title with all words of the title equally prominent and
visible.  You may add other material on the covers in addition. 
Copying with changes limited to the covers, as long as they preserve
the title of the Document and satisfy these conditions, can be treated
as verbatim copying in other respects.

     <p>If the required texts for either cover are too voluminous to fit
legibly, you should put the first ones listed (as many as fit
reasonably) on the actual cover, and continue the rest onto adjacent
pages.

     <p>If you publish or distribute Opaque copies of the Document numbering
more than 100, you must either include a machine-readable Transparent
copy along with each Opaque copy, or state in or with each Opaque copy
a computer-network location from which the general network-using
public has access to download using public-standard network protocols
a complete Transparent copy of the Document, free of added material. 
If you use the latter option, you must take reasonably prudent steps,
when you begin distribution of Opaque copies in quantity, to ensure
that this Transparent copy will remain thus accessible at the stated
location until at least one year after the last time you distribute an
Opaque copy (directly or through your agents or retailers) of that
edition to the public.

     <p>It is requested, but not required, that you contact the authors of the
Document well before redistributing any large number of copies, to give
them a chance to provide you with an updated version of the Document.

     <li>MODIFICATIONS

     <p>You may copy and distribute a Modified Version of the Document under
the conditions of sections 2 and 3 above, provided that you release
the Modified Version under precisely this License, with the Modified
Version filling the role of the Document, thus licensing distribution
and modification of the Modified Version to whoever possesses a copy
of it.  In addition, you must do these things in the Modified Version:

          <ol type=A start=1>
<li>Use in the Title Page (and on the covers, if any) a title distinct
from that of the Document, and from those of previous versions
(which should, if there were any, be listed in the History section
of the Document).  You may use the same title as a previous version
if the original publisher of that version gives permission.

          <li>List on the Title Page, as authors, one or more persons or entities
responsible for authorship of the modifications in the Modified
Version, together with at least five of the principal authors of the
Document (all of its principal authors, if it has fewer than five),
unless they release you from this requirement.

          <li>State on the Title page the name of the publisher of the
Modified Version, as the publisher.

          <li>Preserve all the copyright notices of the Document.

          <li>Add an appropriate copyright notice for your modifications
adjacent to the other copyright notices.

          <li>Include, immediately after the copyright notices, a license notice
giving the public permission to use the Modified Version under the
terms of this License, in the form shown in the Addendum below.

          <li>Preserve in that license notice the full lists of Invariant Sections
and required Cover Texts given in the Document's license notice.

          <li>Include an unaltered copy of this License.

          <li>Preserve the section Entitled &ldquo;History&rdquo;, Preserve its Title, and add
to it an item stating at least the title, year, new authors, and
publisher of the Modified Version as given on the Title Page.  If
there is no section Entitled &ldquo;History&rdquo; in the Document, create one
stating the title, year, authors, and publisher of the Document as
given on its Title Page, then add an item describing the Modified
Version as stated in the previous sentence.

          <li>Preserve the network location, if any, given in the Document for
public access to a Transparent copy of the Document, and likewise
the network locations given in the Document for previous versions
it was based on.  These may be placed in the &ldquo;History&rdquo; section. 
You may omit a network location for a work that was published at
least four years before the Document itself, or if the original
publisher of the version it refers to gives permission.

          <li>For any section Entitled &ldquo;Acknowledgements&rdquo; or &ldquo;Dedications&rdquo;, Preserve
the Title of the section, and preserve in the section all the
substance and tone of each of the contributor acknowledgements and/or
dedications given therein.

          <li>Preserve all the Invariant Sections of the Document,
unaltered in their text and in their titles.  Section numbers
or the equivalent are not considered part of the section titles.

          <li>Delete any section Entitled &ldquo;Endorsements&rdquo;.  Such a section
may not be included in the Modified Version.

          <li>Do not retitle any existing section to be Entitled &ldquo;Endorsements&rdquo; or
to conflict in title with any Invariant Section.

          <li>Preserve any Warranty Disclaimers.
          </ol>

     <p>If the Modified Version includes new front-matter sections or
appendices that qualify as Secondary Sections and contain no material
copied from the Document, you may at your option designate some or all
of these sections as invariant.  To do this, add their titles to the
list of Invariant Sections in the Modified Version's license notice. 
These titles must be distinct from any other section titles.

     <p>You may add a section Entitled &ldquo;Endorsements&rdquo;, provided it contains
nothing but endorsements of your Modified Version by various
parties&mdash;for example, statements of peer review or that the text has
been approved by an organization as the authoritative definition of a
standard.

     <p>You may add a passage of up to five words as a Front-Cover Text, and a
passage of up to 25 words as a Back-Cover Text, to the end of the list
of Cover Texts in the Modified Version.  Only one passage of
Front-Cover Text and one of Back-Cover Text may be added by (or
through arrangements made by) any one entity.  If the Document already
includes a cover text for the same cover, previously added by you or
by arrangement made by the same entity you are acting on behalf of,
you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.

     <p>The author(s) and publisher(s) of the Document do not by this License
give permission to use their names for publicity for or to assert or
imply endorsement of any Modified Version.

     <li>COMBINING DOCUMENTS

     <p>You may combine the Document with other documents released under this
License, under the terms defined in section 4 above for modified
versions, provided that you include in the combination all of the
Invariant Sections of all of the original documents, unmodified, and
list them all as Invariant Sections of your combined work in its
license notice, and that you preserve all their Warranty Disclaimers.

     <p>The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be replaced with a single
copy.  If there are multiple Invariant Sections with the same name but
different contents, make the title of each such section unique by
adding at the end of it, in parentheses, the name of the original
author or publisher of that section if known, or else a unique number. 
Make the same adjustment to the section titles in the list of
Invariant Sections in the license notice of the combined work.

     <p>In the combination, you must combine any sections Entitled &ldquo;History&rdquo;
in the various original documents, forming one section Entitled
&ldquo;History&rdquo;; likewise combine any sections Entitled &ldquo;Acknowledgements&rdquo;,
and any sections Entitled &ldquo;Dedications&rdquo;.  You must delete all
sections Entitled &ldquo;Endorsements.&rdquo;

     <li>COLLECTIONS OF DOCUMENTS

     <p>You may make a collection consisting of the Document and other documents
released under this License, and replace the individual copies of this
License in the various documents with a single copy that is included in
the collection, provided that you follow the rules of this License for
verbatim copying of each of the documents in all other respects.

     <p>You may extract a single document from such a collection, and distribute
it individually under this License, provided you insert a copy of this
License into the extracted document, and follow this License in all
other respects regarding verbatim copying of that document.

     <li>AGGREGATION WITH INDEPENDENT WORKS

     <p>A compilation of the Document or its derivatives with other separate
and independent documents or works, in or on a volume of a storage or
distribution medium, is called an &ldquo;aggregate&rdquo; if the copyright
resulting from the compilation is not used to limit the legal rights
of the compilation's users beyond what the individual works permit. 
When the Document is included in an aggregate, this License does not
apply to the other works in the aggregate which are not themselves
derivative works of the Document.

     <p>If the Cover Text requirement of section 3 is applicable to these
copies of the Document, then if the Document is less than one half of
the entire aggregate, the Document's Cover Texts may be placed on
covers that bracket the Document within the aggregate, or the
electronic equivalent of covers if the Document is in electronic form. 
Otherwise they must appear on printed covers that bracket the whole
aggregate.

     <li>TRANSLATION

     <p>Translation is considered a kind of modification, so you may
distribute translations of the Document under the terms of section 4. 
Replacing Invariant Sections with translations requires special
permission from their copyright holders, but you may include
translations of some or all Invariant Sections in addition to the
original versions of these Invariant Sections.  You may include a
translation of this License, and all the license notices in the
Document, and any Warranty Disclaimers, provided that you also include
the original English version of this License and the original versions
of those notices and disclaimers.  In case of a disagreement between
the translation and the original version of this License or a notice
or disclaimer, the original version will prevail.

     <p>If a section in the Document is Entitled &ldquo;Acknowledgements&rdquo;,
&ldquo;Dedications&rdquo;, or &ldquo;History&rdquo;, the requirement (section 4) to Preserve
its Title (section 1) will typically require changing the actual
title.

     <li>TERMINATION

     <p>You may not copy, modify, sublicense, or distribute the Document except
as expressly provided for under this License.  Any other attempt to
copy, modify, sublicense or distribute the Document is void, and will
automatically terminate your rights under this License.  However,
parties who have received copies, or rights, from you under this
License will not have their licenses terminated so long as such
parties remain in full compliance.

     <li>FUTURE REVISIONS OF THIS LICENSE

     <p>The Free Software Foundation may publish new, revised versions
of the GNU Free Documentation License from time to time.  Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.  See
<a href="http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</a>.

     <p>Each version of the License is given a distinguishing version number. 
If the Document specifies that a particular numbered version of this
License &ldquo;or any later version&rdquo; applies to it, you have the option of
following the terms and conditions either of that specified version or
of any later version that has been published (not as a draft) by the
Free Software Foundation.  If the Document does not specify a version
number of this License, you may choose any version ever published (not
as a draft) by the Free Software Foundation.
        </ol>

<h4 class="unnumberedsubsec">ADDENDUM: How to use this License for your documents</h4>

   <p>To use this License in a document you have written, include a copy of
the License in the document and put the following copyright and
license notices just after the title page:

<pre class="smallexample">       Copyright (C)  <var>year</var>  <var>your name</var>.
       Permission is granted to copy, distribute and/or modify this document
       under the terms of the GNU Free Documentation License, Version 1.2
       or any later version published by the Free Software Foundation;
       with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
       Texts.  A copy of the license is included in the section entitled ``GNU
       Free Documentation License''.
</pre>
   <p>If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
replace the &ldquo;with...Texts.&rdquo; line with this:

<pre class="smallexample">         with the Invariant Sections being <var>list their titles</var>, with
         the Front-Cover Texts being <var>list</var>, and with the Back-Cover Texts
         being <var>list</var>.
</pre>
   <p>If you have Invariant Sections without Cover Texts, or some other
combination of the three, merge those two alternatives to suit the
situation.

   <p>If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.

<!-- Local Variables: -->
<!-- ispell-local-pdict: "ispell-dict" -->
<!-- End: -->
<div class="node">
<a name="Program-Index"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Option-Index">Option Index</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Licenses">Licenses</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="unnumbered">Program Index</h2>

<ul class="index-pg" compact>
<li><a href="#index-autopoint-1155"><code>autopoint</code></a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-envsubst-1204"><code>envsubst</code></a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-gettext-1181"><code>gettext</code></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-gettext-1176"><code>gettext</code></a>: <a href="#sh">sh</a></li>
<li><a href="#index-gettextize-1117"><code>gettextize</code></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-msgattrib-828"><code>msgattrib</code></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-msgcat-542"><code>msgcat</code></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-msgcmp-810"><code>msgcmp</code></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-msgcomm-768"><code>msgcomm</code></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-msgconv-590"><code>msgconv</code></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-msgen-878"><code>msgen</code></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-msgexec-911"><code>msgexec</code></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-msgfilter-679"><code>msgfilter</code></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-msgfmt-947"><code>msgfmt</code></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-msggrep-624"><code>msggrep</code></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-msginit-239"><code>msginit</code></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-msgmerge-276"><code>msgmerge</code></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-msgunfmt-1009"><code>msgunfmt</code></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-msguniq-727"><code>msguniq</code></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-ngettext-1193"><code>ngettext</code></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-ngettext-1177"><code>ngettext</code></a>: <a href="#sh">sh</a></li>
<li><a href="#index-recode_002dsr_002dlatin-700"><code>recode-sr-latin</code></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-xgettext-159"><code>xgettext</code></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
   </ul><div class="node">
<a name="Option-Index"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Variable-Index">Variable Index</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Program-Index">Program Index</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="unnumbered">Option Index</h2>



<ul class="index-op" compact>
<li><a href="#index-g_t_002d_002dadd_002dcomments_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-183"><code>--add-comments</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-862"><code>--add-location</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-573"><code>--add-location</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-793"><code>--add-location</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-608"><code>--add-location</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-895"><code>--add-location</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-711"><code>--add-location</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-665"><code>--add-location</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-306"><code>--add-location</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-752"><code>--add-location</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dadd_002dlocation_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-211"><code>--add-location</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dalignment_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1000"><code>--alignment</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dbackup_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-287"><code>--backup</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dboost_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-200"><code>--boost</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dc_002b_002b_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-176"><code>--c++</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dcheck_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-984"><code>--check</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcheck_002daccelerators_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-992"><code>--check-accelerators</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcheck_002dcompatibility_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-990"><code>--check-compatibility</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcheck_002ddomain_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-988"><code>--check-domain</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcheck_002dformat_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-985"><code>--check-format</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcheck_002dheader_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-987"><code>--check-header</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dclear_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-844"><code>--clear-fuzzy</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dclear_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-846"><code>--clear-obsolete</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dclear_002dprevious_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-847"><code>--clear-previous</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-855"><code>--color</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-930"><code>--color</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#The-_002d_002dcolor-option">The --color option</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-566"><code>--color</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-786"><code>--color</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-602"><code>--color</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-889"><code>--color</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-705"><code>--color</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-660"><code>--color</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-253"><code>--color</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-300"><code>--color</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1035"><code>--color</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-745"><code>--color</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dcolor_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-204"><code>--color</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dcomment_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-642"><code>--comment</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dcompendium_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-281"><code>--compendium</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dcopyright_002dholder_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-225"><code>--copyright-holder</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dcsharp_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-956"><code>--csharp</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcsharp_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1015"><code>--csharp</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcsharp_002dresources_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-958"><code>--csharp-resources</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dcsharp_002dresources_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1017"><code>--csharp-resources</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002ddebug_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-202"><code>--debug</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002ddefault_002ddomain_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-166"><code>--default-domain</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-833"><code>--directory</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-549"><code>--directory</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-814"><code>--directory</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-774"><code>--directory</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-594"><code>--directory</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-882"><code>--directory</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-922"><code>--directory</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-688"><code>--directory</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-951"><code>--directory</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-628"><code>--directory</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-279"><code>--directory</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-732"><code>--directory</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002ddirectory_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-164"><code>--directory</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002ddomain_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1185"><code>--domain</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002d_002ddomain_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-634"><code>--domain</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002ddomain_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1197"><code>--domain</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002d_002ddry_002drun_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1160"><code>--dry-run</code><span class="roman">, </span><code>autopoint</code><span class="roman"> option</span></a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-g_t_002d_002ddry_002drun_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1126"><code>--dry-run</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dexclude_002dfile_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-181"><code>--exclude-file</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dexpression_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-694"><code>--expression</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dextended_002dregexp_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-646"><code>--extended-regexp</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dextract_002dall_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-185"><code>--extract-all</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dextracted_002dcomment_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-644"><code>--extracted-comment</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dfile_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-696"><code>--file</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dfile_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-652"><code>--file</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dfiles_002dfrom_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-547"><code>--files-from</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dfiles_002dfrom_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-772"><code>--files-from</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dfiles_002dfrom_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-162"><code>--files-from</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dfixed_002dstrings_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-648"><code>--fixed-strings</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dflag_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-190"><code>--flag</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1158"><code>--force</code><span class="roman">, </span><code>autopoint</code><span class="roman"> option</span></a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1120"><code>--force</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-857"><code>--force-po</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-568"><code>--force-po</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-788"><code>--force-po</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-604"><code>--force-po</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-891"><code>--force-po</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-707"><code>--force-po</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-662"><code>--force-po</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-302"><code>--force-po</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1037"><code>--force-po</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-747"><code>--force-po</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dforce_002dpo_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-206"><code>--force-po</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dforeign_002duser_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-226"><code>--foreign-user</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dfrom_002dcode_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-177"><code>--from-code</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-850"><code>--fuzzy</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1161"><code>--help</code><span class="roman">, </span><code>autopoint</code><span class="roman"> option</span></a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1212"><code>--help</code><span class="roman">, </span><code>envsubst</code><span class="roman"> option</span></a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1189"><code>--help</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1127"><code>--help</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-875"><code>--help</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-587"><code>--help</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-825"><code>--help</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-807"><code>--help</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-621"><code>--help</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-908"><code>--help</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-927"><code>--help</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-724"><code>--help</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1003"><code>--help</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-676"><code>--help</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-262"><code>--help</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-320"><code>--help</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1051"><code>--help</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-765"><code>--help</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1201"><code>--help</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dhelp_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-235"><code>--help</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dignore_002dcase_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-654"><code>--ignore-case</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dignore_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-849"><code>--ignore-file</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-859"><code>--indent</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-570"><code>--indent</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-790"><code>--indent</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-606"><code>--indent</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-893"><code>--indent</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-708"><code>--indent</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-663"><code>--indent</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-304"><code>--indent</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1039"><code>--indent</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-749"><code>--indent</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dindent_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-208"><code>--indent</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dinput_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-920"><code>--input</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002d_002dinput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-686"><code>--input</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dinput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-244"><code>--input</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dintl_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1121"><code>--intl</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dinvert_002dmatch_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-656"><code>--invert-match</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002djava_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-953"><code>--java</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002djava_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1013"><code>--java</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002djava2_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-955"><code>--java2</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002djoin_002dexisting_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-179"><code>--join-existing</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dkde_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-198"><code>--kde</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dkeep_002dheader_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-709"><code>--keep-header</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dkeyword_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-187"><code>--keyword</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dlang_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-888"><code>--lang</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dlang_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-565"><code>--lang</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dlang_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-299"><code>--lang</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dlanguage_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-173"><code>--language</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dless_002dthan_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-554"><code>--less-than</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dless_002dthan_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-778"><code>--less-than</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-970"><code>--locale</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-251"><code>--locale</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dlocale_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1024"><code>--locale</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dlocation_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-632"><code>--location</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dmore_002dthan_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-556"><code>--more-than</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dmore_002dthan_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-780"><code>--more-than</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dmsgctxt_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-636"><code>--msgctxt</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dmsgid_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-638"><code>--msgid</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dmsgid_002dbugs_002daddress_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-229"><code>--msgid-bugs-address</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dmsgstr_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-640"><code>--msgstr</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dmsgstr_002dprefix_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-231"><code>--msgstr-prefix</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dmsgstr_002dsuffix_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-233"><code>--msgstr-suffix</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dmulti_002ddomain_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-816"><code>--multi-domain</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002dmulti_002ddomain_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-292"><code>--multi-domain</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dchangelog_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1123"><code>--no-changelog</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-838"><code>--no-fuzzy</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dfuzzy_002dmatching_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-818"><code>--no-fuzzy-matching</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dfuzzy_002dmatching_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-294"><code>--no-fuzzy-matching</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dhash_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1001"><code>--no-hash</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-860"><code>--no-location</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-571"><code>--no-location</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-791"><code>--no-location</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-607"><code>--no-location</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-894"><code>--no-location</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-710"><code>--no-location</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-664"><code>--no-location</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-305"><code>--no-location</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-750"><code>--no-location</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dlocation_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-209"><code>--no-location</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-840"><code>--no-obsolete</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dtranslator_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-252"><code>--no-translator</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-869"><code>--no-wrap</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-580"><code>--no-wrap</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-800"><code>--no-wrap</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-615"><code>--no-wrap</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-902"><code>--no-wrap</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-718"><code>--no-wrap</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-672"><code>--no-wrap</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-260"><code>--no-wrap</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-313"><code>--no-wrap</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1046"><code>--no-wrap</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-759"><code>--no-wrap</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dno_002dwrap_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-217"><code>--no-wrap</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-851"><code>--obsolete</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002domit_002dheader_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-805"><code>--omit-header</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002domit_002dheader_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-223"><code>--omit-header</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002donly_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-848"><code>--only-file</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002donly_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-839"><code>--only-fuzzy</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002donly_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-841"><code>--only-obsolete</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-168"><code>--output</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002ddir_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-170"><code>--output-dir</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-835"><code>--output-file</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-551"><code>--output-file</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-776"><code>--output-file</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-596"><code>--output-file</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-884"><code>--output-file</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-690"><code>--output-file</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-965"><code>--output-file</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-630"><code>--output-file</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-246"><code>--output-file</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-285"><code>--output-file</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1034"><code>--output-file</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002doutput_002dfile_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-734"><code>--output-file</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dpackage_002dname_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-227"><code>--package-name</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dpackage_002dversion_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-228"><code>--package-version</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dpo_002ddir_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1122"><code>--po-dir</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dprevious_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-295"><code>--previous</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-853"><code>--properties-input</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-560"><code>--properties-input</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-822"><code>--properties-input</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-784"><code>--properties-input</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-600"><code>--properties-input</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-886"><code>--properties-input</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-924"><code>--properties-input</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-703"><code>--properties-input</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-981"><code>--properties-input</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-658"><code>--properties-input</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-248"><code>--properties-input</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-297"><code>--properties-input</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002dinput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-740"><code>--properties-input</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-865"><code>--properties-output</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-576"><code>--properties-output</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-796"><code>--properties-output</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-611"><code>--properties-output</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-898"><code>--properties-output</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-714"><code>--properties-output</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-668"><code>--properties-output</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-256"><code>--properties-output</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-309"><code>--properties-output</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1042"><code>--properties-output</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-755"><code>--properties-output</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dproperties_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-213"><code>--properties-output</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dqt_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-962"><code>--qt</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dqt_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-196"><code>--qt</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dquiet_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-698"><code>--quiet</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dquiet_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-326"><code>--quiet</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dregexp_003d_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-650"><code>--regexp=</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002drepeated_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-736"><code>--repeated</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dresource_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-968"><code>--resource</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dresource_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1022"><code>--resource</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dset_002dfuzzy_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-843"><code>--set-fuzzy</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dset_002dobsolete_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-845"><code>--set-obsolete</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dsilent_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-699"><code>--silent</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dsilent_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-327"><code>--silent</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-873"><code>--sort-by-file</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-585"><code>--sort-by-file</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-804"><code>--sort-by-file</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-619"><code>--sort-by-file</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-906"><code>--sort-by-file</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-722"><code>--sort-by-file</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-674"><code>--sort-by-file</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-318"><code>--sort-by-file</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-763"><code>--sort-by-file</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002dby_002dfile_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-222"><code>--sort-by-file</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-871"><code>--sort-output</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-582"><code>--sort-output</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-802"><code>--sort-output</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-617"><code>--sort-output</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-904"><code>--sort-output</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-720"><code>--sort-output</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-673"><code>--sort-output</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-315"><code>--sort-output</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1048"><code>--sort-output</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-761"><code>--sort-output</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dsort_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-219"><code>--sort-output</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dstatistics_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1006"><code>--statistics</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-863"><code>--strict</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-574"><code>--strict</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-794"><code>--strict</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-609"><code>--strict</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-896"><code>--strict</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-712"><code>--strict</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-966"><code>--strict</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-666"><code>--strict</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-307"><code>--strict</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1040"><code>--strict</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-753"><code>--strict</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dstrict_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-212"><code>--strict</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-854"><code>--stringtable-input</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-561"><code>--stringtable-input</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-823"><code>--stringtable-input</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-785"><code>--stringtable-input</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-887"><code>--stringtable-input</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-925"><code>--stringtable-input</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-704"><code>--stringtable-input</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-982"><code>--stringtable-input</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-659"><code>--stringtable-input</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-249"><code>--stringtable-input</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-298"><code>--stringtable-input</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsgonv_007d-option_007d-601"><code>--stringtable-input</code><span class="roman">, </span><code>msgonv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002dinput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-741"><code>--stringtable-input</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-866"><code>--stringtable-output</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-577"><code>--stringtable-output</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-797"><code>--stringtable-output</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-612"><code>--stringtable-output</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-899"><code>--stringtable-output</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-715"><code>--stringtable-output</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-669"><code>--stringtable-output</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-257"><code>--stringtable-output</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-310"><code>--stringtable-output</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1043"><code>--stringtable-output</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-756"><code>--stringtable-output</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dstringtable_002doutput_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-214"><code>--stringtable-output</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-856"><code>--style</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-932"><code>--style</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#The-_002d_002dstyle-option">The --style option</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-567"><code>--style</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-787"><code>--style</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-603"><code>--style</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-890"><code>--style</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-706"><code>--style</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-661"><code>--style</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-254"><code>--style</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-301"><code>--style</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1036"><code>--style</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-746"><code>--style</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dstyle_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-205"><code>--style</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dsuffix_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-289"><code>--suffix</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dsymlink_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1124"><code>--symlink</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dtcl_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-960"><code>--tcl</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dtcl_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1019"><code>--tcl</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dto_002dcode_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-563"><code>--to-code</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dto_002dcode_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-598"><code>--to-code</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dto_002dcode_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-743"><code>--to-code</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dtranslated_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-836"><code>--translated</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dtrigraphs_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-194"><code>--trigraphs</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dunique_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-558"><code>--unique</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dunique_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-782"><code>--unique</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dunique_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-738"><code>--unique</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002duntranslated_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-837"><code>--untranslated</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dupdate_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-283"><code>--update</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002duse_002dfirst_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-564"><code>--use-first</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002duse_002dfirst_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-744"><code>--use-first</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002duse_002dfuzzy_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-819"><code>--use-fuzzy</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002duse_002dfuzzy_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-997"><code>--use-fuzzy</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002duse_002duntranslated_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-820"><code>--use-untranslated</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002dvariables_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1210"><code>--variables</code><span class="roman">, </span><code>envsubst</code><span class="roman"> option</span></a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_002d_002dverbose_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1008"><code>--verbose</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dverbose_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-324"><code>--verbose</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dverbose_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1055"><code>--verbose</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1162"><code>--version</code><span class="roman">, </span><code>autopoint</code><span class="roman"> option</span></a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1214"><code>--version</code><span class="roman">, </span><code>envsubst</code><span class="roman"> option</span></a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1192"><code>--version</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1128"><code>--version</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-877"><code>--version</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-589"><code>--version</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-827"><code>--version</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-809"><code>--version</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-623"><code>--version</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-910"><code>--version</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-929"><code>--version</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-726"><code>--version</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1005"><code>--version</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-678"><code>--version</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-264"><code>--version</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-322"><code>--version</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1053"><code>--version</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-767"><code>--version</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1203"><code>--version</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dversion_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-237"><code>--version</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-868"><code>--width</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-579"><code>--width</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-799"><code>--width</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-614"><code>--width</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-901"><code>--width</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-717"><code>--width</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-671"><code>--width</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-259"><code>--width</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-312"><code>--width</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1045"><code>--width</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-758"><code>--width</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002d_002dwidth_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-216"><code>--width</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002d_003c_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-553"><code>-&lt;</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_003c_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-777"><code>-&lt;</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002d_003e_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-555"><code>-&gt;</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002d_003e_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-779"><code>-&gt;</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002da_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-999"><code>-a</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002da_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-184"><code>-a</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dC_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-989"><code>-C</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dc_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-983"><code>-c</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dC_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-641"><code>-C</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dC_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-280"><code>-C</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dc_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-182"><code>-c</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dC_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-175"><code>-C</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1159"><code>-d</code><span class="roman">, </span><code>autopoint</code><span class="roman"> option</span></a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1184"><code>-d</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1125"><code>-d</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-832"><code>-D</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-548"><code>-D</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-813"><code>-D</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-773"><code>-D</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-593"><code>-D</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-881"><code>-D</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-921"><code>-D</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-687"><code>-D</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-971"><code>-d</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-950"><code>-D</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-627"><code>-D</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-278"><code>-D</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1029"><code>-d</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-735"><code>-d</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-731"><code>-D</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1196"><code>-d</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002dd_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-165"><code>-d</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dD_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-163"><code>-D</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dE_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1187"><code>-E</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002de_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1186"><code>-e</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002de_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-693"><code>-e</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002de_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-649"><code>-e</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dE_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-645"><code>-E</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dE_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1199"><code>-E</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002de_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1198"><code>-e</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bautopoint_007d-option_007d-1157"><code>-f</code><span class="roman">, </span><code>autopoint</code><span class="roman"> option</span></a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bgettextize_007d-option_007d-1119"><code>-f</code><span class="roman">, </span><code>gettextize</code><span class="roman"> option</span></a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-872"><code>-F</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-584"><code>-F</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-546"><code>-f</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-803"><code>-F</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-771"><code>-f</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-618"><code>-F</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-905"><code>-F</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-721"><code>-F</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-695"><code>-f</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-996"><code>-f</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-651"><code>-f</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-647"><code>-F</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-317"><code>-F</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-762"><code>-F</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dF_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-221"><code>-F</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002df_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-161"><code>-f</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1211"><code>-h</code><span class="roman">, </span><code>envsubst</code><span class="roman"> option</span></a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1188"><code>-h</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-874"><code>-h</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-586"><code>-h</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-824"><code>-h</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-806"><code>-h</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-620"><code>-h</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-907"><code>-h</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-926"><code>-h</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-723"><code>-h</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1002"><code>-h</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-675"><code>-h</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-261"><code>-h</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-319"><code>-h</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1050"><code>-h</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-764"><code>-h</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1200"><code>-h</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002dh_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-234"><code>-h</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-858"><code>-i</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-569"><code>-i</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-789"><code>-i</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-605"><code>-i</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-892"><code>-i</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-919"><code>-i</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-685"><code>-i</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-653"><code>-i</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-243"><code>-i</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-303"><code>-i</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1038"><code>-i</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-748"><code>-i</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002di_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-207"><code>-i</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dj_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-952"><code>-j</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dJ_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-635"><code>-J</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dj_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1012"><code>-j</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dj_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-178"><code>-j</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dK_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-637"><code>-K</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dk_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-186"><code>-k</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-969"><code>-l</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dl_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-250"><code>-l</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002dl_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1023"><code>-l</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dL_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-172"><code>-L</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dm_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-815"><code>-m</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002dM_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-633"><code>-M</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dm_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-291"><code>-m</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dM_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-232"><code>-M</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dm_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-230"><code>-m</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dn_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1190"><code>-n</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-861"><code>-n</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-572"><code>-n</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dN_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-817"><code>-N</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-792"><code>-n</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dn_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-697"><code>-n</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002dN_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-631"><code>-N</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dN_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-293"><code>-N</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dn_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-751"><code>-n</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dn_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-210"><code>-n</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-834"><code>-o</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-550"><code>-o</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-775"><code>-o</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-595"><code>-o</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-883"><code>-o</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-689"><code>-o</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-964"><code>-o</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-629"><code>-o</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-245"><code>-o</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-284"><code>-o</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1033"><code>-o</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-733"><code>-o</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002do_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-167"><code>-o</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-864"><code>-p</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-852"><code>-P</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-575"><code>-p</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-559"><code>-P</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-821"><code>-P</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-795"><code>-p</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-783"><code>-P</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-610"><code>-p</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-599"><code>-P</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-897"><code>-p</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-885"><code>-P</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-923"><code>-P</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-713"><code>-p</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-702"><code>-P</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-980"><code>-P</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-667"><code>-p</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-657"><code>-P</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-255"><code>-p</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-247"><code>-P</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-308"><code>-p</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-296"><code>-P</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1041"><code>-p</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-754"><code>-p</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dP_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-739"><code>-P</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dp_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-169"><code>-p</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dq_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-325"><code>-q</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dr_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-967"><code>-r</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dr_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1021"><code>-r</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-870"><code>-s</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-581"><code>-s</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-801"><code>-s</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-616"><code>-s</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-903"><code>-s</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-719"><code>-s</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-314"><code>-s</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1047"><code>-s</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-760"><code>-s</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002ds_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-218"><code>-s</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dt_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-562"><code>-t</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dt_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-597"><code>-t</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dT_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-639"><code>-T</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dt_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-742"><code>-t</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dT_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-193"><code>-T</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002du_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-557"><code>-u</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002du_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-781"><code>-u</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dU_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-282"><code>-U</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002du_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-737"><code>-u</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1213"><code>-V</code><span class="roman">, </span><code>envsubst</code><span class="roman"> option</span></a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_002dv_0040r_007b_002c-_0040code_007benvsubst_007d-option_007d-1209"><code>-v</code><span class="roman">, </span><code>envsubst</code><span class="roman"> option</span></a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bgettext_007d-option_007d-1191"><code>-V</code><span class="roman">, </span><code>gettext</code><span class="roman"> option</span></a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-876"><code>-V</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-588"><code>-V</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgcmp_007d-option_007d-826"><code>-V</code><span class="roman">, </span><code>msgcmp</code><span class="roman"> option</span></a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-808"><code>-V</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-622"><code>-V</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-909"><code>-V</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgexec_007d-option_007d-928"><code>-V</code><span class="roman">, </span><code>msgexec</code><span class="roman"> option</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-725"><code>-V</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002dv_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1007"><code>-v</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgfmt_007d-option_007d-1004"><code>-V</code><span class="roman">, </span><code>msgfmt</code><span class="roman"> option</span></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-677"><code>-V</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dv_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-655"><code>-v</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-263"><code>-V</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002dv_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-323"><code>-v</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-321"><code>-V</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dv_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1054"><code>-v</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1052"><code>-V</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-766"><code>-V</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bngettext_007d-option_007d-1202"><code>-V</code><span class="roman">, </span><code>ngettext</code><span class="roman"> option</span></a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-g_t_002dV_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-236"><code>-V</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgattrib_007d-option_007d-867"><code>-w</code><span class="roman">, </span><code>msgattrib</code><span class="roman"> option</span></a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgcat_007d-option_007d-578"><code>-w</code><span class="roman">, </span><code>msgcat</code><span class="roman"> option</span></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgcomm_007d-option_007d-798"><code>-w</code><span class="roman">, </span><code>msgcomm</code><span class="roman"> option</span></a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgconv_007d-option_007d-613"><code>-w</code><span class="roman">, </span><code>msgconv</code><span class="roman"> option</span></a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgen_007d-option_007d-900"><code>-w</code><span class="roman">, </span><code>msgen</code><span class="roman"> option</span></a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgfilter_007d-option_007d-716"><code>-w</code><span class="roman">, </span><code>msgfilter</code><span class="roman"> option</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-670"><code>-w</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsginit_007d-option_007d-258"><code>-w</code><span class="roman">, </span><code>msginit</code><span class="roman"> option</span></a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgmerge_007d-option_007d-311"><code>-w</code><span class="roman">, </span><code>msgmerge</code><span class="roman"> option</span></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsgunfmt_007d-option_007d-1044"><code>-w</code><span class="roman">, </span><code>msgunfmt</code><span class="roman"> option</span></a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bmsguniq_007d-option_007d-757"><code>-w</code><span class="roman">, </span><code>msguniq</code><span class="roman"> option</span></a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-g_t_002dw_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-215"><code>-w</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_002dX_0040r_007b_002c-_0040code_007bmsggrep_007d-option_007d-643"><code>-X</code><span class="roman">, </span><code>msggrep</code><span class="roman"> option</span></a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-g_t_002dx_0040r_007b_002c-_0040code_007bxgettext_007d-option_007d-180"><code>-x</code><span class="roman">, </span><code>xgettext</code><span class="roman"> option</span></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
   </ul><div class="node">
<a name="Variable-Index"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#PO-Mode-Index">PO Mode Index</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Option-Index">Option Index</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="unnumbered">Variable Index</h2>



<ul class="index-vr" compact>
<li><a href="#index-GETTEXT_005fLOG_005fUNTRANSLATED_0040r_007b_002c-environment-variable_007d-1112"><code>GETTEXT_LOG_UNTRANSLATED</code><span class="roman">, environment variable</span></a>: <a href="#Prioritizing-messages">Prioritizing messages</a></li>
<li><a href="#index-LANG_0040r_007b_002c-environment-variable_007d-1109"><code>LANG</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LANG_0040r_007b_002c-environment-variable_007d-51"><code>LANG</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LANGUAGE_0040r_007b_002c-environment-variable_007d-1135"><code>LANGUAGE</code><span class="roman">, environment variable</span></a>: <a href="#po_002fRules_002d_002a">po/Rules-*</a></li>
<li><a href="#index-LANGUAGE_0040r_007b_002c-environment-variable_007d-1101"><code>LANGUAGE</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LANGUAGE_0040r_007b_002c-environment-variable_007d-43"><code>LANGUAGE</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LC_005fALL_0040r_007b_002c-environment-variable_007d-1102"><code>LC_ALL</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LC_005fALL_0040r_007b_002c-environment-variable_007d-44"><code>LC_ALL</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LC_005fCOLLATE_0040r_007b_002c-environment-variable_007d-1106"><code>LC_COLLATE</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LC_005fCOLLATE_0040r_007b_002c-environment-variable_007d-48"><code>LC_COLLATE</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LC_005fCTYPE_0040r_007b_002c-environment-variable_007d-1103"><code>LC_CTYPE</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LC_005fCTYPE_0040r_007b_002c-environment-variable_007d-45"><code>LC_CTYPE</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LC_005fMESSAGES_0040r_007b_002c-environment-variable_007d-1108"><code>LC_MESSAGES</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LC_005fMESSAGES_0040r_007b_002c-environment-variable_007d-50"><code>LC_MESSAGES</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LC_005fMONETARY_0040r_007b_002c-environment-variable_007d-1107"><code>LC_MONETARY</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LC_005fMONETARY_0040r_007b_002c-environment-variable_007d-49"><code>LC_MONETARY</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LC_005fNUMERIC_0040r_007b_002c-environment-variable_007d-1104"><code>LC_NUMERIC</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LC_005fNUMERIC_0040r_007b_002c-environment-variable_007d-46"><code>LC_NUMERIC</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LC_005fTIME_0040r_007b_002c-environment-variable_007d-1105"><code>LC_TIME</code><span class="roman">, environment variable</span></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-LC_005fTIME_0040r_007b_002c-environment-variable_007d-47"><code>LC_TIME</code><span class="roman">, environment variable</span></a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-LINGUAS_0040r_007b_002c-environment-variable_007d-1169"><code>LINGUAS</code><span class="roman">, environment variable</span></a>: <a href="#Installers">Installers</a></li>
<li><a href="#index-MSGEXEC_005fLOCATION_0040r_007b_002c-environment-variable_007d-917"><code>MSGEXEC_LOCATION</code><span class="roman">, environment variable</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-MSGEXEC_005fMSGCTXT_0040r_007b_002c-environment-variable_007d-915"><code>MSGEXEC_MSGCTXT</code><span class="roman">, environment variable</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-MSGEXEC_005fMSGID_0040r_007b_002c-environment-variable_007d-916"><code>MSGEXEC_MSGID</code><span class="roman">, environment variable</span></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-MSGFILTER_005fLOCATION_0040r_007b_002c-environment-variable_007d-684"><code>MSGFILTER_LOCATION</code><span class="roman">, environment variable</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-MSGFILTER_005fMSGCTXT_0040r_007b_002c-environment-variable_007d-682"><code>MSGFILTER_MSGCTXT</code><span class="roman">, environment variable</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-MSGFILTER_005fMSGID_0040r_007b_002c-environment-variable_007d-683"><code>MSGFILTER_MSGID</code><span class="roman">, environment variable</span></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-PO_005fSTYLE_0040r_007b_002c-environment-variable_007d-933"><code>PO_STYLE</code><span class="roman">, environment variable</span></a>: <a href="#The-_002d_002dstyle-option">The --style option</a></li>
<li><a href="#index-TERM_0040r_007b_002c-environment-variable_007d-931"><code>TERM</code><span class="roman">, environment variable</span></a>: <a href="#The-TERM-variable">The TERM variable</a></li>
<li><a href="#index-TEXTDOMAIN_0040r_007b_002c-environment-variable_007d-1178"><code>TEXTDOMAIN</code><span class="roman">, environment variable</span></a>: <a href="#sh">sh</a></li>
<li><a href="#index-TEXTDOMAINDIR_0040r_007b_002c-environment-variable_007d-1179"><code>TEXTDOMAINDIR</code><span class="roman">, environment variable</span></a>: <a href="#sh">sh</a></li>
   </ul><div class="node">
<a name="PO-Mode-Index"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Autoconf-Macro-Index">Autoconf Macro Index</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Variable-Index">Variable Index</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="unnumbered">PO Mode Index</h2>



<ul class="index-em" compact>
<li><a href="#index-g_t_0023_0040r_007b_002c-PO-Mode-command_007d-467"><code>#</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-g_t_002c_0040r_007b_002c-PO-Mode-command_007d-148"><code>,</code><span class="roman">, PO Mode command</span></a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-g_t_002e_0040r_007b_002c-PO-Mode-command_007d-364"><code>.</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-g_t_0040file_007b_002eemacs_007d-customizations-334"><samp><span class="file">.emacs</span></samp> customizations</a>: <a href="#Installation">Installation</a></li>
<li><a href="#index-g_t0_0040r_007b_002c-PO-Mode-command_007d-341"><code>0</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-g_t_003c_0040r_007b_002c-PO-Mode-command_007d-367"><code>&lt;</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-g_t_003d_0040r_007b_002c-PO-Mode-command_007d-344"><code>=</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-g_t_003e_0040r_007b_002c-PO-Mode-command_007d-368"><code>&gt;</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-g_t_003f_0040r_007b_002c-PO-Mode-command_007d-342"><code>?</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-g_t_005f_0040r_007b_002c-PO-Mode-command_007d-338"><code>_</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-a_0040r_007b_002c-PO-Mode-command_007d-520"><code>a</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-A_0040r_007b_002c-PO-Mode-command_007d-514"><code>A</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-a_0040r_007b_002c-PO-Mode-command_007d-512"><code>a</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-auxiliary-PO-file-511">auxiliary PO file</a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-C_002dc-C_002da_0040r_007b_002c-PO-Mode-command_007d-513"><code>C-c C-a</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-C_002dc-C_002da_0040r_007b_002c-PO-Mode-command_007d-483"><code>C-c C-a</code><span class="roman">, PO Mode command</span></a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-C_002dc-C_002dc_0040r_007b_002c-PO-Mode-command_007d-481"><code>C-c C-c</code><span class="roman">, PO Mode command</span></a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-C_002dc-C_002dk_0040r_007b_002c-PO-Mode-command_007d-482"><code>C-c C-k</code><span class="roman">, PO Mode command</span></a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-C_002dj_0040r_007b_002c-PO-Mode-command_007d-446"><code>C-j</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-commands-337">commands</a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-comment-out-PO-file-entry-441">comment out PO file entry</a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-consulting-program-sources-493">consulting program sources</a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-consulting-translations-to-other-languages-509">consulting translations to other languages</a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-current-entry-of-a-PO-file-362">current entry of a PO file</a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-cut-and-paste-for-translated-strings-457">cut and paste for translated strings</a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-DEL_0040r_007b_002c-PO-Mode-command_007d-433"><code>DEL</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-DEL_0040r_007b_002c-PO-Mode-command_007d-416"><code>DEL</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-editing-comments-466">editing comments</a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-editing-multiple-entries-491">editing multiple entries</a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-editing-translations-443">editing translations</a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-g_t_0040code_007betags_007d_002c-using-for-marking-strings-146"><code>etags</code>, using for marking strings</a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-exiting-PO-subedit-484">exiting PO subedit</a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-F_0040r_007b_002c-PO-Mode-command_007d-411"><code>F</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-f_0040r_007b_002c-PO-Mode-command_007d-409"><code>f</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-F_0040r_007b_002c-PO-Mode-command_007d-407"><code>F</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-f_0040r_007b_002c-PO-Mode-command_007d-406"><code>f</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-find-source-fragment-for-a-PO-file-entry-496">find source fragment for a PO file entry</a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-h_0040r_007b_002c-PO-Mode-command_007d-343"><code>h</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-installing-PO-mode-335">installing PO mode</a>: <a href="#Installation">Installation</a></li>
<li><a href="#index-K_0040r_007b_002c-PO-Mode-command_007d-468"><code>K</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-k_0040r_007b_002c-PO-Mode-command_007d-447"><code>k</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-k_0040r_007b_002c-PO-Mode-command_007d-422"><code>k</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-LFD_0040r_007b_002c-PO-Mode-command_007d-445"><code>LFD</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-looking-at-the-source-to-aid-translation-494">looking at the source to aid translation</a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-m_0040r_007b_002c-PO-Mode-command_007d-369"><code>m</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-M_002d_002c_0040r_007b_002c-PO-Mode-command_007d-149"><code>M-,</code><span class="roman">, PO Mode command</span></a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-M_002d_002e_0040r_007b_002c-PO-Mode-command_007d-150"><code>M-.</code><span class="roman">, PO Mode command</span></a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-M_002dA_0040r_007b_002c-PO-Mode-command_007d-515"><code>M-A</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-M_002dS_0040r_007b_002c-PO-Mode-command_007d-507"><code>M-S</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-M_002ds_0040r_007b_002c-PO-Mode-command_007d-503"><code>M-s</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-M_002dS_0040r_007b_002c-PO-Mode-command_007d-500"><code>M-S</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-M_002ds_0040r_007b_002c-PO-Mode-command_007d-498"><code>M-s</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-marking-strings-for-translation-145">marking strings for translation</a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-moving-by-fuzzy-entries-405">moving by fuzzy entries</a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-moving-by-obsolete-entries-430">moving by obsolete entries</a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-moving-by-translated-entries-394">moving by translated entries</a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-moving-by-untranslated-entries-419">moving by untranslated entries</a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-moving-through-a-PO-file-363">moving through a PO file</a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-n_0040r_007b_002c-PO-Mode-command_007d-365"><code>n</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-next_002derror_0040r_007b_002c-stepping-through-PO-file-validation-results_007d-361"><code>next-error</code><span class="roman">, stepping through PO file validation results</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-normalize_0040r_007b_002c-PO-Mode-command_007d-524"><code>normalize</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-O_0040r_007b_002c-PO-Mode-command_007d-436"><code>O</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-o_0040r_007b_002c-PO-Mode-command_007d-434"><code>o</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-O_0040r_007b_002c-PO-Mode-command_007d-432"><code>O</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-o_0040r_007b_002c-PO-Mode-command_007d-431"><code>o</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-obsolete-active-entry-440">obsolete active entry</a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-p_0040r_007b_002c-PO-Mode-command_007d-366"><code>p</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-pending-subedits-492">pending subedits</a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-po_002dauto_002dedit_002dwith_002dmsgid_0040r_007b_002c-PO-Mode-variable_007d-455"><code>po-auto-edit-with-msgid</code><span class="roman">, PO Mode variable</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-po_002dauto_002dfuzzy_002don_002dedit_0040r_007b_002c-PO-Mode-variable_007d-401"><code>po-auto-fuzzy-on-edit</code><span class="roman">, PO Mode variable</span></a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-po_002dauto_002dselect_002don_002dunfuzzy_0040r_007b_002c-PO-Mode-variable_007d-415"><code>po-auto-select-on-unfuzzy</code><span class="roman">, PO Mode variable</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-po_002dconfirm_002dand_002dquit_0040r_007b_002c-PO-Mode-command_007d-351"><code>po-confirm-and-quit</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-po_002dconsider_002das_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-517"><code>po-consider-as-auxiliary</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-po_002dconsider_002dsource_002dpath_0040r_007b_002c-PO-Mode-command_007d-506"><code>po-consider-source-path</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-po_002dcurrent_002dentry_0040r_007b_002c-PO-Mode-command_007d-373"><code>po-current-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dcycle_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-521"><code>po-cycle-auxiliary</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-po_002dcycle_002dsource_002dreference_0040r_007b_002c-PO-Mode-command_007d-502"><code>po-cycle-source-reference</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-po_002dedit_002dcomment_0040r_007b_002c-PO-Mode-command_007d-472"><code>po-edit-comment</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-po_002dedit_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-451"><code>po-edit-msgstr</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-po_002dexchange_002dlocation_0040r_007b_002c-PO-Mode-command_007d-387"><code>po-exchange-location</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dfade_002dout_002dentry_0040r_007b_002c-PO-Mode-command_007d-439"><code>po-fade-out-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-po_002dfade_002dout_002dentry_0040r_007b_002c-PO-Mode-command_007d-417"><code>po-fade-out-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-po_002dfirst_002dentry_0040r_007b_002c-PO-Mode-command_007d-379"><code>po-first-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dhelp_0040r_007b_002c-PO-Mode-command_007d-356"><code>po-help</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-po_002dignore_002das_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-519"><code>po-ignore-as-auxiliary</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-po_002dignore_002dsource_002dpath_0040r_007b_002c-PO-Mode-command_007d-508"><code>po-ignore-source-path</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-po_002dkill_002dcomment_0040r_007b_002c-PO-Mode-command_007d-475"><code>po-kill-comment</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-po_002dkill_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-459"><code>po-kill-msgstr</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-po_002dkill_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-428"><code>po-kill-msgstr</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-po_002dkill_002dring_002dsave_002dcomment_0040r_007b_002c-PO-Mode-command_007d-477"><code>po-kill-ring-save-comment</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-po_002dkill_002dring_002dsave_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-461"><code>po-kill-ring-save-msgstr</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-po_002dlast_002dentry_0040r_007b_002c-PO-Mode-command_007d-381"><code>po-last-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dmark_002dtranslatable_0040r_007b_002c-PO-Mode-command_007d-152"><code>po-mark-translatable</code><span class="roman">, PO Mode command</span></a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-po_002dmsgid_002dto_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-454"><code>po-msgid-to-msgstr</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-po_002dnext_002dentry_0040r_007b_002c-PO-Mode-command_007d-375"><code>po-next-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dnext_002dfuzzy_002dentry_0040r_007b_002c-PO-Mode-command_007d-410"><code>po-next-fuzzy-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-po_002dnext_002dobsolete_002dentry_0040r_007b_002c-PO-Mode-command_007d-435"><code>po-next-obsolete-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-po_002dnext_002dtranslated_002dentry_0040r_007b_002c-PO-Mode-command_007d-398"><code>po-next-translated-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-po_002dnext_002duntranslated_002dentry_0040r_007b_002c-PO-Mode-command_007d-424"><code>po-next-untranslated-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-po_002dnormalize_0040r_007b_002c-PO-Mode-command_007d-390"><code>po-normalize</code><span class="roman">, PO Mode command</span></a>: <a href="#Normalizing">Normalizing</a></li>
<li><a href="#index-po_002dother_002dwindow_0040r_007b_002c-PO-Mode-command_007d-353"><code>po-other-window</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-po_002dpop_002dlocation_0040r_007b_002c-PO-Mode-command_007d-385"><code>po-pop-location</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dprevious_002dentry_0040r_007b_002c-PO-Mode-command_007d-377"><code>po-previous-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dprevious_002dfuzzy_002dentry_0040r_007b_002c-PO-Mode-command_007d-412"><code>po-previous-fuzzy-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-po_002dprevious_002dobsolete_002dentry_0040r_007b_002c-PO-Mode-command_007d-437"><code>po-previous-obsolete-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-po_002dprevious_002dtranslated_002dentry_0040r_007b_002c-PO-Mode-command_007d-400"><code>po-previous-translated-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-po_002dprevious_002duntransted_002dentry_0040r_007b_002c-PO-Mode-command_007d-426"><code>po-previous-untransted-entry</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-po_002dpush_002dlocation_0040r_007b_002c-PO-Mode-command_007d-383"><code>po-push-location</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-po_002dquit_0040r_007b_002c-PO-Mode-command_007d-350"><code>po-quit</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-po_002dselect_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-523"><code>po-select-auxiliary</code><span class="roman">, PO Mode command</span></a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-po_002dselect_002dmark_002dand_002dmark_0040r_007b_002c-PO-Mode-command_007d-153"><code>po-select-mark-and-mark</code><span class="roman">, PO Mode command</span></a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-po_002dselect_002dsource_002dreference_0040r_007b_002c-PO-Mode-command_007d-504"><code>po-select-source-reference</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-po_002dstatistics_0040r_007b_002c-PO-Mode-command_007d-358"><code>po-statistics</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-po_002dsubedit_002dabort_0040r_007b_002c-PO-Mode-command_007d-488"><code>po-subedit-abort</code><span class="roman">, PO Mode command</span></a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-po_002dsubedit_002dcycle_002dauxiliary_0040r_007b_002c-PO-Mode-command_007d-490"><code>po-subedit-cycle-auxiliary</code><span class="roman">, PO Mode command</span></a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-po_002dsubedit_002dexit_0040r_007b_002c-PO-Mode-command_007d-486"><code>po-subedit-exit</code><span class="roman">, PO Mode command</span></a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-po_002dsubedit_002dmode_002dhook_0040r_007b_002c-PO-Mode-variable_007d-473"><code>po-subedit-mode-hook</code><span class="roman">, PO Mode variable</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-po_002dtags_002dsearch_0040r_007b_002c-PO-Mode-command_007d-151"><code>po-tags-search</code><span class="roman">, PO Mode command</span></a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-po_002dundo_0040r_007b_002c-PO-Mode-command_007d-347"><code>po-undo</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-po_002dunfuzzy_0040r_007b_002c-PO-Mode-command_007d-414"><code>po-unfuzzy</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-po_002dvalidate_0040r_007b_002c-PO-Mode-command_007d-360"><code>po-validate</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-po_002dyank_002dcomment_0040r_007b_002c-PO-Mode-command_007d-479"><code>po-yank-comment</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-po_002dyank_002dmsgstr_0040r_007b_002c-PO-Mode-command_007d-463"><code>po-yank-msgstr</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-q_0040r_007b_002c-PO-Mode-command_007d-349"><code>q</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-Q_0040r_007b_002c-PO-Mode-command_007d-348"><code>Q</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-q_0040r_007b_002c-PO-Mode-command_007d-340"><code>q</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-Q_0040r_007b_002c-PO-Mode-command_007d-339"><code>Q</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-r_0040r_007b_002c-PO-Mode-command_007d-370"><code>r</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-RET_0040r_007b_002c-PO-Mode-command_007d-444"><code>RET</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-S_0040r_007b_002c-PO-Mode-command_007d-505"><code>S</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-s_0040r_007b_002c-PO-Mode-command_007d-501"><code>s</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-S_0040r_007b_002c-PO-Mode-command_007d-499"><code>S</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-s_0040r_007b_002c-PO-Mode-command_007d-497"><code>s</code><span class="roman">, PO Mode command</span></a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-starting-a-string-translation-456">starting a string translation</a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-string-normalization-in-entries-389">string normalization in entries</a>: <a href="#Normalizing">Normalizing</a></li>
<li><a href="#index-subedit-minor-mode-480">subedit minor mode</a>: <a href="#Subedit">Subedit</a></li>
<li><a href="#index-T_0040r_007b_002c-PO-Mode-command_007d-399"><code>T</code><span class="roman">, PO Mode command</span></a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-t_0040r_007b_002c-PO-Mode-command_007d-397"><code>t</code><span class="roman">, PO Mode command</span></a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-T_0040r_007b_002c-PO-Mode-command_007d-396"><code>T</code><span class="roman">, PO Mode command</span></a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-t_0040r_007b_002c-PO-Mode-command_007d-395"><code>t</code><span class="roman">, PO Mode command</span></a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-TAB_0040r_007b_002c-PO-Mode-command_007d-408"><code>TAB</code><span class="roman">, PO Mode command</span></a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-g_t_0040file_007bTAGS_007d_002c-and-marking-translatable-strings-147"><samp><span class="file">TAGS</span></samp>, and marking translatable strings</a>: <a href="#Marking">Marking</a></li>
<li><a href="#index-U_0040r_007b_002c-PO-Mode-command_007d-425"><code>U</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-u_0040r_007b_002c-PO-Mode-command_007d-423"><code>u</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-U_0040r_007b_002c-PO-Mode-command_007d-421"><code>U</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-u_0040r_007b_002c-PO-Mode-command_007d-420"><code>u</code><span class="roman">, PO Mode command</span></a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-use-the-source_002c-Luke-495">use the source, Luke</a>: <a href="#C-Sources-Context">C Sources Context</a></li>
<li><a href="#index-using-obsolete-translations-to-make-new-entries-464">using obsolete translations to make new entries</a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-using-translation-compendia-525">using translation compendia</a>: <a href="#Compendium">Compendium</a></li>
<li><a href="#index-V_0040r_007b_002c-PO-Mode-command_007d-345"><code>V</code><span class="roman">, PO Mode command</span></a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-W_0040r_007b_002c-PO-Mode-command_007d-469"><code>W</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-w_0040r_007b_002c-PO-Mode-command_007d-448"><code>w</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-x_0040r_007b_002c-PO-Mode-command_007d-371"><code>x</code><span class="roman">, PO Mode command</span></a>: <a href="#Entry-Positioning">Entry Positioning</a></li>
<li><a href="#index-Y_0040r_007b_002c-PO-Mode-command_007d-470"><code>Y</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-y_0040r_007b_002c-PO-Mode-command_007d-449"><code>y</code><span class="roman">, PO Mode command</span></a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
   </ul><div class="node">
<a name="Autoconf-Macro-Index"></a>
<p><hr>
Next:&nbsp;<a rel="next" accesskey="n" href="#Index">Index</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="#PO-Mode-Index">PO Mode Index</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="unnumbered">Autoconf Macro Index</h2>



<ul class="index-am" compact>
<li><a href="#index-AM_005fGNU_005fGETTEXT-1146"><code>AM_GNU_GETTEXT</code></a>: <a href="#AM_005fGNU_005fGETTEXT">AM_GNU_GETTEXT</a></li>
<li><a href="#index-AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR-1150"><code>AM_GNU_GETTEXT_INTL_SUBDIR</code></a>: <a href="#AM_005fGNU_005fGETTEXT_005fINTL_005fSUBDIR">AM_GNU_GETTEXT_INTL_SUBDIR</a></li>
<li><a href="#index-AM_005fGNU_005fGETTEXT_005fNEED-1149"><code>AM_GNU_GETTEXT_NEED</code></a>: <a href="#AM_005fGNU_005fGETTEXT_005fNEED">AM_GNU_GETTEXT_NEED</a></li>
<li><a href="#index-AM_005fGNU_005fGETTEXT_005fVERSION-1148"><code>AM_GNU_GETTEXT_VERSION</code></a>: <a href="#AM_005fGNU_005fGETTEXT_005fVERSION">AM_GNU_GETTEXT_VERSION</a></li>
<li><a href="#index-AM_005fICONV-1153"><code>AM_ICONV</code></a>: <a href="#AM_005fICONV">AM_ICONV</a></li>
<li><a href="#index-AM_005fPO_005fSUBDIRS-1151"><code>AM_PO_SUBDIRS</code></a>: <a href="#AM_005fPO_005fSUBDIRS">AM_PO_SUBDIRS</a></li>
<li><a href="#index-AM_005fXGETTEXT_005fOPTION-1152"><code>AM_XGETTEXT_OPTION</code></a>: <a href="#AM_005fXGETTEXT_005fOPTION">AM_XGETTEXT_OPTION</a></li>
   </ul><div class="node">
<a name="Index"></a>
<p><hr>
Previous:&nbsp;<a rel="previous" accesskey="p" href="#Autoconf-Macro-Index">Autoconf Macro Index</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="#Top">Top</a>

</div>

<h2 class="unnumbered">General Index</h2>



<ul class="index-cp" compact>
<li><a href="#index-g_t_0040code_007b_005f_007d_002c-a-macro-to-mark-strings-for-translation-144"><code>_</code>, a macro to mark strings for translation</a>: <a href="#Mark-Keywords">Mark Keywords</a></li>
<li><a href="#index-g_t_0040code_007b_005fnl_005fmsg_005fcat_005fcntr_007d-1110"><code>_nl_msg_cat_cntr</code></a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-g_t_0040file_007bABOUT_002dNLS_007d-file-54"><samp><span class="file">ABOUT-NLS</span></samp> file</a>: <a href="#Installing-Localizations">Installing Localizations</a></li>
<li><a href="#index-g_t_0040file_007bacconfig_002eh_007d-file-1139"><samp><span class="file">acconfig.h</span></samp> file</a>: <a href="#acconfig">acconfig</a></li>
<li><a href="#index-accumulating-translations-530">accumulating translations</a>: <a href="#Creating-Compendia">Creating Compendia</a></li>
<li><a href="#index-g_t_0040file_007baclocal_002em4_007d-file-1138"><samp><span class="file">aclocal.m4</span></samp> file</a>: <a href="#aclocal">aclocal</a></li>
<li><a href="#index-adding-keywords_002c-_0040code_007bxgettext_007d-188">adding keywords, <code>xgettext</code></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-ambiguities-132">ambiguities</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-apply-a-filter-to-translations-681">apply a filter to translations</a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-apply-command-to-all-translations-in-a-catalog-913">apply command to all translations in a catalog</a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-Arabic-digits-1173">Arabic digits</a>: <a href="#c_002dformat">c-format</a></li>
<li><a href="#index-attribute-manipulation-831">attribute manipulation</a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-attribute_002c-fuzzy-404">attribute, fuzzy</a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-attributes-of-a-PO-file-entry-403">attributes of a PO file entry</a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-attributes_002c-manipulating-541">attributes, manipulating</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-autoconf-macros-for-_0040code_007bgettext_007d-1145">autoconf macros for <code>gettext</code></a>: <a href="#autoconf-macros">autoconf macros</a></li>
<li><a href="#index-g_t_0040code_007bautopoint_007d-program_002c-usage-1156"><code>autopoint</code> program, usage</a>: <a href="#autopoint-Invocation">autopoint Invocation</a></li>
<li><a href="#index-auxiliary-PO-file-510">auxiliary PO file</a>: <a href="#Auxiliary">Auxiliary</a></li>
<li><a href="#index-available-translations-53">available translations</a>: <a href="#Installing-Localizations">Installing Localizations</a></li>
<li><a href="#index-awk-1234">awk</a>: <a href="#gawk">gawk</a></li>
<li><a href="#index-awk_002dformat_0040r_007b-flag_007d-85"><code>awk-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-backup-old-file_002c-and-_0040code_007bmsgmerge_007d-program-288">backup old file, and <code>msgmerge</code> program</a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-bash-1219">bash</a>: <a href="#bash">bash</a></li>
<li><a href="#index-bibliography-1260">bibliography</a>: <a href="#References">References</a></li>
<li><a href="#index-big-picture-31">big picture</a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-bind_005ftextdomain_005fcodeset-1076"><code>bind_textdomain_codeset</code></a>: <a href="#Charset-conversion">Charset conversion</a></li>
<li><a href="#index-Boost-format-strings-201">Boost format strings</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-boost_002dformat_0040r_007b-flag_007d-109"><code>boost-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-bug-report-address-4">bug report address</a>: <a href="#Introduction">Introduction</a></li>
<li><a href="#index-C-and-C_002dlike-languages-1174">C and C-like languages</a>: <a href="#C">C</a></li>
<li><a href="#index-C-trigraphs-195">C trigraphs</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-C_0023-1232">C#</a>: <a href="#C_0023">C#</a></li>
<li><a href="#index-C_0023-mode_002c-and-_0040code_007bmsgfmt_007d-program-957">C# mode, and <code>msgfmt</code> program</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-C_0023-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1016">C# mode, and <code>msgunfmt</code> program</a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-C_0023-resources-mode_002c-and-_0040code_007bmsgfmt_007d-program-959">C# resources mode, and <code>msgfmt</code> program</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-C_0023-resources-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1018">C# resources mode, and <code>msgunfmt</code> program</a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-C_0023_002c-string-concatenation-140">C#, string concatenation</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-c_002dformat_0040r_007b-flag_007d-63"><code>c-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-c_002dformat_0040r_007b_002c-and-_0040code_007bxgettext_007d_007d-155"><code>c-format</code><span class="roman">, and </span><code>xgettext</code></a>: <a href="#c_002dformat-Flag">c-format Flag</a></li>
<li><a href="#index-catalog-encoding-and-_0040code_007bmsgexec_007d-output-918">catalog encoding and <code>msgexec</code> output</a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_0040code_007bcatclose_007d_002c-a-_0040code_007bcatgets_007d-function-1066"><code>catclose</code>, a <code>catgets</code> function</a>: <a href="#Interface-to-catgets">Interface to catgets</a></li>
<li><a href="#index-g_t_0040code_007bcatgets_007d_002c-a-_0040code_007bcatgets_007d-function-1065"><code>catgets</code>, a <code>catgets</code> function</a>: <a href="#Interface-to-catgets">Interface to catgets</a></li>
<li><a href="#index-g_t_0040code_007bcatgets_007d_002c-X_002fOpen-specification-1062"><code>catgets</code>, X/Open specification</a>: <a href="#catgets">catgets</a></li>
<li><a href="#index-g_t_0040code_007bcatopen_007d_002c-a-_0040code_007bcatgets_007d-function-1064"><code>catopen</code>, a <code>catgets</code> function</a>: <a href="#Interface-to-catgets">Interface to catgets</a></li>
<li><a href="#index-character-encoding-17">character encoding</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-charset-conversion-at-runtime-1074">charset conversion at runtime</a>: <a href="#Charset-conversion">Charset conversion</a></li>
<li><a href="#index-charset-of-PO-files-268">charset of PO files</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-check-format-strings-986">check format strings</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-checking-of-translations-539">checking of translations</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-clisp-1223">clisp</a>: <a href="#Common-Lisp">Common Lisp</a></li>
<li><a href="#index-clisp-C-sources-1224">clisp C sources</a>: <a href="#clisp-C">clisp C</a></li>
<li><a href="#index-codeset-15">codeset</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-comments-in-PO-files-117">comments in PO files</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-comments_002c-automatic-58">comments, automatic</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-comments_002c-extracted-59">comments, extracted</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-comments_002c-translator-57">comments, translator</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-Common-Lisp-1221">Common Lisp</a>: <a href="#Common-Lisp">Common Lisp</a></li>
<li><a href="#index-compare-PO-files-812">compare PO files</a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-comparison-of-interfaces-1097">comparison of interfaces</a>: <a href="#Comparison">Comparison</a></li>
<li><a href="#index-compatibility-with-X_002fOpen-_0040code_007bmsgfmt_007d-991">compatibility with X/Open <code>msgfmt</code></a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-compendium-526">compendium</a>: <a href="#Compendium">Compendium</a></li>
<li><a href="#index-compendium_002c-creating-528">compendium, creating</a>: <a href="#Creating-Compendia">Creating Compendia</a></li>
<li><a href="#index-concatenate-PO-files-544">concatenate PO files</a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-concatenating-PO-files-into-a-compendium-529">concatenating PO files into a compendium</a>: <a href="#Creating-Compendia">Creating Compendia</a></li>
<li><a href="#index-concatenation-of-strings-137">concatenation of strings</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-g_t_0040file_007bconfig_002eh_002ein_007d-file-1140"><samp><span class="file">config.h.in</span></samp> file</a>: <a href="#config_002eh_002ein">config.h.in</a></li>
<li><a href="#index-context-1077">context</a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-context_002c-argument-specification-in-_0040code_007bxgettext_007d-189">context, argument specification in <code>xgettext</code></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-context_002c-in-MO-files-1060">context, in MO files</a>: <a href="#MO-Files">MO Files</a></li>
<li><a href="#index-context_002c-in-PO-files-112">context, in PO files</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-control-characters-142">control characters</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-convert-binary-message-catalog-into-PO-file-1011">convert binary message catalog into PO file</a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-convert-translations-to-a-different-encoding-592">convert translations to a different encoding</a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-converting-a-package-to-use-_0040code_007bgettext_007d-1114">converting a package to use <code>gettext</code></a>: <a href="#Prerequisites">Prerequisites</a></li>
<li><a href="#index-country-codes-1263">country codes</a>: <a href="#Country-Codes">Country Codes</a></li>
<li><a href="#index-create-new-PO-file-241">create new PO file</a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-creating-a-new-PO-file-238">creating a new PO file</a>: <a href="#Creating">Creating</a></li>
<li><a href="#index-creating-compendia-527">creating compendia</a>: <a href="#Creating-Compendia">Creating Compendia</a></li>
<li><a href="#index-csharp_002dformat_0040r_007b-flag_007d-83"><code>csharp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-currency-symbols-19">currency symbols</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-date-format-21">date format</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-dcngettext-1090"><code>dcngettext</code></a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-dcpgettext-1083"><code>dcpgettext</code></a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-dcpgettext_005fexpr-1086"><code>dcpgettext_expr</code></a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-debugging-messages-marked-as-format-strings-203">debugging messages marked as format strings</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-dialect-537">dialect</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-disabling-NLS-1143">disabling NLS</a>: <a href="#lib_002fgettext_002eh">lib/gettext.h</a></li>
<li><a href="#index-distribution-tarball-1164">distribution tarball</a>: <a href="#Release-Management">Release Management</a></li>
<li><a href="#index-dngettext-1089"><code>dngettext</code></a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-dollar-substitution-1207">dollar substitution</a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-domain-ambiguities-1071">domain ambiguities</a>: <a href="#Ambiguities">Ambiguities</a></li>
<li><a href="#index-dpgettext-1082"><code>dpgettext</code></a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-dpgettext_005fexpr-1085"><code>dpgettext_expr</code></a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-duplicate-elimination-540">duplicate elimination</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-duplicate-removal-730">duplicate removal</a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-editing-comments-in-PO-files-465">editing comments in PO files</a>: <a href="#Modifying-Comments">Modifying Comments</a></li>
<li><a href="#index-Editing-PO-Files-328">Editing PO Files</a>: <a href="#Editing">Editing</a></li>
<li><a href="#index-editing-translations-442">editing translations</a>: <a href="#Modifying-Translations">Modifying Translations</a></li>
<li><a href="#index-elisp_002dformat_0040r_007b-flag_007d-73"><code>elisp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-Emacs-Lisp-1225">Emacs Lisp</a>: <a href="#Emacs-Lisp">Emacs Lisp</a></li>
<li><a href="#index-Emacs-PO-Mode-331">Emacs PO Mode</a>: <a href="#PO-Mode">PO Mode</a></li>
<li><a href="#index-encoding-16">encoding</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-encoding-conversion-536">encoding conversion</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-encoding-conversion-at-runtime-1075">encoding conversion at runtime</a>: <a href="#Charset-conversion">Charset conversion</a></li>
<li><a href="#index-encoding-for-your-language-272">encoding for your language</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-encoding-list-270">encoding list</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-encoding-of-PO-files-267">encoding of PO files</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-environment-variables-1208">environment variables</a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_0040code_007benvsubst_007d-program_002c-usage-1205"><code>envsubst</code> program, usage</a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-g_t_0040code_007beval_005fgettext_007d-function_002c-usage-1215"><code>eval_gettext</code> function, usage</a>: <a href="#eval_005fgettext-Invocation">eval_gettext Invocation</a></li>
<li><a href="#index-g_t_0040code_007beval_005fngettext_007d-function_002c-usage-1217"><code>eval_ngettext</code> function, usage</a>: <a href="#eval_005fngettext-Invocation">eval_ngettext Invocation</a></li>
<li><a href="#index-evolution-of-packages-39">evolution of packages</a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-extracting-parts-of-a-PO-file-into-a-compendium-531">extracting parts of a PO file into a compendium</a>: <a href="#Creating-Compendia">Creating Compendia</a></li>
<li><a href="#index-FDL_002c-GNU-Free-Documentation-License-1270">FDL, GNU Free Documentation License</a>: <a href="#GNU-FDL">GNU FDL</a></li>
<li><a href="#index-file-format_002c-_0040file_007b_002emo_007d-1057">file format, <samp><span class="file">.mo</span></samp></a>: <a href="#MO-Files">MO Files</a></li>
<li><a href="#index-file-format_002c-_0040file_007b_002epo_007d-56">file format, <samp><span class="file">.po</span></samp></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-files_002c-_0040file_007b_002epo_007d-and-_0040file_007b_002emo_007d-29">files, <samp><span class="file">.po</span></samp> and <samp><span class="file">.mo</span></samp></a>: <a href="#Files">Files</a></li>
<li><a href="#index-files_002c-_0040file_007b_002epot_007d-38">files, <samp><span class="file">.pot</span></samp></a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-filter-messages-according-to-attributes-830">filter messages according to attributes</a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-find-common-messages-770">find common messages</a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-force-use-of-fuzzy-entries-998">force use of fuzzy entries</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-format-strings-154">format strings</a>: <a href="#c_002dformat-Flag">c-format Flag</a></li>
<li><a href="#index-Free-Pascal-1237">Free Pascal</a>: <a href="#Pascal">Pascal</a></li>
<li><a href="#index-function-attribute_002c-_005f_005fformat_005f_005f-191">function attribute, __format__</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-function-attribute_002c-_005f_005fformat_005farg_005f_005f-192">function attribute, __format_arg__</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-fuzzy-entries-402">fuzzy entries</a>: <a href="#Fuzzy-Entries">Fuzzy Entries</a></li>
<li><a href="#index-fuzzy_0040r_007b-flag_007d-62"><code>fuzzy</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-gawk-1235">gawk</a>: <a href="#gawk">gawk</a></li>
<li><a href="#index-gcc_002dinternal_002dformat_0040r_007b-flag_007d-99"><code>gcc-internal-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-GCC_002dsource-1256">GCC-source</a>: <a href="#GCC_002dsource">GCC-source</a></li>
<li><a href="#index-generate-binary-message-catalog-from-PO-file-949">generate binary message catalog from PO file</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-generate-translation-catalog-in-English-880">generate translation catalog in English</a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_0040code_007bgettext_007d-files-1129"><code>gettext</code> files</a>: <a href="#Adjusting-Files">Adjusting Files</a></li>
<li><a href="#index-g_t_0040code_007bgettext_007d-installation-333"><code>gettext</code> installation</a>: <a href="#Installation">Installation</a></li>
<li><a href="#index-g_t_0040code_007bgettext_007d-interface-1069"><code>gettext</code> interface</a>: <a href="#Interface-to-gettext">Interface to gettext</a></li>
<li><a href="#index-g_t_0040code_007bgettext_007d-program_002c-usage-1182"><code>gettext</code> program, usage</a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-g_t_0040code_007bgettext_007d-vs-_0040code_007bcatgets_007d-1096"><code>gettext</code> vs <code>catgets</code></a>: <a href="#Comparison">Comparison</a></li>
<li><a href="#index-g_t_0040code_007bgettext_007d_002c-a-programmer_0027s-view-1068"><code>gettext</code>, a programmer's view</a>: <a href="#gettext">gettext</a></li>
<li><a href="#index-g_t_0040file_007bgettext_002eh_007d-file-1141"><samp><span class="file">gettext.h</span></samp> file</a>: <a href="#lib_002fgettext_002eh">lib/gettext.h</a></li>
<li><a href="#index-g_t_0040code_007bgettextize_007d-program_002c-usage-1118"><code>gettextize</code> program, usage</a>: <a href="#gettextize-Invocation">gettextize Invocation</a></li>
<li><a href="#index-gfc_002dinternal_002dformat_0040r_007b-flag_007d-101"><code>gfc-internal-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-GNOME-PO-file-editor-330">GNOME PO file editor</a>: <a href="#Gtranslator">Gtranslator</a></li>
<li><a href="#index-GPL_002c-GNU-General-Public-License-1266">GPL, GNU General Public License</a>: <a href="#GNU-GPL">GNU GPL</a></li>
<li><a href="#index-GUI-programs-1078">GUI programs</a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-guile-1228">guile</a>: <a href="#Scheme">Scheme</a></li>
<li><a href="#index-hash-table_002c-inside-MO-files-1059">hash table, inside MO files</a>: <a href="#MO-Files">MO Files</a></li>
<li><a href="#index-he_002c-she_002c-and-they-2">he, she, and they</a>: <a href="#Introduction">Introduction</a></li>
<li><a href="#index-header-entry-of-a-PO-file-265">header entry of a PO file</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-help-option-135">help option</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-history-of-GNU-_0040code_007bgettext_007d-1258">history of GNU <code>gettext</code></a>: <a href="#History">History</a></li>
<li><a href="#index-i18n-6">i18n</a>: <a href="#Concepts">Concepts</a></li>
<li><a href="#index-importing-PO-files-391">importing PO files</a>: <a href="#Normalizing">Normalizing</a></li>
<li><a href="#index-include-file-_0040file_007blibintl_002eh_007d-1144">include file <samp><span class="file">libintl.h</span></samp></a>: <a href="#lib_002fgettext_002eh">lib/gettext.h</a></li>
<li><a href="#index-include-file-_0040file_007blibintl_002eh_007d-1098">include file <samp><span class="file">libintl.h</span></samp></a>: <a href="#Comparison">Comparison</a></li>
<li><a href="#index-include-file-_0040file_007blibintl_002eh_007d-119">include file <samp><span class="file">libintl.h</span></samp></a>: <a href="#Importing">Importing</a></li>
<li><a href="#index-include-file-_0040file_007blibintl_002eh_007d-34">include file <samp><span class="file">libintl.h</span></samp></a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-initialization-120">initialization</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-initialize-new-PO-file-242">initialize new PO file</a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-initialize-translations-from-a-compendium-532">initialize translations from a compendium</a>: <a href="#Using-Compendia">Using Compendia</a></li>
<li><a href="#index-installing-_0040code_007bgettext_007d-332">installing <code>gettext</code></a>: <a href="#Installation">Installation</a></li>
<li><a href="#index-interface-to-_0040code_007bcatgets_007d-1063">interface to <code>catgets</code></a>: <a href="#Interface-to-catgets">Interface to catgets</a></li>
<li><a href="#index-internationalization-8">internationalization</a>: <a href="#Concepts">Concepts</a></li>
<li><a href="#index-g_t_0040code_007binttypes_002eh_007d-138"><code>inttypes.h</code></a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-ISO-3166-1264">ISO 3166</a>: <a href="#Country-Codes">Country Codes</a></li>
<li><a href="#index-ISO-639-1262">ISO 639</a>: <a href="#Language-Codes">Language Codes</a></li>
<li><a href="#index-Java-1230">Java</a>: <a href="#Java">Java</a></li>
<li><a href="#index-Java-mode_002c-and-_0040code_007bmsgfmt_007d-program-954">Java mode, and <code>msgfmt</code> program</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-Java-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1014">Java mode, and <code>msgunfmt</code> program</a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-Java_002c-string-concatenation-139">Java, string concatenation</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-java_002dformat_0040r_007b-flag_007d-81"><code>java-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-KDE-format-strings-199">KDE format strings</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-KDE-PO-file-editor-329">KDE PO file editor</a>: <a href="#KBabel">KBabel</a></li>
<li><a href="#index-kde_002dformat_0040r_007b-flag_007d-107"><code>kde-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-keyboard-accelerator-checking-993">keyboard accelerator checking</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-l10n-7">l10n</a>: <a href="#Concepts">Concepts</a></li>
<li><a href="#index-language-codes-1261">language codes</a>: <a href="#Language-Codes">Language Codes</a></li>
<li><a href="#index-language-selection-42">language selection</a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-language-selection-at-runtime-1100">language selection at runtime</a>: <a href="#gettext-grok">gettext grok</a></li>
<li><a href="#index-large-package-1072">large package</a>: <a href="#Ambiguities">Ambiguities</a></li>
<li><a href="#index-LGPL_002c-GNU-Lesser-General-Public-License-1268">LGPL, GNU Lesser General Public License</a>: <a href="#GNU-LGPL">GNU LGPL</a></li>
<li><a href="#index-g_t_0040code_007blibiconv_007d-library-1154"><code>libiconv</code> library</a>: <a href="#AM_005fICONV">AM_ICONV</a></li>
<li><a href="#index-g_t_0040code_007blibintl_007d-for-C_0023-1233"><code>libintl</code> for C#</a>: <a href="#C_0023">C#</a></li>
<li><a href="#index-g_t_0040code_007blibintl_007d-for-Java-1231"><code>libintl</code> for Java</a>: <a href="#Java">Java</a></li>
<li><a href="#index-g_t_0040code_007blibintl_007d-library-1147"><code>libintl</code> library</a>: <a href="#AM_005fGNU_005fGETTEXT">AM_GNU_GETTEXT</a></li>
<li><a href="#index-g_t_0040code_007blibrep_007d-Lisp-1226"><code>librep</code> Lisp</a>: <a href="#librep">librep</a></li>
<li><a href="#index-librep_002dformat_0040r_007b-flag_007d-75"><code>librep-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-License_002c-GNU-FDL-1271">License, GNU FDL</a>: <a href="#GNU-FDL">GNU FDL</a></li>
<li><a href="#index-License_002c-GNU-GPL-1267">License, GNU GPL</a>: <a href="#GNU-GPL">GNU GPL</a></li>
<li><a href="#index-License_002c-GNU-LGPL-1269">License, GNU LGPL</a>: <a href="#GNU-LGPL">GNU LGPL</a></li>
<li><a href="#index-Licenses-1265">Licenses</a>: <a href="#Licenses">Licenses</a></li>
<li><a href="#index-g_t_0040file_007bLINGUAS_007d-file-1131"><samp><span class="file">LINGUAS</span></samp> file</a>: <a href="#po_002fLINGUAS">po/LINGUAS</a></li>
<li><a href="#index-link-with-_0040file_007blibintl_007d-35">link with <samp><span class="file">libintl</span></samp></a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-Linux-271">Linux</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-Linux-36">Linux</a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-Linux-28">Linux</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-Lisp-1222">Lisp</a>: <a href="#Common-Lisp">Common Lisp</a></li>
<li><a href="#index-lisp_002dformat_0040r_007b-flag_007d-71"><code>lisp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-list-of-translation-teams_002c-where-to-find-266">list of translation teams, where to find</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-locale-categories-14">locale categories</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-locale-category_002c-LC_005fALL-121">locale category, LC_ALL</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fCOLLATE-124">locale category, LC_COLLATE</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fCTYPE-122">locale category, LC_CTYPE</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fCTYPE-18">locale category, LC_CTYPE</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-locale-category_002c-LC_005fMESSAGES-128">locale category, LC_MESSAGES</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fMESSAGES-26">locale category, LC_MESSAGES</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-locale-category_002c-LC_005fMONETARY-125">locale category, LC_MONETARY</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fMONETARY-20">locale category, LC_MONETARY</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-locale-category_002c-LC_005fNUMERIC-126">locale category, LC_NUMERIC</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fNUMERIC-24">locale category, LC_NUMERIC</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-locale-category_002c-LC_005fRESPONSES-129">locale category, LC_RESPONSES</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fTIME-127">locale category, LC_TIME</a>: <a href="#Triggering">Triggering</a></li>
<li><a href="#index-locale-category_002c-LC_005fTIME-22">locale category, LC_TIME</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-g_t_0040code_007blocale_007d-program-269"><code>locale</code> program</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-localization-9">localization</a>: <a href="#Concepts">Concepts</a></li>
<li><a href="#index-lookup-message-translation-1216">lookup message translation</a>: <a href="#eval_005fgettext-Invocation">eval_gettext Invocation</a></li>
<li><a href="#index-lookup-message-translation-1183">lookup message translation</a>: <a href="#gettext-Invocation">gettext Invocation</a></li>
<li><a href="#index-lookup-plural-message-translation-1218">lookup plural message translation</a>: <a href="#eval_005fngettext-Invocation">eval_ngettext Invocation</a></li>
<li><a href="#index-lookup-plural-message-translation-1195">lookup plural message translation</a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-magic-signature-of-MO-files-1058">magic signature of MO files</a>: <a href="#MO-Files">MO Files</a></li>
<li><a href="#index-g_t_0040file_007bMakefile_002ein_002ein_007d-extensions-1133"><samp><span class="file">Makefile.in.in</span></samp> extensions</a>: <a href="#po_002fRules_002d_002a">po/Rules-*</a></li>
<li><a href="#index-g_t_0040file_007bMakevars_007d-file-1132"><samp><span class="file">Makevars</span></samp> file</a>: <a href="#po_002fMakevars">po/Makevars</a></li>
<li><a href="#index-manipulating-PO-files-534">manipulating PO files</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-marking-Perl-sources-1245">marking Perl sources</a>: <a href="#Perl">Perl</a></li>
<li><a href="#index-marking-string-initializers-157">marking string initializers</a>: <a href="#Special-cases">Special cases</a></li>
<li><a href="#index-marking-strings-that-require-translation-143">marking strings that require translation</a>: <a href="#Mark-Keywords">Mark Keywords</a></li>
<li><a href="#index-marking-strings_002c-preparations-130">marking strings, preparations</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-marking-translatable-strings-33">marking translatable strings</a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-markup-141">markup</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-menu-entries-1080">menu entries</a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-menu_002c-keyboard-accelerator-support-994">menu, keyboard accelerator support</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-merge-PO-files-545">merge PO files</a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-merging-two-PO-files-535">merging two PO files</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-message-catalog-files-location-1073">message catalog files location</a>: <a href="#Locating-Catalogs">Locating Catalogs</a></li>
<li><a href="#index-messages-25">messages</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-migration-from-earlier-versions-of-_0040code_007bgettext_007d-1115">migration from earlier versions of <code>gettext</code></a>: <a href="#Prerequisites">Prerequisites</a></li>
<li><a href="#index-g_t_0040file_007bmkinstalldirs_007d-file-1137"><samp><span class="file">mkinstalldirs</span></samp> file</a>: <a href="#mkinstalldirs">mkinstalldirs</a></li>
<li><a href="#index-mnemonics-of-menu-entries-995">mnemonics of menu entries</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-MO-file_0027s-format-1056">MO file's format</a>: <a href="#MO-Files">MO Files</a></li>
<li><a href="#index-modify-message-attributes-842">modify message attributes</a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgattrib_007d-program_002c-usage-829"><code>msgattrib</code> program, usage</a>: <a href="#msgattrib-Invocation">msgattrib Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgcat_007d-program_002c-usage-543"><code>msgcat</code> program, usage</a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgcmp_007d-program_002c-usage-811"><code>msgcmp</code> program, usage</a>: <a href="#msgcmp-Invocation">msgcmp Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgcomm_007d-program_002c-usage-769"><code>msgcomm</code> program, usage</a>: <a href="#msgcomm-Invocation">msgcomm Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgconv_007d-program_002c-usage-591"><code>msgconv</code> program, usage</a>: <a href="#msgconv-Invocation">msgconv Invocation</a></li>
<li><a href="#index-msgctxt-111"><code>msgctxt</code></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-g_t_0040code_007bmsgen_007d-program_002c-usage-879"><code>msgen</code> program, usage</a>: <a href="#msgen-Invocation">msgen Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgexec_007d-program_002c-usage-912"><code>msgexec</code> program, usage</a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgfilter_007d-filter-and-catalog-encoding-691"><code>msgfilter</code> filter and catalog encoding</a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgfilter_007d-program_002c-usage-680"><code>msgfilter</code> program, usage</a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgfmt_007d-program_002c-usage-948"><code>msgfmt</code> program, usage</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsggrep_007d-program_002c-usage-625"><code>msggrep</code> program, usage</a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-msgid-60"><code>msgid</code></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-msgid_005fplural-113"><code>msgid_plural</code></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-g_t_0040code_007bmsginit_007d-program_002c-usage-240"><code>msginit</code> program, usage</a>: <a href="#msginit-Invocation">msginit Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsgmerge_007d-program_002c-usage-277"><code>msgmerge</code> program, usage</a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-msgstr-61"><code>msgstr</code></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-g_t_0040code_007bmsgunfmt_007d-program_002c-usage-1010"><code>msgunfmt</code> program, usage</a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-g_t_0040code_007bmsguniq_007d-program_002c-usage-728"><code>msguniq</code> program, usage</a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-multi_002dline-strings-392">multi-line strings</a>: <a href="#Normalizing">Normalizing</a></li>
<li><a href="#index-g_t_0040code_007bN_005f_007d_002c-a-convenience-macro-1099"><code>N_</code>, a convenience macro</a>: <a href="#Comparison">Comparison</a></li>
<li><a href="#index-Native-Language-Support-11">Native Language Support</a>: <a href="#Concepts">Concepts</a></li>
<li><a href="#index-Natural-Language-Support-12">Natural Language Support</a>: <a href="#Concepts">Concepts</a></li>
<li><a href="#index-newlines-in-PO-files-116">newlines in PO files</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-ngettext-1088"><code>ngettext</code></a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-g_t_0040code_007bngettext_007d-program_002c-usage-1194"><code>ngettext</code> program, usage</a>: <a href="#ngettext-Invocation">ngettext Invocation</a></li>
<li><a href="#index-NLS-10">NLS</a>: <a href="#Concepts">Concepts</a></li>
<li><a href="#index-no_002dawk_002dformat_0040r_007b-flag_007d-86"><code>no-awk-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dboost_002dformat_0040r_007b-flag_007d-110"><code>no-boost-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dc_002dformat_0040r_007b-flag_007d-64"><code>no-c-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dc_002dformat_0040r_007b_002c-and-_0040code_007bxgettext_007d_007d-156"><code>no-c-format</code><span class="roman">, and </span><code>xgettext</code></a>: <a href="#c_002dformat-Flag">c-format Flag</a></li>
<li><a href="#index-no_002dcsharp_002dformat_0040r_007b-flag_007d-84"><code>no-csharp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002delisp_002dformat_0040r_007b-flag_007d-74"><code>no-elisp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dgcc_002dinternal_002dformat_0040r_007b-flag_007d-100"><code>no-gcc-internal-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dgfc_002dinternal_002dformat_0040r_007b-flag_007d-102"><code>no-gfc-internal-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002djava_002dformat_0040r_007b-flag_007d-82"><code>no-java-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dkde_002dformat_0040r_007b-flag_007d-108"><code>no-kde-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dlibrep_002dformat_0040r_007b-flag_007d-76"><code>no-librep-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dlisp_002dformat_0040r_007b-flag_007d-72"><code>no-lisp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dobjc_002dformat_0040r_007b-flag_007d-66"><code>no-objc-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dobject_002dpascal_002dformat_0040r_007b-flag_007d-88"><code>no-object-pascal-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dperl_002dbrace_002dformat_0040r_007b-flag_007d-96"><code>no-perl-brace-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dperl_002dformat_0040r_007b-flag_007d-94"><code>no-perl-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dphp_002dformat_0040r_007b-flag_007d-98"><code>no-php-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dpython_002dformat_0040r_007b-flag_007d-70"><code>no-python-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dqt_002dformat_0040r_007b-flag_007d-104"><code>no-qt-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dqt_002dplural_002dformat_0040r_007b-flag_007d-106"><code>no-qt-plural-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dscheme_002dformat_0040r_007b-flag_007d-78"><code>no-scheme-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dsh_002dformat_0040r_007b-flag_007d-68"><code>no-sh-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dsmalltalk_002dformat_0040r_007b-flag_007d-80"><code>no-smalltalk-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dtcl_002dformat_0040r_007b-flag_007d-92"><code>no-tcl-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-no_002dycp_002dformat_0040r_007b-flag_007d-90"><code>no-ycp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-nplurals_0040r_007b_002c-in-a-PO-file-header_007d-1092"><code>nplurals</code><span class="roman">, in a PO file header</span></a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-number-format-23">number format</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-objc_002dformat_0040r_007b-flag_007d-65"><code>objc-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-Object-Pascal-1238">Object Pascal</a>: <a href="#Pascal">Pascal</a></li>
<li><a href="#index-object_002dpascal_002dformat_0040r_007b-flag_007d-87"><code>object-pascal-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-obsolete-entries-429">obsolete entries</a>: <a href="#Obsolete-Entries">Obsolete Entries</a></li>
<li><a href="#index-optimization-of-_0040code_007bgettext_007d-functions-1095">optimization of <code>gettext</code> functions</a>: <a href="#Optimized-gettext">Optimized gettext</a></li>
<li><a href="#index-orthography-538">orthography</a>: <a href="#Manipulating">Manipulating</a></li>
<li><a href="#index-outdigits-1172">outdigits</a>: <a href="#c_002dformat">c-format</a></li>
<li><a href="#index-output-to-stdout_002c-_0040code_007bxgettext_007d-171">output to stdout, <code>xgettext</code></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-overview-of-_0040code_007bgettext_007d-30">overview of <code>gettext</code></a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-package-and-version-declaration-in-_0040file_007bconfigure_002eac_007d-1136">package and version declaration in <samp><span class="file">configure.ac</span></samp></a>: <a href="#configure_002eac">configure.ac</a></li>
<li><a href="#index-package-build-and-installation-options-1167">package build and installation options</a>: <a href="#Installers">Installers</a></li>
<li><a href="#index-package-distributor_0027s-view-of-_0040code_007bgettext_007d-1166">package distributor's view of <code>gettext</code></a>: <a href="#Installers">Installers</a></li>
<li><a href="#index-package-installer_0027s-view-of-_0040code_007bgettext_007d-1165">package installer's view of <code>gettext</code></a>: <a href="#Installers">Installers</a></li>
<li><a href="#index-package-maintainer_0027s-view-of-_0040code_007bgettext_007d-1113">package maintainer's view of <code>gettext</code></a>: <a href="#Maintainers">Maintainers</a></li>
<li><a href="#index-paragraphs-134">paragraphs</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-Pascal-1236">Pascal</a>: <a href="#Pascal">Pascal</a></li>
<li><a href="#index-Perl-1244">Perl</a>: <a href="#Perl">Perl</a></li>
<li><a href="#index-Perl-default-keywords-1246">Perl default keywords</a>: <a href="#Default-Keywords">Default Keywords</a></li>
<li><a href="#index-Perl-invalid-string-interpolation-1249">Perl invalid string interpolation</a>: <a href="#Interpolation-I">Interpolation I</a></li>
<li><a href="#index-Perl-long-lines-1252">Perl long lines</a>: <a href="#Long-Lines">Long Lines</a></li>
<li><a href="#index-Perl-parentheses-1251">Perl parentheses</a>: <a href="#Parentheses">Parentheses</a></li>
<li><a href="#index-Perl-pitfalls-1253">Perl pitfalls</a>: <a href="#Perl-Pitfalls">Perl Pitfalls</a></li>
<li><a href="#index-Perl-quote_002dlike-expressions-1248">Perl quote-like expressions</a>: <a href="#Quote_002dlike-Expressions">Quote-like Expressions</a></li>
<li><a href="#index-Perl-special-keywords-for-hash_002dlookups-1247">Perl special keywords for hash-lookups</a>: <a href="#Special-Keywords">Special Keywords</a></li>
<li><a href="#index-Perl-valid-string-interpolation-1250">Perl valid string interpolation</a>: <a href="#Interpolation-II">Interpolation II</a></li>
<li><a href="#index-perl_002dbrace_002dformat_0040r_007b-flag_007d-95"><code>perl-brace-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-perl_002dformat_0040r_007b-flag_007d-93"><code>perl-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-pgettext-1081"><code>pgettext</code></a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-pgettext_005fexpr-1084"><code>pgettext_expr</code></a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-PHP-1254">PHP</a>: <a href="#PHP">PHP</a></li>
<li><a href="#index-php_002dformat_0040r_007b-flag_007d-97"><code>php-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-Pike-1255">Pike</a>: <a href="#Pike">Pike</a></li>
<li><a href="#index-plural-form-formulas-1094">plural form formulas</a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-plural-forms-1087">plural forms</a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-plural-forms_002c-in-MO-files-1061">plural forms, in MO files</a>: <a href="#MO-Files">MO Files</a></li>
<li><a href="#index-plural-forms_002c-in-PO-files-114">plural forms, in PO files</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-plural-forms_002c-translating-1111">plural forms, translating</a>: <a href="#Translating-plural-forms">Translating plural forms</a></li>
<li><a href="#index-plural_0040r_007b_002c-in-a-PO-file-header_007d-1093"><code>plural</code><span class="roman">, in a PO file header</span></a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-PO-files_0027-format-55">PO files' format</a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-PO-mode-_0028Emacs_0029-commands-336">PO mode (Emacs) commands</a>: <a href="#Main-PO-Commands">Main PO Commands</a></li>
<li><a href="#index-PO-template-file-158">PO template file</a>: <a href="#Template">Template</a></li>
<li><a href="#index-po_005ffile_005fdomains-939"><code>po_file_domains</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005ffile_005ffree-938"><code>po_file_free</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005ffile_005fread-937"><code>po_file_read</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005fmessage_005fiterator-940"><code>po_message_iterator</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005fmessage_005fiterator_005ffree-941"><code>po_message_iterator_free</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005fmessage_005fmsgid-943"><code>po_message_msgid</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005fmessage_005fmsgid_005fplural-944"><code>po_message_msgid_plural</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005fmessage_005fmsgstr-945"><code>po_message_msgstr</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005fmessage_005fmsgstr_005fplural-946"><code>po_message_msgstr_plural</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-po_005fnext_005fmessage-942"><code>po_next_message</code></a>: <a href="#libgettextpo">libgettextpo</a></li>
<li><a href="#index-portability-problems-with-_0040code_007bsed_007d-692">portability problems with <code>sed</code></a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-g_t_0040file_007bPOTFILES_002ein_007d-file-1130"><samp><span class="file">POTFILES.in</span></samp> file</a>: <a href="#po_002fPOTFILES_002ein">po/POTFILES.in</a></li>
<li><a href="#index-preparing-programs-for-translation-118">preparing programs for translation</a>: <a href="#Sources">Sources</a></li>
<li><a href="#index-preparing-shell-scripts-for-translation-1180">preparing shell scripts for translation</a>: <a href="#Preparing-Shell-Scripts">Preparing Shell Scripts</a></li>
<li><a href="#index-problems-with-_0040code_007bcatgets_007d-interface-1067">problems with <code>catgets</code> interface</a>: <a href="#Problems-with-catgets">Problems with catgets</a></li>
<li><a href="#index-programming-languages-1170">programming languages</a>: <a href="#Language-Implementors">Language Implementors</a></li>
<li><a href="#index-Python-1220">Python</a>: <a href="#Python">Python</a></li>
<li><a href="#index-python_002dformat_0040r_007b-flag_007d-69"><code>python-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-Qt-format-strings-197">Qt format strings</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-Qt-mode_002c-and-_0040code_007bmsgfmt_007d-program-963">Qt mode, and <code>msgfmt</code> program</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-qt_002dformat_0040r_007b-flag_007d-103"><code>qt-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-qt_002dplural_002dformat_0040r_007b-flag_007d-105"><code>qt-plural-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-quotation-marks-1134">quotation marks</a>: <a href="#po_002fRules_002d_002a">po/Rules-*</a></li>
<li><a href="#index-quotation-marks-274">quotation marks</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-quote-characters_002c-use-in-PO-files-273">quote characters, use in PO files</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-range_003a_0040r_007b-flag_007d-115"><code>range:</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-g_t_0040code_007brecode_002dsr_002dlatin_007d-program-701"><code>recode-sr-latin</code> program</a>: <a href="#msgfilter-Invocation">msgfilter Invocation</a></li>
<li><a href="#index-related-reading-1259">related reading</a>: <a href="#References">References</a></li>
<li><a href="#index-release-1163">release</a>: <a href="#Release-Management">Release Management</a></li>
<li><a href="#index-RST-1257">RST</a>: <a href="#RST">RST</a></li>
<li><a href="#index-Scheme-1227">Scheme</a>: <a href="#Scheme">Scheme</a></li>
<li><a href="#index-scheme_002dformat_0040r_007b-flag_007d-77"><code>scheme-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-scripting-languages-1171">scripting languages</a>: <a href="#Language-Implementors">Language Implementors</a></li>
<li><a href="#index-search-messages-in-a-catalog-626">search messages in a catalog</a>: <a href="#msggrep-Invocation">msggrep Invocation</a></li>
<li><a href="#index-selecting-message-language-41">selecting message language</a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-sentences-133">sentences</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-setting-up-_0040code_007bgettext_007d-at-build-time-1168">setting up <code>gettext</code> at build time</a>: <a href="#Installers">Installers</a></li>
<li><a href="#index-setting-up-_0040code_007bgettext_007d-at-run-time-40">setting up <code>gettext</code> at run time</a>: <a href="#Locale-Environment-Variables">Locale Environment Variables</a></li>
<li><a href="#index-several-domains-1070">several domains</a>: <a href="#Ambiguities">Ambiguities</a></li>
<li><a href="#index-sex-1">sex</a>: <a href="#Introduction">Introduction</a></li>
<li><a href="#index-sh_002dformat_0040r_007b-flag_007d-67"><code>sh-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-she_002c-he_002c-and-they-3">she, he, and they</a>: <a href="#Introduction">Introduction</a></li>
<li><a href="#index-shell-format-string-1206">shell format string</a>: <a href="#envsubst-Invocation">envsubst Invocation</a></li>
<li><a href="#index-shell-scripts-1175">shell scripts</a>: <a href="#sh">sh</a></li>
<li><a href="#index-Smalltalk-1229">Smalltalk</a>: <a href="#Smalltalk">Smalltalk</a></li>
<li><a href="#index-smalltalk_002dformat_0040r_007b-flag_007d-79"><code>smalltalk-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-sorting-_0040code_007bmsgcat_007d-output-583">sorting <code>msgcat</code> output</a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-sorting-_0040code_007bmsgmerge_007d-output-316">sorting <code>msgmerge</code> output</a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-sorting-_0040code_007bmsgunfmt_007d-output-1049">sorting <code>msgunfmt</code> output</a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-sorting-output-of-_0040code_007bxgettext_007d-220">sorting output of <code>xgettext</code></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-specifying-plural-form-in-a-PO-file-1091">specifying plural form in a PO file</a>: <a href="#Plural-forms">Plural forms</a></li>
<li><a href="#index-standard-output_002c-and-_0040code_007bmsgcat_007d-552">standard output, and <code>msgcat</code></a>: <a href="#msgcat-Invocation">msgcat Invocation</a></li>
<li><a href="#index-standard-output_002c-and-_0040code_007bmsgmerge_007d-program-286">standard output, and <code>msgmerge</code> program</a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-string-concatenation-136">string concatenation</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-string-normalization-in-entries-388">string normalization in entries</a>: <a href="#Normalizing">Normalizing</a></li>
<li><a href="#index-style-131">style</a>: <a href="#Preparing-Strings">Preparing Strings</a></li>
<li><a href="#index-supported-languages_002c-_0040code_007bxgettext_007d-174">supported languages, <code>xgettext</code></a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-Tcl-1242">Tcl</a>: <a href="#Tcl">Tcl</a></li>
<li><a href="#index-Tcl-mode_002c-and-_0040code_007bmsgfmt_007d-program-961">Tcl mode, and <code>msgfmt</code> program</a>: <a href="#msgfmt-Invocation">msgfmt Invocation</a></li>
<li><a href="#index-Tcl-mode_002c-and-_0040code_007bmsgunfmt_007d-program-1020">Tcl mode, and <code>msgunfmt</code> program</a>: <a href="#msgunfmt-Invocation">msgunfmt Invocation</a></li>
<li><a href="#index-tcl_002dformat_0040r_007b-flag_007d-91"><code>tcl-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
<li><a href="#index-template-PO-file-37">template PO file</a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-testing-_0040file_007b_002epo_007d-files-for-equivalence-224">testing <samp><span class="file">.po</span></samp> files for equivalence</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-Tk_0027s-scripting-language-1243">Tk's scripting language</a>: <a href="#Tcl">Tcl</a></li>
<li><a href="#index-translated-entries-393">translated entries</a>: <a href="#Translated-Entries">Translated Entries</a></li>
<li><a href="#index-translating-menu-entries-1079">translating menu entries</a>: <a href="#Contexts">Contexts</a></li>
<li><a href="#index-translation-aspects-13">translation aspects</a>: <a href="#Aspects">Aspects</a></li>
<li><a href="#index-Translation-Matrix-52">Translation Matrix</a>: <a href="#Installing-Localizations">Installing Localizations</a></li>
<li><a href="#index-Translation-Project-5">Translation Project</a>: <a href="#Why">Why</a></li>
<li><a href="#index-turning-off-NLS-support-1142">turning off NLS support</a>: <a href="#lib_002fgettext_002eh">lib/gettext.h</a></li>
<li><a href="#index-tutorial-of-_0040code_007bgettext_007d-usage-32">tutorial of <code>gettext</code> usage</a>: <a href="#Overview">Overview</a></li>
<li><a href="#index-unify-duplicate-translations-729">unify duplicate translations</a>: <a href="#msguniq-Invocation">msguniq Invocation</a></li>
<li><a href="#index-untranslated-entries-418">untranslated entries</a>: <a href="#Untranslated-Entries">Untranslated Entries</a></li>
<li><a href="#index-update-translations-from-a-compendium-533">update translations from a compendium</a>: <a href="#Using-Compendia">Using Compendia</a></li>
<li><a href="#index-upgrading-to-new-versions-of-_0040code_007bgettext_007d-1116">upgrading to new versions of <code>gettext</code></a>: <a href="#Prerequisites">Prerequisites</a></li>
<li><a href="#index-version-control-for-backup-files_002c-_0040code_007bmsgmerge_007d-290">version control for backup files, <code>msgmerge</code></a>: <a href="#msgmerge-Invocation">msgmerge Invocation</a></li>
<li><a href="#index-g_t_0040code_007bwxWidgets_007d-library-1239"><code>wxWidgets</code> library</a>: <a href="#wxWidgets">wxWidgets</a></li>
<li><a href="#index-g_t_0040code_007bxargs_007d_002c-and-output-from-_0040code_007bmsgexec_007d-914"><code>xargs</code>, and output from <code>msgexec</code></a>: <a href="#msgexec-Invocation">msgexec Invocation</a></li>
<li><a href="#index-g_t_0040code_007bxgettext_007d-program_002c-usage-160"><code>xgettext</code> program, usage</a>: <a href="#xgettext-Invocation">xgettext Invocation</a></li>
<li><a href="#index-g_t_0040code_007bxmodmap_007d-program_002c-and-typing-quotation-marks-275"><code>xmodmap</code> program, and typing quotation marks</a>: <a href="#Header-Entry">Header Entry</a></li>
<li><a href="#index-YaST2-scripting-language-1241">YaST2 scripting language</a>: <a href="#YCP">YCP</a></li>
<li><a href="#index-YCP-1240">YCP</a>: <a href="#YCP">YCP</a></li>
<li><a href="#index-ycp_002dformat_0040r_007b-flag_007d-89"><code>ycp-format</code><span class="roman"> flag</span></a>: <a href="#PO-Files">PO Files</a></li>
   </ul>   <div class="footnote">
<hr>
<a name="texinfo-footnotes-in-document"></a><h4>Footnotes</h4><p class="footnote"><small>[<a name="fn-1" href="#fnd-1">1</a>]</small> In this manual, all mentions of Emacs
refers to either GNU Emacs or to XEmacs, which people sometimes call FSF
Emacs and Lucid Emacs, respectively.</p>

   <p class="footnote"><small>[<a name="fn-2" href="#fnd-2">2</a>]</small> This
limitation is not imposed by GNU <code>gettext</code>, but is for compatibility
with the <code>msgfmt</code> implementation on Solaris.</p>

   <p class="footnote"><small>[<a name="fn-3" href="#fnd-3">3</a>]</small> Some
system, e.g. mingw, don't have <code>LC_MESSAGES</code>.  Here we use a more or
less arbitrary value for it, namely 1729, the smallest positive integer
which can be represented in two different ways as the sum of two cubes.</p>

   <p class="footnote"><small>[<a name="fn-4" href="#fnd-4">4</a>]</small> When the system does not support <code>setlocale</code> its behavior
in setting the locale values is simulated by looking at the environment
variables.</p>

   <p class="footnote"><small>[<a name="fn-5" href="#fnd-5">5</a>]</small> Additions are welcome.  Send appropriate information to
<a href="mailto:bug-gnu-gettext@gnu.org">bug-gnu-gettext@gnu.org</a> and <a href="mailto:bug-glibc-manual@gnu.org">bug-glibc-manual@gnu.org</a>.</p>

   <hr></div>

</body></html>

<!--

Local Variables:
coding: utf-8
End:

-->