mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Capitalize the language name in AARD's Wikipedia, Wiktionary and Wikiquote dictionaries.
Related to Issue #244.
This commit is contained in:
parent
f315aa5f0b
commit
0276d7f3ee
6
aard.cc
6
aard.cc
|
@ -144,7 +144,7 @@ __attribute__((packed))
|
|||
enum
|
||||
{
|
||||
Signature = 0x58524141, // AARX on little-endian, XRAA on big-endian
|
||||
CurrentFormatVersion = 3 + BtreeIndexing::FormatVersion + Folding::Version
|
||||
CurrentFormatVersion = 4 + BtreeIndexing::FormatVersion + Folding::Version
|
||||
};
|
||||
|
||||
struct IdxHeader
|
||||
|
@ -863,7 +863,9 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
|
|||
if( ( dictName.compare( "Wikipedia") == 0 || dictName.compare( "Wikiquote" ) == 0 || dictName.compare( "Wiktionary" ) == 0 )
|
||||
&& !langTo.empty() )
|
||||
{
|
||||
dictName = dictName + " (" + langTo + ")";
|
||||
string capitalized = langTo.c_str();
|
||||
capitalized[0] = toupper( capitalized[0] );
|
||||
dictName = dictName + " (" + capitalized + ")";
|
||||
}
|
||||
|
||||
uint16_t volumes = dictHeader.totalVolumes;
|
||||
|
|
Loading…
Reference in a new issue