mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Add language name to "Wiktionary" name for AARD dictionaries (issue #244)
This commit is contained in:
parent
b4353c9c63
commit
b7a2ab9863
4
aard.cc
4
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 + ")";
|
||||
|
|
Loading…
Reference in a new issue