From 6aeac3b4f0b3d3b1579e3298501bf72c12724191 Mon Sep 17 00:00:00 2001 From: jmash Date: Fri, 23 Jan 2009 00:34:38 +0000 Subject: [PATCH] =?UTF-8?q?=3D=3DChange=20Log=3D=3D=20=3D=201.2.2=20=3D=20?= =?UTF-8?q?=20-=20Additional=20multi-lingual=20support=20=20-=20Adds=20tur?= =?UTF-8?q?kish=20translation=20~=20by=20=C3=96mer=20Faruk=20[ramerta.com]?= =?UTF-8?q?=20=20-=20Fix=20permalinks=20by=20flushing=20the=20rewrite=20ru?= =?UTF-8?q?les=20after=20updates=20~=20thanks=20Alexey=20;)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@88571 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- README.txt | 9 +++++-- pagemash.php | 2 +- pmash-tr_TR.mo | Bin 0 -> 4259 bytes pmash-tr_TR.po | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ savelist.php | 5 +++- 5 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 pmash-tr_TR.mo create mode 100644 pmash-tr_TR.po diff --git a/README.txt b/README.txt index e5b42d2..9333de3 100644 --- a/README.txt +++ b/README.txt @@ -3,7 +3,7 @@ Contributors: JoelStarnes Tags: order pages, ajax, re-order, drag-and-drop, admin, manage, page, pages, sidebar, header, hide, Requires at least: 2.1 Tested up to: 2.7 -Stable tag: 1.2.1 +Stable tag: 1.2.2 Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows for quick sorting, hiding and organising of page parenting structure in a simple intuative manner. @@ -21,7 +21,7 @@ Feedback is greatly appreciated: http://joelstarnes.co.uk/contact 1. Activate in 'Plugins' admin menu 1. Then have fun.. -pageMash works with the `wp_list_pages` function. The easiest way to use it is to put the pages widget in your sidebar. Click the configure button on the widget and ensure that 'sort by' is set to 'page order'. Hey presto, you're done. +pageMash works with the `wp_list_pages` function. The easiest way to use it is to put the standard WordPress pages widget in your sidebar. Click the configure button on the widget and ensure that 'sort by' is set to 'page order'. Hey presto, you're done. You can also use the function anywhere in your theme code. e.g. in your sidebar.php file (but the code in here will not run if you're using any widgets) or your header.php file (somewhere under the body tag, you may want to use the depth=1 parameter to only show top levle pages). The code should look something like the following: @@ -55,6 +55,11 @@ Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and ==Change Log== += 1.2.2 = + - Additional multi-lingual support + - Adds turkish translation ~ by Ömer Faruk [ramerta.com] + - Fix permalinks by flushing the rewrite rules after updates ~ thanks Alexey ;) + = 1.2.1 = - fix for menu position in WP2.7 diff --git a/pagemash.php b/pagemash.php index 06faced..120ebfc 100644 --- a/pagemash.php +++ b/pagemash.php @@ -107,7 +107,7 @@ function pageMash_main(){
- version [1.2.0] + version [1.2.2]

