QMTranslator.h revision a9a79301a7d78abffc51521473bbb5a1e08028c5
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * VirtualBox API translation handling class
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Copyright (C) 2014 Oracle Corporation
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * available from http://www.virtualbox.org. This file is free software;
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * you can redistribute it and/or modify it under the terms of the GNU
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * General Public License (GPL) as published by the Free Software
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync /* Gets translation from loaded QM file
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * @param context QM context to look for translation
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * @param source Source string in one-byte encoding
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * @param disamb Disambiguationg comment, empty by default
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync * @returns Pointer to a translation in UTF-8 encoding, empty string on failure */
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync const char *translate(const char *pszContext, const char *pszSource, const char *pszDisamb = "") const throw();