mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 07:24:07 +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
|
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 + ")";
|
||||||
|
|
Loading…
Reference in a new issue