Add language name to "Wiktionary" name for AARD dictionaries (issue #244)

This commit is contained in:
Julian Depetris Chauvin 2013-04-04 08:44:43 -03:00
parent b4353c9c63
commit b7a2ab9863

View file

@ -144,7 +144,7 @@ __attribute__((packed))
enum enum
{ {
Signature = 0x58524141, // AARX on little-endian, XRAA on big-endian Signature = 0x58524141, // AARX on little-endian, XRAA on big-endian
CurrentFormatVersion = 2 + BtreeIndexing::FormatVersion + Folding::Version CurrentFormatVersion = 3 + BtreeIndexing::FormatVersion + Folding::Version
}; };
struct IdxHeader struct IdxHeader
@ -860,7 +860,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
if( iter != meta.end() ) if( iter != meta.end() )
langTo = iter->second; 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() ) && !langTo.empty() )
{ {
dictName = dictName + " (" + langTo + ")"; dictName = dictName + " (" + langTo + ")";