Skip to content

Commit

Permalink
Fix broken list of languages available
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong authored Aug 30, 2021
1 parent fda3f04 commit 27dc8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ std::unordered_set<std::string> options_manager::get_langs_with_translation_file
const std::size_t start_len = start_str.length();
const std::string end_str = "/LC_MESSAGES";
std::for_each( lang_dirs.begin(), lang_dirs.end(), [&]( std::string & dir ) {
const std::size_t start = dir.find( start_str ) + start_len + 1;
const std::size_t start = dir.find( start_str ) + start_len;
const std::size_t len = dir.rfind( end_str ) - start;
dir = dir.substr( start, len );
} );
Expand Down

0 comments on commit 27dc8d6

Please sign in to comment.