From b7a2ab986379c6a3da2f14a6ba4c35b6c309f975 Mon Sep 17 00:00:00 2001 From: Julian Depetris Chauvin Date: Thu, 4 Apr 2013 08:44:43 -0300 Subject: [PATCH] Add language name to "Wiktionary" name for AARD dictionaries (issue #244) --- aard.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aard.cc b/aard.cc index 9e57a721..22a13b4e 100644 --- a/aard.cc +++ b/aard.cc @@ -144,7 +144,7 @@ __attribute__((packed)) enum { Signature = 0x58524141, // AARX on little-endian, XRAA on big-endian - CurrentFormatVersion = 2 + BtreeIndexing::FormatVersion + Folding::Version + CurrentFormatVersion = 3 + BtreeIndexing::FormatVersion + Folding::Version }; struct IdxHeader @@ -860,7 +860,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( if( iter != meta.end() ) langTo = iter->second; - if( ( dictName.compare( "Wikipedia") == 0 || dictName.compare( "Wikiquote" ) == 0 ) + if( ( dictName.compare( "Wikipedia") == 0 || dictName.compare( "Wikiquote" ) == 0 || dictName.compare( "Wiktionary" ) == 0 ) && !langTo.empty() ) { dictName = dictName + " (" + langTo + ")";