Skip to content

Commit

Permalink
Delete src & debug functions, update lang files
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Jun 3, 2012
1 parent 786cc54 commit b3774b1
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 108 deletions.
Binary file removed img/src/image-error.psd
Binary file not shown.
Binary file modified lang/default.mo
Binary file not shown.
64 changes: 32 additions & 32 deletions lang/default.po
Expand Up @@ -2,9 +2,9 @@ msgid ""
msgstr ""
"Project-Id-Version: Meta Box Script For WordPress\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-03-02 14:08+0700\n"
"PO-Revision-Date: 2012-03-02 14:08+0700\n"
"Last-Translator: name <email@domain.com>\n"
"POT-Creation-Date: 2012-06-03 15:09+0700\n"
"PO-Revision-Date: 2012-06-03 15:09+0700\n"
"Last-Translator: Rilwis <rilwis@gmail.com>\n"
"Language-Team: Rilwis <rilwis@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -17,20 +17,16 @@ msgstr ""
"X-Poedit-SearchPath-0: ..\n"
"X-Poedit-SearchPath-1: ../inc/fields\n"

#: ../meta-box.php:334
msgid "+"
msgstr ""

#: ../meta-box.php:358
msgid "&#8211;"
#: ../meta-box.php:79
msgid "RW_Meta_Box Debug:"
msgstr ""

#: ../meta-box.php:691
msgid "RW_Meta_Box Debug:"
#: ../inc/classes/meta-box.php:316
msgid "+"
msgstr ""

#: ../inc/fields/color.php:45
msgid "Select a color"
#: ../inc/classes/meta-box.php:340
msgid "&#8211;"
msgstr ""

#: ../inc/fields/file.php:69
Expand Down Expand Up @@ -59,66 +55,70 @@ msgstr ""

#: ../inc/fields/file.php:87
msgctxt "file upload"
msgid "Add another file"
msgid "+ Add new file"
msgstr ""

#: ../inc/fields/image.php:68
#: ../inc/fields/image.php:75
msgid "Order saved"
msgstr ""

#: ../inc/fields/image.php:84
#: ../inc/fields/plupload-image.php:178
#: ../inc/fields/image.php:91
#: ../inc/fields/plupload-image.php:156
msgctxt "image upload"
msgid "Uploaded files"
msgstr ""

#: ../inc/fields/image.php:85
#: ../inc/fields/plupload-image.php:140
#: ../inc/fields/image.php:92
#: ../inc/fields/plupload-image.php:112
msgctxt "image upload"
msgid "Delete this file"
msgstr ""

#: ../inc/fields/image.php:86
#: ../inc/fields/plupload-image.php:141
#: ../inc/fields/image.php:93
#: ../inc/fields/plupload-image.php:113
msgctxt "image upload"
msgid "Delete"
msgstr ""

#: ../inc/fields/image.php:87
#: ../inc/fields/plupload-image.php:142
#: ../inc/fields/image.php:94
#: ../inc/fields/plupload-image.php:114
msgctxt "image upload"
msgid "Edit"
msgstr ""

#: ../inc/fields/image.php:88
#: ../inc/fields/plupload-image.php:179
#: ../inc/fields/image.php:95
#: ../inc/fields/plupload-image.php:157
msgctxt "image upload"
msgid "Upload files"
msgstr ""

#: ../inc/fields/image.php:89
#: ../inc/fields/plupload-image.php:180
#: ../inc/fields/image.php:96
msgctxt "image upload"
msgid "Add another file"
msgid "+ Add new image"
msgstr ""

#: ../inc/fields/plupload-image.php:112
#: ../inc/fields/plupload-image.php:95
msgctxt "image upload"
msgid "Allowed Image Files"
msgstr ""

#: ../inc/fields/plupload-image.php:183
#: ../inc/fields/plupload-image.php:160
msgctxt "image upload"
msgid "Drop images here"
msgstr ""

#: ../inc/fields/plupload-image.php:184
#: ../inc/fields/plupload-image.php:161
msgctxt "image upload"
msgid "or"
msgstr ""

#: ../inc/fields/plupload-image.php:185
#: ../inc/fields/plupload-image.php:162
msgctxt "image upload"
msgid "Select Files"
msgstr ""

#: ../inc/fields/thickbox-image.php:45
msgctxt "image upload"
msgid "Upload image"
msgstr ""

Binary file modified lang/vi.mo
Binary file not shown.
75 changes: 41 additions & 34 deletions lang/vi.po
Expand Up @@ -2,9 +2,9 @@ msgid ""
msgstr ""
"Project-Id-Version: Meta Box Script For WordPress\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-03-02 14:08+0700\n"
"PO-Revision-Date: 2012-03-02 14:08+0700\n"
"Last-Translator: name <email@domain.com>\n"
"POT-Creation-Date: 2012-06-03 15:10+0700\n"
"PO-Revision-Date: 2012-06-03 15:10+0700\n"
"Last-Translator: Rilwis <rilwis@gmail.com>\n"
"Language-Team: Rilwis <rilwis@gmail.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -17,22 +17,18 @@ msgstr ""
"X-Poedit-SearchPath-0: ..\n"
"X-Poedit-SearchPath-1: ../inc/fields\n"

#: ../meta-box.php:334
msgid "+"
#: ../meta-box.php:79
msgid "RW_Meta_Box Debug:"
msgstr ""

#: ../meta-box.php:358
msgid "&#8211;"
#: ../inc/classes/meta-box.php:316
msgid "+"
msgstr ""

#: ../meta-box.php:691
msgid "RW_Meta_Box Debug:"
#: ../inc/classes/meta-box.php:340
msgid "&#8211;"
msgstr ""

#: ../inc/fields/color.php:45
msgid "Select a color"
msgstr "Chọn một màu"

#: ../inc/fields/file.php:69
msgid "Error: Cannot delete file"
msgstr "Lỗi: Không xóa được file"
Expand All @@ -59,66 +55,77 @@ msgstr "Tải file"

#: ../inc/fields/file.php:87
msgctxt "file upload"
msgid "Add another file"
msgstr "Thêm file mới"
msgid "+ Add new file"
msgstr "+ Thêm file mới"

#: ../inc/fields/image.php:68
#: ../inc/fields/image.php:75
msgid "Order saved"
msgstr "Đã lưu thứ tự"

#: ../inc/fields/image.php:84
#: ../inc/fields/plupload-image.php:178
#: ../inc/fields/image.php:91
#: ../inc/fields/plupload-image.php:156
msgctxt "image upload"
msgid "Uploaded files"
msgstr "Các file đã tải lên"

#: ../inc/fields/image.php:85
#: ../inc/fields/plupload-image.php:140
#: ../inc/fields/image.php:92
#: ../inc/fields/plupload-image.php:112
msgctxt "image upload"
msgid "Delete this file"
msgstr "Xóa file"

#: ../inc/fields/image.php:86
#: ../inc/fields/plupload-image.php:141
#: ../inc/fields/image.php:93
#: ../inc/fields/plupload-image.php:113
msgctxt "image upload"
msgid "Delete"
msgstr "Xóa"

#: ../inc/fields/image.php:87
#: ../inc/fields/plupload-image.php:142
#: ../inc/fields/image.php:94
#: ../inc/fields/plupload-image.php:114
msgctxt "image upload"
msgid "Edit"
msgstr "Sửa"

#: ../inc/fields/image.php:88
#: ../inc/fields/plupload-image.php:179
#: ../inc/fields/image.php:95
#: ../inc/fields/plupload-image.php:157
msgctxt "image upload"
msgid "Upload files"
msgstr "Tải file"

#: ../inc/fields/image.php:89
#: ../inc/fields/plupload-image.php:180
#: ../inc/fields/image.php:96
msgctxt "image upload"
msgid "Add another file"
msgstr "Thêm file mới"
msgid "+ Add new image"
msgstr "+ Thêm hình mới"

#: ../inc/fields/plupload-image.php:112
#: ../inc/fields/plupload-image.php:95
msgctxt "image upload"
msgid "Allowed Image Files"
msgstr "Các file hình ảnh được cho phép"

#: ../inc/fields/plupload-image.php:183
#: ../inc/fields/plupload-image.php:160
msgctxt "image upload"
msgid "Drop images here"
msgstr "Kéo thả hình ảnh vào đây"

#: ../inc/fields/plupload-image.php:184
#: ../inc/fields/plupload-image.php:161
msgctxt "image upload"
msgid "or"
msgstr "hoặc"

#: ../inc/fields/plupload-image.php:185
#: ../inc/fields/plupload-image.php:162
msgctxt "image upload"
msgid "Select Files"
msgstr "Chọn file"

#: ../inc/fields/thickbox-image.php:45
#, fuzzy
msgctxt "image upload"
msgid "Upload image"
msgstr "Tải file"

#~ msgid "Select a color"
#~ msgstr "Chọn một màu"
#~ msgctxt "image upload"

#~ msgid "Add another file"
#~ msgstr "Thêm file mới"
43 changes: 1 addition & 42 deletions meta-box.php
Expand Up @@ -45,45 +45,4 @@

// Include plugin main file
require_once RWMB_CLASSES_DIR . 'meta-box.php';
}


/**
* Adds [whatever] to the global debug array
*
* @param mixed $input
* @param string $print_or_export
*
* @return array
*/
function rwmb_debug( $input, $print_or_export = 'print' )
{
global $rwmb_debug;

$html = 'print' === $print_or_export ? print_r( $input, true ) : var_export( $input, true );

return $rwmb_debug[] = $html;
}

/**
* Prints or exports the content of the global debug array at the 'shutdown' hook
*
* @return void
*/
function rwmb_debug_print()
{
global $rwmb_debug;
if ( ! $rwmb_debug || ( is_user_logged_in() && is_user_admin() ) )
return;

$html = '<h3>' . __( 'RW_Meta_Box Debug:', 'rwmb' ) . '</h3><pre>';
foreach ( $rwmb_debug as $debug )
{
$html .= "{$debug}<hr />";
}
$html .= '</pre>';

die( $html );
}

add_action( 'shutdown', 'rwmb_debug_print', 999 );
}

0 comments on commit b3774b1

Please sign in to comment.