Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
Namespaces | Functions
ajax_add_term_transl.php File Reference

Add a translation to term. More...

Namespaces

namespace  Lwt
 

Functions

 add_new_term_transl ($text, $lang, $data)
 
 edit_term_transl ($wid, $new_trans)
 

Detailed Description

Add a translation to term.

Call: inc/ajax_add_term_transl.php

Function Documentation

◆ add_new_term_transl()

add_new_term_transl (   $text,
  $lang,
  $data 
)

Add the translation for a new term.

Parameters
string$textAssociated text
int$langLanguage ID
string$dataTranslation
Returns
string Error message if failure, lowercase $text otherwise

@global string $tbpref Database table prefix

◆ edit_term_transl()

edit_term_transl (   $wid,
  $new_trans 
)

Edit the translation for an existing term.

Parameters
int$widWord ID
string$new_transNew translation
Returns
string WoTextLC, lower version of the word

@global string $tbpref Database table prefix