diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-03-30 15:04:21 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-03-30 15:04:21 +0200 |
commit | 0ed23417bd9f77d2acd8696de088cefadb8b5ede (patch) | |
tree | aa5093d19e166a42bca61b71cc5f51ad334103d2 /crawl-ref/source/format.cc | |
parent | 2cef6e17523d9bb9f1aab975fedfbbf4977ede44 (diff) | |
download | crawl-ref-0ed23417bd9f77d2acd8696de088cefadb8b5ede.tar.gz crawl-ref-0ed23417bd9f77d2acd8696de088cefadb8b5ede.zip |
New translations: dwarven, jägerkin, lithp, german.
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index 11286649bb..dfa5559ff1 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -6,6 +6,7 @@ #include "format.h" #include "libutil.h" #include "showsymb.h" +#include "translate.h" #include "unicode.h" #include "viewchar.h" @@ -508,6 +509,13 @@ void formatted_string::capitalize() } } +void formatted_string::translate() +{ + for (unsigned int i = 0; i < ops.size(); i++) + if (ops[i].type == FSOP_TEXT) + ::translate(ops[i].text); +} + int count_linebreaks(const formatted_string& fs) { std::string::size_type where = 0; |