/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef INCLUDED_DESKTOP_INC_LIBREOFFICEKIT_INIT_H #define INCLUDED_DESKTOP_INC_LIBREOFFICEKIT_INIT_H #include "LibreOfficeKit.h" #ifdef __cplusplus extern "C" { #endif #if defined(__linux__) || defined (__FreeBSD_kernel__) || defined(_AIX) || defined(_WIN32) #include #include #include #ifndef _WIN32 #include "dlfcn.h" #ifdef _AIX # include #endif #define TARGET_LIB "lib" "sofficeapp" ".so" #define TARGET_MERGED_LIB "lib" "mergedlo" ".so" #define SEPERATOR '/' void *_dlopen(const char *pFN) { return dlopen(pFN, RTLD_LAZY); } void *_dlsym(void *Hnd, const char *pName) { return dlsym(Hnd, pName); } int _dlclose(void *Hnd) { return dlclose(Hnd); } void extendUnoPath(const char *pPath) { (void)pPath; } #else #include #define TARGET_LIB "sofficeapp" ".dll" #define TARGET_MERGED_LIB "mergedlo" ".dll" #define SEPERATOR '\\' #define UNOPATH "\\..\\URE\\bin" void *_dlopen(const char *pFN) { return (void *) LoadLibrary(pFN); } void *_dlsym(void *Hnd, const char *pName) { return GetProcAddress((HINSTANCE) Hnd, pName); } int _dlclose(void *Hnd) { return FreeLibrary((HINSTANCE) Hnd); } void extendUnoPath(const char *pPath) { if (!pPath) return; char* sEnvPath = NULL; DWORD cChars = GetEnvironmentVariable("PATH", sEnvPath, 0); if (cChars > 0) { sEnvPath = new char[cChars]; cChars = GetEnvironmentVariable("PATH", sEnvPath, cChars); //If PATH is not set then it is no error if (cChars == 0 && GetLastError() != ERROR_ENVVAR_NOT_FOUND) { delete[] sEnvPath; return; } } //prepare the new PATH. Add the Ure/bin directory at the front. //note also adding ';' char * sNewPath = new char[strlen(sEnvPath) + strlen(pPath) + strlen(UNOPATH) + 2]; sNewPath[0] = L'\0'; strcat(sNewPath, pPath); strcat(sNewPath, UNOPATH); if (strlen(sEnvPath)) { strcat(sNewPath, ";"); strcat(sNewPath, sEnvPath); } SetEnvironmentVariable("PATH", sNewPath); delete[] sEnvPath; delete[] sNewPath; } #endif typedef LibreOfficeKit *(HookFunction)( const char *install_path); static LibreOfficeKit *lok_init( const char *install_path ) { char *imp_lib; size_t partial_length; void *dlhandle; HookFunction *pSym; if (!install_path) return NULL; // allocate large enough buffer partial_length = strlen(install_path); imp_lib = (char *) malloc(partial_length + sizeof(TARGET_LIB) + sizeof(TARGET_MERGED_LIB) + 2); if (!imp_lib) { fprintf( stderr, "failed to open library : not enough memory\n"); return NULL; } strcpy(imp_lib, install_path); extendUnoPath(install_path); imp_lib[partial_length++] = SEPERATOR; strcpy(imp_lib + partial_length, TARGET_LIB); dlhandle = _dlopen(imp_lib); if (!dlhandle) { strcpy(imp_lib + partial_length, TARGET_MERGED_LIB); dlhandle = _dlopen(imp_lib); if (!dlhandle) { fprintf(stderr, "failed to open library '%s' or '%s' in '%s/'\n", TARGET_LIB, TARGET_MERGED_LIB, install_path); free(imp_lib); return NULL; } } pSym = (HookFunction *) _dlsym( dlhandle, "libreofficekit_hook" ); if (!pSym) { fprintf( stderr, "failed to find hook in library '%s'\n", imp_lib ); _dlclose( dlhandle ); free( imp_lib ); return NULL; } free( imp_lib ); return pSym( install_path ); } #endif // defined(__linux__) || defined(_AIX) #ifdef __cplusplus } #endif #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ature/cib_contract57d LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-03-16 13:06:23 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-03-16 13:13:05 +0100
commit7b4a46ae144ea71701de6d479c3c6ef74610e52c (patch)
tree0aefd8da90d0a9216362380e3547da0baada4a69 /source
parent610e3f90e150d90bd5305f53d5e39f111f197d4f (diff)
update translations for master
and force-fix errors using pocheck Change-Id: I71b810540431152e930de7cfd52e82fb3352603c
Diffstat (limited to 'source')
-rw-r--r--source/ab/connectivity/messages.po6
-rw-r--r--source/ab/extras/source/gallery/share.po29
-rw-r--r--source/ab/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/ab/svtools/messages.po8
-rw-r--r--source/ab/svx/messages.po6
-rw-r--r--source/af/avmedia/messages.po18
-rw-r--r--source/af/basic/messages.po160
-rw-r--r--source/af/connectivity/messages.po8
-rw-r--r--source/af/connectivity/registry/ado/org/openoffice/Office/DataAccess.po17
-rw-r--r--source/af/connectivity/registry/calc/org/openoffice/Office/DataAccess.po15
-rw-r--r--source/af/connectivity/registry/evoab2/org/openoffice/Office/DataAccess.po17
-rw-r--r--source/af/dictionaries/en/dialog.po53
-rw-r--r--source/af/dictionaries/oc_FR.po17
-rw-r--r--source/af/dictionaries/pl_PL.po17
-rw-r--r--source/af/extras/source/gallery/share.po25
-rw-r--r--source/af/filter/messages.po126
-rw-r--r--source/af/filter/source/config/fragments/types.po97
-rw-r--r--source/af/forms/messages.po126
-rw-r--r--source/af/fpicker/messages.po32
-rw-r--r--source/af/framework/messages.po12
-rw-r--r--source/af/nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver.po72
-rw-r--r--source/af/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver.po20
-rw-r--r--source/af/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/af/oox/messages.po14
-rw-r--r--source/af/scp2/source/base.po32
-rw-r--r--source/af/scp2/source/calc.po41
-rw-r--r--source/af/scp2/source/impress.po53
-rw-r--r--source/af/scp2/source/writer.po45
-rw-r--r--source/af/setup_native/source/mac.po29
-rw-r--r--source/af/svtools/messages.po8
-rw-r--r--source/af/svx/messages.po6
-rw-r--r--source/af/wizards/messages.po442
-rw-r--r--source/af/wizards/source/resources.po719
-rw-r--r--source/am/connectivity/messages.po10
-rw-r--r--source/am/extras/source/gallery/share.po29
-rw-r--r--source/am/helpcontent2/source/text/scalc.po14
-rw-r--r--source/am/helpcontent2/source/text/scalc/00.po64
-rw-r--r--source/am/helpcontent2/source/text/scalc/01.po20
-rw-r--r--source/am/helpcontent2/source/text/shared.po8
-rw-r--r--source/am/helpcontent2/source/text/shared/00.po6
-rw-r--r--source/am/helpcontent2/source/text/shared/01.po222
-rw-r--r--source/am/helpcontent2/source/text/shared/guide.po32
-rw-r--r--source/am/helpcontent2/source/text/shared/optionen.po38
-rw-r--r--source/am/helpcontent2/source/text/simpress/04.po309
-rw-r--r--source/am/helpcontent2/source/text/swriter.po8
-rw-r--r--source/am/helpcontent2/source/text/swriter/01.po226
-rw-r--r--source/am/helpcontent2/source/text/swriter/04.po8
-rw-r--r--source/am/helpcontent2/source/text/swriter/guide.po14
-rw-r--r--source/am/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/am/svtools/messages.po8
-rw-r--r--source/am/svx/messages.po6
-rw-r--r--source/an/basctl/messages.po12
-rw-r--r--source/an/connectivity/messages.po15
-rw-r--r--source/an/cui/messages.po11
-rw-r--r--source/an/extras/source/gallery/share.po15
-rw-r--r--source/an/formula/messages.po13
-rw-r--r--source/an/officecfg/registry/data/org/openoffice/Office/UI.po24
-rw-r--r--source/an/sd/messages.po7
-rw-r--r--source/an/svtools/messages.po8
-rw-r--r--source/an/svx/messages.po6
-rw-r--r--source/an/sw/messages.po15
-rw-r--r--source/ar/connectivity/messages.po8
-rw-r--r--source/ar/extras/source/gallery/share.po29
-rw-r--r--source/ar/helpcontent2/source/text/scalc.po10
-rw-r--r--source/ar/helpcontent2/source/text/scalc/00.po54
-rw-r--r--source/ar/helpcontent2/source/text/scalc/01.po14
-rw-r--r--source/ar/helpcontent2/source/text/shared.po6
-rw-r--r--source/ar/helpcontent2/source/text/shared/00.po6
-rw-r--r--source/ar/helpcontent2/source/text/shared/01.po188
-rw-r--r--source/ar/helpcontent2/source/text/shared/guide.po28
-rw-r--r--source/ar/helpcontent2/source/text/shared/optionen.po26
-rw-r--r--source/ar/helpcontent2/source/text/simpress/04.po277
-rw-r--r--source/ar/helpcontent2/source/text/swriter.po6
-rw-r--r--source/ar/helpcontent2/source/text/swriter/01.po210
-rw-r--r--source/ar/helpcontent2/source/text/swriter/04.po6
-rw-r--r--source/ar/helpcontent2/source/text/swriter/guide.po10
-rw-r--r--source/ar/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/ar/svtools/messages.po8
-rw-r--r--source/ar/svx/messages.po6
-rw-r--r--source/as/connectivity/messages.po8
-rw-r--r--source/as/extras/source/gallery/share.po29
-rw-r--r--source/as/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/as/svtools/messages.po8
-rw-r--r--source/as/svx/messages.po6
-rw-r--r--source/ast/connectivity/messages.po18
-rw-r--r--source/ast/extras/source/gallery/share.po15
-rw-r--r--source/ast/helpcontent2/source/text/sbasic/shared.po8
-rw-r--r--source/ast/helpcontent2/source/text/scalc.po14
-rw-r--r--source/ast/helpcontent2/source/text/scalc/00.po58
-rw-r--r--source/ast/helpcontent2/source/text/scalc/01.po18
-rw-r--r--source/ast/helpcontent2/source/text/shared.po8
-rw-r--r--source/ast/helpcontent2/source/text/shared/00.po6
-rw-r--r--source/ast/helpcontent2/source/text/shared/01.po184
-rw-r--r--source/ast/helpcontent2/source/text/shared/guide.po32
-rw-r--r--source/ast/helpcontent2/source/text/shared/help.po12
-rw-r--r--source/ast/helpcontent2/source/text/shared/optionen.po36
-rw-r--r--source/ast/helpcontent2/source/text/simpress/04.po106
-rw-r--r--source/ast/helpcontent2/source/text/swriter.po10
-rw-r--r--source/ast/helpcontent2/source/text/swriter/01.po226
-rw-r--r--source/ast/helpcontent2/source/text/swriter/04.po10
-rw-r--r--source/ast/helpcontent2/source/text/swriter/guide.po16
-rw-r--r--source/ast/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/ast/starmath/messages.po6
-rw-r--r--source/ast/svtools/messages.po8
-rw-r--r--source/ast/svx/messages.po6
-rw-r--r--source/ast/wizards/messages.po6
-rw-r--r--source/az/connectivity/messages.po6
-rw-r--r--source/az/extras/source/gallery/share.po29
-rw-r--r--source/az/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/az/svtools/messages.po8
-rw-r--r--source/az/svx/messages.po6
-rw-r--r--source/be/connectivity/messages.po8
-rw-r--r--source/be/extras/source/gallery/share.po27
-rw-r--r--source/be/officecfg/registry/data/org/openoffice/Office/UI.po22
-rw-r--r--source/be/svtools/messages.po8
-rw-r--r--source/be/svx/messages.po6
-rw-r--r--source/bg/chart2/messages.po14
-rw-r--r--source/bg/connectivity/messages.po14
-rw-r--r--source/bg/cui/messages.po18
-rw-r--r--source/bg/dictionaries/nl_NL.po18
-rw-r--r--source/bg/extras/source/gallery/share.po25
-rw-r--r--source/bg/filter/source/config/fragments/filters.po176
-rw-r--r--source/bg/helpcontent2/source/text/sbasic/shared.po20
-rw-r--r--source/bg/helpcontent2/source/text/scalc.po18
-rw-r--r--source/bg/helpcontent2/source/text/scalc/00.po82
-rw-r--r--source/bg/helpcontent2/source/text/scalc/01.po28
-rw-r--r--source/bg/helpcontent2/source/text/shared.po94
-rw-r--r--source/bg/helpcontent2/source/text/shared/00.po34
-rw-r--r--source/bg/helpcontent2/source/text/shared/01.po254
-rw-r--r--source/bg/helpcontent2/source/text/shared/02.po8
-rw-r--r--source/bg/helpcontent2/source/text/shared/guide.po34
-rw-r--r--source/bg/helpcontent2/source/text/shared/help.po8
-rw-r--r--source/bg/helpcontent2/source/text/shared/optionen.po44
-rw-r--r--source/bg/helpcontent2/source/text/simpress/04.po311
-rw-r--r--source/bg/helpcontent2/source/text/swriter.po10
-rw-r--r--source/bg/helpcontent2/source/text/swriter/00.po6
-rw-r--r--source/bg/helpcontent2/source/text/swriter/01.po284
-rw-r--r--source/bg/helpcontent2/source/text/swriter/04.po10
-rw-r--r--source/bg/helpcontent2/source/text/swriter/guide.po22
-rw-r--r--source/bg/instsetoo_native/inc_openoffice/windows/msi_languages.po8
-rw-r--r--source/bg/officecfg/registry/data/org/openoffice/Office/UI.po24
-rw-r--r--source/bg/sc/messages.po14
-rw-r--r--source/bg/scp2/source/ooo.po24
-rw-r--r--source/bg/sd/messages.po8
-rw-r--r--source/bg/svtools/messages.po70
-rw-r--r--source/bg/svx/messages.po18
-rw-