From 39657115d6aad7508b698b2ff3ebeac6d481955c Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 12 Oct 2012 21:37:24 +0300 Subject: [PATCH 1/8] Users Plugin: "about_me" field bug - fixed --- plugins/box/users/users.plugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/box/users/users.plugin.php b/plugins/box/users/users.plugin.php index c219cae..76ba797 100644 --- a/plugins/box/users/users.plugin.php +++ b/plugins/box/users/users.plugin.php @@ -232,6 +232,7 @@ 'lastname' => Request::post('lastname'), 'email' => Request::post('email'), 'skype' => Request::post('skype'), + 'about_me' => Request::post('about_me'), 'twitter' => Request::post('twitter')))) { // Change password From b64cf1e5d59b6e1eb2cab1abbe576f0c98956d9a Mon Sep 17 00:00:00 2001 From: Martynas Barzda Date: Sat, 13 Oct 2012 16:34:18 +0300 Subject: [PATCH 2/8] Form Helper: add id atributtes for form inputs If label is clicked, form input assigned with label cannot be focused, because input has not "id" attribute. ```php Form::label('field_name', 'It is label'). Form::input('filed_name', 'It is input') ``` ##Before fix generates: ```html ``` ##After fix generates: ```html ``` --- monstra/helpers/form.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/monstra/helpers/form.php b/monstra/helpers/form.php index 9192343..e6e6538 100644 --- a/monstra/helpers/form.php +++ b/monstra/helpers/form.php @@ -136,6 +136,9 @@ // Set the input name $attributes['name'] = $name; + + // Set the input id + $attributes['id'] = (isset($attributes['id']))?$attributes['id']:$name; // Set the input value $attributes['value'] = $value; @@ -286,6 +289,9 @@ // Set the input name $attributes['name'] = $name; + + // Set the input id + $attributes['id'] = (isset($attributes['id']))?$attributes['id']:$name; return ''.$body.''; } @@ -310,6 +316,9 @@ // Set the input name $attributes['name'] = $name; + // Set the input id + $attributes['id'] = (isset($attributes['id']))?$attributes['id']:$name; + $options_output = ''; foreach ($options as $value => $name) { From 97d7100c42d427f7ade64ef7c50b54ed58de45b7 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 14 Oct 2012 10:34:43 +0300 Subject: [PATCH 3/8] Users Plugin: Logout action redirects to current page. --- plugins/box/users/users.plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/box/users/users.plugin.php b/plugins/box/users/users.plugin.php index 76ba797..b34bcf8 100644 --- a/plugins/box/users/users.plugin.php +++ b/plugins/box/users/users.plugin.php @@ -204,7 +204,8 @@ * Logout */ public static function logout() { - Session::destroy(); Request::redirect(Site::url().'users/login'); + Session::destroy(); + Request::redirect($_SERVER["HTTP_REFERER"]); } From 419685722a4559c0a0121fcd57cf7d79989d47e6 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 14 Oct 2012 12:54:22 +0300 Subject: [PATCH 4/8] Add Lithuanian Language --- plugins/box/backup/languages/lt.lang.php | 17 ++++ plugins/box/blocks/languages/lt.lang.php | 24 ++++++ plugins/box/editor/languages/lt.lang.php | 8 ++ .../box/filesmanager/languages/lt.lang.php | 17 ++++ plugins/box/information/languages/lt.lang.php | 33 ++++++++ plugins/box/menu/languages/lt.lang.php | 28 +++++++ plugins/box/pages/languages/lt.lang.php | 51 ++++++++++++ plugins/box/plugins/languages/lt.lang.php | 20 +++++ plugins/box/sitemap/languages/lt.lang.php | 7 ++ plugins/box/snippets/languages/lt.lang.php | 24 ++++++ plugins/box/system/languages/lt.lang.php | 79 +++++++++++++++++++ plugins/box/themes/languages/lt.lang.php | 49 ++++++++++++ plugins/box/users/languages/lt.lang.php | 65 +++++++++++++++ plugins/captcha/languages/lt.lang.php | 9 +++ plugins/sandbox/languages/lt.lang.php | 10 +++ 15 files changed, 441 insertions(+) create mode 100644 plugins/box/backup/languages/lt.lang.php create mode 100644 plugins/box/blocks/languages/lt.lang.php create mode 100644 plugins/box/editor/languages/lt.lang.php create mode 100644 plugins/box/filesmanager/languages/lt.lang.php create mode 100644 plugins/box/information/languages/lt.lang.php create mode 100644 plugins/box/menu/languages/lt.lang.php create mode 100644 plugins/box/pages/languages/lt.lang.php create mode 100644 plugins/box/plugins/languages/lt.lang.php create mode 100644 plugins/box/sitemap/languages/lt.lang.php create mode 100644 plugins/box/snippets/languages/lt.lang.php create mode 100644 plugins/box/system/languages/lt.lang.php create mode 100644 plugins/box/themes/languages/lt.lang.php create mode 100644 plugins/box/users/languages/lt.lang.php create mode 100644 plugins/captcha/languages/lt.lang.php create mode 100644 plugins/sandbox/languages/lt.lang.php diff --git a/plugins/box/backup/languages/lt.lang.php b/plugins/box/backup/languages/lt.lang.php new file mode 100644 index 0000000..cd7657c --- /dev/null +++ b/plugins/box/backup/languages/lt.lang.php @@ -0,0 +1,17 @@ + array( + 'Backups' => 'Atsarginės kopijos', + 'Backup date' => 'Atsarginės kopijos data', + 'Create backup' => 'Sukurti atsarginę kopiją', + 'Delete' => 'Ištrinti', + 'storage' => 'storage', + 'public' => 'public', + 'plugins' => 'plugins', + 'Size' => 'Dydis', + 'Actions' => 'Veiksmai', + 'Delete backup: :backup' => 'Ištrinti: :backup', + 'Creating...' => 'Kuriama...', + ) + ); \ No newline at end of file diff --git a/plugins/box/blocks/languages/lt.lang.php b/plugins/box/blocks/languages/lt.lang.php new file mode 100644 index 0000000..ce5b054 --- /dev/null +++ b/plugins/box/blocks/languages/lt.lang.php @@ -0,0 +1,24 @@ + array( + 'Blocks' => 'Blokai', + 'Blocks manager' => 'Blokų tvarkyklė', + 'Delete' => 'Ištrinti', + 'Edit' => 'Redaguoti', + 'Name' => 'Pavadinimas', + 'Create new block' => 'Sukurti naują bloką', + 'New block' => 'Naujas blokas', + 'Edit block' => 'Redaguoti bloką', + 'Save' => 'Išsaugoti', + 'Save and exit' => 'Išsaugoti ir išeiti', + 'Actions' => 'Veiksmai', + 'Required field' => 'Privalomas laukas', + 'This block already exists' => 'Toks blokas jau yra', + 'This block does not exist' => 'Tokio bloko nėra', + 'Delete block: :block' => 'Ištrinti: :block', + 'Block content' => 'Bloko turinys', + 'Block :name deleted' => 'Blokas :name ištrintas', + 'Your changes to the block :name have been saved.' => 'Bloko :name pakeitimai išsaugoti.', + ) + ); \ No newline at end of file diff --git a/plugins/box/editor/languages/lt.lang.php b/plugins/box/editor/languages/lt.lang.php new file mode 100644 index 0000000..07fc69c --- /dev/null +++ b/plugins/box/editor/languages/lt.lang.php @@ -0,0 +1,8 @@ + array( + 'Editor' => 'Redaktorius', + 'Editor plugin' => 'Redaktoriaus papildinys', + ) + ); \ No newline at end of file diff --git a/plugins/box/filesmanager/languages/lt.lang.php b/plugins/box/filesmanager/languages/lt.lang.php new file mode 100644 index 0000000..20af27a --- /dev/null +++ b/plugins/box/filesmanager/languages/lt.lang.php @@ -0,0 +1,17 @@ + array( + 'Files' => 'Bylos', + 'Files manager' => 'Bylų tvarkyklė', + 'Name' => 'Pavadinimas', + 'Actions' => 'Veiksmai', + 'Delete' => 'Ištrinti', + 'Upload' => 'Įkelti', + 'directory' => 'aplankas', + 'Delete directory: :dir' => 'Ištrinti aplanką: :dir', + 'Delete file: :file' => 'Ištrinti bylą :file', + 'Extension' => 'Plėtinys', + 'Size' => 'Dydis', + ) + ); \ No newline at end of file diff --git a/plugins/box/information/languages/lt.lang.php b/plugins/box/information/languages/lt.lang.php new file mode 100644 index 0000000..b96fdcd --- /dev/null +++ b/plugins/box/information/languages/lt.lang.php @@ -0,0 +1,33 @@ + array( + 'Information' => 'Informacija', + 'Debuging' => 'Derinimas', + 'Name' => 'Pavadinimas', + 'Value' => 'Reikšmė', + 'Security' => 'Saugumas', + 'System' => 'Systema', + 'on' => 'Įjungta', + 'off'=> 'Išjungta', + 'Server' => 'Serveris', + 'PHP version' => 'PHP versija', + 'SimpleXML module' => 'SimpleXML modulis', + 'DOM module' => 'DOM modulis', + 'Installed' => 'Įdiegta', + 'Not Installed' => 'Neįdiegta', + 'System version' => 'Systemos versija', + 'System version ID' => 'Systemos versijos ID', + 'Security check results' => 'Saugumo patikrinimo rezultatai', + 'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' => + 'Leidžiama perrašyti nustatymų bylą. Siūlome pašalinti visus rašymo leidimus sistemos bylai defines.php.', + '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' => + 'Monstra pagrindinį aplanką (":path") ir/arba jo bylas leidžiama perrašyti. Siūlome pašalinti visus rašymo leidimus.
Tai galite padaryti Unix sistemoje su: 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' => + 'Monstra .htaccess bylą galima perrašyti. Siūlome pašalinti visus rašymo leidimus.
Tai galite padaryti Unix sistemoje su: 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' => + 'Monstra index.php bylą galima perrašyti. Siūlome pašalinti visus rašymo leidimus.
Tai galite padaryti Unix sistemoje su: chmod a-w :path', + 'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' => + 'Dėl įsilaužimų grėsmės atvaiduojant klaidų pranešimus Core::$environment = Core::DEVELOPMENT veiksenoje, rekomenduojame naudoti Core::PRODUCTION nustatymą nuolatinėje tinklapio veiksenoje.', + ) + ); \ No newline at end of file diff --git a/plugins/box/menu/languages/lt.lang.php b/plugins/box/menu/languages/lt.lang.php new file mode 100644 index 0000000..df37db9 --- /dev/null +++ b/plugins/box/menu/languages/lt.lang.php @@ -0,0 +1,28 @@ + array( + 'Menu' => 'Meniu', + 'Menu manager' => 'Meniu tvarkyklė', + 'Edit' => 'Redaguoti', + 'Name' => 'Pavadinimas', + 'Delete' => 'Trinti', + 'Order' => 'Eiliškumas', + 'Actions' => 'Veiksmai', + 'Create new item' => 'Sukurti naują nuorodą', + 'New item' => 'Nauja nuoroda', + 'Item name' => 'Pavadinimas', + 'Item order' => 'Eiliškumas', + 'Item target' => 'Nuorodos atidarymo būdas', + 'Item link' => 'Nuoroda', + 'Item category' => 'Kategorija', + 'Save' => 'Išsaugoti', + 'Edit item' => 'Redaguoti nuorodą', + 'Delete item :name' => 'Ištrinti nuorodą :name', + 'Add page' => 'Pridėti puslapį', + 'Select page' => 'Pasirinkti puslapį', + 'Category' => 'Kategorija', + 'Select category' => 'Pasirinkti kategoriją', + 'Required field' => 'Privalomas laukas', + ) + ); \ No newline at end of file diff --git a/plugins/box/pages/languages/lt.lang.php b/plugins/box/pages/languages/lt.lang.php new file mode 100644 index 0000000..e92a83e --- /dev/null +++ b/plugins/box/pages/languages/lt.lang.php @@ -0,0 +1,51 @@ + array( + 'Pages' => 'Puslapiai', + 'Pages manager' => 'Puslapių tvarkyklė', + 'Content' => 'Turinys', + 'Create new page' => 'Sukurti naują puslapį', + 'New page' => 'Naujas puslapis', + 'Edit page' => 'Redaguoti puslapį', + 'Date' => 'Data', + 'Clone' => 'Klonuoti', + 'Edit' => 'Redaguoti', + 'Delete' => 'Ištrinti', + 'Delete page: :page' => 'Ištrinti puslapį :page', + 'Title' => 'Antraštė', + 'Name' => 'Pavadinimas', + 'Author' => 'Autorius', + 'Name (slug)' => 'Nuoroda (slug)', + 'Description' => 'Aprašymas', + 'Keywords' => 'Raktažodžiai', + 'Parent' => 'Pirminis puslapis', + 'Template' => 'Šablonas', + 'Year' => 'Metai', + 'Day' => 'Diena', + 'Month' => 'Mėnesis', + 'Hour' => 'Valanda', + 'Minute' => 'Minutė', + 'Second' => 'Sekundė', + 'This field should not be empty' => 'Šis laukas negali būti tuščias', + 'This page already exists' => 'Toks puslapis jau yra', + 'Extra' => 'Papildoma', + 'Save' => 'Išsaugoti', + 'Save and exit' => 'Išsaugoti ir išeiti', + 'Your changes to the page :page have been saved.' => 'Puslapio :page pakeitimai išsaugoti.', + 'The page :page cloned.' => 'Puslapis :page klonuotas.', + 'Status' => 'Būklė', + 'Actions' => 'Veiksmai', + 'Add' => 'Pridėti', + 'Published' => 'Publikuotas', + 'Draft' => 'Juodraštis', + 'Published on' => 'Publikuota', + 'Edit 404 page' => 'Redaguoti 404 puslapį', + 'Page :page deleted' => 'Puslapis :page ištrintas', + 'Search Engines Robots' => 'Paieškos variklių robotai', + 'Page' => 'Puslapis', + 'SEO' => 'SEO', + 'Settings' => 'Nustatymai', + 'Required field' => 'Privalomas laukas', + ) + ); \ No newline at end of file diff --git a/plugins/box/plugins/languages/lt.lang.php b/plugins/box/plugins/languages/lt.lang.php new file mode 100644 index 0000000..d6256d2 --- /dev/null +++ b/plugins/box/plugins/languages/lt.lang.php @@ -0,0 +1,20 @@ + array( + 'Plugins' => 'Papildiniai', + 'Name' => 'Pavadinimas', + 'Actions' => 'Veiksmai', + 'Description' => 'Aprašymas', + 'Installed' => 'Įdiegti', + 'Install New' => 'Įdiegti naują', + 'Delete' => 'Ištrinti', + 'Delete plugin :plugin' => 'Ištrinti papildinį :plugin', + 'This plugins does not exist' => 'Tokio papildinio nėra', + 'Version' => 'Versija', + 'Author' => 'Autorius', + 'Get More Plugins' => 'Gauti daugiau papildinių', + 'Install' => 'Įdiegti', + 'Uninstall' => 'Išdiegti', + ) + ); \ No newline at end of file diff --git a/plugins/box/sitemap/languages/lt.lang.php b/plugins/box/sitemap/languages/lt.lang.php new file mode 100644 index 0000000..75e369d --- /dev/null +++ b/plugins/box/sitemap/languages/lt.lang.php @@ -0,0 +1,7 @@ + array( + 'Sitemap' => 'Sitemap', + ) + ); \ No newline at end of file diff --git a/plugins/box/snippets/languages/lt.lang.php b/plugins/box/snippets/languages/lt.lang.php new file mode 100644 index 0000000..5e78114 --- /dev/null +++ b/plugins/box/snippets/languages/lt.lang.php @@ -0,0 +1,24 @@ + array( + 'Snippets' => 'Fragmentai', + 'Snippets manager' => 'Fragmentų tvarkyklė', + 'Actions' => 'Veiksmai', + 'Delete' => 'Ištrinti', + 'Edit' => 'Redaguoti', + 'Name' => 'Pavadinimas', + 'Create new snippet' => 'Kurti naują fragmentą', + 'New snippet' => 'Naujas fragmentas', + 'Edit snippet' => 'Redaguoti fragmentą', + 'Save' => 'Išsaugoti', + 'Save and exit' => 'Išsaugoti ir išeiti', + 'Required field' => 'Privalomas laukas', + 'This snippet already exists' => 'Toks fragmentas jau yra', + 'This snippet does not exist' => 'Tokio fragmento nėra', + 'Delete snippet: :snippet' => 'Ištrinti fragmentą :snippet', + 'Snippet content' => 'Fragmento turinys', + 'Snippet :name deleted' => 'Fragmentas :name ištrintas', + 'Your changes to the snippet :name have been saved.' => 'Fragmento :name pakeitimai išsaugoti.', + ) + ); \ No newline at end of file diff --git a/plugins/box/system/languages/lt.lang.php b/plugins/box/system/languages/lt.lang.php new file mode 100644 index 0000000..26419fd --- /dev/null +++ b/plugins/box/system/languages/lt.lang.php @@ -0,0 +1,79 @@ + array( + 'System' => 'Sistema', + 'Published a new version of the Monstra' => 'Išleista nauja Monstra versija', + 'Sitemap created' => 'Sitemap sukurtas', + 'Create sitemap' => 'Sukurti sitemap', + 'on' => 'įjungti', + 'off'=> 'išjungti', + 'Site url' => 'Tinklapio adresas (url)', + 'Maintenance Mode' => 'Remonto režimas', + 'Maintenance Mode On' => 'Įjungti remonto režimą', + 'Maintenance Mode Off' => 'Išjungti remonto režimą', + 'Site settings' => 'Tinklapio nustatymai', + 'System settings' => 'Sistemos nustatymai', + 'Site name' => 'Tinklapio pavadinimas', + 'Site description' => 'Tinklapio aprašymas', + 'Site keywords' => 'Tinklapio raktažodžiai', + 'Site slogan' => 'Tinklapio šūkis', + 'Default page' => 'Pagrindinis puslapis', + 'Time zone' => 'Laiko zona', + 'Language' => 'Kalba', + 'Save' => 'Išsaugoti', + 'Site' => 'Tinklapis', + 'System version' => 'Sistemos versija', + 'System version ID' => 'Sistemos versijos ID', + 'GZIP' => 'GZIP', + 'Debugging' => 'Derinimas', + 'Plugin API' => 'Įskiepių API', + 'Plugins active' => 'Aktyvūs įskiepiai', + 'Actions registered' => 'Veiksmai užregistruoti', + 'Filters registered' => 'Filtrai užregistruoti', + 'logout' => 'atsijungti', + 'site' => 'tinklapis', + 'Core' => 'Branduolys', + 'Delete temporary files' => 'Trinti laikinas bylas', + 'Download the latest version' => 'Atsisiųsti naujausią versiją', + 'Powered by' => 'Veikia su', + 'Administration' => 'Administravimas', + 'Settings' => 'Nustatymai', + 'Temporary files deleted' => 'Laikinos bylos ištrintos', + 'Extends' => 'Išplėtimas', + 'View site' => 'Peržiūrėti tinklapį', + 'Welcome, :username' => 'Sveiki, :username', + 'Reset Password' => 'Gauti naują slaptažodį', + '< Back to Website' => '< Grįžti į tinklapį', + 'Forgot your password? >' => 'Pamišote slaptažodį? >', + 'Administration >' => 'Administravimas >', + 'Send New Password' => 'Siųsti naują slaptažodį', + 'This user does not exist' => 'Tokio naudotojo nėra', + 'Version' => 'Versija', + + 'Install script writable' => 'Galima rašyti į diegimo scenarijų', + 'Install script not writable' => 'Negalima rašyti į diegimo scenarijų', + 'Directory: :dir writable' => 'Aplankas: galima rašyti į :dir ', + 'Directory: :dir not writable' => 'Aplankas: negalima rašyti į :dir ', + 'PHP Version' => 'PHP versija', + 'Module DOM is installed' => 'DOM modulis yra įdiegtas', + 'Module DOM is required' => 'Reikalingas DOM modulis', + 'Module Mod Rewrite is installed' => 'Apache Mod Rewrite yra įdiegtas', + 'Module SimpleXML is installed' => 'SimpleXML modulis yra įdiegtas', + 'PHP 5.2 or greater is required' => 'Reikalingas PHP 5.2 ar naujesnis', + 'Apache Mod Rewrite is required' => 'Reikalingas Apache Mod Rewrite', + 'SimpleXML module is required' => 'Reikalingas SimpleXML modulis', + 'Field "Site name" is empty' => 'Laukas „Tinklapio pavadimas“ yra tuščias', + 'Field "Email" is empty' => 'Laukas „El. paštas“ yra tuščias', + 'Field "Login" is empty' => 'Laukas „Prisijungimas“ yra tuščias', + 'Field "Password" is empty' => 'Laukas „Slaptažodis“ yra tuščias', + 'Field "Site url" is empty' => 'Laukas „Tinklapio adresas (url)“ yra tuščias', + 'Email not valid' => 'Neteisingas el. pašto adresas', + 'Install' => 'Įdiegti', + '...Monstra says...' => '...Monstra sako...', + 'Sitemap file writable' => 'Galima rašyti į sitemap bylą', + 'Sitemap file not writable' => 'Negalima rašyti į sitemap bylą', + 'Main .htaccess file writable' => 'Galima rašyti į pagrindinę .htaccess bylą', + 'Main .htaccess file not writable' => 'Negalima rašyti į pagrindinę .htaccess bylą', + ) + ); \ No newline at end of file diff --git a/plugins/box/themes/languages/lt.lang.php b/plugins/box/themes/languages/lt.lang.php new file mode 100644 index 0000000..9e77e25 --- /dev/null +++ b/plugins/box/themes/languages/lt.lang.php @@ -0,0 +1,49 @@ + array( + 'Themes' => 'Išvaizda', + 'Themes manager' => 'Išvaizdos tvarkyklė', + 'Select theme' => 'Pasirinkti išvaizdą', + 'Save' => 'Išsaugoti', + 'Save and exit' => 'Išsaugoti ir išeiti', + 'Name' => 'Pavadinimas', + 'Create new template' => 'Sukurti naują šabloną', + 'New template' => 'Naujas šablonas', + 'Delete template: :name' => 'Trinti šabloną :name', + 'Delete chunk: :name' => 'Trinti šablono dalį :name', + 'Delete styles: :name' => 'Trinti stiliaus aprašą :name', + 'Templates' => 'Šablonai', + 'Clone' => 'Klonuoti', + 'Edit' => 'Redaguoti', + 'Delete' => 'Ištrinti', + 'Actions' => 'Veiksmai', + 'Create new chunk' => 'Sukurti naują šablono dalį', + 'New chunk' => 'Nauja šablono dalis', + 'Chunks' => 'Šablono dalys', + 'Create new styles' => 'Sukurti naują stiliaus aprašą', + 'New styles' => 'Naujas stiliaus aprašas', + 'Styles' => 'Stiliaus aprašai', + 'Template content' => 'Šablono turinys', + 'Styles content' => 'Stiliaus aprašo turinys', + 'Chunk content' => 'Šablono dalies turinys', + 'Edit template' => 'Redaguoti šabloną', + 'Edit chunk' => 'Redaguoti šablono dalį', + 'Edit styles' => 'Redaguoti stiliaus aprašą', + 'Current site theme' => 'Dabartinė tema', + 'Current admin theme' => 'Dabartinė administravimo tema', + 'This template already exists' => 'Toks šablonas jau yra', + 'This chunk already exists' => 'Tokia šablono dalis jau yra', + 'This styles already exists' => 'Toks stiliaus aprašas jau yra', + 'Components templates' => 'Šablonų komponentai', + 'Your changes to the chunk :name have been saved.' => 'Šablono dalies :name pakeitimai išsaugoti.', + 'Your changes to the styles :name have been saved.' => 'Stiliaus aprašo :name pakeitimai išsaugoti.', + 'Your changes to the template :name have been saved.' => 'Šablono :name pakeitimai išsaugoti.', + 'This field should not be empty' => 'Šis laukas negali būti tuščias', + 'Scripts' => 'Skriptai', + 'Create new script' => 'Sukurti naują skriptą', + 'Script content' => 'Skripto turinys', + 'New script' => 'Naujas scriptas', + 'Edit script' => 'Redaguoti skriptą', + ) + ); \ No newline at end of file diff --git a/plugins/box/users/languages/lt.lang.php b/plugins/box/users/languages/lt.lang.php new file mode 100644 index 0000000..3793b38 --- /dev/null +++ b/plugins/box/users/languages/lt.lang.php @@ -0,0 +1,65 @@ + array( + 'Users' => 'Naudotojai', + 'Login' => 'Prisijungti', + 'Username' => 'Prisijungimo vardas', + 'Password' => 'Slaptažodis', + 'Registered' => 'Registruotis', + 'Email' => 'El. paštas', + 'Role' => 'Rolė', + 'Roles' => 'Rolės', + 'Edit' => 'Redaguoti', + 'Actions' => 'Veiksmai', + 'Delete' => 'Ištrinti', + 'Enter' => 'Įeiti', + 'Logout' => 'Atsijungti', + 'Register new user' => 'Užregistruoti naują naudotoją', + 'New User Registration' => 'Naujo naudotojo registracija', + 'Delete user: :user' => 'Ištrinti naudotoją :user', + 'User :user have been deleted.' => 'Naudotojas :user ištrintas.', + 'This field should not be empty' => 'Šis laukas negali būti tuščias', + 'This user alredy exist' => 'Toks naudotojas jau yra', + 'Changes saved' => 'Pakeitimai išsaugoti', + 'Wrong old password' => 'Neteisingas senas slaptažodis', + 'Admin' => 'Administratorius', + 'User' => 'Naudotojas', + 'Editor' => 'Redaktorius', + 'Register' => 'Užregistruoti', + 'Edit profile' => 'Redaguoti profilį', + 'Save' => 'Išsaugoti', + 'Firstname' => 'Vardas', + 'Lastname' => 'Pavardė', + 'Old password' => 'Senas slaptažodis', + 'New password' => 'Naujas slaptažodis', + 'Welcome' => 'Sveiki', + 'Wrong username or password' => 'Neteisingas prisijungimo vardas arba slaptažodis', + 'Your changes have been saved.' => 'Pakeitimai išsaugoti.', + 'New user have been registered.' => 'Nauja naudotojas užregistruotas.', + 'Captcha' => 'Saugos kodas', + 'Registration' => 'Registracija', + 'User email is invalid' => 'Neteisingas naudotojo el. pašto adresas', + 'Reset Password' => 'Atstatyti slaptažodį', + 'Send New Password' => 'Išsiųsti naują slaptažodį', + 'This user doesnt alredy exist' => 'Tokio naudoto nebėra', + 'Users - Profile' => 'Naudotojai - Profilis', + 'Users - Edit Profile' => 'Naudotojai - Redaguoti profilį', + 'Users - Login' => 'Naudotojai - Prisijungti', + 'Users - Registration' => 'Naudotojai - Registracija', + 'Users - Password Recover' => 'Naudotojai - Slaptažodžio priminimas', + 'New Password' => 'Naujas slaptažodis', + 'Forgot your password?' => 'Pamiršai slaptažodį?', + 'New password has been sent' => 'Naujas slaptažodis išsiųstas', + 'Monstra says: This is not your profile...' => 'Monstra sako: profilis ne tavo...', + 'User registration is closed.' => 'Registracija uždaryta.', + 'Allow user registration' => 'Leisti registruotis naudotojams', + 'Required field' => 'Privalomas laukas', + 'This user doesnt exist' => 'Tokio naudotojo nėra', + 'Captcha code is wrong' => 'Saugos kodas neteisingas', + 'Your login details for :site_name has been sent' => 'Prisijungimo duomenys prie :site_name išsiųsti', + 'Your new password for :site_name' => 'Naujas :site_name slaptažodis', + 'Your login details for :site_name' => 'Prisijungimo prie :site_name detalės', + 'About Me' => 'Apie mane', + ) + ); \ No newline at end of file diff --git a/plugins/captcha/languages/lt.lang.php b/plugins/captcha/languages/lt.lang.php new file mode 100644 index 0000000..1b1e28b --- /dev/null +++ b/plugins/captcha/languages/lt.lang.php @@ -0,0 +1,9 @@ + array( + 'Captcha' => 'Saugos kodas', + 'Captcha plugin for Monstra' => 'Saugos kodo papildinys', + 'Captcha code is wrong' => 'Saugos kodas yra neteisingas', + ) + ); \ No newline at end of file diff --git a/plugins/sandbox/languages/lt.lang.php b/plugins/sandbox/languages/lt.lang.php new file mode 100644 index 0000000..029e148 --- /dev/null +++ b/plugins/sandbox/languages/lt.lang.php @@ -0,0 +1,10 @@ + array( + 'Sandbox' => 'Sandbox', + 'Sandbox plugin for Monstra' => 'Sandbox papildinys', + 'Sandbox template' => 'Sandbox šablonas', + 'Save' => 'Išsaugoti', + ) + ); \ No newline at end of file From 94787db64043cd1315db2290171fa58e58d6008e Mon Sep 17 00:00:00 2001 From: Martynas Barzda Date: Tue, 16 Oct 2012 21:00:31 +0300 Subject: [PATCH 5/8] Validation Helper: Added filter_var functions Updated email, ip and url methods with filter_var instead preg_match function. More: [filter_var](http://www.php.net/manual/en/function.filter-var.php), [validate filters](http://www.php.net/manual/en/filter.filters.validate.php) --- monstra/helpers/valid.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/monstra/helpers/valid.php b/monstra/helpers/valid.php index c2db15f..61399dc 100644 --- a/monstra/helpers/valid.php +++ b/monstra/helpers/valid.php @@ -45,7 +45,7 @@ * @return boolean */ public static function email($email) { - return (bool) preg_match('/^[-_a-z0-9\'+*$^&%=~!?{}]++(?:\.[-_a-z0-9\'+*$^&%=~!?{}]+)*+@(?:(?![-.])[-a-z0-9.]+(? - * if (Valid::ip('127.0.0.1')) { + * if (Valid::ip('127.0.0.1') || Valid::ip('0:0:0:0:0:0:7f00:1')) { * // Do something... * } * @@ -62,7 +62,7 @@ * @return boolean */ public static function ip($ip) { - return (bool) preg_match("^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}^", (string)$ip); + return (bool) filter_var((string)$ip, FILTER_VALIDATE_IP); } @@ -130,7 +130,7 @@ * @return boolean */ public static function url($url) { - return (bool) preg_match("|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i", (string)$url); + return (bool) filter_var((string)$url, FILTER_VALIDATE_URL); } From 148230378b7248c96fab7a6b5baa627d35d2672f Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 18 Oct 2012 17:50:27 +0300 Subject: [PATCH 6/8] Install Scripts - Updates --- install.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.php b/install.php index 2713759..83f9f66 100644 --- a/install.php +++ b/install.php @@ -40,7 +40,7 @@ // Select Monstra language if (Request::get('language')) { - if (in_array(Request::get('language'), array('en', 'ru'))) { + if (in_array(Request::get('language'), array('en', 'ru', 'lt', 'it', 'de'))) { if (Option::update('language', Request::get('language'))) { Request::redirect($site_url); } @@ -174,6 +174,7 @@ .language-link-current { color:#000; + font-weight: 700; } @@ -234,6 +235,9 @@
en | + it | + lt | + de | ru
From 5b644b5f541912f4e9f8c2a23453bb70a954d7e3 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 18 Oct 2012 18:06:32 +0300 Subject: [PATCH 7/8] Box Plugins: update translates --- plugins/box/information/languages/ru.lang.php | 2 +- plugins/box/users/languages/ru.lang.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/box/information/languages/ru.lang.php b/plugins/box/information/languages/ru.lang.php index 01fe5ec..4b7c7c5 100644 --- a/plugins/box/information/languages/ru.lang.php +++ b/plugins/box/information/languages/ru.lang.php @@ -3,7 +3,7 @@ return array( 'information' => array( 'Information' => 'Информация', - 'Debugging' => 'Дебагинг', + 'Debuging' => 'Дебаггинг', 'Name' => 'Название', 'Value' => 'Значение', 'Security' => 'Безопасность', diff --git a/plugins/box/users/languages/ru.lang.php b/plugins/box/users/languages/ru.lang.php index f8d5ee0..8be281d 100644 --- a/plugins/box/users/languages/ru.lang.php +++ b/plugins/box/users/languages/ru.lang.php @@ -5,7 +5,7 @@ 'Users' => 'Пользователи', 'Login' => 'Вход', 'Password' => 'Пароль', - 'Email' => 'Емейл', + 'Email' => 'Эл. почта', 'Registered' => 'Зарегистрирован', 'Role' => 'Роль', 'Roles' => 'Роли', @@ -36,12 +36,12 @@ 'Wrong login or password' => 'Неправильный логин или пароль', 'Your changes have been saved.' => 'Ваши изменения были сохранены.', 'New user have been registered.' => 'Новый пользователь был зарегистрирован.', - 'Captcha' => 'Капча', + 'Captcha' => 'Каптча', 'Registration' => 'Регистрация', 'Username' => 'Имя пользователя', - 'User email is invalid' => 'Электронная почта является недействительной', + 'User email is invalid' => 'Эл. почта является недействительной', 'Reset Password' => 'Сбросить пароль', - 'Send New Password' => 'Отослать пароль', + 'Send New Password' => 'Отправить пароль', 'This user doesnt alredy exist' => 'Такого пользователя не существует', 'Users - Profile' => 'Пользователи - Профиль', 'Users - Edit Profile' => 'Пользователи - Редактирование профиля', @@ -49,14 +49,14 @@ 'Users - Registration' => 'Пользователи - Регистрация', 'Users - Password Recover' => 'Пользователи - Восстановление пароля', 'New Password' => 'Новый пароль', - 'Forgot your password?' => 'Забыли пароль ?', + 'Forgot your password?' => 'Забыли пароль?', 'New password has been sent' => 'Новый пароль был отправлен', - 'Monstra says: This is not your profile...' => 'Монстра говорит: Это не твой профиль.', + 'Monstra says: This is not your profile...' => 'Монстра говорит: Это не твой профиль...', 'User registration is closed.' => 'Регистрация пользователей закрыта.', 'Allow user registration' => 'Разрешить регистрацию пользователей.', 'Required field' => 'Обязательное поле', - 'This user doesnt exist' => 'Этот пользователь не существует', - 'Captcha code is wrong' => 'Captcha неправильная', + 'This user doesnt exist' => 'Такого пользователя не существует', + 'Captcha code is wrong' => 'Неверный код каптча', 'Your login details for :site_name has been sent' => 'Ваши данные для доступа к :site_name были отправлены', 'Your new password for :site_name' => 'Ваш новый пароль для :site_name', 'Your login details for :site_name' => 'Ваши данные для доступа к :site_name', From eb189c1a9a03a2e0a8ae810afb6acbe445efaa23 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 18 Oct 2012 18:07:46 +0300 Subject: [PATCH 8/8] Monstra 2.0.1 --- changelog.txt | 7 +++++++ monstra/boot/defines.php | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index ad4ee63..73495e8 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +Monstra 2.0.1, 2012-10-18 +------------------------ +- Localization: DE, LT, IT translations added +- Validation Helper: Updated email, ip and url methods with filter_var instead preg_match function. +- Localization: EN, RU translations fixed +- Users Plugin: field "about_me" fixed + Monstra 2.0.0, 2012-10-09 ------------------------ - Idiorm Added! Idiorm - a lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5. diff --git a/monstra/boot/defines.php b/monstra/boot/defines.php index 79e56d5..89dcb23 100644 --- a/monstra/boot/defines.php +++ b/monstra/boot/defines.php @@ -19,12 +19,12 @@ /** * Set Monstra version */ - define('MONSTRA_VERSION', '2.0.0'); + define('MONSTRA_VERSION', '2.0.1'); /** * Set Monstra version id */ - define('MONSTRA_VERSION_ID', 20000); + define('MONSTRA_VERSION_ID', 20001); /** * Set Monstra site url