diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
commit | 8bf668665b107469086f16cb8ad23e47d479d2b4 (patch) | |
tree | 66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /shared/parse_lng.h | |
parent | 3.21 (diff) | |
download | FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2 FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip |
4.0
Diffstat (limited to 'shared/parse_lng.h')
-rw-r--r-- | shared/parse_lng.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shared/parse_lng.h b/shared/parse_lng.h index b943d222..034deb68 100644 --- a/shared/parse_lng.h +++ b/shared/parse_lng.h @@ -309,7 +309,7 @@ private: { std::string tmp; for (std::string::const_iterator i = text.begin(); i != text.end(); ++i) - if(*i == '\r') + if (*i == '\r') { std::string::const_iterator next = i + 1; if (next != text.end() && *next == '\n') @@ -451,7 +451,7 @@ private: } - if (!pluralList.empty()&& static_cast<int>(pluralList.size()) != formCount) //invalid number of plural forms + if (!pluralList.empty() && static_cast<int>(pluralList.size()) != formCount) //invalid number of plural forms throw ParsingError(scn.position().first, scn.position().second); consumeToken(Token::TK_TRG_END); @@ -572,7 +572,7 @@ void generateLng(const TranslationList& in, const TransHeader& header, std::stri fileStream += KnownTokens::text(Token::TK_TRG_BEGIN); fileStream += translation; - fileStream += KnownTokens::text(Token::TK_TRG_END) + LB; + fileStream += KnownTokens::text(Token::TK_TRG_END) + LB + LB; } else if (plural) @@ -590,7 +590,7 @@ void generateLng(const TranslationList& in, const TransHeader& header, std::stri fileStream += KnownTokens::text(Token::TK_PLURAL_END) + LB; fileStream += KnownTokens::text(Token::TK_PLURAL_BEGIN); fileStream += engPlural; - fileStream += KnownTokens::text(Token::TK_PLURAL_END)+ LB; + fileStream += KnownTokens::text(Token::TK_PLURAL_END) + LB; fileStream += KnownTokens::text(Token::TK_SRC_END) + LB; fileStream += KnownTokens::text(Token::TK_TRG_BEGIN); @@ -605,7 +605,7 @@ void generateLng(const TranslationList& in, const TransHeader& header, std::stri fileStream += plForm; fileStream += KnownTokens::text(Token::TK_PLURAL_END) + LB; } - fileStream += KnownTokens::text(Token::TK_TRG_END) + LB; + fileStream += KnownTokens::text(Token::TK_TRG_END) + LB + LB; } else { |