JezK
Edit File: lang-admin.php
<?php // Translate Admin Area Oketheme function admin_translate_text( $translated ) { $text = array( 'lang_product_name' => 'Product', 'lang_product_addnew' => 'Add New Product', 'lang_product_edit' => 'Edit Product', 'lang_product_view' => 'View Product', 'lang_product_search' => 'Search Product', 'lang_product_notfound' => 'Product Not Found', 'lang_product_notrash' => 'Not Found in Trash', 'lang_product_info' => 'Product Info', 'lang_kategori_name' => 'Categories', 'lang_kategori_search' => 'Search Categories', 'lang_kategori_all' => 'All Categories', 'lang_kategori_parent' => 'Parent Category', 'lang_kategori_edit' => 'Edit Category', 'lang_kategori_update' => 'Update Category', 'lang_kategori_addnew' => 'Add New Category', 'lang_kategori_new' => 'New Category Name', 'lang_noprice' => 'Price not Available', 'lang_norate' => 'Rating not Available', 'lang_top_menu' => 'Top Menu', 'lang_cuz_note' => '<b>Attention:</b> Some features cannot be set from this Customizer page. Please set the theme options provided.', 'lang_footer_left' => 'Footer Widget Area Left', 'lang_footer_middle' => 'Footer Widget Area Middle', 'lang_footer_right' => 'Footer Widget Area Right', 'lang_footer_desc' => 'Drag and drop widgets into this area', 'lang_pmeta_title' => 'Product Information', 'lang_pmeta_link_aff_name' => 'Affiliate Link', 'lang_pmeta_link_aff_desc' => 'Enter product affiliate link', 'lang_pmeta_vendor_name' => 'Vendor', 'lang_pmeta_vendor_desc' => 'Choose an affiliate vendor<br/><i>*<b>Vendor not available?</b> Add new vendors to the menu', 'lang_pmeta_vendor_select' => 'Please select a vendor', 'lang_pmeta_img_aff_name' => 'Images', 'lang_pmeta_img_aff_desc' => 'Enter the product image URL link', 'lang_pmeta_img_aff_media' => 'Select a product image', 'lang_pmeta_img_media_check'=> 'Tick, to upload an image from the device or select from the media', 'lang_pmeta_harga_name' => 'Price', 'lang_pmeta_harga_desc' => 'Enter the price of the product', 'lang_pmeta_rating_name' => 'Rating', 'lang_pmeta_rating_desc' => 'Select a product rating. <i>*If not specified then random display will be displayed</i>', 'lang_pmeta_desc_aff_name' => 'Description', 'lang_pmeta_desc_aff_desc' => 'Write a product description', 'long_pmeta_desc_aff_check' => 'Tick, for the writing of a more complete product description', 'lang_pmeta_video_name' => 'Video', 'lang_pmeta_video_desc' => 'Add Vimeo or Youtube video url', 'lang_og_data_success' => 'Successfully retrieving data and filling in fields automatically...', 'lang_og_data_failed' => 'Sorry, failed to retrieve data, redo or fill in the fields manually...', 'lang_og_token_empty' => 'Sorry, enter the Opengraphr token key to use this feature. Set on', ); $text_id = array( 'lang_product_name' => 'Produk', 'lang_product_addnew' => 'Tambah Produk Baru', 'lang_product_edit' => 'Edit Produk', 'lang_product_view' => 'Lihat Produk', 'lang_product_search' => 'Cari Produk', 'lang_product_notfound' => 'Produk tidak ditemukan', 'lang_product_notrash' => 'Tidak ditemukan di sampah', 'lang_product_info' => 'Info Produk', 'lang_kategori_name' => 'Kategori', 'lang_kategori_search' => 'Cari Kategori', 'lang_kategori_all' => 'Semua Kategori', 'lang_kategori_parent' => 'Parent Kategori', 'lang_kategori_edit' => 'Edit Kategori', 'lang_kategori_update' => 'Update Kategori', 'lang_kategori_addnew' => 'Tambah Kategori Baru', 'lang_kategori_new' => 'Nama Kategori Baru', 'lang_noprice' => 'Harga tidak tersedia', 'lang_norate' => 'Rating tidak tersedia', 'lang_top_menu' => 'Menu Atas', 'lang_cuz_note' => '<b>Perhatian:</b> Beberapa fitur tidak dapat disetting dari halaman Customizer ini. Silahkan atur pada theme options yang telah disediakan.', 'lang_footer_left' => 'Footer Widget Area Kiri', 'lang_footer_middle' => 'Footer Widget Area Tengah', 'lang_footer_right' => 'Footer Widget Area Kanan', 'lang_footer_desc' => 'Seret dan lepaskan pada area ini', 'lang_pmeta_title' => 'Informasi Produk', 'lang_pmeta_link_aff_name' => 'Link Afiliasi', 'lang_pmeta_link_aff_desc' => 'Masukkan link afiliasi produk', 'lang_pmeta_vendor_name' => 'Vendor', 'lang_pmeta_vendor_desc' => 'Pilih vendor afiliasi<br/><i>*<b>Vendor tidak tersedia?</b> Tambahkan vendor baru pada menu', 'lang_pmeta_vendor_select' => 'Silahkan pilih vendor', 'lang_pmeta_img_aff_name' => 'Gambar', 'lang_pmeta_img_aff_desc' => 'Masukkan URL gambar produk', 'lang_pmeta_img_aff_media' => 'Pilih gambar produk', 'lang_pmeta_img_media_check'=> 'Centang, untuk mengunggah gambar dari perangkat atau pilih dari media', 'lang_pmeta_harga_name' => 'Harga', 'lang_pmeta_harga_desc' => 'Masukkan harga produk', 'lang_pmeta_rating_name' => 'Rating', 'lang_pmeta_rating_desc' => 'Pilih rating produk. <i>*Jika tidak ditentukan maka akan ditampilkan rating random</i>', 'lang_pmeta_desc_aff_name' => 'Deskripsi', 'lang_pmeta_desc_aff_desc' => 'Tulis deskripsi produk', 'long_pmeta_desc_aff_check' => 'Centang, untuk penulisan deskripsi produk yang lebih lengkap', 'lang_pmeta_video_name' => 'Video', 'lang_pmeta_video_desc' => 'Tambahkan Vimeo atau url video Youtube', 'lang_og_data_success' => 'Berhasil mengambil data dan mengisi kolom secara otomatis...', 'lang_og_data_failed' => 'Maaf, gagal mengambil data, mengulang atau mengisi kolom secara manual...', 'lang_og_token_empty' => 'Maaf, masukan token OpenGraphr untuk menggunakan fitur ini. Atur pada', ); if (get_option('WPLANG') == 'id_ID') { $translated = str_replace( array_keys( $text_id ), $text_id, $translated ); } else { $translated = str_replace( array_keys( $text ), $text, $translated ); } return $translated; } add_filter( 'gettext', 'admin_translate_text', 20 );