@@ -171,12 +171,12 @@ EOF;
if (!empty($tinyib_uploads) && ($raw_post || !in_array('file', $hide_fields))) {
if (TINYIB_MAXKB > 0) {
$max_file_size_input_html = '';
- $max_file_size_rules_html = '' . sprintf(_('Maximum file size allowed is %s.'), TINYIB_MAXKBDESC) . '';
+ $max_file_size_rules_html = '' . sprintf(__('Maximum file size allowed is %s.'), TINYIB_MAXKBDESC) . '';
}
$filetypes_html = '' . supportedFileTypes() . '';
- $txt_file = _('File');
+ $txt_file = __('File');
$file_input_html = <<
@@ -190,8 +190,8 @@ EOF;
}
if (!empty($tinyib_embeds) && ($raw_post || !in_array('embed', $hide_fields))) {
- $txt_embed = _('Embed');
- $txt_embed_help = _('(paste a YouTube URL)');
+ $txt_embed = __('Embed');
+ $txt_embed_help = __('(paste a YouTube URL)');
$embed_input_html = <<
@@ -215,12 +215,12 @@ EOF;
$maxdimensions .= ' (new thread) or ' . TINYIB_MAXW . 'x' . TINYIB_MAXH . ' (reply)';
}
- $thumbnails_html = '' . sprintf(_('Images greater than %s will be thumbnailed.'), $maxdimensions) . '';
+ $thumbnails_html = '' . sprintf(__('Images greater than %s will be thumbnailed.'), $maxdimensions) . '';
}
$unique_posts = uniquePosts();
if ($unique_posts > 0) {
- $unique_posts_html = '' . printf(_('Currently %s unique user posts.'), $unique_posts) . '' . "\n";
+ $unique_posts_html = '' . printf(__('Currently %s unique user posts.'), $unique_posts) . '' . "\n";
}
$output = <<
@@ -247,7 +247,7 @@ EOF;
EOF;
}
if ($raw_post || !in_array('email', $hide_fields)) {
- $txt_email = _('E-mail');
+ $txt_email = __('E-mail');
$output .= <<
@@ -261,7 +261,7 @@ EOF;
EOF;
}
if ($raw_post || !in_array('subject', $hide_fields)) {
- $txt_subject = _('Subject');
+ $txt_subject = __('Subject');
$output .= <<
@@ -275,7 +275,7 @@ EOF;
EOF;
}
if ($raw_post || !in_array('message', $hide_fields)) {
- $txt_message = _('Message');
+ $txt_message = __('Message');
$output .= <<
@@ -294,8 +294,8 @@ EOF;
$embed_input_html
EOF;
if ($raw_post || !in_array('password', $hide_fields)) {
- $txt_password = _('Password');
- $txt_password_help = _('(for post and file deletion)');
+ $txt_password = __('Password');
+ $txt_password_help = __('(for post and file deletion)');
$output .= <<
@@ -369,7 +369,7 @@ function buildPost($post, $res) {
$direct_link = isEmbed($post["file_hex"]) ? "#" : (($res == TINYIB_RESPAGE ? "../" : "") . "src/" . $post["file"]);
if ($post['parent'] == TINYIB_NEWTHREAD && $post["file"] != '') {
- $filesize .= (isEmbed($post['file_hex']) ? _('Embed:') : _('File:')) . ' ';
+ $filesize .= (isEmbed($post['file_hex']) ? __('Embed:') : __('File:')) . ' ';
}
if (isEmbed($post["file_hex"])) {
@@ -466,13 +466,13 @@ EOF;
}
if ($post['parent'] == TINYIB_NEWTHREAD && $res == TINYIB_INDEXPAGE) {
- $return .= " [" . _("Reply") . "]";
+ $return .= " [" . __("Reply") . "]";
}
if (TINYIB_TRUNCATE > 0 && !$res && substr_count($post['message'], ' ') > TINYIB_TRUNCATE) { // Truncate messages on board index pages for readability
$br_offsets = strallpos($post['message'], ' ');
$post['message'] = substr($post['message'], 0, $br_offsets[TINYIB_TRUNCATE - 1]);
- $post['message'] .= ' ' . _('Post truncated. Click Reply to view.') . ' ';
+ $post['message'] .= ' ' . __('Post truncated. Click Reply to view.') . ' ';
}
$return .= <<
@@ -483,9 +483,9 @@ EOF;
if ($post['parent'] == TINYIB_NEWTHREAD) {
if ($res == TINYIB_INDEXPAGE && $post['omitted'] > 0) {
if ($post['omitted'] == 1) {
- $return .= '' . _('1 post omitted. Click Reply to view.') . '';
+ $return .= '' . __('1 post omitted. Click Reply to view.') . '';
} else {
- $return .= '' . sprintf(_('%d posts omitted. Click Reply to view.'), $post['omitted']) . '';
+ $return .= '' . sprintf(__('%d posts omitted. Click Reply to view.'), $post['omitted']) . '';
}
}
} else {
@@ -501,7 +501,7 @@ EOF;
}
function buildPage($htmlposts, $parent, $pages = 0, $thispage = 0) {
- $cataloglink = TINYIB_CATALOG ? ('[' . _('Catalog') . ']') : '';
+ $cataloglink = TINYIB_CATALOG ? ('[' . __('Catalog') . ']') : '';
$managelink = basename($_SERVER['PHP_SELF']) . "?manage";
$postingmode = "";
@@ -511,7 +511,7 @@ function buildPage($htmlposts, $parent, $pages = 0, $thispage = 0) {
$previous = ($thispage == 1) ? "index" : $thispage - 1;
$next = $thispage + 1;
- $pagelinks = ($thispage == 0) ? ('' . _('Previous') . ' | ') : (' | ');
+ $pagelinks = ($thispage == 0) ? ('' . __('Previous') . ' | ') : (' | ');
$pagelinks .= "";
for ($i = 0; $i <= $pages; $i++) {
@@ -524,7 +524,7 @@ function buildPage($htmlposts, $parent, $pages = 0, $thispage = 0) {
}
$pagelinks .= " | ";
- $pagelinks .= ($pages <= $thispage) ? ('' . _('Next') . ' | ') : (' | ');
+ $pagelinks .= ($pages <= $thispage) ? ('' . __('Next') . ' | ') : (' | ');
$pagenavigator = <<
@@ -547,9 +547,9 @@ EOF;
EOF;
}
} else if ($parent == -1) {
- $postingmode = '[Return]' . _('Catalog') . ' ';
+ $postingmode = '[Return]' . __('Catalog') . ' ';
} else {
- $postingmode = '[Return]' . _('Posting mode: Reply') . ' ';
+ $postingmode = '[Return]' . __('Posting mode: Reply') . ' ';
}
$postform = '';
@@ -557,9 +557,9 @@ EOF;
$postform = buildPostForm($parent);
}
- $txt_manage = _('Manage');
- $txt_style = _('Style');
- $txt_delete = _('Delete Post');
+ $txt_manage = __('Manage');
+ $txt_style = __('Style');
+ $txt_delete = __('Delete Post');
$body = <<
@@ -697,7 +697,7 @@ function adminBar() {
function managePage($text, $onload = '') {
$adminbar = adminBar();
- $txt_manage_mode = _('Manage mode');
+ $txt_manage_mode = __('Manage mode');
$body = <<
@@ -729,8 +729,8 @@ function manageOnLoad($page) {
}
function manageLogInForm() {
- $txt_login = _('Log In');
- $txt_login_prompt = _('Enter an administrator or moderator password');
+ $txt_login = __('Log In');
+ $txt_login_prompt = __('Enter an administrator or moderator password');
return <<
| | | | | | | |