Version Description
Download this release
Release Info
Developer | Bueltge |
Plugin | AddQuicktag |
Version | 0.7 |
Comparing to | |
See all releases |
Code changes from version 0.6 to 0.7
- addquicktag-de_DE.mo +0 -0
- addquicktag-de_DE.po +95 -0
- addquicktag.php +29 -14
- addquicktag.pot +97 -0
addquicktag-de_DE.mo
ADDED
Binary file
|
addquicktag-de_DE.po
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: AddQuicktag\n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2007-05-15 14:24+0100\n"
|
6 |
+
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
|
12 |
+
#: addquicktag.php:76
|
13 |
+
msgid "Options saved."
|
14 |
+
msgstr "Einstellungen gespeichert."
|
15 |
+
|
16 |
+
#: addquicktag.php:82
|
17 |
+
msgid "wpaq_export.wpaq is exist!"
|
18 |
+
msgstr "wpaq_export.wpaq ist schon vorhanden!"
|
19 |
+
|
20 |
+
#: addquicktag.php:85
|
21 |
+
msgid "AddQuicktag options saved!"
|
22 |
+
msgstr "AddQuicktag Einstellungen gespeichert!"
|
23 |
+
|
24 |
+
#: addquicktag.php:86
|
25 |
+
msgid "Saved in: "
|
26 |
+
msgstr "Gespeichert in: "
|
27 |
+
|
28 |
+
#: addquicktag.php:100
|
29 |
+
msgid "Invalid file extension!"
|
30 |
+
msgstr "Nicht zulässige Dateierweiterung!"
|
31 |
+
|
32 |
+
#: addquicktag.php:115
|
33 |
+
msgid "AddQuicktag options imported!"
|
34 |
+
msgstr "AddQuicktag Einstellungen importiert!"
|
35 |
+
|
36 |
+
#: addquicktag.php:120
|
37 |
+
msgid "Adding or deleting Quicktag-buttons"
|
38 |
+
msgstr "Hinzufügen oder löschen eines Quicktag-buttons"
|
39 |
+
|
40 |
+
#: addquicktag.php:121
|
41 |
+
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are compulsary. To delete a tag simply empty all fields."
|
42 |
+
msgstr "Fülle das Feld unterhalb der bestehenden Buttons oder ändere einen Quicktag. Felder mit * sind Pflichtfelder. Um Quicktags zu löschen, einfach den Inhalt der zugehörigen Felder löschen."
|
43 |
+
|
44 |
+
#: addquicktag.php:122
|
45 |
+
msgid "Buttonstring*"
|
46 |
+
msgstr "Button-name"
|
47 |
+
|
48 |
+
#: addquicktag.php:123
|
49 |
+
msgid "Start tag(s)*"
|
50 |
+
msgstr "Start Tag(s)*"
|
51 |
+
|
52 |
+
#: addquicktag.php:124
|
53 |
+
msgid "End tag(s)"
|
54 |
+
msgstr "Ende tags(s)"
|
55 |
+
|
56 |
+
#: addquicktag.php:125
|
57 |
+
msgid "Update Options »"
|
58 |
+
msgstr "Einstellungen aktualisieren »"
|
59 |
+
|
60 |
+
#: addquicktag.php:128
|
61 |
+
msgid "Export »"
|
62 |
+
msgstr "Exportieren »"
|
63 |
+
|
64 |
+
#: addquicktag.php:129
|
65 |
+
msgid "Export Quicktag-buttons options"
|
66 |
+
msgstr "Exportiere deine Quicktag-buttons"
|
67 |
+
|
68 |
+
#: addquicktag.php:130
|
69 |
+
msgid "You can save a wpaq-File with your options in <em>/wp-content/</em>"
|
70 |
+
msgstr "Du kannst eine wpaq-Datei mit allen Einstellungen auf <em>/wp-content/</em> speichern."
|
71 |
+
|
72 |
+
#: addquicktag.php:133
|
73 |
+
msgid "Upload file and import »"
|
74 |
+
msgstr "Datei hochladen und importieren »"
|
75 |
+
|
76 |
+
#: addquicktag.php:134
|
77 |
+
msgid "Import Quicktag-buttons options"
|
78 |
+
msgstr "Importiere deine Quicktag-buttons"
|
79 |
+
|
80 |
+
#: addquicktag.php:135
|
81 |
+
msgid "Choose a AddQuicktag (<em>wpaq</em>) file to upload, then click Upload file and import."
|
82 |
+
msgstr "Wähle eine AddQuicktag (wpaq) Datei zum hochladen und klicke dann Datei hochladen und importieren."
|
83 |
+
|
84 |
+
#: addquicktag.php:136
|
85 |
+
msgid "Choose a file from your computer: "
|
86 |
+
msgstr "Wähle eine Datei von deinem Rechner. "
|
87 |
+
|
88 |
+
#: addquicktag.php:139
|
89 |
+
msgid "Further information: Visit the <a href='http://bueltge.de/wp-addquicktags-de-plugin/120'>plugin homepage</a> for further information or to grab the latest version of this plugin."
|
90 |
+
msgstr "Weitere Informationen: Besuche die <a href='http://bueltge.de/wp-addquicktags-de-plugin/120'>Plugin homepage</a> für weitere Informationen oder hole die letzte Version des Plugins."
|
91 |
+
|
92 |
+
#: addquicktag.php:140
|
93 |
+
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
94 |
+
msgstr "Du willst Danke sagen? Besuche meine <a href='http://bueltge.de/wunschliste/'>Wunschliste</a>."
|
95 |
+
|
addquicktag.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: AddQuicktag
|
4 |
-
Version: 0.
|
5 |
Plugin URI: http://bueltge.de/wp-addquicktags-de-plugin/120
|
6 |
Description: This plugin make it easy, Quicktags add to the editor. It is possible to ex- and import your Quicktags. Use it <a href="options-general.php?page=addquicktag.php">Options --> Add Quicktags</a> by <a href="http://roel.meurders.nl/" >Roel Meurders</a> and <a href="http://bueltge.de" >Frank Bueltge</a>
|
7 |
*/
|
@@ -67,10 +67,10 @@ function wpaq_options_page(){
|
|
67 |
for ($i = 0; $i < count($_POST['wpaq']['buttons']); $i++){
|
68 |
$b = $_POST['wpaq']['buttons'][$i];
|
69 |
if ($b['text'] != '' && $b['start'] != ''){
|
70 |
-
$b['text']
|
71 |
-
$b['start']
|
72 |
-
$b['end']
|
73 |
-
$buttons[]
|
74 |
}
|
75 |
}
|
76 |
$_POST['wpaq']['buttons'] = $buttons;
|
@@ -78,14 +78,27 @@ function wpaq_options_page(){
|
|
78 |
$message = '<div class="updated"><p><strong>' . __('Options saved.', 'addquicktag') . '</strong></p></div>';
|
79 |
}
|
80 |
|
81 |
-
// Export
|
82 |
if (($_POST['action'] == 'export')) {
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
} else {
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
$message_export = '<div class="updated"><p><strong>' . __('AddQuicktag options saved!', 'addquicktag') . '</strong><br />';
|
88 |
-
$message_export.= __('Saved in: ', 'addquicktag') . $
|
89 |
$message_export.= '</p></div>';
|
90 |
}
|
91 |
}
|
@@ -96,19 +109,21 @@ function wpaq_options_page(){
|
|
96 |
|
97 |
// check file extension sql
|
98 |
$str_file_name = $_FILES['datei']['name'];
|
99 |
-
$str_file_ext
|
100 |
|
101 |
if ($str_file_ext[1] != 'wpaq') {
|
102 |
$message_export.= __('Invalid file extension!', 'addquicktag');
|
|
|
|
|
103 |
} else {
|
104 |
// path for file
|
105 |
$wpaq_document_root = str_replace("/wp-admin/options-general.php?page=addquicktag.php", "/wp-content/", $wpaq_document_root);
|
106 |
-
$str_ziel = $wpaq_document_root . $_FILES['datei']['name'];
|
|
|
107 |
// transfer
|
108 |
move_uploaded_file($_FILES['datei']['tmp_name'], $str_ziel);
|
109 |
// access authorisation
|
110 |
chmod($str_ziel, 0644);
|
111 |
-
|
112 |
// SQL import
|
113 |
ini_set('default_socket_timeout', 120);
|
114 |
$import_file = file_get_contents($str_ziel);
|
@@ -129,7 +144,7 @@ function wpaq_options_page(){
|
|
129 |
// Export strings
|
130 |
$button2 = __('Export »', 'addquicktag');
|
131 |
$export1 = __('Export Quicktag-buttons options', 'addquicktag');
|
132 |
-
$export2 = __('You can save a wpaq-File with your options in <em>/wp-content
|
133 |
|
134 |
// Import strings
|
135 |
$button3 = __('Upload file and import »', 'addquicktag');
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: AddQuicktag
|
4 |
+
Version: 0.7
|
5 |
Plugin URI: http://bueltge.de/wp-addquicktags-de-plugin/120
|
6 |
Description: This plugin make it easy, Quicktags add to the editor. It is possible to ex- and import your Quicktags. Use it <a href="options-general.php?page=addquicktag.php">Options --> Add Quicktags</a> by <a href="http://roel.meurders.nl/" >Roel Meurders</a> and <a href="http://bueltge.de" >Frank Bueltge</a>
|
7 |
*/
|
67 |
for ($i = 0; $i < count($_POST['wpaq']['buttons']); $i++){
|
68 |
$b = $_POST['wpaq']['buttons'][$i];
|
69 |
if ($b['text'] != '' && $b['start'] != ''){
|
70 |
+
$b['text'] = htmlentities($b['text']);
|
71 |
+
$b['start'] = stripslashes($b['start']);
|
72 |
+
$b['end'] = stripslashes($b['end']);
|
73 |
+
$buttons[] = $b;
|
74 |
}
|
75 |
}
|
76 |
$_POST['wpaq']['buttons'] = $buttons;
|
78 |
$message = '<div class="updated"><p><strong>' . __('Options saved.', 'addquicktag') . '</strong></p></div>';
|
79 |
}
|
80 |
|
81 |
+
// Export sql-option
|
82 |
if (($_POST['action'] == 'export')) {
|
83 |
+
$wpaq_data = mysql_query("SELECT option_value FROM $wpdb->options WHERE option_name = 'rmnlQuicktagSettings'");
|
84 |
+
$wpaq_data = mysql_result($wpaq_data, 0);
|
85 |
+
$file_name = $wpaq_document_root . '/wpaq_export-' . date('Y-m-d_G-i-s') . '.wpaq';
|
86 |
+
$file_name = str_replace("//", "/", $file_name);
|
87 |
+
$fh = @ fopen($file_name, 'w');
|
88 |
+
|
89 |
+
if ($fh == false) {
|
90 |
+
$message_export = '<div class="error"><p><strong>' . __('Can not open for write!', 'addquicktag') . '</strong></p></div>';
|
91 |
} else {
|
92 |
+
@flock($fh, LOCK_EXCLUSIVE);
|
93 |
+
$err = @fputs($fh, $wpaq_data);
|
94 |
+
@fclose($fh);
|
95 |
+
|
96 |
+
if ($err === false) {
|
97 |
+
$message_export = '<div class="error"><p><strong>' . __('Can not write!', 'addquicktag') . '</strong></p></div>';
|
98 |
+
}
|
99 |
+
|
100 |
$message_export = '<div class="updated"><p><strong>' . __('AddQuicktag options saved!', 'addquicktag') . '</strong><br />';
|
101 |
+
$message_export.= __('Saved in: ', 'addquicktag') . $file_name;
|
102 |
$message_export.= '</p></div>';
|
103 |
}
|
104 |
}
|
109 |
|
110 |
// check file extension sql
|
111 |
$str_file_name = $_FILES['datei']['name'];
|
112 |
+
$str_file_ext = explode(".", $str_file_name);
|
113 |
|
114 |
if ($str_file_ext[1] != 'wpaq') {
|
115 |
$message_export.= __('Invalid file extension!', 'addquicktag');
|
116 |
+
} elseif (file_exists($_FILES['datei']['name'])) {
|
117 |
+
$message_export.= __('File is exist!', 'addquicktag');
|
118 |
} else {
|
119 |
// path for file
|
120 |
$wpaq_document_root = str_replace("/wp-admin/options-general.php?page=addquicktag.php", "/wp-content/", $wpaq_document_root);
|
121 |
+
$str_ziel = $wpaq_document_root . '/' . $_FILES['datei']['name'];
|
122 |
+
$str_ziel = str_replace("//", "/", $str_ziel);
|
123 |
// transfer
|
124 |
move_uploaded_file($_FILES['datei']['tmp_name'], $str_ziel);
|
125 |
// access authorisation
|
126 |
chmod($str_ziel, 0644);
|
|
|
127 |
// SQL import
|
128 |
ini_set('default_socket_timeout', 120);
|
129 |
$import_file = file_get_contents($str_ziel);
|
144 |
// Export strings
|
145 |
$button2 = __('Export »', 'addquicktag');
|
146 |
$export1 = __('Export Quicktag-buttons options', 'addquicktag');
|
147 |
+
$export2 = __('You can save a wpaq-File with your options in <em>/wp-content/</em>', 'addquicktag');
|
148 |
|
149 |
// Import strings
|
150 |
$button3 = __('Upload file and import »', 'addquicktag');
|
addquicktag.pot
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: AddQuicktag\n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2007-05-04 12:31+0100\n"
|
6 |
+
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
12 |
+
|
13 |
+
|
14 |
+
#: addquicktag.php:76
|
15 |
+
msgid "Options saved."
|
16 |
+
msgstr ""
|
17 |
+
|
18 |
+
#: addquicktag.php:82
|
19 |
+
msgid "wpaq_export.wpaq is exist!"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: addquicktag.php:85
|
23 |
+
msgid "AddQuicktag options saved!"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: addquicktag.php:86
|
27 |
+
msgid "Saved in: "
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: addquicktag.php:100
|
31 |
+
msgid "Invalid file extension!"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: addquicktag.php:115
|
35 |
+
msgid "AddQuicktag options imported!"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: addquicktag.php:120
|
39 |
+
msgid "Adding or deleting Quicktag-buttons"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: addquicktag.php:121
|
43 |
+
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are compulsary. To delete a tag simply empty all fields."
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: addquicktag.php:122
|
47 |
+
msgid "Buttonstring*"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: addquicktag.php:123
|
51 |
+
msgid "Start tag(s)*"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: addquicktag.php:124
|
55 |
+
msgid "End tag(s)"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: addquicktag.php:125
|
59 |
+
msgid "Update Options »"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: addquicktag.php:128
|
63 |
+
msgid "Export »"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: addquicktag.php:129
|
67 |
+
msgid "Export Quicktag-buttons options"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: addquicktag.php:130
|
71 |
+
msgid "You can save a wpaq-File with your options in <em>/wp-content/wpaq_export.wpaq</em>"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: addquicktag.php:133
|
75 |
+
msgid "Upload file and import »"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: addquicktag.php:134
|
79 |
+
msgid "Import Quicktag-buttons options"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: addquicktag.php:135
|
83 |
+
msgid "Choose a AddQuicktag (<em>wpaq</em>) file to upload, then click Upload file and import."
|
84 |
+
msgstr ""
|
85 |
+
|
86 |
+
#: addquicktag.php:136
|
87 |
+
msgid "Choose a file from your computer: "
|
88 |
+
msgstr ""
|
89 |
+
|
90 |
+
#: addquicktag.php:139
|
91 |
+
msgid "Further information: Visit the <a href='http://bueltge.de/wp-addquicktags-de-plugin/120'>plugin homepage</a> for further information or to grab the latest version of this plugin."
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: addquicktag.php:140
|
95 |
+
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
96 |
+
msgstr ""
|
97 |
+
|