diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2013-03-19 00:07:52 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2013-03-19 00:28:58 +0100 |
commit | 45418d04c5e6913acaf493027d765c495609bdde (patch) | |
tree | c17f25ff6c091deb7251fb62b6aed207fcab20fe /crawl-ref/source/database.cc | |
parent | ac6f1e17d5bddaf7b6264a53bef04f1864748c5b (diff) | |
download | crawl-ref-45418d04c5e6913acaf493027d765c495609bdde.tar.gz crawl-ref-45418d04c5e6913acaf493027d765c495609bdde.zip |
Move quotes to description files.
This should simplify the transifex interface and make it easier to allow
contributers to add new quotes.
It's not possible to have a translated key without a source key in transifex.
So when there is a translated quote but not an english quote, I've used the
foreign quote in place of an english one to be able to push it to transifex.
This seem acceptable as we used to have foreign quotes before we started
translations. Feel free to replace them with english quotes.
Diffstat (limited to 'crawl-ref/source/database.cc')
-rw-r--r-- | crawl-ref/source/database.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index 70d901df91..0e348fe82e 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -120,10 +120,6 @@ static TextDB AllDBs[] = "godname.txt", // god-related names (mostly His Xomminess) NULL), - TextDB("quotes", "descript/", - "quotes.txt", // quotes for items and monsters - NULL), - TextDB("help", "database/", "help.txt", // database for outsourced help texts NULL), @@ -144,10 +140,9 @@ static TextDB& RandartDB = AllDBs[2]; static TextDB& SpeakDB = AllDBs[3]; static TextDB& ShoutDB = AllDBs[4]; static TextDB& MiscDB = AllDBs[5]; -static TextDB& QuotesDB = AllDBs[6]; -static TextDB& HelpDB = AllDBs[7]; -static TextDB& FAQDB = AllDBs[8]; -static TextDB& HintsDB = AllDBs[9]; +static TextDB& HelpDB = AllDBs[6]; +static TextDB& FAQDB = AllDBs[7]; +static TextDB& HintsDB = AllDBs[8]; static string _db_cache_path(string db, const char *lang) { @@ -756,7 +751,7 @@ static string _query_database(TextDB &db, string key, bool canonicalise_key, string getQuoteString(const string &key) { - return unwrap_desc(_query_database(QuotesDB, key, true, true)); + return unwrap_desc(_query_database(DescriptionDB, key + ":quote", true, true)); } ///////////////////////////////////////////////////////////////////////////// |