Translate error message

presentation
Andreas Butti 7 years ago
parent cd3e05814d
commit 96854894a4
  1. 12
      src/control/AudioController.cpp
  2. 1
      src/control/AudioController.h

@ -1,6 +1,8 @@
#include "AudioController.h"
#include "Util.h"
#include <iostream>
#include <i18n.h>
AudioController::AudioController(Settings* settings, Control* control)
{
@ -94,14 +96,14 @@ string AudioController::getAudioFolder()
if (af.length() < 8)
{
string msg ="Audio folder not set! Recording won't work!\nPlase set the "\
"recording folder under \"Preferences > Audio recording\"";
g_warning(msg.c_str());
string msg = _("Audio folder not set! Recording won't work!\nPlase set the "
"recording folder under \"Preferences > Audio recording\"");
g_warning("%s", msg.c_str());
Util::showErrorToUser(this->control->getGtkWindow(), msg);
return "";
}
af.erase(af.begin(),af.begin()+7);
af.erase(af.begin(), af.begin() + 7);
return af;
}
@ -110,4 +112,4 @@ gint AudioController::getStartTime()
XOJ_CHECK_TYPE(AudioController);
return this->sttime;
}
}

@ -12,6 +12,7 @@ public:
AudioController(Settings* settings, Control* control);
virtual ~AudioController();
public:
bool isRecording();
void recToggle();
void recStartStop(bool record);

Loading…
Cancel
Save