git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fdc882
)
word: option ?lang selects alternate wordlist includes
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 20 Oct 2020 20:45:09 +0000
(22:45 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 5 Jul 2021 01:54:37 +0000
(
03:54
+0200)
Makefile
patch
|
blob
|
history
word.plp
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index a0236ed2900ee78a6c6d58fb46dcb4152371c29d..5a173be7d0ab037e6af881a0d265fa016fc20b81 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-62,6
+62,8
@@
data/termcol-xcolor.inc.pl: tools/mktermcol-xcolor data/xcolors/themes
data/wordlist.en.inc.pl: tools/mkwordlist
$(call cmdsave,$^)
+data/wordlist.ru.inc.pl: tools/mkwordlist
+ $(call cmdsave,$^ ru)
.SECONDARY: data/font/%.ttf
data/font/%.ttf:
diff --git
a/word.plp
b/word.plp
index 050ad90f626ddb79390343a57ba4b29a9bcc3096..493bde927b655aadff77009072ad8df21f8a414e 100644
(file)
--- a/
word.plp
+++ b/
word.plp
@@
-1,6
+1,7
@@
<(common.inc.plp)><:
-my $wordlist = "data/wordlist.en.inc.pl";
+my $lang = $get{lang} || 'en';
+my $wordlist = "data/wordlist.$lang.inc.pl";
my $limit = $get{v} // (exists $get{v} ? 4 : 3);
Html({