示例#1
0
const String IMContextImpl::get_help_string () const
{
    String help_string = String (_ ("Smart Common Input Method platform ")) +
                         String (SCIM_VERSION) +
                         String (_ ("\n(C) 2002-2005 James Su <*****@*****.**>\n\n"));

    IMEngineFactoryPointer factory = scim_console->get_scim_backend ()->get_factory (imengine->get_factory_uuid ());
    if (!factory.null ()) {
        help_string += utf8_wcstombs (factory->get_name ());
        help_string += String (_ (":\n\n"));

        help_string += utf8_wcstombs (factory->get_authors ());
        help_string += String (_ ("\n\n"));

        help_string += utf8_wcstombs (factory->get_help ());
        help_string += String (_ ("\n\n"));

        help_string += utf8_wcstombs (factory->get_credits ());
    }
    return help_string;
}