#!/usr/bin/env python # # 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/. # import sys, os, getopt, signal sys.path.append(sys.path[0]+"/to-wiki") import wikiconv2 import getalltitles def usage(): print ''' help-to-wiki.py [params] [path to l10n] Converts .xhp files into a wiki -h, --help - this help -n, --no-translations - generate only English pages -r, --redirects - generate also redirect pages -t, --title-savefile - save the title file Most probably, you want to generate the redirects only once when you initially populate the wiki, and then only update the ones that broke.\n''' def create_wiki_dirs(): dirs = [ "Common", "Basic", "Calc", "Chart", "Draw", "Impress", "Math", "Writer", "swriter", "scalc", "simpress", "sdraw", "smath", "schart", "sbasic", "sdatabase" ] try: os.mkdir( "wiki" ) except: sys.stdout.write( "wiki already generated - the wiki/ subdir exists\n" ) sys.exit( 1 ) for i in dirs: try: os.mkdir( "wiki/" + i ) except: pass # Langs to handle (fully translated or otherwise important) langs = ['', 'ast', 'bg', 'bn', 'bn-IN', 'ca', 'cs', 'da', 'de', \ 'el', 'es', 'eu', 'fi', 'fr', 'hu', 'it', 'ja', 'km', \ 'ko', 'nb', 'nl', 'om', 'pl', 'pt', 'pt-BR', 'ru', \ 'sl', 'sv', 'tr', 'vi', 'zh-CN', 'zh-TW' ] # Argument handling try: opts, args = getopt.getopt(sys.argv[1:], 'hnrt', ['help', 'no-translations', 'redirects', 'title-savefile']) except getopt.GetoptError: usage() sys.exit(1) generate_redirects = False title_savefile = False for opt, arg in opts: if opt in ('-h', '--help'): usage() sys.exit() elif opt in ('-n', '--no-translations'): langs = [''] elif opt in ('-r', '--redirects'): generate_redirects = True elif opt in ('-t', '--title-savefile'): title_savefile = True def signal_handler(signal, frame): sys.stderr.write( 'Exiting...\n' ) sys.exit(1) # Do the work signal.signal(signal.SIGINT, signal_handler) create_wiki_dirs() print "Generating the titles..." title_data = getalltitles.gettitles("source/text") if title_savefile: with open ('alltitles.csv', 'w') as f: for d in title_data: f.write('%s;%s;%s\n' % (d[0], d[1], d[2])) try: po_path = args[0] except: po_path = '../translations/source' sys.stderr.write('Path to the .po files not provided, using "%s"\n'% po_path) # do the work for lang in langs: wikiconv2.convert(title_data, generate_redirects, lang, '%s/%s/helpcontent2/source'% (po_path, lang)) # vim:set shiftwidth=4 softtabstop=4 expandtab: abora/co-24.04.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/include/sfx2/sfxsids.hrc
AgeCommit message (Expand)Author
2015-09-30Fix typosAndrea Gelmini
2015-08-12tdf#73691 Implement MSWord's Alt-X: toggle unicode notationJustin Luth
2015-07-16Working toolbar entry: Save As > Remote fileSzymon Kłos
2015-07-16added RemoteFilesDialog support in FileDialogHelper_ImplSzymon Kłos
2015-07-16RemoteFilesDialogSzymon Kłos
2015-01-21Related: fdo#88562 Nothing actually sets ID_FILETP_READONLY or ID_FILETP_TITLECaolán McNamara
2014-11-26fix 'Childwindow slot missing' warningCaolán McNamara
2014-10-21The only SID supported by PropExec/State_Impl is SID_ATTR_UNDO_COUNTStephan Bergmann
2014-10-17SID_TOGGLE_MENUBAR (aka slot:6661, .uno:MenuBarVisible) is deadStephan Bergmann
2014-10-17Remove some completely unused SID_sStephan Bergmann
2014-09-19fdo#62947 make IDs unique, fixes, better namesTomaž Vajngerl
2014-08-18remove dead ToolBox RID_HELPBARThomas Arnhold
2014-05-19hrc and src files: squeeze multiple newlinesThomas Arnhold
2014-04-24fix double allocationThomas Arnhold
2014-04-23huge hrc and src file cleanupThomas Arnhold
2014-04-05coverity#704787 Explicit null dereferencedCaolán McNamara
2014-03-27Basic UI for inserting 3D modelsZolnai Tamás
2014-03-25add parameter to supress dialogMathias Supp
2014-03-01Remove visual noise from includeAlexander Wilms
2013-09-02GSOC work, renaming for consistencyGergo Mocsi
2013-09-02GSOC work menu entry + code fixGergo Mocsi
2013-08-29add support for in-place style previewNoel Power
2013-07-01Resolves: fdo#66263 calc's protect records doesn't do anything, sid collisionCaolán McNamara
2013-06-24colliding SID_SVX_START based idsCaolán McNamara
2013-06-06Remove remnants of help agentCaolán McNamara
2013-05-20Resolves: #i121420# merge sidebar featureOliver-Rainer Wittmann
2013-05-02fdo#60780, refactor Save a Copy and fixÁdám Csaba Király
2013-04-23execute move of global headersBjoern Michaelsen