Skip to content

Commit

Permalink
Add inline implementations of the C++ translate functions
Browse files Browse the repository at this point in the history
Change-Id: I749fa9d647bf55925fad862152b673ced312ee34
  • Loading branch information
Tor Lillqvist committed Dec 10, 2018
1 parent 4f1a341 commit 5f0dda8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/LibreOfficeKit/LibreOfficeKit.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,10 @@ public:
* @param pPrefixName the prefix passed to Translate::Create()
* @param pBcp47LanguageTag the locale into which the string should be translated
*/
char* translateGet( const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag );
char* translateGet( const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag )
{
return mpThis->pClass->translateGet( mpThis, pId, pPrefixName, pBcp47LanguageTag );
}

/**
* Fetch translation for a string corresponding to a specific number of something.
Expand All @@ -813,7 +816,10 @@ public:
* @param pPrefixName the prefix passed to Translate::Create()
* @param pBcp47LanguageTag the locale into which the string should be translated
*/
char* translateNGet( const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag );
char* translateNGet( const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag )
{
return mpThis->pClass->translateNGet( mpThis, pId, n, pPrefixName, pBcp47LanguageTag );
}
};

/// Factory method to create a lok::Office instance.
Expand Down

0 comments on commit 5f0dda8

Please sign in to comment.