Author Topic: Language problem again?!  (Read 4772 times)

0 Members and 1 Guest are viewing this topic.

Offline yanoo

  • Pre-Newbie
  • Posts: 9
    • View Profile
Language problem again?!
« on: April 08, 2003, 01:35:37 AM »
Hello!

I've downloaded an English language pack. I've installed it, and it works fine. However, most of my users are Vietnamese, so I tried to translate most of the stuff in the main.php into Vietnamese.  I've uploaded the new translated main.php, and the index page looks fine.... excepth when I try to click on anything, this message appears:

Quote
Warning: Cannot add header information - headers already sent by (output started at /usr/local/psa/home/vhosts/tieulamtruong.com/httpdocs/4images/lang/english/main.php:1) in /usr/local/psa/home/vhosts/tieulamtruong.com/httpdocs/4images/includes/sessions.php on line 85


And this happens not only in the sessions.php, but for login, logout, e.t.c...

So what does this "cannot add header information..." mean??

Please help!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Language problem again?!
« Reply #1 on: April 08, 2003, 01:47:54 AM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline yanoo

  • Pre-Newbie
  • Posts: 9
    • View Profile
Language problem again?!
« Reply #2 on: April 08, 2003, 02:34:36 AM »
well, I checked everywhere and don't seem to find any trailing spaces!
Hmm... I'll post my file up here... Ok, so you won't be able to understand the translated stuff ....and I'm sure this will show weird stuff after I post it b/c this forum doesn't support unicode, so I guess just ignore whatever is in between the " ";  please set the encoding to utf-8 and you and see more clearly!

...but... am I missing a semicolon or something somewhere?

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: main.php                                             *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7                                                  *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
 
/**************************************************************************
 *                                                                        *
 *    English translation by Thomas (http://www.japanreference.com)       *
 *                                                                        *
 *************************************************************************/

$lang['no_settings'] = "ERROR: Could not load configuration settings!";

//-----------------------------------------------------
//--- Templates ---------------------------------------
//-----------------------------------------------------
$lang['charset'] = "utf-8";
$lang['direction'] = "ltr";

//-----------------------------------------------------
//--- Userlevel ---------------------------------------
//-----------------------------------------------------
$lang['userlevel_admin'] = "Người quản trị";
$lang['userlevel_user'] = "Thành viên";
$lang['userlevel_guest'] = "Khách viếng thăm";

//-----------------------------------------------------
//--- Categories --------------------------------------
//-----------------------------------------------------
$lang['no_categories'] = "Không tìm thấy mục nào.";
$lang['no_images'] = "Không có hình ảnh trong mục này.";
$lang['select_category'] = "Chọn chuyên mục";

//-----------------------------------------------------
//--- Comments ----------------------------------------
//-----------------------------------------------------
$lang['comments'] = "Nhận xét:";
$lang['no_comments'] = "Không có bài nhận xét cho tấm ảnh này!";
$lang['comments_deactivated'] = "Chức năng nhận xét đã bị khóa!";
$lang['post_comment'] = "Đăng nhận xét";

//-----------------------------------------------------
//--- BBCode ------------------------------------------
//-----------------------------------------------------
$lang['bbcode'] = "BBCode";
$lang['tag_prompt'] = "Enter the text to be formatted:";
$lang['link_text_prompt'] = "Enter the text to be displayed for the link (optional)";
$lang['link_url_prompt'] = "Enter the full URL for the link";
$lang['link_email_prompt'] = "Enter the email address for the link";
$lang['list_type_prompt'] = "What type of list do you want? Enter '1' for a numbered list, enter 'a' for an alphabetical list, or leave blank for a list with bullet points.";
$lang['list_item_prompt'] = "Enter a list item. Leave the box empty or click 'Cancel' to complete the list.";

