Back to index

indicator-datetime  12.10.0
settings-shared.h
Go to the documentation of this file.
00001 /*
00002 An indicator to show date and time information.
00003 
00004 Copyright 2010 Canonical Ltd.
00005 
00006 Authors:
00007     Ted Gould <ted@canonical.com>
00008 
00009 This program is free software: you can redistribute it and/or modify it 
00010 under the terms of the GNU General Public License version 3, as published 
00011 by the Free Software Foundation.
00012 
00013 This program is distributed in the hope that it will be useful, but 
00014 WITHOUT ANY WARRANTY; without even the implied warranties of 
00015 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
00016 PURPOSE.  See the GNU General Public License for more details.
00017 
00018 You should have received a copy of the GNU General Public License along 
00019 with this program.  If not, see <http://www.gnu.org/licenses/>.
00020 */
00021 
00022 #ifndef __DATETIME_SETTINGS_SHARED_H__
00023 #define __DATETIME_SETTINGS_SHARED_H__
00024 
00025 #define SETTINGS_INTERFACE              "com.canonical.indicator.datetime"
00026 #define SETTINGS_SHOW_CLOCK_S           "show-clock"
00027 #define SETTINGS_TIME_FORMAT_S          "time-format"
00028 #define SETTINGS_SHOW_SECONDS_S         "show-seconds"
00029 #define SETTINGS_SHOW_DAY_S             "show-day"
00030 #define SETTINGS_SHOW_DATE_S            "show-date"
00031 #define SETTINGS_CUSTOM_TIME_FORMAT_S   "custom-time-format"
00032 #define SETTINGS_SHOW_CALENDAR_S        "show-calendar"
00033 #define SETTINGS_SHOW_WEEK_NUMBERS_S    "show-week-numbers"
00034 #define SETTINGS_SHOW_EVENTS_S          "show-events"
00035 #define SETTINGS_SHOW_LOCATIONS_S       "show-locations"
00036 #define SETTINGS_SHOW_DETECTED_S        "show-auto-detected-location"
00037 #define SETTINGS_LOCATIONS_S            "locations"
00038 #define SETTINGS_TIMEZONE_NAME_S        "timezone-name"
00039 
00040 enum {
00041        SETTINGS_TIME_LOCALE = 0,
00042        SETTINGS_TIME_12_HOUR = 1,
00043        SETTINGS_TIME_24_HOUR = 2,
00044        SETTINGS_TIME_CUSTOM = 3
00045 };
00046 
00047 /* TRANSLATORS: A format string for the strftime function for
00048    a clock showing 12-hour time without seconds. */
00049 #define DEFAULT_TIME_12_FORMAT   N_("%l:%M %p")
00050 
00051 /* TRANSLATORS: A format string for the strftime function for
00052    a clock showing 24-hour time without seconds. */
00053 #define DEFAULT_TIME_24_FORMAT   N_("%H:%M")
00054 
00055 #define DEFAULT_TIME_FORMAT          DEFAULT_TIME_12_FORMAT
00056 #define DEFAULT_TIME_FORMAT_WITH_DAY DEFAULT_TIME_12_FORMAT_WITH_DAY
00057 
00058 /* TRANSLATORS: A format string for the strftime function for
00059    a clock showing the day of the week and the time in 12-hour format without
00060    seconds. */
00061 #define DEFAULT_TIME_12_FORMAT_WITH_DAY N_("%a %l:%M %p")
00062 
00063 /* TRANSLATORS: A format string for the strftime function for
00064    a clock showing the day of the week and the time in 24-hour format without
00065    seconds.  Information is available in this Launchpad answer:
00066    https://answers.launchpad.net/ubuntu/+source/indicator-datetime/+question/149752 */
00067 #define DEFAULT_TIME_24_FORMAT_WITH_DAY N_("%a %H:%M")
00068 
00069 #endif