#define MODEST_PROTOCOL_TYPE_INVALID -1
-typedef gchar * (*TranslationFunc) (gpointer userdata, ...);
+typedef gchar * (*TranslationFunc) (gpointer userdata, va_list args);
typedef struct _ModestProtocol ModestProtocol;
typedef struct _ModestProtocolClass ModestProtocolClass;
const gchar *id,
...);
+/**
+ * modest_protocol_va_get_translation:
+ * @protocol: a @ModestProtocol
+ * @id: the id for the translation set
+ * @args: a @va_list of the parameters for the translation
+ *
+ * applies the translation with parameters to obtain the full string expected.
+ *
+ * Returns: a newly allocated string
+ */
+gchar *
+modest_protocol_va_get_translation (ModestProtocol *protocol,
+ const gchar *id,
+ va_list args);
+
G_END_DECLS
#endif /* __MODEST_PROTOCOL_H__ */