📝 Updated docs for LookupWithContext
This commit is contained in:
@ -352,7 +352,7 @@ public:
|
||||
|
||||
/** \brief Returns the searched translation or returns the input, restricted to the context given by context.
|
||||
* See https://www.gnu.org/software/gettext/manual/html_node/Contexts.html for more info.
|
||||
* \param[in] context The id of the translation to search for.
|
||||
* \param[in] context Restrict to the context given.
|
||||
* \param[in] id The id of the translation to search for.
|
||||
* \return The value you passed in via _id or the translated string.
|
||||
*/
|
||||
@ -448,16 +448,6 @@ inline std::string _(const char* id)
|
||||
return r;
|
||||
}
|
||||
|
||||
/** \brief Looks for the spec. string to translate.
|
||||
* \param[in] id The string-id to search.
|
||||
* \return The translation if found, otherwise it returns id.
|
||||
*/
|
||||
inline std::string _L(const char* id)
|
||||
{
|
||||
std::string r = moFileReaderSingleton::GetInstance().Lookup(id);
|
||||
return r;
|
||||
}
|
||||
|
||||
/// \brief Resets the Lookup-Table.
|
||||
inline void moFileClearTable()
|
||||
{
|
||||
|
Reference in New Issue
Block a user