diff options
author | Don Scorgie <dscorgie@src.gnome.org> | 2006-07-24 19:07:05 +0000 |
---|---|---|
committer | Don Scorgie <dscorgie@src.gnome.org> | 2006-07-24 19:07:05 +0000 |
commit | 05936fbdfe7f31bee542532c0ae43095f5969af1 (patch) | |
tree | 2f5410c868d6cca0d1d2c7de18ed0900e505e578 | |
parent | e912042367f726b87fe1c2015138ca0b53011f5a (diff) | |
download | yelp-05936fbdfe7f31bee542532c0ae43095f5969af1.tar.gz |
Allow online search to point to localised forums
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/yelp-search-pager.c | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -6,7 +6,10 @@ repeating the search online at the GNOME support forums Additionally: Allow better translation of the message Allow translation of the site name - + Additionally (2): Allow online search locations to be + translated to point to support sites + in a native language + 2006-07-23 Brent Smith <gnome@nextreality.net> diff --git a/src/yelp-search-pager.c b/src/yelp-search-pager.c index c948087c..d0a5d961 100644 --- a/src/yelp-search-pager.c +++ b/src/yelp-search-pager.c @@ -66,9 +66,12 @@ typedef struct _SearchContainer SearchContainer; #define YELP_SEARCH_PAGER_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), YELP_TYPE_SEARCH_PAGER, YelpSearchPagerPriv)) -#define ONLINE_CHECK_BEFORE "http://gnomesupport.org/forums/search.php?search_keywords=" +/* TRANSLATORS: If you know of a forum in your own language, please + * change this URL to the type required for a search of the site. + * The %s argument is the search terms + */ +#define ONLINE_URL N_("http://gnomesupport.org/forums/search.php?search_keywords=%s&search_cat=1") -#define ONLINE_CHECK_AFTER "&search_cat=1" #define ONLINE_NAME N_("the GNOME Support Forums") struct _YelpSearchPagerPriv { @@ -770,8 +773,7 @@ process_xslt (YelpSearchPager *pager) g_free(text); } - check = g_strconcat (ONLINE_CHECK_BEFORE, priv->search_terms, ONLINE_CHECK_AFTER, - NULL); + check = g_strdup_printf (ONLINE_URL, priv->search_terms); /* TRANSLATORS: Please don't do anything funny with the * format arguement. It isn't really going through a printf |