diff options
author | Tor Lillqvist <tml@iki.fi> | 2018-12-13 13:18:46 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2018-12-13 13:20:30 +0200 |
commit | ef9e7c83267d9bfa7f225a25fceafa1027a21a6a (patch) | |
tree | 5c834092ca662f67ca96d1fd49dc74bc12b1dee2 /desktop/source | |
parent | a6dabb2fd9fa198533722358e3d8dfff3bd1329c (diff) |
Revert adding the tanslateGet() and translateNGet() API to LibreOfficeKit
Will handle it another way instead that isn't so visible and annoying.
This reverts commit 5f0dda8e9f2e35e1fdb5750089a70543478fa8a1.
This reverts commit 4f1a341bc312673b8d92e4474cc39bc3ab69aa5b.
Change-Id: If456d2792a5f2793ee6337898aaa4a55637f8522
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/lib/init.cxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index cf9352f3b2cc..90994a92c257 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1422,8 +1422,6 @@ static void lo_setDocumentPassword(LibreOfficeKit* pThis, const char* pPassword); static char* lo_getVersionInfo(LibreOfficeKit* pThis); static int lo_runMacro (LibreOfficeKit* pThis, const char* pURL); -static char* lo_translateGet (LibreOfficeKit *pThis, const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag); -static char* lo_translateNGet (LibreOfficeKit *pThis, const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag); LibLibreOffice_Impl::LibLibreOffice_Impl() : m_pOfficeClass( gOfficeClass.lock() ) @@ -1447,8 +1445,6 @@ LibLibreOffice_Impl::LibLibreOffice_Impl() m_pOfficeClass->setDocumentPassword = lo_setDocumentPassword; m_pOfficeClass->getVersionInfo = lo_getVersionInfo; m_pOfficeClass->runMacro = lo_runMacro; - m_pOfficeClass->translateGet = lo_translateGet; - m_pOfficeClass->translateNGet = lo_translateNGet; gOfficeClass = m_pOfficeClass; } @@ -1676,24 +1672,6 @@ static int lo_runMacro(LibreOfficeKit* pThis, const char *pURL) return false; } -static char* lo_translateGet(LibreOfficeKit *, const char* pId, const char* pPrefixName, const char* pBcp47LanguageTag) -{ - LanguageTag tag(OUString::fromUtf8(pBcp47LanguageTag)); - std::locale locale = Translate::Create(pPrefixName, tag); - OUString result = Translate::get(pId, locale); - - return strdup(result.toUtf8().getStr()); -} - -static char* lo_translateNGet(LibreOfficeKit *, const char* pId, int n, const char* pPrefixName, const char* pBcp47LanguageTag) -{ - LanguageTag tag(OUString::fromUtf8(pBcp47LanguageTag)); - std::locale locale = Translate::Create(pPrefixName, tag); - OUString result = Translate::nget(pId, n, locale); - - return strdup(result.toUtf8().getStr()); -} - static void lo_registerCallback (LibreOfficeKit* pThis, LibreOfficeKitCallback pCallback, void* pData) |