diff --git a/CHANGELOG.md b/CHANGELOG.md
index dd76d0b..626d820 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,8 @@ 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.
+- Sitemap Errors Fixes.
- Monstra automatically renames files - fixed
- Monstra Dashboard created and set as default Plugin for Admin Panel
- Monstra Dashboard Google Analytics statistic added.
@@ -39,10 +42,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
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/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')) {
diff --git a/plugins/box/backup/languages/tr.lang.php b/plugins/box/backup/languages/tr.lang.php
new file mode 100644
index 0000000..1141176
--- /dev/null
+++ b/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/blocks/languages/tr.lang.php b/plugins/box/blocks/languages/tr.lang.php
new file mode 100644
index 0000000..d48aad6
--- /dev/null
+++ b/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/filesmanager/languages/tr.lang.php b/plugins/box/filesmanager/languages/tr.lang.php
new file mode 100644
index 0000000..afa312d
--- /dev/null
+++ b/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/filesmanager/views/backend/index.view.php b/plugins/box/filesmanager/views/backend/index.view.php
index a86b4e6..b2a2cfb 100755
--- a/plugins/box/filesmanager/views/backend/index.view.php
+++ b/plugins/box/filesmanager/views/backend/index.view.php
@@ -133,7 +133,7 @@
-
-
\ No newline at end of file
diff --git a/plugins/box/information/languages/tr.lang.php b/plugins/box/information/languages/tr.lang.php
new file mode 100644
index 0000000..829f410
--- /dev/null
+++ b/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/menu/languages/tr.lang.php b/plugins/box/menu/languages/tr.lang.php
new file mode 100644
index 0000000..9314c09
--- /dev/null
+++ b/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/pages/languages/tr.lang.php b/plugins/box/pages/languages/tr.lang.php
new file mode 100644
index 0000000..046f85e
--- /dev/null
+++ b/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/pages/pages.plugin.php b/plugins/box/pages/pages.plugin.php
index 6bacb00..efe5c92 100644
--- a/plugins/box/pages/pages.plugin.php
+++ b/plugins/box/pages/pages.plugin.php
@@ -283,7 +283,7 @@ class Pages extends Frontend
*/
public static function title()
{
- return isset(Pages::$page['meta_title']) ? Pages::$page['meta_title'] : Pages::$page['title'];
+ return !empty(Pages::$page['meta_title']) ? Pages::$page['meta_title'] : Pages::$page['title'];
}
/**
@@ -333,6 +333,7 @@ class Pages extends Frontend
foreach ($pages_list as $page) {
$pages_array[$count]['title'] = Html::toText($page['title']);
+ $pages_array[$count]['meta_title'] = !empty($page['meta_title']) ? Html::toText($page['meta_title']) : $page['title'];
$pages_array[$count]['parent'] = $page['parent'];
$pages_array[$count]['date'] = $page['date'];
$pages_array[$count]['author'] = $page['author'];
diff --git a/plugins/box/plugins/languages/tr.lang.php b/plugins/box/plugins/languages/tr.lang.php
new file mode 100644
index 0000000..1f15f27
--- /dev/null
+++ b/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/plugins/views/backend/index.view.php b/plugins/box/plugins/views/backend/index.view.php
index 90fd169..151602b 100755
--- a/plugins/box/plugins/views/backend/index.view.php
+++ b/plugins/box/plugins/views/backend/index.view.php
@@ -41,7 +41,7 @@
|
- 'btn btn-info readme_plugin', 'data-toggle' => 'modal', 'data-target' => '#readme', 'readme_plugin' => $plugin['id']));
?>
diff --git a/plugins/box/snippets/languages/tr.lang.php b/plugins/box/snippets/languages/tr.lang.php
new file mode 100644
index 0000000..91e7dd5
--- /dev/null
+++ b/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/system/languages/tr.lang.php b/plugins/box/system/languages/tr.lang.php
new file mode 100644
index 0000000..250962e
--- /dev/null
+++ b/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/themes/languages/tr.lang.php b/plugins/box/themes/languages/tr.lang.php
new file mode 100644
index 0000000..9f6a6ed
--- /dev/null
+++ b/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/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));
}
}
diff --git a/plugins/box/users/languages/tr.lang.php b/plugins/box/users/languages/tr.lang.php
new file mode 100644
index 0000000..826ed54
--- /dev/null
+++ b/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',
+ )
+ );
diff --git a/public/assets/img/flags/tr.png b/public/assets/img/flags/tr.png
new file mode 100644
index 0000000..d5a384a
Binary files /dev/null and b/public/assets/img/flags/tr.png differ
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 @@
- 41ffa3ab3863error404indexfollowindexpublishederror4041328270400Monstrapublic29c20ad0bf1homeindexfollowindexpublishedHome1333368000Monstrapublic3a623d720fcblogblogpublishedpublic0indexfollowBlog1388792906Monstra4f8f3dae331hello-worldblog-postblogpublishedpublic0indexfollowHello world!hello, world1388872189admin
+ 41ffa3ab3863error404indexfollowindexpublishederror4041328270400Monstrapublic29c20ad0bf1homeindexfollowindexpublishedHome1333368000Monstrapublic3a623d720fcblogblogpublishedpublic0indexfollowBlog1388792906Monstra4f8f3dae331hello-worldblog-postblogpublishedpublic0indexfollowHello world!hello, world1388872189adminhello, world
|