~ubuntu-branches/ubuntu/vivid/fbreader/vivid-proposed

« back to all changes in this revision

Viewing changes to fbreader/src/description/BookDescription.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2007-12-04 12:51:45 UTC
  • Revision ID: james.westby@ubuntu.com-20071204125145-pw20qfyn0fx3h7jg
Tags: 0.8.8-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        LanguageOption(FBOptions::BOOKS_CATEGORY, fileName, "Language", UNKNOWN),
47
47
        EncodingOption(FBOptions::BOOKS_CATEGORY, fileName, "Encoding", EMPTY),
48
48
        IsSequenceDefinedOption(FBOptions::BOOKS_CATEGORY, fileName, "SequenceDefined", ZLFile(fileName).extension() != "fb2") {
 
49
        // this is just hack for compatibility with versions < 0.8.8
 
50
        std::string language = LanguageOption.value();
 
51
        if (language == "cz") {
 
52
                LanguageOption.setValue("cs");
 
53
        } else if (language == "none") {
 
54
                LanguageOption.setValue("other");
 
55
        } else if ((language == "chinese") || (language == "anycharacter")) {
 
56
                LanguageOption.setValue("zh");
 
57
        }
49
58
}
50
59
 
51
60
void BookInfo::reset() {