switch($data->language) { case 'ja': ?>Platz [プラッツ] break; case 'de': ?>Platz break; default: #en ?>Platz } ?>
$path = '/platz/' . $data->category; $que = pg_query_params($db, 'SELECT * FROM categories WHERE path = $1 AND language = $2 AND suspended = FALSE', array($path, $data->language)); if($res = pg_fetch_object($que)) { $name = $res->name; $description = $res->description; } else { $que = pg_query_params($db, 'SELECT * FROM categories WHERE path = $1 AND language = $2 AND suspended = FALSE', array($path, 'en')); if($res = pg_fetch_object($que)) { $name = $res->name; $description = $res->description; } else { $que = pg_query_params($db, 'SELECT * FROM categories WHERE path = $1 AND suspended = FALSE', array($path)); if($res = pg_fetch_object($que)) { $name = $res->name; $description = $res->description; } else { $name = $data->category; $description = ''; } } } ?> if($data->reply > 0) { ?>switch($data->language) { case 'ja': ?>の#への返信 break; case 'de': ?>Zu # von zu antworten break; default: #en ?>Reply to # of } ?>
} else { ?>switch($data->language) { case 'ja': ?>への投稿 break; case 'de': ?>Zu zu schreiben break; default: #en ?>Post to } ?>
} ?> $que = pg_query_params($db, 'SELECT * FROM platz WHERE category = $1 AND id = $2', array($data->category, $data->reply)); ?> while($res = pg_fetch_object($que)) { ?>#:
switch($data->language) { case 'ja': ?>完了 break; case 'de': ?>Abschluss break; default: #en ?>Done } ?>
} else if($data->check) { ?>switch($data->language) { case 'ja': ?>確認 break; case 'de': ?>Bestätigung break; default: #en ?>Confirm } ?>
} else { ?>switch($data->language) { case 'ja': ?>編集 break; case 'de': ?>Redaktion break; default: #en ?>Edit } ?>
} ?> if($data->success) { ?>switch($data->language) { case 'ja': ?>投稿が完了しました。 break; case 'de': ?>Erfolg Ihre Nachricht zu schreiben! break; default: #en ?>Success to post! } ?>
} else if($data->confirm) { ?>switch($data->language) { case 'ja': ?>投稿に失敗しました。 break; case 'de': ?>Misserfolg Ihre Nachricht zu schreiben! break; default: #en ?>Failure to post! } ?>
} else if($data->check) { ?>switch($data->language) { case 'ja': ?>以下の通り投稿しますか? break; case 'de': ?>Schreiben Sie gewiss im Folgende? break; default: #en ?>Do you post as below certainly? } ?>
} else if($data->edit) { ?>switch($data->language) { case 'ja': ?>エラーがあります。訂正してください。 break; case 'de': ?>Es gibt Fehler. Bitte korrigieren es richtig. break; default: #en ?>There are errors. Please change it correctly. } ?>
} ?> if($data->error_1) { ?>switch($data->language) { case 'ja': ?>投稿するにはログインしてください。 break; case 'de': ?>Entschuldigung. Sie brauchen Login, um hier zu schreiben. break; default: #en ?>Sorry. You need to log in in order to post here. } ?>
} ?> if($data->error_2) { ?>switch($data->language) { case 'ja': ?>題名の入力内容を確認してください。 break; case 'de': ?>Bitte checken den Inhalt im Titel. break; default: #en ?>Please check the content in the Subject. } ?>
} ?> if($data->error_3) { ?>switch($data->language) { case 'ja': ?>メッセージの入力内容を確認してください。 break; case 'de': ?>Bitte checken den Inhalt in der Nachricht. break; default: #en ?>Please check the content in the Message. } ?>
} ?> if($data->check && !$data->success) { ?>