Browse Source

language codes are lowercase

async_key_management
Volker Birk 7 years ago
parent
commit
48d6acc4bc
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      src/pEpEngine.c
  2. +4
    -0
      test/i18n_test.cc

+ 1
- 1
src/pEpEngine.c View File

@ -215,7 +215,7 @@ DYNAMIC_API PEP_STATUS init(PEP_SESSION *session)
sql_languagelist = "select lang, name from i18n_language order by lang ;";
sql_i18n_token = "select phrase from i18n_token where lang = ?1 and id = ?2 ;";
sql_i18n_token = "select phrase from i18n_token where lang = lower(?1) and id = ?2 ;";
}
int_result = sqlite3_prepare_v2(_session->db, sql_log, (int)strlen(sql_log),


+ 4
- 0
test/i18n_test.cc View File

@ -34,6 +34,10 @@ int main() {
cout << "\nGerman: " << phrase << "\n";
pEp_free(phrase);
status3 = get_phrase(session, "zz", 1, &phrase);
assert(status3 == PEP_PHRASE_NOT_FOUND);
assert(phrase == NULL);
cout << "calling release()\n";
release(session);
return 0;


Loading…
Cancel
Save