//-----------------------------------------------------
//--- Image Details -----------------------------------
//-----------------------------------------------------
$lang['name_required'] = "Xin vui lòng diền tên.";
$lang['headline_required'] = "Xin vui lòng điền chủ đề.";
$lang['comment_required'] = "Xin vui lòng ghi lời nhận xét.";
$lang['spamming'] = "Bạn không được đăng liên tục, xin vui lòng đợi 1 chút để đăng tiếp.";
$lang['download_error'] = "Lỗi khi đownload!";
$lang['register_download'] = "Bạn cần đăng ký để download hình.<br />&raquo; <a href=\"{url_register}\">Đăng ký bây giờ</a>";
$lang['voting_success'] = "Xin cám ơn bạn đã chấm điểm tấm hình này";
$lang['voting_error'] = "Sự đánh giá không hợp lý!";
$lang['already_voted'] = "Xin lỗi, bạn đã chấm điểm tấm hình này 1 lần trước rồi.";
$lang['prev_image'] = "Hình trước:";
$lang['next_image'] = "Hình kế tiếp:";
$lang['category'] = "Chuyên mục:";
$lang['description'] = "Lời chú thích:";
$lang['keywords'] = "Từ khóa:";
$lang['date'] = "Ngày gửi:";
$lang['hits'] = "Số lần xem:";
$lang['downloads'] = "Số Downloads:";
$lang['rating'] = "Điểm:";
$lang['votes'] = "Bình chọn";
$lang['file_size'] = "Kích thước:";
$lang['author'] = "Gửi bởi:";
$lang['name'] = "Tên:";
$lang['headline'] = "Chủ đề:";
$lang['comment'] = "Nhận xét:";
$lang['added_by'] = "Thêm bởi:";
$lang['allow_comments'] = "Cho phép nhận xét:";

// IPTC Tags
$lang['iptc_caption'] = "Caption:";
$lang['iptc_caption_writer'] = "Caption writer:";
$lang['iptc_headline'] = "Headline:";
$lang['iptc_special_instructions'] = "Special instructions:";
$lang['iptc_byline'] = "Byline:";
$lang['iptc_byline_title'] = "Byline title:";
$lang['iptc_credit'] = "Credit:";
$lang['iptc_source'] = "Source:";
$lang['iptc_object_name'] = "Object name:";
$lang['iptc_date_created'] = "Date created:";
$lang['iptc_city'] = "City:";
$lang['iptc_state'] = "State:";
$lang['iptc_country'] = "Country:";
$lang['iptc_original_transmission_reference'] = "Original transmission reference:";
$lang['iptc_category'] = "Category:";
$lang['iptc_supplemental_category'] = "Supplemental category:";
$lang['iptc_keyword'] = "Từ khóa:";
$lang['iptc_copyright_notice'] = "Bản quyền:";

//-----------------------------------------------------
//--- Postcards ---------------------------------------
//-----------------------------------------------------
$lang['send_postcard'] = "Gửi thiệp";
$lang['edit_postcard'] = "Sửa thông điệp";
$lang['preview_postcard'] = "Xem thiệp trước khi gửi";
$lang['bg_color'] = "Màu nền:";
$lang['border_color'] = "Màu khung:";
$lang['font_color'] = "Màu chữ:";
$lang['font_face'] = "Kiểu chữ:";
$lang['recipient'] = "Người nhận";
$lang['sender'] = "Người gửi";
$lang['send_postcard_emailsubject'] = "Bạn có thông điệp!";
$lang['send_postcard_success'] = "Cám ơn bạn! Thông điệp của bạn đã được gửi!";
$lang['back_to_gallery'] = "Trở về thư viện mẫu thiệp";
$lang['invalid_postcard_id'] = "ID của thiệp không hợp lý.";

//-----------------------------------------------------
//--- Top Images --------------------------------------
//-----------------------------------------------------
$lang['top_image_hits'] = "10 tấm hình được xem nhiều nhất";
$lang['top_image_downloads'] = "10 tấm hình được download nhiều nhất";
$lang['top_image_rating'] = "10 tấm hình được chấm điểm cao nhất";
$lang['top_image_votes'] = "10 tấm hình được bình chọn nhiều nhất";

//-----------------------------------------------------
//--- Users -------------------------------------------
//-----------------------------------------------------
$lang['send_password_emailsubject'] = "Gửi mật khẩu cho {site_name}";  // Mail subject for password.
$lang['update_email_emailsubject'] = "Cập nhật địa chỉ email cho {site_name}";    // Mail subject for activation code when changing email address
$lang['register_success_emailsubject'] = "Đăng ký với {site_name}";     // Mail subject for activation code
$lang['admin_activation_emailsubject'] = "Kích hoạt tài khoản";          // Mail subject for account activation by admin.
$lang['activation_success_emailsubject'] = "Tài khoản đã được kích hoạt";         // Mail subject after account activation by admin.

