Kaydet (Commit) 5f0dda8e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add inline implementations of the C++ translate functions

Change-Id: I749fa9d647bf55925fad862152b673ced312ee34
üst 4f1a341b
...@@ -801,7 +801,10 @@ public: ...@@ -801,7 +801,10 @@ public:
* @param pPrefixName the prefix passed to Translate::Create() * @param pPrefixName the prefix passed to Translate::Create()
* @param pBcp47LanguageTag the locale into which the string should be translated * @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. * Fetch translation for a string corresponding to a specific number of something.
...@@ -813,7 +816,10 @@ public: ...@@ -813,7 +816,10 @@ public:
* @param pPrefixName the prefix passed to Translate::Create() * @param pPrefixName the prefix passed to Translate::Create()
* @param pBcp47LanguageTag the locale into which the string should be translated * @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. /// Factory method to create a lok::Office instance.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment