5da75fcb40
This patch adds a new template category named "Localization", to be used for templates created by our l10n team for each locale, so that languages which requires special layout or formatting (such as CJK or CTL) can have their own templates bundled by default. This patch aslo adds a (general purpose) Writer template for the Simplified Chinese language. Chinese language, by convention, need to format the document to have the first line of the paragraph be indented by 2 characters. The font size, line spacing, paragraph margin etc also need special treatment. If the Chinese users start writing using the current default Writer template, they need to adjust the style formatting every time to meet their needs. Although this template can be provided as an "extension" on the extension website, in practice very few people will go to the extension website and look for such templates. Such bundled templates can also be added by other l10n teams. The extras/README.md will be updated in a separate patch to include documentation on how to add such templates and have their template names translatable on weblate. This does not completely resolve the issue in tdf#86483, which requests to "Implement different default templates per locale". However, with this patch, we are a step closer to set a choosen template when the user switch to a certain UI. Change-Id: Ic295482354f343e981eb20908907bd6a945b7120 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140802 Tested-by: Jenkins Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
58 lines
3.3 KiB
C++
58 lines
3.3 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* 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/.
|
|
*/
|
|
#pragma once
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
inline constexpr OUStringLiteral STR_HTML_GENERATOR
|
|
= u"%PRODUCTNAME %PRODUCTVERSION%PRODUCTEXTENSION (%1)";
|
|
|
|
// Do not translate STR_TEMPLATE_NAME*_DEF names!!
|
|
// STR_TEMPLATE_NAME*_DEF strings must EXACTLY fit dc:title tag in meta.xml of each template file
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME1_DEF = u"Grey Elegant";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME2_DEF = u"Beehive";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME3_DEF = u"Blue Curve";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME4_DEF = u"Blueprint Plans";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME5_DEF = u"Candy";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME6_DEF = u"Yellow Idea";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME7_DEF = u"DNA";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME8_DEF = u"Focus";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME9_DEF = u"Forestbird";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME10_DEF = u"Freshes";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME11_DEF = u"Inspiration";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME12_DEF = u"Lights";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME13_DEF = u"Growing Liberty";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME14_DEF = u"Metropolis";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME15_DEF = u"Midnightblue";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME16_DEF = u"Nature Illustration";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME17_DEF = u"Pencil";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME18_DEF = u"Piano";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME19_DEF = u"Portfolio";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME20_DEF = u"Progress";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME21_DEF = u"Sunset";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME22_DEF = u"Vintage";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME23_DEF = u"Vivid";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME24_DEF = u"CV";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME25_DEF = u"Resume";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME26_DEF = u"Default";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME27_DEF = u"Modern";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME28_DEF = u"Modern business letter sans-serif";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME29_DEF = u"Modern business letter serif";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME30_DEF = u"Businesscard with logo";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME31_DEF = u"Simple";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME32_DEF = u"BPMN";
|
|
inline constexpr OUStringLiteral STR_TEMPLATE_NAME33_DEF = u"Simplified Chinese Normal";
|
|
|
|
inline constexpr OUStringLiteral CMIS_TYPE_STRING = u"String";
|
|
#define CMIS_TYPE_INTEGER "Integer"
|
|
#define CMIS_TYPE_DECIMAL "Decimal"
|
|
#define CMIS_TYPE_DATETIME "Datetime"
|
|
#define CMIS_TYPE_BOOL "Bool"
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|