$lang['no_permission'] = "Bạn chưa đăng nhập, hoặc bạn không có quyền vào trang web này!";
$lang['already_registered'] = "Bạn đã đăng ký, nhưng đã quên mật khẩu. Xin vui lòng bấm vào <a href=\"{url_lost_password}\">đây</a>.";
$lang['username_exists'] = "Tên truy cập đã tồn tại.";
$lang['email_exists'] = "Địa chỉ email này đã tồn tại.";
$lang['invalid_email_format'] = "Xin vui lòng điền vào địa chỉ email hợp lý.";
$lang['register_success'] = "Bạn đã đăng ký thành công.  Bạn sẽ nhận được 1 email với mật mã kích hoạt.";
$lang['register_success_admin'] = "Bạn đã đăng ký thành công. Tài khoản của bạn chưa được kích hoạt.  Người quản trị cần kích hoạt tài khoản của bạn trước khi bạn có thể đăng nhập. Bạn sẽ nhận được tin nhắn khi tài khoản của bạn đã được kích hoạt.";
$lang['register_success_none'] = "Bạn đã đăng ký thành công.  Xin vui lòng đăng nhập.";
$lang['missing_activationkey'] = "Mật mã kích hoạt của bạn bị mất.";
$lang['invalid_activationkey'] = "Tài khoản của bạn không được kích hoạt. Xin vui lòng đăng ký lại.</>";
$lang['activation_success'] = "Xin cám ơn bạn.  Tài khoản của bạn đã được kích hoạt.  Xin vui lòng đăng nhập.";
$lang['general_error'] = "Hệ thống đã gặp lỗi.  Xin vui lòng <a href=javascript:history.go(-1)>quay lại</a> và thử lần nữa. Nếu bạn vẫn gặp trục trặc, xin vui lòng liên lạc với người quản trị.";
$lang['invalid_login'] = "Bạn đã cung cấp tên truy cập và mật khẩu sai.";
$lang['update_email_error'] = "Xin vui lòng điền lại địa chỉ email của bạn 1 lần nữa!";
$lang['update_email_confirm_error'] = "Địa chỉ email mà bạn cung cấp không hợp lý!";
$lang['update_profile_success'] = "Lý lịch của bạn đã được thay đổi!";
$lang['update_email_instruction'] = "Bạn đã đổi địa chỉ email, xin vui lòng check email của bạn để kích hoạt lại tài khoản. Mật mã kích hoạt đã được gửi đến địa chỉ email mới của bạn!";
$lang['update_email_admin_instruction'] = "Bạn đã đổi địa chỉ email, người quản trị cần phải kích hoạt lại tài khoản của bạn. Bạn sẽ nhận được tin nhắn khi tài khoản của bạn đã được kích hoạt.";
$lang['invalid_email'] = "Địa chỉ email không hợp lý.";
$lang['send_password_success'] = "Mật khẩu của bạn đã được gửi đến địa chỉ email của bạn.";
$lang['update_password_error'] = "Bạn đã điền mật khẩu sai.";
$lang['update_password_confirm_error'] = "2 mật khẩu bạn điền đều không đúng!";
$lang['update_password_success'] = "Mật khẩu của bạn đã được đổi.";
$lang['invalid_user_id'] = "Không tìm thấy thành viên này!";
$lang['emailuser_success'] = "Email đã được gửi";
$lang['send_email_to'] = "Gửi tin nhắn đến địa chỉ:";
$lang['subject'] = "Tiêu đề:";
$lang['message'] = "Tin nhắn:";
$lang['profile_of'] = "Lý lịch của thành viên:";
$lang['edit_profile_msg'] = "Cho phép bạn thay đổi lý lịch và mật khẩu của thành viên.";
$lang['edit_profile_email_msg'] = "<br />Lưu ý: Nếu bạn đổi địa chỉ email thì bạn cần phải kích hoạt lại tài khoản. Mật mã kích hoạt sẽ được gửi đến địa chỉ email mới của bạn.";
$lang['edit_profile_email_msg_admin'] = "<br />Lưu ý: Nếu bạn đổi địa chỉ email thì người quản trị cần phải kích hoạt lại tài khoản của bạn.";
$lang['join_date'] = "Ngày gia nhập:";
$lang['last_action'] = "Ngày truy cập cuối cùng:";
$lang['email'] = "Email:";
$lang['email_confirm'] = "Xác nhận email:";
$lang['homepage'] = "Homepage:";
$lang['icq'] = "ICQ:";
$lang['show_email'] = "Hiển thị địa chỉ email:";
$lang['allow_emails'] = "Nhận email của người quản trị:";
$lang['invisible'] = "Che giấu khi đang truy cập:";
$lang['optional_infos'] = "Không bắt buộc";
$lang['change_password'] = "Đổi mật khẩu";
$lang['old_password'] = "Mật khẩu cũ:";
$lang['new_password'] = "Mật khẩu mới:";
$lang['new_password_confirm'] = "Xác nhận mật khẩu mới:";
$lang['lost_password'] = "Điền mật khẩu lần nữa";
$lang['lost_password_msg'] = "Trong trường hợp bạn quên mật khẩu, bạn hãy điền địa chỉ email mà bạn đã dùng để đăng ký.";
$lang['user_name'] = "Tên truy cập:";
$lang['password'] = "Mật khẩu:";

