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) (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"), FUNIT_MM },
29 { NC_("SV_FUNIT_STRINGS", "cm"), FUNIT_CM },
30 { NC_("SV_FUNIT_STRINGS", "m"), FUNIT_M },
31 { NC_("SV_FUNIT_STRINGS", "km"), FUNIT_KM },
32 { NC_("SV_FUNIT_STRINGS", "twips"), FUNIT_TWIP },
33 { NC_("SV_FUNIT_STRINGS", "twip"), FUNIT_TWIP },
34 { NC_("SV_FUNIT_STRINGS", "pt"), FUNIT_POINT },
35 { NC_("SV_FUNIT_STRINGS", "pc"), FUNIT_PICA },
36 { NC_("SV_FUNIT_STRINGS", "\""), FUNIT_INCH },
37 { NC_("SV_FUNIT_STRINGS", "in"), FUNIT_INCH },
38 { NC_("SV_FUNIT_STRINGS", "inch"), FUNIT_INCH },
39 { NC_("SV_FUNIT_STRINGS", "'"), FUNIT_FOOT },
40 { NC_("SV_FUNIT_STRINGS", "ft"), FUNIT_FOOT },
41 { NC_("SV_FUNIT_STRINGS", "foot"), FUNIT_FOOT },
42 { NC_("SV_FUNIT_STRINGS", "feet"), FUNIT_FOOT },
43 { NC_("SV_FUNIT_STRINGS", "miles"), FUNIT_MILE },
44 { NC_("SV_FUNIT_STRINGS", "mile"), FUNIT_MILE },
45 { NC_("SV_FUNIT_STRINGS", "ch"), FUNIT_CHAR },
46 { NC_("SV_FUNIT_STRINGS", "line"), FUNIT_LINE },
47 { NC_("SV_FUNIT_STRINGS", "pixels"), FUNIT_PIXEL },
48 { NC_("SV_FUNIT_STRINGS", "pixel"), FUNIT_PIXEL },
49 /* To translators: degree */
50 { NC_("SV_FUNIT_STRINGS", "°"), FUNIT_DEGREE },
51 { NC_("SV_FUNIT_STRINGS", "sec"), FUNIT_SECOND },
52 // To translators: This is the last entry of the sequence of measurement unit names
53 { NC_("SV_FUNIT_STRINGS", "ms"), FUNIT_MILLISECOND }
56 #endif // INCLUDED_VCL_INC_UNITS_HRC
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */