Skip to content

Commit

Permalink
Fix compilation on Windows; Fix text string in Swedish translation
Browse files Browse the repository at this point in the history
  • Loading branch information
hanna-kn committed Jan 13, 2025
1 parent 03787fe commit e8f7cdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libqalculate/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,15 @@ string utf8_encode(const std::wstring &wstr) {
}
#endif

#ifndef _WIN32
string getHomeDir() {
const char *homedir;
if ((homedir = getenv("HOME")) == NULL) {
homedir = getpwuid(getuid())->pw_dir;
}
return homedir;
}
#endif

string getOldLocalDir() {
#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion po/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ msgid ""
"(e.g. ans(1) for the first solution)."
msgstr ""
"Håller värdet av den senaste beräkningen. Multipla resultat av en ekvation "
"representeras av en vektor.För åtkomst till separata lösningar använd ans(n) "
"representeras av en vektor. För åtkomst till separata lösningar använd ans(n) "
"(t.ex. ans(1) för den först lösningen)."

#: ../src/defs2doc.cc:641 ../src/qalc.cc:3984
Expand Down

0 comments on commit e8f7cdd

Please sign in to comment.