$lang['register_msg'] = "Xin vui lòng điền tất cả các mục. Cung cấp địa chỉ email đúng để chúng tôi có thể gửi mật mã kích hoạt đến cho bạn.";
$lang['agreement'] = "Những quy định khi tham gia:";
$lang['agreement_terms'] = "
      While the administrators of this website will attempt to remove or to edit objectionable material as fast as possible, it is impossible to review each post. Therefore you acknowledge that all messages posted on this website solely express their authors views and opinions. Therefore, administrators, moderators or webmasters can only be held liable for their own posts. <br /><br /> You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate any applicable laws. You agree that the webmaster and administrator of this website have the right to remove or edit any topic at any time they see fit. As user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster and administrator cannot be held responsible for hacking attempts that may lead to the data being compromised. <br /><br /> This system uses cookies to store information on your local computer. These cookies do not contain any personal data, they only serve to provide you with information tailored to your individual needs.<br /><br /> By clicking the button below you accept these terms of service.";

$lang['agree'] = "Đăng ký";
$lang['agree_not'] = "Thoát";
$lang['show_user_images'] = "Hiển thị tất cả các hình ảnh thêm bởi {user_name}";

//-----------------------------------------------------
//--- Edit Image --------------------------------------
//-----------------------------------------------------
$lang['image_edit'] = "Edit image";
$lang['image_edit_success'] = "Image edited";
$lang['image_edit_error'] = "Error editing image";
$lang['image_delete'] = "Delete image";
$lang['image_delete_success'] = "Image deleted";
$lang['image_delete_error'] = "Error deleting image";
$lang['image_delete_confirm'] = "Do you want to delete this image file?";

//-----------------------------------------------------
//--- Edit Comments -----------------------------------
//-----------------------------------------------------
$lang['comment_edit'] = "Edit comment";
$lang['comment_edit_success'] = "Comment edited";
$lang['comment_edit_error'] = "Error editing comment.";
$lang['comment_delete'] = "Delete comment";
$lang['comment_delete_success'] = "Comment deleted";
$lang['comment_delete_error'] = "Error deleting comment";
$lang['comment_delete_confirm'] = "Delete this comment?";

//-----------------------------------------------------
//--- Image Upload ------------------------------------
//-----------------------------------------------------
$lang['field_required'] = "Please fill out the {field_name} field!";
$lang['kb'] = "kb";
$lang['px'] = "px";
$lang['file_upload_error'] = "Error uploading image file";
$lang['thumb_upload_error'] = "Error uploading thumbnail file";
$lang['invalid_file_type'] = "Invalid file type";
$lang['invalid_image_width'] = "Image width invalid";
$lang['invalid_image_height'] = "Image heigth invalid";
$lang['invalid_file_size'] = "Image size invalid";
$lang['image_add_success'] = "Image added";
$lang['allowed_mediatypes_desc'] = "Valid extensions: ";
$lang['keywords_ext'] = "Keywords:<br /><span class=\"smalltext\">Keywords must be seperated by spaces.</span>";
$lang['user_upload'] = "Upload Image";
$lang['image_name'] = "Image Name:";
$lang['media_file'] = "Image File:";
$lang['thumb_file'] = "Thumbnail File:";
$lang['max_filesize'] = "Max. File Size: ";
$lang['max_imagewidth'] = "Max. Image Width: ";
$lang['max_imageheight'] = "Max. Image Height: ";
$lang['image_file_required'] = "Select an Image File!";
$lang['new_upload_emailsubject'] = "New Upload to {site_name}";
$lang['new_upload_validate_desc'] = "Your image will be validated once it has been reviewed.";

//-----------------------------------------------------
//--- Lightbox ----------------------------------------
//-----------------------------------------------------
$lang['lightbox_no_images'] = "Không có hình ảnh lưu trữ trong hộp của bạn.";
$lang['lightbox_add_success'] = "Đã thêm hình.";
$lang['lightbox_add_error'] = "Lỗi khi thêm hình!";
$lang['lightbox_remove_success'] = "Hình đã được xóa khỏi hộp lưu trữ của bạn.";
$lang['lightbox_remove_error'] = "Lỗi khi xóa hình!";
$lang['lightbox_register'] = "Để dùng hộp lưu trữ, bạn cần đăng ký thành viên.<br />&raquo; <a href=\"{url_register}\">Đăng ký bây giờ</a>";
$lang['lightbox_delete_success'] = "Hộp lưu trữ đã được xóa.";
$lang['lightbox_delete_error'] = "Lỗi khi xóa hộp lưu trữ!";
$lang['delete_lightbox'] = "Xóa hộp lưu trữ";
$lang['lighbox_lastaction'] = "Hộp lưu trữ được cập nhật lần cuối:";
$lang['delete_lightbox_confirm'] = "Bạn có thật sự muốn xóa hộp lưu trữ của bạn?";

