1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_INC_UNITS_HRC
21 #define INCLUDED_VCL_INC_UNITS_HRC
23 #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
25 std::pair<const char*, FieldUnit> SV_FUNIT_STRINGS[] =
27 // To translators: This is the first entry of a sequence of measurement unit names
28 { NC_("SV_FUNIT_STRINGS", "mm"), FieldUnit::MM },
29 { NC_("SV_FUNIT_STRINGS", "cm"), FieldUnit::CM },
30 { NC_("SV_FUNIT_STRINGS", "m"), FieldUnit::M },
31 { NC_("SV_FUNIT_STRINGS", "km"), FieldUnit::KM },
32 { NC_("SV_FUNIT_STRINGS", "twips"), FieldUnit::TWIP },
33 { NC_("SV_FUNIT_STRINGS", "twip"), FieldUnit::TWIP },
34 { NC_("SV_FUNIT_STRINGS", "pt"), FieldUnit::POINT },
35 { NC_("SV_FUNIT_STRINGS", "pc"), FieldUnit::PICA },
36 /* To translators: double prime symbol for inch */
37 { NC_("SV_FUNIT_STRINGS", "″"), FieldUnit::INCH },
38 { NC_("SV_FUNIT_STRINGS", "\""), FieldUnit::INCH },
39 { NC_("SV_FUNIT_STRINGS", "in"), FieldUnit::INCH },
40 { NC_("SV_FUNIT_STRINGS", "inch"), FieldUnit::INCH },
41 /* To translators: prime symbol for foot */
42 { NC_("SV_FUNIT_STRINGS", "′"), FieldUnit::FOOT },
43 { NC_("SV_FUNIT_STRINGS", "'"), FieldUnit::FOOT },
44 { NC_("SV_FUNIT_STRINGS", "ft"), FieldUnit::FOOT },
45 { NC_("SV_FUNIT_STRINGS", "foot"), FieldUnit::FOOT },
46 { NC_("SV_FUNIT_STRINGS", "feet"), FieldUnit::FOOT },
47 { NC_("SV_FUNIT_STRINGS", "miles"), FieldUnit::MILE },
48 { NC_("SV_FUNIT_STRINGS", "mile"), FieldUnit::MILE },
49 { NC_("SV_FUNIT_STRINGS", "ch"), FieldUnit::CHAR },
50 { NC_("SV_FUNIT_STRINGS", "line"), FieldUnit::LINE },
51 { NC_("SV_FUNIT_STRINGS", "pixels"), FieldUnit::PIXEL },
52 { NC_("SV_FUNIT_STRINGS", "pixel"), FieldUnit::PIXEL },
53 /* To translators: degree */
54 { NC_("SV_FUNIT_STRINGS", "°"), FieldUnit::DEGREE },
55 { NC_("SV_FUNIT_STRINGS", "sec"), FieldUnit::SECOND },
56 // To translators: This is the last entry of the sequence of measurement unit names
57 { NC_("SV_FUNIT_STRINGS", "ms"), FieldUnit::MILLISECOND }
60 #endif // INCLUDED_VCL_INC_UNITS_HRC
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */