sendSuggestion($zeeguu) {
        let word = $zeeguu.children(config.HTML_ORIGINAL).text();
        let context = Translator._getContext($zeeguu.get(0));
        let url = window.location.href;
        let title = $(config.HTML_ID_ARTICLE_TITLE).text();
        let translation = $zeeguu.children(config.HTML_TRANSLATED).attr(config.HTML_ATTRIBUTE_SUGGESTION);

        // Launch Zeeguu request to supply translation suggestion.
        ZeeguuRequests.post(POST_TRANSLATION_SUGGESTION + '/' + this.from_language + '/' + this.to_language,
            {word: word, context: context, url: url, title: title, translation: translation});

        UserActivityLogger.log_article_interaction(USER_EVENT_SEND_SUGGESTION, word, {translation: translation});
    }
/**
     * Sends a post request to Zeeguu about a contribution/suggestion for a translation from user.
     * @param {jQuery} $zeeguu - Zeeguu reference tag for which to send the user suggestion.
     */
Sends a post request to Zeeguu about a contribution/suggestion for a translation from user.
@param {jQuery} $zeeguu - Zeeguu reference tag for which to send the user suggestion.
Sends a post request to Zeeguu about a contribution / suggestion for a translation from user . @param { jQuery } $zeeguu - Zeeguu reference tag for which to send the user suggestion .
sendSuggestion($zeeguu) {
        let word = $zeeguu.children(config.HTML_ORIGINAL).text();
        let context = Translator._getContext($zeeguu.get(0));
        let url = window.location.href;
        let title = $(config.HTML_ID_ARTICLE_TITLE).text();
        let translation = $zeeguu.children(config.HTML_TRANSLATED).attr(config.HTML_ATTRIBUTE_SUGGESTION);
        ZeeguuRequests.post(POST_TRANSLATION_SUGGESTION + '/' + this.from_language + '/' + this.to_language,
            {word: word, context: context, url: url, title: title, translation: translation});
        UserActivityLogger.log_article_interaction(USER_EVENT_SEND_SUGGESTION, word, {translation: translation});
    }
sendSuggestion ( $zeeguu ) { let word = $zeeguu . children ( config . HTML_ORIGINAL ) . text ( ) ; let context = Translator . _getContext ( $zeeguu . get ( 0 ) ) ; let url = window . location . href ; let title = $ ( config . HTML_ID_ARTICLE_TITLE ) . text ( ) ; let translation = $zeeguu . children ( config . HTML_TRANSLATED ) . attr ( config . HTML_ATTRIBUTE_SUGGESTION ) ; ZeeguuRequests . post ( POST_TRANSLATION_SUGGESTION + '/' + this . from_language + '/' + this . to_language , { word : word , context : context , url : url , title : title , translation : translation } ) ; UserActivityLogger . log_article_interaction ( USER_EVENT_SEND_SUGGESTION , word , { translation : translation } ) ; }
Sends a post request to Zeeguu about a contribution/suggestion for a translation from user.
Sends a post request to Zeeguu about a contribution / suggestion for a translation from user .
// Launch Zeeguu request to supply translation suggestion.