/* -*- 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/. */ // Methods used by all of executables #ifndef INCLUDED_L10NTOOLS_INC_COMMON_HXX #define INCLUDED_L10NTOOLS_INC_COMMON_HXX #include #include #include #include "po.hxx" namespace common { /// Result type of handleArguments() struct HandledArgs { OString m_sInputFile; OString m_sOutputFile; OString m_sMergeSrc; OString m_sLanguage; bool m_bMergeMode; bool m_bUTF8BOM; HandledArgs() : m_sInputFile( OString() ) , m_sOutputFile( OString() ) , m_sMergeSrc( OString() ) , m_sLanguage( OString() ) , m_bMergeMode( false ) , m_bUTF8BOM( false ) {} }; /// Handle command line parameters bool handleArguments(int argc, char * argv[], HandledArgs& o_aHandledArgs); /// Write out a help about usage void writeUsage(const OString& rName, const OString& rFileType); /// Write out a PoEntry with attention to exceptions void writePoEntry( const OString& rExecutable, PoOfstream& rPoStream, const OString& rSourceFile, std::string_view rResType, const OString& rGroupId, const OString& rLocalId, const OString& rHelpText, const OString& rText, const PoEntry::TYPE eType = PoEntry::TTEXT ); } #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ n value='distro/collabora/co-24.04.9'>distro/collabora/co-24.04.9 LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2019-11-08 23:13:44 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2019-11-08 23:33:50 +0100
commit8b19beb31a8130df352a794fc391eace34250bfd (patch)
tree80e2483a65d29c391961ee6cf2aee141945d0d65
parent407609021e77e0f652454b3612cb020f69852d91 (diff)
update translations from weblate
Change-Id: I75a99d8d1567ffce961a404c6f054b9bd07b62a0