コード例 #1
0
function show_compose_to_user ($receiver_id) {
	global $charset;
	$html = get_lang('To').':&nbsp;<strong>'.GetFullUserName($receiver_id).'</strong>';
	$default['title'] = api_xml_http_response_encode(get_lang('EnterTitle'));
	$default['users'] = array($receiver_id);
	$html .= manage_form($default);
    return $html;
}
コード例 #2
0
function show_compose_to_user($receiver_id)
{
    $userInfo = api_get_user_info($receiver_id);
    $html = get_lang('To') . ':&nbsp;<strong>' . $userInfo['complete_name'] . '</strong>';
    $default['title'] = api_xml_http_response_encode(get_lang('EnterTitle'));
    $default['users'] = array($receiver_id);
    $html .= manage_form($default);
    return $html;
}
コード例 #3
0
ファイル: index.php プロジェクト: cpeel/dproofreaders-shadow
                        echo "<p><a href='{$translate_url}'>" . _("Back to the Translation Center") . "</a></p>";
                    } else {
                        if ($func == "upload") {
                            $locale = validate_locale($_REQUEST['locale']);
                            do_upload($locale);
                            echo "<p><a href='{$translate_url}?func=manage&amp;locale={$locale}'>" . sprintf(_("Back to manage locale %s"), $locale) . "</a></p>";
                        } else {
                            if ($func == "merge") {
                                $locale = validate_locale($_REQUEST['locale']);
                                $fuzzy = @$_REQUEST['fuzzy'];
                                do_merge($locale, $fuzzy);
                                echo "<p><a href='{$translate_url}?func=manage&amp;locale={$locale}'>" . sprintf(_("Back to manage locale %s"), $locale) . "</a></p>";
                            } else {
                                if ($func == "manage") {
                                    $locale = validate_locale($_REQUEST['locale']);
                                    manage_form($locale);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
function main_form()
{
    // display the list of languages with links to the downloadable PO files
    global $dyn_locales_dir, $translate_url, $may_manage, $allowed_functions;
    $pot_filename = "{$dyn_locales_dir}/messages.pot";
    echo "<h1>" . _("Translation Center") . "</h1>";