anchor.diff:      load_translations/1,
       load_translations/2,
       table/1,
  -    set_context_table/1
  +    set_context_table/1,
  +    observe_module_ready/2
   ]).
   
   -include_lib("zotonic.hrl").
   
  --record(state, {table}).
  +-record(state, {table, host}).
   
   %%====================================================================
   %% API
  
positive.code: start_link(SiteProps) ->
      {host, Host} = proplists:lookup(host, SiteProps),
      Name = z_utils:name_for_host(?MODULE, Host),
      gen_server:start_link({local, Name}, ?MODULE, SiteProps, []).
  
  
  %% @doc Parse all .po files and reload the found translations in the trans server
  
negative.code: %% terminate. It should be the opposite of Module:init/1 and do any necessary
  %% cleaning up. When it returns, the gen_server terminates with Reason.
  %% The return value is ignored.
  terminate(_Reason, State) ->
      z_notifier:detach(module_ready, {?MODULE, observe_module_ready}, State#state.host),
      ok.
  
  %% @spec code_change(OldVsn, State, Extra) -> {ok, NewState}
  