package modparm; # $Id$ use diagnostics; use strict; #-###################################################################################### #- misc imports #-###################################################################################### use common qw(:common :functional); use log; #-###################################################################################### #- Functions #-###################################################################################### sub read_modparm_file { my $file = -e "modparm.lst" ? "modparm.lst" : "$ENV{SHARE_PATH}/modparm.lst"; my @line; my %modparm_hash; local *F; open F, $file or log::l("missing $file: $!"), return; local $_; while () { chomp; @line = split ':'; $modparm_hash{$line[0]}{$line[1]} = { type => $line[2], default => $line[3], desc => $line [4], }; } \%modparm_hash; } sub get_options_result($@) { my ($module, @value) = @_; my $modparm_hash = modparm::read_modparm_file; mapn { my ($a, $b) = @_; $a ? "$b=$a" : () } \@value, [ keys %{$modparm_hash->{$module}} ]; } sub get_options_name($) { my ($module) = @_; my @names; my $modparm_hash = modparm::read_modparm_file; while (my ($k, $v) = each %{$modparm_hash->{$module} || {}}) { my $opttype = $v->{type}; my $default = $v->{default}; push @names, "$k ($v->{type})" . (defined($v->{default}) && "[$v->{default}]"); } @names; } 1; '>logtreecommitdiffstats
path: root/po/hi.po
blob: f4ebaeaee90626f786eb81df7ac3accd39156eaf (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