Re-use translation strings from wesnoth-lib instead of duplicating them in wesnoth-editor.

Closes #9492. Bonus spelling correction.
This commit is contained in:
Wedge009 2024-10-23 23:42:11 +11:00 committed by Charles Dang
parent 88c6c13fdd
commit 403dfbc673

View File

@ -13,7 +13,7 @@
See the COPYING file for more details.
*/
#define GETTEXT_DOMAIN "wesnoth-editor"
#define GETTEXT_DOMAIN "wesnoth-lib"
#include "gui/dialogs/editor/custom_tod.hpp"
@ -244,7 +244,7 @@ const time_of_day& custom_tod::get_selected_tod() const
try {
return times_.at(current_tod_);
} catch(const std::out_of_range&) {
throw std::string("Attempted to fetch a non-existant ToD!");
throw std::string("Attempted to fetch a non-existent ToD!");
}
}