Capitalize the language name in AARD's Wikipedia, Wiktionary and Wikiquote dictionaries.

Related to Issue #244.
This commit is contained in:
Tvangeste 2013-04-08 16:50:44 +02:00
parent f315aa5f0b
commit 0276d7f3ee

View file

@ -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;