Skip to content

Commit

Permalink
Full text search: use the default postgres tsearch catalogs.
Browse files Browse the repository at this point in the history
(cherry picked from commit 27cd803)
  • Loading branch information
Arjan Scherpenisse committed Aug 17, 2012
1 parent 5661acb commit ceb0be0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/support/z_pivot_rsc.erl
Expand Up @@ -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".


Expand Down

0 comments on commit ceb0be0

Please sign in to comment.