//-----------------------------------------------------
//--- Misc --------------------------------------------
//-----------------------------------------------------
$lang['new'] = "mới"; // Marks categories and images as "NEW"
$lang['home'] = "Trang chính";
$lang['categories'] = "Chuyên mục";
$lang['sub_categories'] = "Mục phụ";
$lang['lightbox'] = "Hộp lưu trữ riêng của bạn";
$lang['error'] = "Lỗi!!";
$lang['register'] = "Đăng ký";
$lang['control_panel'] = "Chọn lựa";
$lang['profile'] = "Lý lịch";
$lang['search'] = "Tìm kiếm";
$lang['advanced_search'] = "Tìm kiếm kỹ hơn";
$lang['new_images'] = "Hình mới";
$lang['top_images'] = "Hình được đánh giá cao";
$lang['registered_user'] = "Thành viên";
$lang['logout'] = "Đăng xuất";
$lang['login'] = "Đăng nhập";
$lang['lang_auto_login'] = "Bạn muốn đăng nhập tự động vào lần tới?";
$lang['lost_password'] = "Quên mật khẩu";
$lang['random_image'] = "Hình ngẫu nhiên";
$lang['site_stats'] = "<b>{total_images}</b> hình trong <b>{total_categories}</b> chuyên mục.";
$lang['lang_loggedin_msg'] = "Bạn đang đăng nhập với tài khoản: <b>{loggedin_user_name}</b>";
$lang['go'] = "Go";
$lang['submit'] = "Gửi";
$lang['reset'] = "Làm lại";
$lang['save'] = "Chấp nhận";
$lang['yes'] = "Đồng ý";
$lang['no'] = "Không đồng ý";
$lang['images_per_page'] = "Hình trong mỗi trang:";
$lang['user_online'] = "Các thành viên đang đăng nhập hiện tại: {num_total_online}";
$lang['user_online_detail'] = "Hiện tại có <b>{num_registered_online}</b> thành viên ({num_invisible_online} trong số đó đang đăng nhập bí ẩn) và <b>{num_guests_online}</b> khách đang truy cập.";
$lang['lostfield_error'] = "Xin vui lòng điền tất cả các mục!";
$lang['rate'] = "Chấm điểm";

//-----------------------------------------------------
//--- Paging ------------------------------------------
//-----------------------------------------------------
$lang['paging_stats'] = "Tìm thấy: {total_cat_images} hình trong {total_pages} trang. Hiển thị: hình {first_page} đến {last_page}.";
$lang['paging_next'] = "&raquo;";
$lang['paging_previous'] = "&laquo;";
$lang['paging_lastpage'] = "Trang cuối &raquo;";
$lang['paging_firstpage'] = "&laquo; Trang đầu";

//-----------------------------------------------------
//--- Search ------------------------------------------
//-----------------------------------------------------
$lang['search_no_results'] = "Không tìm thấy mục nào.";
$lang['search_by_keyword'] = "Tìm kiếm theo từ khóa:<br /><span class=\"smalltext\">Hãy dùng những từ như AND, OR và NOT để miêu tả chi tiết hơn. Dùng dấu (*) để miêu tả tất cả những chữ tương tự.</span>";
$lang['search_by_username'] = "Tìm kiếm theo tên truy cập:<br /><span class=\"smalltext\">Dùng dấu (*) để miêu tả tất cả những chữ tương tự.</span>";
$lang['search_terms'] = "Từ cần kiếm:";
$lang['search_fields'] = "Tìm kiếm trong các mục này:";
$lang['new_images_only'] = "Hiển thị hình thôi";
$lang['all_fields'] = "Tất cả các mục";
$lang['name_only'] = "Tên của hình thôi";
$lang['description_only'] = "Các từ miêu tả thôi";
$lang['keywords_only'] = "Từ khóa thôi";
$lang['and'] = "AND";
$lang['or'] = "OR";

//-----------------------------------------------------
//--- New Images --------------------------------------
//-----------------------------------------------------
$lang['no_new_images'] = "Hiện tại không có hình ảnh nào mới.";

//-----------------------------------------------------
//--- Admin Links -------------------------------------
//-----------------------------------------------------
$lang['edit'] = "[Sửa]";
$lang['delete'] = "[Xóa]";
?>