summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-11 04:58:06 +0000
committerDavid Robillard <d@drobilla.net>2011-02-11 04:58:06 +0000
commit38de3875424f70f89d617c228e0815680e300700 (patch)
treec848d26d01d5eb715c1bb0df924998e14774077f /slv2
parentad69b46ed592c3f8b680f29653702b03b0559963 (diff)
downloadlilv-38de3875424f70f89d617c228e0815680e300700.tar.gz
lilv-38de3875424f70f89d617c228e0815680e300700.tar.bz2
lilv-38de3875424f70f89d617c228e0815680e300700.zip
Better, tested, i18n system.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2916 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r--slv2/plugin.h12
-rw-r--r--slv2/port.h10
-rw-r--r--slv2/world.h9
3 files changed, 9 insertions, 22 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h
index e94b4f3..e936bf4 100644
--- a/slv2/plugin.h
+++ b/slv2/plugin.h
@@ -178,18 +178,6 @@ SLV2Values
slv2_plugin_get_value_by_qname(SLV2Plugin p,
const char* predicate);
-/** Get a translated value associated with the plugin in a plugin's data files.
- *
- * This function is identical to slv2_plugin_get_value, but takes a QName
- * string parameter for a predicate instead of an SLV2Value, which may be
- * more convenient. It returns the value translated to the current language
- * if possible.
- */
-SLV2_API
-SLV2Values
-slv2_plugin_get_value_by_qname_i18n(SLV2Plugin p,
- const char* predicate);
-
/** Get a value associated with some subject in a plugin's data files.
*
* Returns the ?object of all triples found of the form:
diff --git a/slv2/port.h b/slv2/port.h
index 0f3f2da..de34946 100644
--- a/slv2/port.h
+++ b/slv2/port.h
@@ -52,16 +52,6 @@ slv2_port_get_value_by_qname(SLV2Plugin plugin,
SLV2Port port,
const char* property_uri);
-/** Port analog of slv2_plugin_get_value_by_qname_i18n.
- *
- * Time = Query
- */
-SLV2_API
-SLV2Values
-slv2_port_get_value_by_qname_i18n(SLV2Plugin plugin,
- SLV2Port port,
- const char* property_uri);
-
/** Return the LV2 port properties of a port.
*
* Time = Query
diff --git a/slv2/world.h b/slv2/world.h
index de3bf04..15dddf8 100644
--- a/slv2/world.h
+++ b/slv2/world.h
@@ -52,6 +52,15 @@ SLV2_API
SLV2World
slv2_world_new(void);
+/** Enable/disable language filtering for @a world.
+ * With filtering enabled, SLV2 will automatically return the best value(s)
+ * for the current LANG. With filtering disabled, all matching values will
+ * be returned regardless of language tag. Filtering is enabled by default.
+ */
+SLV2_API
+void
+slv2_world_filter_language(SLV2World world, bool filter);
+
/** Destroy the world, mwahaha.
*
* NB: Destroying the world will leave dangling references in any plugin lists,