aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-stock.h
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2010-06-03 17:05:26 +0300
committerClaudio Saavedra <csaavedra@igalia.com>2010-06-03 17:17:06 +0300
commit18192db2f941314fd14053b380d00a2dec696c99 (patch)
tree8074ec76aa8d065db7cf3cc91314af0b04689983 /hildon/hildon-stock.h
parent622634ebf812dac6f93b653b575610745d60bfd8 (diff)
Add stock items for Hildon
These stock items are the strings that are provided by the library for standard buttons and actions. Up to now, the only possibility to use them in application side was to find out the logical ID and to make a call to a gettext() function. This had several disadvantages: - It doesn't provide guarantees of API or ABI stability. - Application developers need to find out the gettext context, which is internal to the library. - Calls to gettext() for hildon strings in application code causes unwanted strings to appear in the application pot file, which cause confusion among translators.
Diffstat (limited to 'hildon/hildon-stock.h')
-rw-r--r--hildon/hildon-stock.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/hildon/hildon-stock.h b/hildon/hildon-stock.h
new file mode 100644
index 0000000..0743148
--- /dev/null
+++ b/hildon/hildon-stock.h
@@ -0,0 +1,32 @@
+/*
+ * This file is part of the hildon library
+ *
+ * Copyright (C) 2010 Nokia Corporation, all rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#define HILDON_STOCK_DATE "hildon-stock-date"
+#define HILDON_STOCK_TIME "hildon-stock-time"
+#define HILDON_STOCK_STOP "hildon-stock-stop"
+#define HILDON_STOCK_YES "hildon-stock-yes"
+#define HILDON_STOCK_NO "hildon-stock-no"
+#define HILDON_STOCK_DONE "hildon-stock-done"
+#define HILDON_STOCK_SORT "hildon-stock-sort"
+#define HILDON_STOCK_FINISH "hildon-stock-finish"
+#define HILDON_STOCK_PREVIOUS "hildon-stock-previous"
+#define HILDON_STOCK_NEXT "hildon-stock-next"