Permalink
Browse files

Full text search: use the default postgres tsearch catalogs.

(cherry picked from commit 27cd803)
  • Loading branch information...
1 parent 5661acb commit ceb0be0c42d6661cdf2322fb26c8e929c1bf4c3d @arjan arjan committed Aug 17, 2012
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/support/z_pivot_rsc.erl
@@ -643,12 +643,15 @@ is_lang_neutral(phone_emergency, _) -> true;
is_lang_neutral(_, _) -> false.
-%% @doc Translate a language to a language string as used by postgresql
-%% @todo Add more languages
-% pg_lang(en) -> "english";
-% pg_lang(nl) -> "dutch";
-% pg_lang(de) -> "german";
-% pg_lang(fr) -> "french";
+%% @doc Translate a language to a language string as used by
+%% postgresql. This language list is the intersection of the default
+%% catalogs of postgres with the languages supported by
+%% mod_translation.
+pg_lang(nl) -> "dutch";
+pg_lang(de) -> "german";
+pg_lang(fr) -> "french";
+pg_lang(es) -> "spanish";
+pg_lang(tr) -> "turkish";
pg_lang(_) -> "english".

0 comments on commit ceb0be0

Please sign in to comment.