From eb5f918f5d29451ed343af01181dc09758e5621b Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 27 Mar 2014 23:41:56 +0400 Subject: [PATCH 01/11] Monstra automatically rename files Issue #231 --- engine/Security.php | 6 ++-- plugins/box/themes/themes.admin.php | 56 ++++++++++++++--------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/engine/Security.php b/engine/Security.php index afa8202..ee76c32 100644 --- a/engine/Security.php +++ b/engine/Security.php @@ -119,7 +119,7 @@ class Security { // Redefine vars $str = (string) $str; - $delimiter = (string) $delimiter; + $delimiter = $delimiter; $lowercase = (bool) $lowercase; $delimiter = $delimiter; @@ -149,9 +149,9 @@ class Security $str = iconv('UTF-8', 'ASCII//TRANSLIT', $str); // Remove characters - $str = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $str ); + $str = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $str); if ($delimiter != null) { - $str = preg_replace("/[\/_|+ -]+/", $delimiter, $str ); + $str = preg_replace("/[\/_|+ -]+/", $delimiter, $str); $str = trim($str, $delimiter); } diff --git a/plugins/box/themes/themes.admin.php b/plugins/box/themes/themes.admin.php index 2c6f973..3119757 100755 --- a/plugins/box/themes/themes.admin.php +++ b/plugins/box/themes/themes.admin.php @@ -79,19 +79,19 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if (file_exists($chunk_path.Security::safeName(Request::post('name')).'.chunk.php')) $errors['file_exists'] = __('This chunk already exists', 'themes'); + if (file_exists($chunk_path.Security::safeName(Request::post('name'), null, false)).'.chunk.php') $errors['file_exists'] = __('This chunk already exists', 'themes'); if (count($errors) == 0) { // Save chunk - File::setContent($chunk_path.Security::safeName(Request::post('name')).'.chunk.php', Request::post('content')); + File::setContent($chunk_path.Security::safeName(Request::post('name'), null, false).'.chunk.php', Request::post('content')); - Notification::set('success', __('Your changes to the chunk :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'))))); + Notification::set('success', __('Your changes to the chunk :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'), null, false)))); if (Request::post('add_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_chunk&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_chunk&filename='.Security::safeName(Request::post('name'), null, false)); } } @@ -119,19 +119,19 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if (file_exists($template_path.Security::safeName(Request::post('name')).'.template.php')) $errors['file_exists'] = __('This template already exists', 'themes'); + if (file_exists($template_path.Security::safeName(Request::post('name', null, false))).'.template.php') $errors['file_exists'] = __('This template already exists', 'themes'); if (count($errors) == 0) { // Save chunk - File::setContent($template_path.Security::safeName(Request::post('name')).'.template.php', Request::post('content')); + File::setContent($template_path.Security::safeName(Request::post('name'), null, false).'.template.php', Request::post('content')); - Notification::set('success', __('Your changes to the chunk :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'))))); + Notification::set('success', __('Your changes to the chunk :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'), null, false)))); if (Request::post('add_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_template&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_template&filename='.Security::safeName(Request::post('name'), null, false)); } } @@ -159,19 +159,19 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if (file_exists($style_path.Security::safeName(Request::post('name')).'.css')) $errors['file_exists'] = __('This styles already exists', 'themes'); + if (file_exists($style_path.Security::safeName(Request::post('name'), null, false)).'.css') $errors['file_exists'] = __('This styles already exists', 'themes'); if (count($errors) == 0) { // Save chunk - File::setContent($style_path.Security::safeName(Request::post('name')).'.css', Request::post('content')); + File::setContent($style_path.Security::safeName(Request::post('name'), null, false).'.css', Request::post('content')); - Notification::set('success', __('Your changes to the styles :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'))))); + Notification::set('success', __('Your changes to the styles :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'), null, false)))); if (Request::post('add_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_styles&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_styles&filename='.Security::safeName(Request::post('name'), null, false)); } } @@ -199,19 +199,19 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if (file_exists($script_path.Security::safeName(Request::post('name')).'.js')) $errors['file_exists'] = __('This script already exists', 'themes'); + if (file_exists($script_path.Security::safeName(Request::post('name'), null, false)).'.js') $errors['file_exists'] = __('This script already exists', 'themes'); if (count($errors) == 0) { // Save chunk - File::setContent($script_path.Security::safeName(Request::post('name')).'.js', Request::post('content')); + File::setContent($script_path.Security::safeName(Request::post('name'), null, false).'.js', Request::post('content')); - Notification::set('success', __('Your changes to the script :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'))))); + Notification::set('success', __('Your changes to the script :name have been saved.', 'themes', array(':name' => Security::safeName(Request::post('name'), null, false)))); if (Request::post('add_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_script&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_script&filename='.Security::safeName(Request::post('name'), null, false)); } } @@ -241,14 +241,14 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if ((file_exists($chunk_path.Security::safeName(Request::post('name')).'.chunk.php')) and (Security::safeName(Request::post('chunk_old_name')) !== Security::safeName(Request::post('name')))) $errors['file_exists'] = __('This chunk already exists', 'themes'); + if ((file_exists($chunk_path.Security::safeName(Request::post('name'), null, false).'.chunk.php') and (Security::safeName(Request::post('chunk_old_name'), null, false)) !== Security::safeName(Request::post('name'), null, false))) $errors['file_exists'] = __('This chunk already exists', 'themes'); // Save fields if (Request::post('content')) $content = Request::post('content'); else $content = ''; if (count($errors) == 0) { $chunk_old_filename = $chunk_path.Request::post('chunk_old_name').'.chunk.php'; - $chunk_new_filename = $chunk_path.Security::safeName(Request::post('name')).'.chunk.php'; + $chunk_new_filename = $chunk_path.Security::safeName(Request::post('name'), null, false).'.chunk.php'; if ( ! empty($chunk_old_filename)) { if ($chunk_old_filename !== $chunk_new_filename) { rename($chunk_old_filename, $chunk_new_filename); @@ -268,7 +268,7 @@ class ThemesAdmin extends Backend if (Request::post('edit_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_chunk&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_chunk&filename='.Security::safeName(Request::post('name'), null, false)); } } @@ -297,14 +297,14 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if ((file_exists($template_path.Security::safeName(Request::post('name')).'.template.php')) and (Security::safeName(Request::post('template_old_name')) !== Security::safeName(Request::post('name')))) $errors['template_exists'] = __('This template already exists', 'themes'); + if ((file_exists($template_path.Security::safeName(Request::post('name'), null, false).'.template.php') and (Security::safeName(Request::post('template_old_name'), null, false)) !== Security::safeName(Request::post('name'), null, false))) $errors['template_exists'] = __('This template already exists', 'themes'); // Save fields if (Request::post('content')) $content = Request::post('content'); else $content = ''; if (count($errors) == 0) { $template_old_filename = $template_path.Request::post('template_old_name').'.template.php'; - $template_new_filename = $template_path.Security::safeName(Request::post('name')).'.template.php'; + $template_new_filename = $template_path.Security::safeName(Request::post('name'), null, false).'.template.php'; if ( ! empty($template_old_filename)) { if ($template_old_filename !== $template_new_filename) { rename($template_old_filename, $template_new_filename); @@ -324,7 +324,7 @@ class ThemesAdmin extends Backend if (Request::post('edit_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_template&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_template&filename='.Security::safeName(Request::post('name'), null, false)); } } @@ -353,14 +353,14 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if ((file_exists($style_path.Security::safeName(Request::post('name')).'.css')) and (Security::safeName(Request::post('styles_old_name')) !== Security::safeName(Request::post('name')))) $errors['file_exists'] = __('This styles already exists', 'themes'); + if ((file_exists($style_path.Security::safeName(Request::post('name'), null, false).'.css') and (Security::safeName(Request::post('styles_old_name'), null, false)) !== Security::safeName(Request::post('name'), null, false))) $errors['file_exists'] = __('This styles already exists', 'themes'); // Save fields if (Request::post('content')) $content = Request::post('content'); else $content = ''; if (count($errors) == 0) { $styles_old_filename = $style_path.Request::post('styles_old_name').'.css'; - $styles_new_filename = $style_path.Security::safeName(Request::post('name')).'.css'; + $styles_new_filename = $style_path.Security::safeName(Request::post('name'), null, false).'.css'; if ( ! empty($styles_old_filename)) { if ($styles_old_filename !== $styles_new_filename) { rename($styles_old_filename, $styles_new_filename); @@ -380,7 +380,7 @@ class ThemesAdmin extends Backend if (Request::post('edit_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_styles&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_styles&filename='.Security::safeName(Request::post('name'), null, false)); } } @@ -409,14 +409,14 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if ((file_exists($script_path.Security::safeName(Request::post('name')).'.js')) and (Security::safeName(Request::post('script_old_name')) !== Security::safeName(Request::post('name')))) $errors['file_exists'] = __('This script already exists', 'themes'); + if ((file_exists($script_path.Security::safeName(Request::post('name'), null, false).'.js')) and (Security::safeName(Request::post('script_old_name'), null, false)) !== Security::safeName(Request::post('name'), null, false)) $errors['file_exists'] = __('This script already exists', 'themes'); // Save fields if (Request::post('content')) $content = Request::post('content'); else $content = ''; if (count($errors) == 0) { $script_old_filename = $script_path.Request::post('script_old_name').'.js'; - $script_new_filename = $script_path.Security::safeName(Request::post('name')).'.js'; + $script_new_filename = $script_path.Security::safeName(Request::post('name'), null, false).'.js'; if ( ! empty($script_old_filename)) { if ($script_old_filename !== $script_new_filename) { rename($script_old_filename, $script_new_filename); @@ -436,7 +436,7 @@ class ThemesAdmin extends Backend if (Request::post('edit_file_and_exit')) { Request::redirect('index.php?id=themes'); } else { - Request::redirect('index.php?id=themes&action=edit_script&filename='.Security::safeName(Request::post('name'))); + Request::redirect('index.php?id=themes&action=edit_script&filename='.Security::safeName(Request::post('name'), null, false)); } } From 6a7c3a34625870d3ff69f938a53155cded017948 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 27 Mar 2014 23:45:33 +0400 Subject: [PATCH 02/11] Turkish Language --- .../plugins/box/backup/languages/tr.lang.php | 17 ++++ .../plugins/box/blocks/languages/tr.lang.php | 29 +++++++ .../box/filesmanager/languages/tr.lang.php | 17 ++++ .../box/information/languages/tr.lang.php | 40 ++++++++++ .../plugins/box/menu/languages/tr.lang.php | 27 +++++++ .../plugins/box/pages/languages/tr.lang.php | 54 +++++++++++++ .../plugins/box/plugins/languages/tr.lang.php | 20 +++++ .../box/snippets/languages/tr.lang.php | 29 +++++++ .../plugins/box/system/languages/tr.lang.php | 80 +++++++++++++++++++ .../plugins/box/themes/languages/tr.lang.php | 50 ++++++++++++ .../plugins/box/users/languages/tr.lang.php | 67 ++++++++++++++++ 11 files changed, 430 insertions(+) create mode 100644 plugins/box/tr.lang/plugins/box/backup/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/blocks/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/filesmanager/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/information/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/menu/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/pages/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/plugins/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/snippets/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/system/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/themes/languages/tr.lang.php create mode 100644 plugins/box/tr.lang/plugins/box/users/languages/tr.lang.php diff --git a/plugins/box/tr.lang/plugins/box/backup/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/backup/languages/tr.lang.php new file mode 100644 index 0000000..1141176 --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/backup/languages/tr.lang.php @@ -0,0 +1,17 @@ + array( + 'Backups' => 'Yedekler', + 'Backup Date' => 'Yedek tarihi', + 'Create Backup' => 'Yedek Oluştur', + 'Delete' => 'Sil', + 'storage' => 'Depolama', + 'public' => 'Genel', + 'plugins' => 'Eklentiler', + 'Size' => 'Boyut', + 'Actions' => 'Eylemler', + 'Delete backup: :backup' => 'Yedek silindi: :backup', + 'Creating...' => 'Oluşturuluyor...', + ) + ); \ No newline at end of file diff --git a/plugins/box/tr.lang/plugins/box/blocks/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/blocks/languages/tr.lang.php new file mode 100644 index 0000000..d48aad6 --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/blocks/languages/tr.lang.php @@ -0,0 +1,29 @@ + array( + 'Blocks' => 'Bloklar', + 'Blocks manager' => 'Blok Yöneticisi', + 'Delete' => 'Sil', + 'Edit' => 'Düzenle', + 'Name' => 'İsim', + 'Create New Block' => 'Blok Oluştur', + 'New Block' => 'Yeni Blok', + 'Edit Block' => 'Blok Düzenle', + 'Save' => 'Kaydet', + 'Save and Exit' => 'Kaydet ve Çık', + 'Actions' => 'İşlemler', + 'Required field' => 'Zorunlu Alan', + 'This block already exists' => 'Bu blok zaten var.', + 'This block does not exist' => 'Blok bulunamadı.', + 'Delete block: :block' => 'Blok sil: :block', + 'Block content' => 'Blok İçeriği', + 'Block :name deleted' => 'Blok :name silindi.', + 'Your changes to the block :name have been saved.' => 'Değişiklikler :name bloğuna kaydedildi.', + 'Delete block: :block' => 'Blok Sil: :block', + 'View Embed Code' => 'Embed Kodu', + 'Embed Code' => 'Embed Kodu', + 'Shortcode' => 'Kısa Kod', + 'PHP Code' => 'PHP Kodu', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/filesmanager/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/filesmanager/languages/tr.lang.php new file mode 100644 index 0000000..afa312d --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/filesmanager/languages/tr.lang.php @@ -0,0 +1,17 @@ + array( + 'Files' => 'Dosyalar', + 'Files manager' => 'Dosya Yöneticisi', + 'Name' => 'İsim', + 'Actions' => 'İşlemler', + 'Delete' => 'Sil', + 'Upload' => 'Yükle', + 'directory' => 'dizin', + 'Delete directory: :dir' => 'Dizin Silindi: :dir', + 'Delete file: :file' => 'Dosya silindi :file', + 'Extension' => 'Uzantılar', + 'Size' => 'Boyut', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/information/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/information/languages/tr.lang.php new file mode 100644 index 0000000..829f410 --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/information/languages/tr.lang.php @@ -0,0 +1,40 @@ + array( + 'Information' => 'Bilgi', + 'Debugging' => 'Hata Ayıklama', + 'Name' => 'İsim', + 'Value' => 'Alan', + 'Security' => 'Güvenlik', + 'System' => 'Sistem', + 'on' => 'Açık', + 'off'=> 'Kapalı', + 'Server' => 'Sunucu', + 'PHP version' => 'PHP versiyonu', + 'SimpleXML module' => 'SimpleXML modülü', + 'DOM module' => 'DOM modülü', + 'Installed' => 'Yüklü', + 'Not Installed' => 'Yüklü Değil', + 'Security check results' => 'Güvenlik Raporu', + 'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' => + 'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.', + 'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions.
You can do this on unix systems with: chmod -R a-w :path' => + 'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions.
You can do this on unix systems with: chmod -R a-w :path', + 'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions.
You can do this on unix systems with: chmod a-w :path' => + 'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions.
You can do this on unix systems with: chmod a-w :path', + 'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions.
You can do this on unix systems with: chmod a-w :path' => + 'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions.
You can do this on unix systems with: chmod a-w :path', + 'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' => + 'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.', + 'Monstra version' => 'Sistem Versiyonu', + 'Directory Permissions' => 'Dizin İzinleri', + 'Directory' => 'Dizin', + 'Writable' => 'Yazılabilir', + 'Unwritable' => 'Yazılamaz', + 'Status' => 'Durum', + 'PHP Built On' => 'PHP Kurulumu', + 'Web Server' => 'Web Sunucusu', + 'WebServer to PHP Interface' => 'WebServer to PHP Interface', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/menu/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/menu/languages/tr.lang.php new file mode 100644 index 0000000..9314c09 --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/menu/languages/tr.lang.php @@ -0,0 +1,27 @@ + array( + 'Menu' => 'Menü', + 'Menu manager' => 'Menu Yöneticisi', + 'Edit' => 'Düzenle', + 'Name' => 'İsim', + 'Delete' => 'Sil', + 'Order' => 'Sıralama', + 'Actions' => 'İşlem', + 'Create New Item' => 'Yeni Oluştur', + 'New item' => 'Yeni Oluştur', + 'Item name' => 'Menü Adı', + 'Item order' => 'Sıralaması', + 'Item target' => 'Hedef', + 'Item link' => 'Bağlantısı', + 'Item category' => 'Kategorisi', + 'Save' => 'Kaydet', + 'Edit item' => 'Düzenle', + 'Delete item :name' => 'Sil :name', + 'Select page' => 'Sayfa Seç', + 'Category' => 'Kategori', + 'Select category' => 'Kategori Seç', + 'Required field' => 'Zorunlu Alan', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/pages/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/pages/languages/tr.lang.php new file mode 100644 index 0000000..046f85e --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/pages/languages/tr.lang.php @@ -0,0 +1,54 @@ + array( + 'Pages' => 'Sayfalar', + 'Pages manager' => 'Sayfa Yöneticisi', + 'Content' => 'İçerik', + 'Create New Page' => 'Sayfa oluştur', + 'New Page' => 'Yeni Sayfa', + 'Edit Page' => 'Sayfa Düzenle', + 'Date' => 'Tarih', + 'Clone' => 'Klonla', + 'Edit' => 'Düzenle', + 'Delete' => 'Sil', + 'Delete page: :page' => 'Sil ? : :page', + 'Title' => 'Başlık', + 'Name' => 'Adı', + 'Author' => 'Gönderen', + 'Name (slug)' => 'İsim (Bağlantı)', + 'Description' => 'Tanımlama', + 'Keywords' => 'Anahtar Kelimeler', + 'Parent' => 'Ebeveyn', + 'Template' => 'Tema', + 'Year' => 'Yıl', + 'Day' => 'Gün', + 'Month' => 'Ay', + 'Hour' => 'Saat', + 'Minute' => 'Dakika', + 'Second' => 'Saniye', + 'This field should not be empty' => 'Bu alan boş olmamalı !', + 'This page already exists' => 'Sayfa Zaten Var', + 'Extra' => 'Ekstra', + 'Save' => 'Kaydet', + 'Save and Exit' => 'Kaydet ve Çık', + 'Your changes to the page :page have been saved.' => 'Değişiklikler :page sayfasına kaydedildi.', + 'The page :page cloned.' => 'Sayfa :page klonlandı.', + 'Status' => 'Durum', + 'Actions' => 'Eylemler', + 'Add' => 'Ekle', + 'Published' => 'Yayında', + 'Draft' => 'Taslak', + 'Published on' => 'Yayına Açık', + 'Edit 404 Page' => '404 Sayfası Düzenle', + 'Page :page deleted' => 'Sayfa :page silindi', + 'Search Engines Robots' => 'Arama Motoru Robotları', + 'Page' => 'Sayfa', + 'Metadata' => 'Meta', + 'Settings' => 'Ayarlar', + 'Required field' => 'Zorunlu Alan', + 'Access' => 'Giriş Yapanlar', + 'Public' => 'Açık', + 'Registered' => 'Üyeler', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/plugins/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/plugins/languages/tr.lang.php new file mode 100644 index 0000000..1f15f27 --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/plugins/languages/tr.lang.php @@ -0,0 +1,20 @@ + array( + 'Plugins' => 'Eklentiler', + 'Name' => 'İsim', + 'Actions' => 'İşlemler', + 'Description' => 'Açıklama', + 'Installed' => 'Yüklenenler', + 'Install New' => 'Yeni Yükle', + 'Delete' => 'Sil', + 'Delete plugin :plugin' => 'Eklenti silindi :plugin', + 'This plugin does not exist' => 'Eklenti Bulunamadı', + 'Version' => 'Versiyon', + 'Author' => 'Geliştirici', + 'Get More Plugins' => 'Daha Fazla Eklenti', + 'Install' => 'Yükle', + 'Uninstall' => 'Kaldır', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/snippets/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/snippets/languages/tr.lang.php new file mode 100644 index 0000000..91e7dd5 --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/snippets/languages/tr.lang.php @@ -0,0 +1,29 @@ + array( + 'Snippets' => 'Parçalar', + 'Snippets manager' => 'Parça Yöneticisi', + 'Actions' => 'İşlemler', + 'Delete' => 'Sil', + 'Edit' => 'Düzenle', + 'Name' => 'İsim', + 'Create New Snippet' => 'Yeni Parça Oluştur', + 'New Snippet' => 'Yeni Parça', + 'Edit Snippet' => 'Parça Düzenle', + 'Save' => 'Kaydet', + 'Save and Exit' => 'Kaydet ve Çık', + 'This snippet already exists' => 'Parça Zaten Var', + 'This snippet does not exist' => 'Parça Bulunamadı', + 'Delete snippet: :snippet' => 'Parça Silindi: :snippet', + 'Snippet content' => 'Parça İçeriği', + 'Snippet :name deleted' => 'Parça :name silindi', + 'Your changes to the snippet :name have been saved.' => 'Parça değişiklikleri :name kaydedildi.', + 'Delete snippet: :snippet' => 'Parça Sil: :snippet', + 'Required field' => 'Zorunlu Alan', + 'View Embed Code' => 'Embed Kodu Görüntüle', + 'Embed Code' => 'Embed Kodu', + 'Shortcode' => 'Kısa Kod', + 'PHP Code' => 'PHP Kodu', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/system/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/system/languages/tr.lang.php new file mode 100644 index 0000000..250962e --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/system/languages/tr.lang.php @@ -0,0 +1,80 @@ + array( + 'System' => 'Sistem', + 'Published a new version of the :monstra' => 'Yeni versiyon yayınlandı :monstra', + 'Sitemap created' => 'Siteharitası oluşturuldu.', + 'Create Sitemap' => 'Site Map Oluştur', + 'on' => 'Açık', + 'off'=> 'Kapalı', + 'Site Url' => 'Site Adresi', + 'Maintenance Mode' => 'Bakım Modu', + 'Maintenance Mode On' => 'Bakım Modu Açık', + 'Maintenance Mode Off' => 'Bakım Modu Kapalı', + 'Site Settings' => 'Site Ayarları', + 'System Settings' => 'Sistem Ayarları', + 'Site Name' => 'Site Adı', + 'Site Description' => 'Site Açıklaması', + 'Site Keywords' => 'Anahtar Kelimeler', + 'Site Slogan' => 'Site Sloganı', + 'Default Page' => 'Varsayılan Sayfa', + 'Time zone' => 'Zaman Dilimi', + 'Language' => 'Dil', + 'Email' => 'Email', + 'Save' => 'Kaydet', + 'Site' => 'Site', + 'System version' => 'Sistem Versiyonu', + 'System version ID' => 'sistem versiyon no:', + 'GZIP' => 'GZIP', + 'Debugging' => 'Debug', + 'Plugin API' => 'Eklenti API', + 'Plugins active' => 'Eklentiler Aktif', + 'Actions registered' => 'Kayıt eylemleri', + 'Filters registered' => 'Kayıtları Filtrele', + 'Delete Temporary Files' => 'Geçici Dosyaları Sil', + 'Download the latest version' => 'Son Sürümü İndir', + 'Powered by' => 'Çalıştıran', + 'Administration' => 'Yönetim', + 'Settings' => 'Ayarlar', + 'Temporary files deleted' => 'Geçici Dosyalar Silindi', + 'Extends' => 'Uzantılar', + 'View Site' => 'Siteyi Gör', + 'Welcome, :username' => 'Hoşgeldin, :username', + 'Reset Password' => 'Şifre Yenile', + '< Back to Website' => '< Siteye Dön', + 'Forgot your password? >' => 'Şifreni mi unuttun? >', + 'Administration >' => 'Yönetim Paneli >', + 'Send New Password' => 'Yeni Şifre Gönder', + 'This user does not exist' => 'Kullanıcı Bulunamadı', + 'Version' => 'Versiyon', + 'Plugin does not exist' => 'Eklenti Bulunamadı', + + 'Install script writable' => 'Install script writable', + 'Install script not writable' => 'Install script not writable', + 'Directory: :dir writable' => 'Directory: :dir writable', + 'Directory: :dir not writable' => 'Directory: :dir not writable', + 'PHP Version' => 'PHP Version', + 'Module DOM is installed' => 'Module DOM is installed', + 'Module DOM is required' => 'Module DOM is required', + 'Module Mod Rewrite is installed' => 'Module Mod Rewrite is installed', + 'Module SimpleXML is installed' => 'Module SimpleXML is installed', + 'PHP 5.2 or greater is required' => 'PHP 5.2 or greater is required', + 'Apache Mod Rewrite is required' => 'Apache Mod Rewrite is required', + 'SimpleXML module is required' => 'SimpleXML module is required', + 'Field "Site name" is empty' => 'Field "Site name" is empty', + 'Field "Email" is empty' => 'Field "Email" is empty', + 'Field "Username" is empty' => 'Field "Username" is empty', + 'Field "Password" is empty' => 'Field "Password" is empty', + 'Field "Site url" is empty' => 'Field "Site url" is empty', + 'Email not valid' => 'Email not valid', + 'Install' => 'Kurulum', + '...Monstra says...' => '...Diyor Ki...', + 'Sitemap file writable' => 'Sitemap dosyası yazılabilir.', + 'Sitemap file not writable' => 'Sitemap dosyası yazılamaz', + 'Main .htaccess file writable' => 'Ana .htaccess yazılabilir', + 'Main .htaccess file not writable' => 'Ana .htaccess yazılamaz', + 'Official Support Forum' => 'Destek Forumları', + 'Documentation' => 'Dökümanlar', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/themes/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/themes/languages/tr.lang.php new file mode 100644 index 0000000..9f6a6ed --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/themes/languages/tr.lang.php @@ -0,0 +1,50 @@ + array( + 'Themes' => 'Temalar', + 'Themes manager' => 'Tema Yöneticisi', + 'Select Theme' => 'Tema Seç', + 'Save' => 'Kaydet', + 'Save and Exit' => 'Kaydet ve Çık', + 'Name' => 'İsim', + 'Create New Template' => 'Yeni Tema Oluştur', + 'New Template' => 'Yeni Tema', + 'Delete template: :name' => 'Tema Silindi: :name', + 'Delete chunk: :name' => 'Yığın silindi: :name', + 'Delete styles: :name' => 'Stil Silindi: :name', + 'Templates' => 'Temalar', + 'Clone' => 'Klonla', + 'Edit' => 'Düzenle', + 'Delete' => 'Sil', + 'Actions' => 'İşlemler', + 'Admin Theme' => 'Admin Teması', + 'Create New Chunk' => 'Yeni Yığın Oluştur', + 'New Chunk' => 'Yeni Yığın', + 'Chunks' => 'Yığın', + 'Create New Styles' => 'Yeni Stil Oluştur', + 'New Styles' => 'Yeni Stil', + 'Styles' => 'Stil', + 'Template content' => 'Tema İçeriği', + 'Styles content' => 'Stil İçeriği', + 'Chunk content' => 'Yığın İçeriği', + 'Edit Template' => 'Tema Düzenle', + 'Edit Chunk' => 'Yığın Düzenle', + 'Edit Styles' => 'Stil Düzenle', + 'Current Site Theme' => 'Güncel Site Teması', + 'Current admin theme' => 'Güncel Admin Teması', + 'This template already exists' => 'Tema Zaten Var', + 'This chunk already exists' => 'Yığın Zaten Var', + 'This styles already exist' => 'Stil Zaten Var', + 'Components templates' => 'Eklenti Teması', + 'Your changes to the chunk :name have been saved.' => 'Yığın Değişikliği :name kaydedildi.', + 'Your changes to the styles :name have been saved.' => 'YStil Değişikliği :name kaydedildi.', + 'Your changes to the template :name have been saved.' => 'Tema Değişikliği :name kaydedildi.', + 'Required field' => 'Zorunlu Alan', + 'Scripts' => 'Scriptler', + 'Create New Script' => 'Yeni Script Oluştur', + 'Script content' => 'Script İçeriği', + 'New Script' => 'Yeni Script', + 'Edit Script' => 'Script Düzenle', + ) + ); diff --git a/plugins/box/tr.lang/plugins/box/users/languages/tr.lang.php b/plugins/box/tr.lang/plugins/box/users/languages/tr.lang.php new file mode 100644 index 0000000..826ed54 --- /dev/null +++ b/plugins/box/tr.lang/plugins/box/users/languages/tr.lang.php @@ -0,0 +1,67 @@ + array( + 'Users' => 'Üyler', + 'Login' => 'Giriş', + 'Username' => 'Kullanıcı Adı', + 'Password' => 'Şifre', + 'Registered' => 'Kayıt', + 'Email' => 'Email', + 'Role' => 'Rolü', + 'Roles' => 'Roller', + 'Edit' => 'Düzenle', + 'Actions' => 'İşlemler', + 'Delete' => 'Sil', + 'Log In' => 'Giriş', + 'Log Out' => 'Çıkış', + 'Register New user' => 'Yeni üye kaydı', + 'New User Registration' => 'Yeni Üye Kaydı', + 'Delete user: :user' => 'Kullanıcı sil: :user', + 'User :user have been deleted.' => 'Kullanıcı :user silindi.', + 'This user already exists' => 'Bu üye zaten var', + 'This email already exists' => 'E-mail zaten kayıtlı', + 'Changes saved' => 'Değişiklikler kaydedildi', + 'Wrong old password' => 'Yanlış ! Eski Şifre', + 'Admin' => 'Admin', + 'User' => 'Üye', + 'Editor' => 'Editör', + 'Register' => 'Kayıt', + 'Edit profile' => 'Profil Düzenle', + 'Save' => 'Kaydet', + 'Firstname' => 'İsim', + 'Lastname' => 'Soyisim', + 'Old password' => 'Eski Şifre', + 'New password' => 'Yeni Şifre', + 'Welcome' => 'Hoşgeldin', + 'Wrong username or password' => 'Hatalı username yada password', + 'Your changes have been saved.' => 'Değişiklikler Kaydedildi.', + 'New user have been registered.' => 'Yeni kullanıcı kaydedildi.', + 'Captcha' => 'Captcha', + 'Registration' => 'Kayıt', + 'Username' => 'Kullanıcı Adı', + 'User email is invalid' => 'E-posta Geçersiz', + 'Reset Password' => 'Şifre Sıfırla', + 'Send New Password' => 'Yeni Şifre Gönder', + 'This user doesnt alredy exist' => 'Kullanıcı Bulunamadı', + 'Users - Profile' => 'Kullanıcı - Profili', + 'Users - Edit Profile' => 'Kullanıcı - Profil Düzenle', + 'Users - Log In' => 'Kullanıcı - Giriş', + 'Users - Registration' => 'Kullanıcı - Kayıt', + 'Users - Password Recover' => 'Kullanıcı - Şifre Sıfırlama', + 'New Password' => 'Yeni Şifre', + 'Forgot your password?' => 'Şifreni mi unuttun?', + 'New password has been sent' => 'Yeni şifre gönderildi', + 'Monstra says: This is not your profile...' => 'Sistem Mesajı: Profil yok...', + 'User registration is closed.' => 'Kullanıcı Kaydı Kapalı.', + 'Allow user registration' => 'Kullanıcı kaydına izin ver', + 'Required field' => 'Zorunlu alan', + 'This user doesnt exist' => 'Kullanıcı yok', + 'Captcha code is wrong' => 'Captcha hatalı', + 'Your login details for :site_name has been sent' => 'Giriş detayları :site_name gönderildi', + 'Your new password for :site_name' => 'Yeni Şifren :site_name', + 'Your login details for :site_name' => 'Giriş Detayların :site_name', + 'About Me' => 'Hakkımda', + 'Profile' => 'Profilim', + ) + ); From a898a84739f36d79aedbf9035c500a72bd207e27 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 27 Mar 2014 23:48:06 +0400 Subject: [PATCH 03/11] Turkish Language --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 3627acc..010fd65 100644 --- a/install.php +++ b/install.php @@ -35,7 +35,7 @@ $dir_array = array('public', 'storage', 'backups', 'tmp'); // Languages array - $languages_array = array('en', 'ru', 'fr', 'de', 'it', 'es', 'lt', 'pl', 'pt-br', 'hu', 'fa' , 'sk', 'uk', 'nl', 'sr-yu', 'id', 'ja', 'zh-cn'); + $languages_array = array('en', 'ru', 'fr', 'de', 'it', 'es', 'lt', 'pl', 'pt-br', 'hu', 'fa' , 'sk', 'uk', 'nl', 'sr-yu', 'id', 'ja', 'zh-cn', 'tr'); // Select Monstra language if (Request::get('language')) { From 34cade84cf4264ea0ec4496d2ca157edc7dfcc88 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 27 Mar 2014 23:48:56 +0400 Subject: [PATCH 04/11] Turkish Language --- public/assets/img/flags/tr.png | Bin 0 -> 489 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/assets/img/flags/tr.png diff --git a/public/assets/img/flags/tr.png b/public/assets/img/flags/tr.png new file mode 100644 index 0000000000000000000000000000000000000000..d5a384a67fd7e15aacc47ff451ed225e36c76e0b GIT binary patch literal 489 zcmVr7U@3KjI4pZ)ao z=|xWIJ4NntdiJrk@rRA-MNYd4751yI``Oy)Gd}7|Rr$)y@r8@&K1jF<6z+|a`uh6$ z?Cs+(IpQic=wxi~o1pA_f#ftlwh9#AIz;i`;PdnI=#`q=A}!o4H{CQn+axdDEH|_Y z6xAdz+DlXF*4OOp?B=$(-+Y4DKS$IVB(Dw_$|o_;EH>0VM%#6I-j0&nd4ASPQq@37 z)H_7eH9ycVIm;+AsTd)u93`|LD7YXgDZ)hG00006bW%=J00IXJ6&$CMQ^f!P0CGu0 zK~xwSg~2fnfJ(f`R9olPjbfQ60sKa&@r&}0qb3Q}Nfd=LK79pA=KaWOJ$hI>~j z)bL#d>pe(^qXI4n(jf)(dQyUeXBF_G5)>DpP9Z_@1BFK+NH_hBpjTP7)??Sn froEi8X^mfRp`{lQ2-knc00000NkvXXu0mjfMBm?( literal 0 HcmV?d00001 From 616e3a36085f3f5fd0939671145d29d0e9bd0c5c Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 28 Mar 2014 23:53:56 +0400 Subject: [PATCH 05/11] Update CHANGELOG.md --- CHANGELOG.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd76d0b..e6a8dec 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Monstra 2.4.0, 2014-xx-xx - Files Manager: added ability to create & rename directories. - Files Manager: Maximum upload file size message - added. - Files Manager: Bootstrap fileinput.js updated to 3.0.0 +- Files Manager: File Info Popup - Backup: Restore Site from Backup added - Plugins Manager: Uploading new plugins via the admin panel added - Plugins Manager: Read plugin help(README.MD) ability added. @@ -22,6 +23,7 @@ Monstra 2.4.0, 2014-xx-xx - Site Url without trailing slashes - Admin Help Section - added. - Pages Plugin: tags field added. +- Pages Plugin: Meta Title added. - Monstra automatically renames files - fixed - Monstra Dashboard created and set as default Plugin for Admin Panel - Monstra Dashboard Google Analytics statistic added. @@ -39,10 +41,11 @@ Monstra 2.4.0, 2014-xx-xx - Core: Store user_email in Session - Core: Javascript may be broken if there is no break line - fixed - Core: Added ability to avoid caching JS/CSS by the browser. +- Core: Monstra automatically rename files Issue - fixed - Prefetch DNS added to reduce look up times - Sandbox Plugin cleanup -- New Flags: Japanese(JA), Indonesian(ID), Chinese(ZH-CN) added. -- Localization: Japanese(JA), Indonesian(ID), Chinese(ZH-CN) translations added. +- New Flags: Japanese(JA), Indonesian(ID), Chinese(ZH-CN), Turkish(TR) added. +- Localization: Japanese(JA), Indonesian(ID), Chinese(ZH-CN), Turkish(TR) translations added. - Localization: Major Fixes Monstra 2.3.1, 2013-12-25 From 12d4be693b2611d54abfb45b2c797a16f606c1fe Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 29 Mar 2014 00:12:25 +0400 Subject: [PATCH 06/11] DB Update --- storage/database/pages.table.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/database/pages.table.xml b/storage/database/pages.table.xml index 590fa17..272a2c3 100644 --- a/storage/database/pages.table.xml +++ b/storage/database/pages.table.xml @@ -1,2 +1,2 @@ -4