diff --git a/pmash-tr_TR.mo b/pmash-tr_TR.mo new file mode 100644 index 0000000000000000000000000000000000000000..5019a9ea144f6c2dadc86b641abfc7e217559f1c GIT binary patch literal 4259 zcmd5<&2Jn@6>nhqSo0+oaR4FoHZ{vGQP=wI-D|Fc2xSFAtzTo8N> z)V>k~XQ00ay$AlkL0`lA?iYgKd!QeHejDF^3HndakG|O2@S9hI;LG6u5%im&AA`OM z{@*}<3;Jv=2z~_m!>`~w_!AiZC(z%4{tVy01?6AD+QHcGfc_eE4c|Wo1qpC0fGGjY z3?RxsET?-|H^+h>mIJo}m==5O%9b5Wh7R!7RP2f#sq_vSY$<~R4 zROmiE5sBTJRHwPJ?$n2Eot$#Hyt)3|S9(j2>H_wAUF*BgF|S;OAwF&oJ1w-&T5oKL zT@seyZ0FBJBBk*{n2fz+YD|r;DHV^|(T2vgL68jnqL!9jvz)fEl<`oEGP+B-$|NPy zIaMZ9z$Z@kCRzQG?;mQJTPI8@Z8XwRogo_VVdS=!ZpuQaoZi7kI&OEa@5V+~5Da6; zv)PX*-~=h0XW+p;Vl1Wh-Ff z01Cv($-*npNrGJ+@}$TAuSSc)SUJbafG)2J09%0Rfrp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%AJ=^y7N3&-o z3a3y@Rz&}O9P;5t{b3Yyl4eg?@Z}V)IKfRYqDKG`X06!;VlZ6IXXmufVTMRFm>ct& zE~mAhj`nyqZtX!1Fc97Ds<`0s=oaz}oRo+O=9oPXFLZ($QxTWhqDp|#ehBLFgV1ew d$SvB!gIedYhh\n" +"Language-Team: Outsource to Asia \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: German\n" +"X-Poedit-Country: GERMANY\n" +"X-Poedit-SourceCharset: utf-8\n" +"X-Poedit-KeywordsList: _e;__\n" +"X-Poedit-Basepath: .\n" +"X-Poedit-SearchPath-0: .\n" + +#: pagemash.php:113 +msgid "pageMash - pageManagement " +msgstr "pageMash - Sayfa Yönetimi" + +#: pagemash.php:115 +msgid "Just drag the pages up or down to change the page order and left or right to change the page`s parent, then hit \"update\". " +msgstr "Sayfa düzenini değiştirmek için sadece sayfaları yukarı ya da aşağı doğru bırak ve sayfanın parentini değiştirmek için sol ya da sağ olarak değiştir, sonra tıkla: \"update\". " + +#: pagemash.php:116 +msgid "The icon to the left of each page shows if it has child pages, double click on that item to toggle expand|collapse of it`s children. " +msgstr "Eğer bir iconun üzerinde + işareti görünüyorsa, bu, o sayfanın alt sayfaları var anlamına gelir, Alt sayfalarını görmek için veya kapatmak için o sayfanın iconuna çift tıklayın. Hepsini açıp kapatmak için tıkla Hepsini Aç/Hepsini Kapat seçeneklerine tıklayın." + +#: pagemash.php:118 +msgid "Expand All " +msgstr "Hepsini Aç" + +#: pagemash.php:118 +msgid "Collapse All " +msgstr "Hepsini Kapat" + +#: pagemash.php:124 +msgid "Update " +msgstr "Güncelle" + +#: pagemash.php:131 +msgid "How to Use " +msgstr "Nasıl Kullanılır" + +#: pagemash.php:132 +msgid "pageMash works with the wp_list_pages function. The easiest way to use it is to put the pages widget in your sidebar 'WP admin page \\> Presentation \\> Widgets'. Click the configure button on the widget and ensure that 'sort by' is set to 'page order'. Hey presto, you're done. " +msgstr "pageMash. wp_list_pages function ile birlikte çalışmaktadır. Yan menüde bu eklentiyi kullanmanın kolay yolu şu 'WP Admin Sayfası\\> Görünüm \\> Bileşenler'. Ayarlar butonuna tıkla ve 'sort by' kısmını 'sayfa düzenine' ayarla ve olduğunu garantiye al." + +#: pagemash.php:133 +msgid "You can also use the function anywhere in your theme code. e.g. in your sidebar.php file (but the code in here will not run if you're using any widgets) or your header.php file (somewhere under the body tag, you may want to use the depth=1 parameter to only show top level pages). The code should look something like the following:" +msgstr "Bu eklentiyi sidebar.php dosyasının içindeki kodu ile heryerde kullanabilirsiniz. ( Sidebar kısmında kullanılırken diğer kısımlarda kullanılamaz) Örnek header.php kısmında. ( bazı yerlerde derinliği=1(depth=1 olarak kullanmak isteyebilirsiniz, sadece popüler sayfaları göstermek için ). Kodlar takiben gördüğünüz gibi olmalı" + +#: pagemash.php:138 +msgid "You can also hard-code pages to exclude and these will be merged with the pages you set to exclude in your pageMash admin." +msgstr "Zor-kod sayfalarından istersen dışlayabilirsin ve bunlar senin pageMash admin sayfalarında ayarlayıp dışta tuttuğun sayfalarla birleşecek " + +#: pagemash.php:139 +msgid "The code here is very simple and flexible, for more information look up wp_list_pages() in the Wordpress Codex as it is very well documented and if you have any further questions or feedback I like getting messages, so drop me an email." +msgstr "Kod sade ve kullanımlıdır, daha fazla bilgi için incele wp_list_pages() in the Wordpress Codex bol dökümanı bulabilirsiniz. Bana soru sorabilir veya feedback yapabilirsiniz. E-mail: bana mail yaz.." + +#: pagemash.php:204 +msgid "pageMash " +msgstr "pageMash" + diff --git a/savelist.php b/savelist.php index 42a6cbd..42a7238 100644 --- a/savelist.php +++ b/savelist.php @@ -24,7 +24,7 @@ if (file_exists($root.'/wp-load.php')) { require_once($root.'/wp-settings.php'); } -global $wpdb, $excludePages; +global $wpdb, $excludePages, $wp_rewrite; $excludePages = array(); // fetch JSON object from $_POST['m'] @@ -59,6 +59,9 @@ function saveList($parent, $children) { $i++; } } + +$wp_rewrite->flush_rules(); + echo "Update Pages: \n"; echo saveList(0, $aMenu); $wpdb->print_error();