Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x

This commit is contained in:
Sarven Capadisli 2009-11-06 15:26:38 +01:00
commit 63a07ede62
32 changed files with 10013 additions and 85743 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-02 10:50-0800\n" "POT-Creation-Date: 2009-11-06 13:16+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -6559,7 +6559,7 @@ msgstr ""
msgid "Problem saving notice. Too long." msgid "Problem saving notice. Too long."
msgstr "" msgstr ""
#: classes/User.php:319 classes/User.php:327 #: classes/User.php:319 classes/User.php:327 classes/User.php:334
#, php-format #, php-format
msgid "Welcome to %1$s, @%2$s!" msgid "Welcome to %1$s, @%2$s!"
msgstr "" msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -110,12 +110,21 @@ function readline_emulation($prompt)
function console_help() function console_help()
{ {
print "Welcome to StatusNet's interactive PHP console!\n"; print "Welcome to StatusNet's interactive PHP console!\n";
print "Type some PHP code and it'll run!\n"; print "Type some PHP code and it'll execute...\n";
print "\n"; print "\n";
print "Note that PHP is cranky and you can easily kill your session.\n"; print "Hint: return a value of any type to output it via var_export():\n";
print " \$profile = new Profile();\n";
print " \$profile->find();\n";
print " \$profile->fetch();\n";
print " return \$profile;\n";
print "\n";
print "Note that PHP is cranky and you can easily kill your session by mistyping.\n";
print "\n";
print "Type ctrl+D or enter 'exit' to exit.\n";
} }
print "StatusNet interactive PHP console... type ctrl+D or enter 'exit' to exit.\n";
$prompt = common_config('site', 'name') . '> '; $prompt = common_config('site', 'name') . '> ';
while (!feof(STDIN)) { while (!feof(STDIN)) {
$line = read_input_line($prompt); $line = read_input_line($prompt);
@ -124,14 +133,14 @@ while (!feof(STDIN)) {
break; break;
} elseif ($line !== '') { } elseif ($line !== '') {
try { try {
if ($line == 'exit') { if (trim($line) == 'exit') {
break; break;
} elseif ($line == 'help') { } elseif (trim($line) == 'help') {
console_help(); console_help();
continue; continue;
} }
// Let's do this // Let's do this!
$result = eval($line); $result = eval($line);
if ($result === false) { if ($result === false) {
// parse error // parse error