Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Add a translation to term. More...
Namespaces | |
Lwt | |
Functions | |
add_new_term_transl ($text, $lang, $data) | |
edit_term_transl ($wid, $new_trans) | |
do_ajax_check_update_translation ($wid, $new_trans) | |
do_ajax_add_term_transl ($wid, $data) | |
Add a translation to term.
add_new_term_transl | ( | $text, | |
$lang, | |||
$data | |||
) |
Add the translation for a new term.
string | $text | Associated text |
int | $lang | Language ID |
string | $data | Translation |
@global string $tbpref Database table prefix
@psalm-return list{int, string}|string
do_ajax_add_term_transl | ( | $wid, | |
$data | |||
) |
Add or edit a term translation.
int | $wid | Word ID |
string | $data | Translation |
do_ajax_check_update_translation | ( | $wid, | |
$new_trans | |||
) |
Edit term translation if it exists.
int | $wid | Word ID |
string | $new_trans | New translation |
@global string $tbpref
edit_term_transl | ( | $wid, | |
$new_trans | |||
) |
Edit the translation for an existing term.
int | $wid | Word ID |
string | $new_trans | New translation |
@global string $tbpref Database table prefix