From 8b652ee308121e524da0ec35850832b4aef0a5ce Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 25 Sep 2016 20:11:50 +0800 Subject: [PATCH] fix i18n for msgbox --- include/nana/pat/abstract_factory.hpp | 2 +- source/gui/msgbox.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/nana/pat/abstract_factory.hpp b/include/nana/pat/abstract_factory.hpp index e7083a40..27966fe2 100644 --- a/include/nana/pat/abstract_factory.hpp +++ b/include/nana/pat/abstract_factory.hpp @@ -1,7 +1,7 @@ /* * A Generic Abstract Factory Pattern Implementation * Nana C++ Library(http://www.nanapro.org) - * Copyright(C) 2003-2014 Jinhao(cnjinhao@hotmail.com) + * Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at diff --git a/source/gui/msgbox.cpp b/source/gui/msgbox.cpp index d53c9ff5..4bafd225 100644 --- a/source/gui/msgbox.cpp +++ b/source/gui/msgbox.cpp @@ -1,7 +1,7 @@ /* * A Message Box Class * Nana C++ Library(http://www.nanapro.org) - * Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com) + * Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at @@ -61,14 +61,14 @@ namespace nana { _m_click(arg); }); - yes_.caption("OK"); + yes_.i18n(i18n_eval("OK")); width_pixel += 77; if(msgbox::yes_no == btn || msgbox::yes_no_cancel == btn) { - yes_.caption("Yes"); + yes_.i18n(i18n_eval("Yes")); no_.create(*this); - no_.caption("No"); + no_.i18n(i18n_eval("No")); no_.events().click.connect_unignorable([this](const arg_click& arg) { _m_click(arg); @@ -79,7 +79,7 @@ namespace nana if(msgbox::yes_no_cancel == btn) { cancel_.create(*this); - cancel_.caption("Cancel"); + cancel_.i18n(i18n_eval("Cancel")); cancel_.events().click.connect_unignorable([this](const arg_click& arg) { _m_click(arg);