summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/db_lint
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-09-14 02:06:46 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-09-14 02:06:46 +0200
commitccdc2b5da75b5143a4c7898a50e0e03ce985f898 (patch)
treeca28df824b3941f44bb928a17d608dc180a7e75c /crawl-ref/source/util/db_lint
parentf4bb708d1c9410615e0e460145447f00dc6257fc (diff)
downloadcrawl-ref-ccdc2b5da75b5143a4c7898a50e0e03ce985f898.tar.gz
crawl-ref-ccdc2b5da75b5143a4c7898a50e0e03ce985f898.zip
db_lint: don't whine about translated quotes for untranslated descs.
Diffstat (limited to 'crawl-ref/source/util/db_lint')
-rwxr-xr-xcrawl-ref/source/util/db_lint13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/util/db_lint b/crawl-ref/source/util/db_lint
index 7df1f8b396..3bedcbeb8b 100755
--- a/crawl-ref/source/util/db_lint
+++ b/crawl-ref/source/util/db_lint
@@ -213,6 +213,19 @@ if (read_file("descript/monsters"))
check_desc_links();
$described{$_} = 1 for keys %entries;
__________________________________________________________________________();
+if ($lang)
+{
+ # Quotes may be already translated even if the desc they're appended to
+ # is not yet.
+ my $real_lang = $lang;
+ undef $lang;
+ read_file("descript/$_") for qw(features items unident unrand monsters spells
+ gods branches skills ability cards commands);
+ $described{$_} = 1 for keys %entries;
+ $lang = $real_lang;
+}
+__________________________________________________________________________();
+# These go to GameStartDB rather than DescriptionDB.
read_file("descript/$_") for qw(species backgrounds);
__________________________________________________________________________();
read_file("database/$_") for qw(randname rand_wpn rand_arm rand_all randbook monname);