Version Description
Download this release
Release Info
Developer | Bueltge |
Plugin | AddQuicktag |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 0.7 to 1.5.3
- addquicktag-de_DE.mo +0 -0
- addquicktag-de_DE.po +76 -38
- addquicktag-it_IT.mo +0 -0
- addquicktag-it_IT.po +135 -0
- addquicktag-ja.mo +0 -0
- addquicktag-ja.po +138 -0
- addquicktag-zh_TW.mo +0 -0
- addquicktag-zh_TW.po +138 -0
- addquicktag.php +286 -169
- addquicktag.pot +85 -54
addquicktag-de_DE.mo
CHANGED
Binary file
|
addquicktag-de_DE.po
CHANGED
@@ -2,94 +2,132 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: AddQuicktag\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
-
"PO-Revision-Date:
|
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:
|
13 |
msgid "Options saved."
|
14 |
msgstr "Einstellungen gespeichert."
|
15 |
|
16 |
-
#: addquicktag.php:
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
19 |
|
20 |
-
#: addquicktag.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
msgid "AddQuicktag options saved!"
|
22 |
msgstr "AddQuicktag Einstellungen gespeichert!"
|
23 |
|
24 |
-
#: addquicktag.php:
|
25 |
msgid "Saved in: "
|
26 |
msgstr "Gespeichert in: "
|
27 |
|
28 |
-
#: addquicktag.php:
|
29 |
msgid "Invalid file extension!"
|
30 |
msgstr "Nicht zulässige Dateierweiterung!"
|
31 |
|
32 |
-
#: addquicktag.php:
|
|
|
|
|
|
|
|
|
33 |
msgid "AddQuicktag options imported!"
|
34 |
msgstr "AddQuicktag Einstellungen importiert!"
|
35 |
|
36 |
-
#: addquicktag.php:
|
37 |
-
msgid "
|
|
|
|
|
|
|
|
|
38 |
msgstr "Hinzufügen oder löschen eines Quicktag-buttons"
|
39 |
|
40 |
-
#: addquicktag.php:
|
41 |
-
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are
|
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:
|
45 |
-
msgid "
|
46 |
-
msgstr "Button
|
47 |
|
48 |
-
#: addquicktag.php:
|
49 |
-
msgid "Start
|
50 |
msgstr "Start Tag(s)*"
|
51 |
|
52 |
-
#: addquicktag.php:
|
53 |
-
msgid "End
|
54 |
-
msgstr "Ende
|
55 |
|
56 |
-
#: addquicktag.php:
|
57 |
msgid "Update Options »"
|
58 |
msgstr "Einstellungen aktualisieren »"
|
59 |
|
60 |
-
#: addquicktag.php:
|
61 |
msgid "Export »"
|
62 |
msgstr "Exportieren »"
|
63 |
|
64 |
-
#: addquicktag.php:
|
65 |
-
msgid "Export Quicktag
|
66 |
msgstr "Exportiere deine Quicktag-buttons"
|
67 |
|
68 |
-
#: addquicktag.php:
|
69 |
-
msgid "You can save a wpaq
|
70 |
-
msgstr "Du kannst eine wpaq
|
71 |
|
72 |
-
#: addquicktag.php:
|
73 |
msgid "Upload file and import »"
|
74 |
msgstr "Datei hochladen und importieren »"
|
75 |
|
76 |
-
#: addquicktag.php:
|
77 |
-
msgid "Import Quicktag
|
78 |
msgstr "Importiere deine Quicktag-buttons"
|
79 |
|
80 |
-
#: addquicktag.php:
|
81 |
-
msgid "Choose a
|
82 |
-
msgstr "Wähle eine
|
83 |
|
84 |
-
#: addquicktag.php:
|
85 |
msgid "Choose a file from your computer: "
|
86 |
msgstr "Wähle eine Datei von deinem Rechner. "
|
87 |
|
88 |
-
#: addquicktag.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
91 |
|
92 |
-
#: addquicktag.php:
|
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 |
|
|
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: AddQuicktag\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2008-07-03 13:22+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 |
+
"X-Poedit-Basepath: D:\\WP-Plugins\\addquicktag\\trunk\\\n"
|
13 |
+
"X-Poedit-SearchPath-0: .\n"
|
14 |
|
15 |
+
#: addquicktag.php:81
|
16 |
msgid "Options saved."
|
17 |
msgstr "Einstellungen gespeichert."
|
18 |
|
19 |
+
#: addquicktag.php:84
|
20 |
+
#: addquicktag.php:116
|
21 |
+
#: addquicktag.php:154
|
22 |
+
#: addquicktag.php:169
|
23 |
+
msgid "You do not have sufficient permissions to edit plugins for this blog."
|
24 |
+
msgstr "Du hast keine ausreichenden Rechte um das Plugin zu ändern."
|
25 |
|
26 |
+
#: addquicktag.php:100
|
27 |
+
msgid "Can not open for write!"
|
28 |
+
msgstr "Öffnen zum Schreiben nicht möglich!"
|
29 |
+
|
30 |
+
#: addquicktag.php:107
|
31 |
+
msgid "Can not write!"
|
32 |
+
msgstr "Schreiben nicht möglich!"
|
33 |
+
|
34 |
+
#: addquicktag.php:110
|
35 |
msgid "AddQuicktag options saved!"
|
36 |
msgstr "AddQuicktag Einstellungen gespeichert!"
|
37 |
|
38 |
+
#: addquicktag.php:111
|
39 |
msgid "Saved in: "
|
40 |
msgstr "Gespeichert in: "
|
41 |
|
42 |
+
#: addquicktag.php:132
|
43 |
msgid "Invalid file extension!"
|
44 |
msgstr "Nicht zulässige Dateierweiterung!"
|
45 |
|
46 |
+
#: addquicktag.php:134
|
47 |
+
msgid "File is exist!"
|
48 |
+
msgstr "Datei nicht vorhanden!"
|
49 |
+
|
50 |
+
#: addquicktag.php:149
|
51 |
msgid "AddQuicktag options imported!"
|
52 |
msgstr "AddQuicktag Einstellungen importiert!"
|
53 |
|
54 |
+
#: addquicktag.php:165
|
55 |
+
msgid "AddQuicktag options have been deleted!"
|
56 |
+
msgstr "AddQuicktag Einstellungenwurden gelöschtt!"
|
57 |
+
|
58 |
+
#: addquicktag.php:173
|
59 |
+
msgid "Add or delete Quicktag buttons"
|
60 |
msgstr "Hinzufügen oder löschen eines Quicktag-buttons"
|
61 |
|
62 |
+
#: addquicktag.php:174
|
63 |
+
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
|
64 |
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."
|
65 |
|
66 |
+
#: addquicktag.php:175
|
67 |
+
msgid "Button Label*"
|
68 |
+
msgstr "Button Name*"
|
69 |
|
70 |
+
#: addquicktag.php:176
|
71 |
+
msgid "Start Tag(s)*"
|
72 |
msgstr "Start Tag(s)*"
|
73 |
|
74 |
+
#: addquicktag.php:177
|
75 |
+
msgid "End Tag(s)"
|
76 |
+
msgstr "Ende Tag(s)"
|
77 |
|
78 |
+
#: addquicktag.php:178
|
79 |
msgid "Update Options »"
|
80 |
msgstr "Einstellungen aktualisieren »"
|
81 |
|
82 |
+
#: addquicktag.php:181
|
83 |
msgid "Export »"
|
84 |
msgstr "Exportieren »"
|
85 |
|
86 |
+
#: addquicktag.php:182
|
87 |
+
msgid "Export Quicktag buttons options"
|
88 |
msgstr "Exportiere deine Quicktag-buttons"
|
89 |
|
90 |
+
#: addquicktag.php:183
|
91 |
+
msgid "You can save a .wpaq file with your options in <em>/wp-content/wpaq_export.wpaq</em>"
|
92 |
+
msgstr "Du kannst eine .wpaq Datei mit allen Einstellungen auf <em>/wp-content/</em> speichern."
|
93 |
|
94 |
+
#: addquicktag.php:186
|
95 |
msgid "Upload file and import »"
|
96 |
msgstr "Datei hochladen und importieren »"
|
97 |
|
98 |
+
#: addquicktag.php:187
|
99 |
+
msgid "Import Quicktag buttons options"
|
100 |
msgstr "Importiere deine Quicktag-buttons"
|
101 |
|
102 |
+
#: addquicktag.php:188
|
103 |
+
msgid "Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>."
|
104 |
+
msgstr "Wähle eine Quicktag (.wpaq) Datei zum hochladen und klicke dann <em>Datei hochladen und importieren</em>."
|
105 |
|
106 |
+
#: addquicktag.php:189
|
107 |
msgid "Choose a file from your computer: "
|
108 |
msgstr "Wähle eine Datei von deinem Rechner. "
|
109 |
|
110 |
+
#: addquicktag.php:192
|
111 |
+
msgid "Uninstall Options »"
|
112 |
+
msgstr "Einstellungen löschen »"
|
113 |
+
|
114 |
+
#: addquicktag.php:193
|
115 |
+
msgid "Uninstall options"
|
116 |
+
msgstr "Deinstalliere Einstellungen"
|
117 |
+
|
118 |
+
#: addquicktag.php:194
|
119 |
+
msgid "This button deletes all options of the WP-AddQuicktag plugin. Please use it <strong>before</strong> deactivating the plugin.<br /><strong>Attention: </strong>You cannot undo this!"
|
120 |
+
msgstr "Der Button löscht alle Einstellungen des Plugins WP-AddQuicktag. Bitte nutze ihn, <strong>bevor</strong> das Plugin deaktiviert wird.<br /><strong>Achtung: </strong>Du kannst dies nicht rückgängig machen!"
|
121 |
+
|
122 |
+
#: addquicktag.php:197
|
123 |
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."
|
124 |
+
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."
|
125 |
|
126 |
+
#: addquicktag.php:198
|
127 |
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
128 |
msgstr "Du willst Danke sagen? Besuche meine <a href='http://bueltge.de/wunschliste/'>Wunschliste</a>."
|
129 |
|
130 |
+
#: addquicktag.php:356
|
131 |
+
msgid "Settings"
|
132 |
+
msgstr "Einstellungen"
|
133 |
+
|
addquicktag-it_IT.mo
ADDED
Binary file
|
addquicktag-it_IT.po
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: AddQuicktag in italiano\n"
|
4 |
+
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2008-07-03 14:16+0100\n"
|
6 |
+
"Last-Translator: Gianni Diurno (aka gidibao) <gidibao@gmail.com>\n"
|
7 |
+
"Language-Team: gidibao.net <gidibao@gmail.com>\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 |
+
"X-Poedit-Basepath: D:\\WP-Plugins\\addquicktag\\trunk\\\n"
|
13 |
+
"X-Poedit-Language: Italian\n"
|
14 |
+
"X-Poedit-Country: ITALY\n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
#: addquicktag.php:79
|
19 |
+
msgid "Options saved."
|
20 |
+
msgstr "Le opzioni sono state salvate."
|
21 |
+
|
22 |
+
#: addquicktag.php:82
|
23 |
+
#: addquicktag.php:114
|
24 |
+
#: addquicktag.php:152
|
25 |
+
#: addquicktag.php:167
|
26 |
+
msgid "You do not have sufficient permissions to edit plugins for this blog."
|
27 |
+
msgstr "Non hai i permessi necessari per poter modificare i plugin di questo blog"
|
28 |
+
|
29 |
+
#: addquicktag.php:98
|
30 |
+
msgid "Can not open for write!"
|
31 |
+
msgstr "Non é possibile la scrittura!"
|
32 |
+
|
33 |
+
#: addquicktag.php:105
|
34 |
+
msgid "Can not write!"
|
35 |
+
msgstr "Non é possibile la scrittura!"
|
36 |
+
|
37 |
+
#: addquicktag.php:108
|
38 |
+
msgid "AddQuicktag options saved!"
|
39 |
+
msgstr "Le opzioni di AddQuicktag sono state salvate!"
|
40 |
+
|
41 |
+
#: addquicktag.php:109
|
42 |
+
msgid "Saved in: "
|
43 |
+
msgstr "Salvate in:"
|
44 |
+
|
45 |
+
#: addquicktag.php:130
|
46 |
+
msgid "Invalid file extension!"
|
47 |
+
msgstr "L'estensione del file non é valida!"
|
48 |
+
|
49 |
+
#: addquicktag.php:132
|
50 |
+
msgid "File is exist!"
|
51 |
+
msgstr "Il file é presente!"
|
52 |
+
|
53 |
+
#: addquicktag.php:147
|
54 |
+
msgid "AddQuicktag options imported!"
|
55 |
+
msgstr "Le opzioni di AddQuicktag sono state importate!"
|
56 |
+
|
57 |
+
#: addquicktag.php:163
|
58 |
+
msgid "AddQuicktag options have been deleted!"
|
59 |
+
msgstr "Le opzioni di AddQuicktag sono state cancellate!"
|
60 |
+
|
61 |
+
#: addquicktag.php:171
|
62 |
+
msgid "Add or delete Quicktag buttons"
|
63 |
+
msgstr "Aggiungi o cancella i pulsanti Quicktag"
|
64 |
+
|
65 |
+
#: addquicktag.php:172
|
66 |
+
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
|
67 |
+
msgstr "Compila i campi qui sotto per aggiungere o modificare i quicktag. I campi contrassegnati con * sono obbligatori. Per poter cancellare un tag dovrai lasciare in bianco tutti i campi."
|
68 |
+
|
69 |
+
#: addquicktag.php:173
|
70 |
+
msgid "Button Label*"
|
71 |
+
msgstr "Etichetta del pulsante*"
|
72 |
+
|
73 |
+
#: addquicktag.php:174
|
74 |
+
msgid "Start Tag(s)*"
|
75 |
+
msgstr "Davanti al/ai tag*"
|
76 |
+
|
77 |
+
#: addquicktag.php:175
|
78 |
+
msgid "End Tag(s)"
|
79 |
+
msgstr "In coda al/ai tag"
|
80 |
+
|
81 |
+
#: addquicktag.php:176
|
82 |
+
msgid "Update Options »"
|
83 |
+
msgstr "Aggiorna le opzioni »"
|
84 |
+
|
85 |
+
#: addquicktag.php:179
|
86 |
+
msgid "Export »"
|
87 |
+
msgstr "Esporta »"
|
88 |
+
|
89 |
+
#: addquicktag.php:180
|
90 |
+
msgid "Export Quicktag buttons options"
|
91 |
+
msgstr "Esporta le opzioni dei pulsanti Quicktag"
|
92 |
+
|
93 |
+
#: addquicktag.php:181
|
94 |
+
msgid "You can save a .wpaq file with your options in <em>/wp-content/wpaq_export.wpaq</em>"
|
95 |
+
msgstr "Puoi salvare un file .wpaq personalizzato in <em>/wp-content/wpaq_export.wpaq</em>"
|
96 |
+
|
97 |
+
#: addquicktag.php:184
|
98 |
+
msgid "Upload file and import »"
|
99 |
+
msgstr "Carica il file e importa »"
|
100 |
+
|
101 |
+
#: addquicktag.php:185
|
102 |
+
msgid "Import Quicktag buttons options"
|
103 |
+
msgstr "Importa le opzioni dei pulsanti Quicktag"
|
104 |
+
|
105 |
+
#: addquicktag.php:186
|
106 |
+
msgid "Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>."
|
107 |
+
msgstr "Scegli un file Quicktag (<em>.wpaq</em>) da caricare poi, clicca su <em>Carica il file e importa</em>."
|
108 |
+
|
109 |
+
#: addquicktag.php:187
|
110 |
+
msgid "Choose a file from your computer: "
|
111 |
+
msgstr "Scegli un file dal tuo computer:"
|
112 |
+
|
113 |
+
#: addquicktag.php:190
|
114 |
+
msgid "Uninstall Options »"
|
115 |
+
msgstr "Disinstalla »"
|
116 |
+
|
117 |
+
#: addquicktag.php:191
|
118 |
+
msgid "Uninstall options"
|
119 |
+
msgstr "Disinstalla le opzioni"
|
120 |
+
|
121 |
+
#: addquicktag.php:192
|
122 |
+
msgid "This button deletes all options of the WP-AddQuicktag plugin. Please use it <strong>before</strong> deactivating the plugin.<br /><strong>Attention: </strong>You cannot undo this!"
|
123 |
+
msgstr "Il pulsante qui sotto cancellerà tutte le modifiche apportate alle opzioni del plugin WP-AddQuicktag. Usalo <strong>prima</strong> di disattivare il plugin.<br /><strong>Attenzione: </strong>l'azione non é reversibile!"
|
124 |
+
|
125 |
+
#: addquicktag.php:195
|
126 |
+
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."
|
127 |
+
msgstr "Ulteriori informazioni: Visita la <a href='http://bueltge.de/wp-addquicktags-de-plugin/120'>homepage del plugin</a> per ulteriori e dettagliate informazioni oppure per scaricare l'ultima versione del plugin."
|
128 |
+
|
129 |
+
#: addquicktag.php:196
|
130 |
+
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
131 |
+
msgstr "Desideri ringraziarmi? Visita la mia <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
132 |
+
|
133 |
+
#~ msgid "Settings"
|
134 |
+
#~ msgstr "Settings"
|
135 |
+
|
addquicktag-ja.mo
ADDED
Binary file
|
addquicktag-ja.po
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: AddQuickTag 1.31\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-01-09 19:05+0900\n"
|
6 |
+
"PO-Revision-Date: 2008-07-03 13:25+0100\n"
|
7 |
+
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-Language: Japanese\n"
|
13 |
+
"X-Poedit-Country: JAPAN\n"
|
14 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
15 |
+
"X-Poedit-Basepath: D:\\WP-Plugins\\addquicktag\\trunk\\\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
#: addquicktag.php:81
|
19 |
+
msgid "Options saved."
|
20 |
+
msgstr "設定の保存"
|
21 |
+
|
22 |
+
#: addquicktag.php:84
|
23 |
+
#: addquicktag.php:116
|
24 |
+
#: addquicktag.php:154
|
25 |
+
#: addquicktag.php:169
|
26 |
+
msgid "You do not have sufficient permissions to edit plugins for this blog."
|
27 |
+
msgstr "You do not have sufficient permissions to edit plugins for this blog."
|
28 |
+
|
29 |
+
#: addquicktag.php:100
|
30 |
+
msgid "Can not open for write!"
|
31 |
+
msgstr "ファイルが開けません!"
|
32 |
+
|
33 |
+
#: addquicktag.php:107
|
34 |
+
msgid "Can not write!"
|
35 |
+
msgstr "ファイルに書き込めません!"
|
36 |
+
|
37 |
+
#: addquicktag.php:110
|
38 |
+
msgid "AddQuicktag options saved!"
|
39 |
+
msgstr "クイックタグの設定を保存しました!"
|
40 |
+
|
41 |
+
#: addquicktag.php:111
|
42 |
+
msgid "Saved in: "
|
43 |
+
msgstr "保存場所 : "
|
44 |
+
|
45 |
+
#: addquicktag.php:132
|
46 |
+
msgid "Invalid file extension!"
|
47 |
+
msgstr "ファイルの拡張子が不正です!"
|
48 |
+
|
49 |
+
#: addquicktag.php:134
|
50 |
+
msgid "File is exist!"
|
51 |
+
msgstr "ファイルが存在します!"
|
52 |
+
|
53 |
+
#: addquicktag.php:149
|
54 |
+
msgid "AddQuicktag options imported!"
|
55 |
+
msgstr "クイックタグの設定を読み込みました!"
|
56 |
+
|
57 |
+
#: addquicktag.php:165
|
58 |
+
#, fuzzy
|
59 |
+
msgid "AddQuicktag options have been deleted!"
|
60 |
+
msgstr "クイックタグの設定を保存しました!"
|
61 |
+
|
62 |
+
#: addquicktag.php:173
|
63 |
+
msgid "Add or delete Quicktag buttons"
|
64 |
+
msgstr "クイックタグの追加と削除"
|
65 |
+
|
66 |
+
#: addquicktag.php:174
|
67 |
+
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
|
68 |
+
msgstr "クイックタグを追加・編集するには以下の項目を埋めるか変更してください.* が付いた項目は必須です.削除するには全ての項目を空にしてください."
|
69 |
+
|
70 |
+
#: addquicktag.php:175
|
71 |
+
msgid "Button Label*"
|
72 |
+
msgstr "ラベル名"
|
73 |
+
|
74 |
+
#: addquicktag.php:176
|
75 |
+
msgid "Start Tag(s)*"
|
76 |
+
msgstr "開始タグ"
|
77 |
+
|
78 |
+
#: addquicktag.php:177
|
79 |
+
msgid "End Tag(s)"
|
80 |
+
msgstr "終了タグ"
|
81 |
+
|
82 |
+
#: addquicktag.php:178
|
83 |
+
msgid "Update Options »"
|
84 |
+
msgstr "更新 »"
|
85 |
+
|
86 |
+
#: addquicktag.php:181
|
87 |
+
msgid "Export »"
|
88 |
+
msgstr "出力 »"
|
89 |
+
|
90 |
+
#: addquicktag.php:182
|
91 |
+
msgid "Export Quicktag buttons options"
|
92 |
+
msgstr "クイックタグの設定の出力"
|
93 |
+
|
94 |
+
#: addquicktag.php:183
|
95 |
+
msgid "You can save a .wpaq file with your options in <em>/wp-content/wpaq_export.wpaq</em>"
|
96 |
+
msgstr "<em>/wp-content/wpaq_export.wpaq</em> というファイル名で保存されます."
|
97 |
+
|
98 |
+
#: addquicktag.php:186
|
99 |
+
msgid "Upload file and import »"
|
100 |
+
msgstr "設定の読み込み"
|
101 |
+
|
102 |
+
#: addquicktag.php:187
|
103 |
+
msgid "Import Quicktag buttons options"
|
104 |
+
msgstr "クイックタグの設定の読み込み"
|
105 |
+
|
106 |
+
#: addquicktag.php:188
|
107 |
+
msgid "Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>."
|
108 |
+
msgstr "アップロードして読み込みクイックタグの設定ファイル (<em>.wpaq</em>) を選択してください. 設定を読み込むには <em>設定の読み込み</em> をクリックします."
|
109 |
+
|
110 |
+
#: addquicktag.php:189
|
111 |
+
msgid "Choose a file from your computer: "
|
112 |
+
msgstr "コンピュータに保存されているファイルの選択 : "
|
113 |
+
|
114 |
+
#: addquicktag.php:192
|
115 |
+
#, fuzzy
|
116 |
+
msgid "Uninstall Options »"
|
117 |
+
msgstr "更新 »"
|
118 |
+
|
119 |
+
#: addquicktag.php:193
|
120 |
+
msgid "Uninstall options"
|
121 |
+
msgstr "Uninstall options"
|
122 |
+
|
123 |
+
#: addquicktag.php:194
|
124 |
+
msgid "This button deletes all options of the WP-AddQuicktag plugin. Please use it <strong>before</strong> deactivating the plugin.<br /><strong>Attention: </strong>You cannot undo this!"
|
125 |
+
msgstr "This button deletes all options of the WP-AddQuicktag plugin. Please use it <strong>before</strong> deactivating the plugin.<br /><strong>Attention: </strong>You cannot undo this!"
|
126 |
+
|
127 |
+
#: addquicktag.php:197
|
128 |
+
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."
|
129 |
+
msgstr "問い合わせ先 : 質問や最新バージョンの取得のためには <a href='http://bueltge.de/wp-addquicktags-de-plugin/120'>プラグインのホームページ</a> を訪れてください."
|
130 |
+
|
131 |
+
#: addquicktag.php:198
|
132 |
+
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
133 |
+
msgstr "よろしければ私の<a href='http://bueltge.de/wunschliste/'>ウィッシュリスト</a> も訪れてください."
|
134 |
+
|
135 |
+
#: addquicktag.php:356
|
136 |
+
msgid "Settings"
|
137 |
+
msgstr "Settings"
|
138 |
+
|
addquicktag-zh_TW.mo
ADDED
Binary file
|
addquicktag-zh_TW.po
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: AddQuicktag\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-04-09 13:00+0800\n"
|
6 |
+
"PO-Revision-Date: 2008-07-03 13:23+0100\n"
|
7 |
+
"Last-Translator: Frank Bueltge <frank@bueltge.de>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n==1?0:1;\n"
|
13 |
+
"X-Poedit-Language: Chinese\n"
|
14 |
+
"X-Poedit-Country: TAIWAN\n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_c\n"
|
17 |
+
"X-Poedit-Basepath: ./\n"
|
18 |
+
"X-Poedit-SearchPath-0: .\n"
|
19 |
+
|
20 |
+
#: addquicktag.php:81
|
21 |
+
msgid "Options saved."
|
22 |
+
msgstr "設定已儲存。"
|
23 |
+
|
24 |
+
#: addquicktag.php:84
|
25 |
+
#: addquicktag.php:116
|
26 |
+
#: addquicktag.php:154
|
27 |
+
#: addquicktag.php:169
|
28 |
+
msgid "You do not have sufficient permissions to edit plugins for this blog."
|
29 |
+
msgstr "您沒有足夠權限可以編輯此部落格的外掛。"
|
30 |
+
|
31 |
+
#: addquicktag.php:100
|
32 |
+
msgid "Can not open for write!"
|
33 |
+
msgstr "無法開啟檔案以寫入!"
|
34 |
+
|
35 |
+
#: addquicktag.php:107
|
36 |
+
msgid "Can not write!"
|
37 |
+
msgstr "無法寫入!"
|
38 |
+
|
39 |
+
#: addquicktag.php:110
|
40 |
+
msgid "AddQuicktag options saved!"
|
41 |
+
msgstr "AddQuicktag 設定已儲存!"
|
42 |
+
|
43 |
+
#: addquicktag.php:111
|
44 |
+
msgid "Saved in: "
|
45 |
+
msgstr "儲存於:"
|
46 |
+
|
47 |
+
#: addquicktag.php:132
|
48 |
+
msgid "Invalid file extension!"
|
49 |
+
msgstr "無效的檔案格式!"
|
50 |
+
|
51 |
+
#: addquicktag.php:134
|
52 |
+
msgid "File is exist!"
|
53 |
+
msgstr "檔案已存在!"
|
54 |
+
|
55 |
+
#: addquicktag.php:149
|
56 |
+
msgid "AddQuicktag options imported!"
|
57 |
+
msgstr "AddQuicktag 設定已匯入!"
|
58 |
+
|
59 |
+
#: addquicktag.php:165
|
60 |
+
msgid "AddQuicktag options have been deleted!"
|
61 |
+
msgstr "AddQuicktag 設定已刪除!"
|
62 |
+
|
63 |
+
#: addquicktag.php:173
|
64 |
+
msgid "Add or delete Quicktag buttons"
|
65 |
+
msgstr "增加或刪除 Quicktag 按鈕"
|
66 |
+
|
67 |
+
#: addquicktag.php:174
|
68 |
+
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
|
69 |
+
msgstr "在以下空格中加入或編輯 quicktags,附加星號的空格是必填項目,清除空格內容就可以刪除按鈕。"
|
70 |
+
|
71 |
+
#: addquicktag.php:175
|
72 |
+
msgid "Button Label*"
|
73 |
+
msgstr "按鈕名稱*"
|
74 |
+
|
75 |
+
#: addquicktag.php:176
|
76 |
+
msgid "Start Tag(s)*"
|
77 |
+
msgstr "開始標籤*"
|
78 |
+
|
79 |
+
#: addquicktag.php:177
|
80 |
+
msgid "End Tag(s)"
|
81 |
+
msgstr "結束標籤"
|
82 |
+
|
83 |
+
#: addquicktag.php:178
|
84 |
+
msgid "Update Options »"
|
85 |
+
msgstr "更新設定 »"
|
86 |
+
|
87 |
+
#: addquicktag.php:181
|
88 |
+
msgid "Export »"
|
89 |
+
msgstr "匯出 »"
|
90 |
+
|
91 |
+
#: addquicktag.php:182
|
92 |
+
msgid "Export Quicktag buttons options"
|
93 |
+
msgstr "匯出 Quicktag 按鈕設定"
|
94 |
+
|
95 |
+
#: addquicktag.php:183
|
96 |
+
msgid "You can save a .wpaq file with your options in <em>/wp-content/wpaq_export.wpaq</em>"
|
97 |
+
msgstr "您可以將您的設定值以 .wpaq 檔案儲存在 <em>/wp-content/wpaq_export.wpaq</em> 。"
|
98 |
+
|
99 |
+
#: addquicktag.php:186
|
100 |
+
msgid "Upload file and import »"
|
101 |
+
msgstr "上傳並匯入檔案 »"
|
102 |
+
|
103 |
+
#: addquicktag.php:187
|
104 |
+
msgid "Import Quicktag buttons options"
|
105 |
+
msgstr "匯入 Quicktag 按鈕設定"
|
106 |
+
|
107 |
+
#: addquicktag.php:188
|
108 |
+
msgid "Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>."
|
109 |
+
msgstr "請選擇一個 Quicktag (<em>.wpaq</em>) 檔案上傳,然後再按 <em>上傳並匯入檔案</em> 。"
|
110 |
+
|
111 |
+
#: addquicktag.php:189
|
112 |
+
msgid "Choose a file from your computer: "
|
113 |
+
msgstr "從您的電腦中選擇一個檔案:"
|
114 |
+
|
115 |
+
#: addquicktag.php:192
|
116 |
+
msgid "Uninstall Options »"
|
117 |
+
msgstr "移除設定 »"
|
118 |
+
|
119 |
+
#: addquicktag.php:193
|
120 |
+
msgid "Uninstall options"
|
121 |
+
msgstr "移除設定"
|
122 |
+
|
123 |
+
#: addquicktag.php:194
|
124 |
+
msgid "This button deletes all options of the WP-AddQuicktag plugin. Please use it <strong>before</strong> deactivating the plugin.<br /><strong>Attention: </strong>You cannot undo this!"
|
125 |
+
msgstr "此按鈕將會刪除所有 WP-AddQuicktag 外掛的設定值,請在停用外掛 <strong>之前</strong> 使用它。<br /><strong>注意:</strong>您將不能回復此動作!"
|
126 |
+
|
127 |
+
#: addquicktag.php:197
|
128 |
+
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."
|
129 |
+
msgstr "更多訊息:請參觀 <a href='http://bueltge.de/wp-addquicktags-de-plugin/120'>外掛首頁</a> 以獲得更多訊息或是下載此外掛的最新版本。"
|
130 |
+
|
131 |
+
#: addquicktag.php:198
|
132 |
+
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
133 |
+
msgstr "您想要感謝我嗎?請參觀我的 <a href='http://bueltge.de/wunschliste/'>願望清單</a> 。"
|
134 |
+
|
135 |
+
#: addquicktag.php:356
|
136 |
+
msgid "Settings"
|
137 |
+
msgstr "Settings"
|
138 |
+
|
addquicktag.php
CHANGED
@@ -1,14 +1,16 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: AddQuicktag
|
4 |
-
Version:
|
5 |
-
Plugin URI: http://bueltge.de/wp-addquicktags-de-plugin/120
|
6 |
-
Description:
|
|
|
|
|
7 |
*/
|
8 |
|
9 |
// SCRIPT INFO ///////////////////////////////////////////////////////////////////////////
|
10 |
/*
|
11 |
-
WP-AddQuicktag for
|
12 |
(C) 2005 Roel Meurders - GNU General Public License
|
13 |
|
14 |
AddQuicktag is an newer version with more functions and worked in WP 2.1
|
@@ -24,253 +26,368 @@ Description: This plugin make it easy, Quicktags add to the editor. It is possib
|
|
24 |
|
25 |
*/
|
26 |
|
27 |
-
//
|
28 |
-
if(
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
function wpaq_install() {
|
32 |
global $wpdb;
|
33 |
|
34 |
-
if (
|
35 |
$name = 'rmnlQuicktagSettings';
|
36 |
$value = 'a:1:{s:7:"buttons";a:1:{i:0;a:3:{s:4:"text";s:7:"Example";s:5:"start";s:9:"<example>";s:3:"end";s:10:"</example>";}}}';
|
37 |
-
$description = '';
|
38 |
$autoload = 'yes';
|
39 |
-
$wpdb->query("INSERT INTO $wpdb->options (option_name, option_value,
|
40 |
}
|
41 |
-
|
42 |
-
return;
|
43 |
}
|
44 |
|
45 |
-
if (function_exists('add_action')) {
|
46 |
-
add_action('admin_menu', 'wpaq_admin_menu');
|
47 |
-
|
48 |
-
if (strpos($_SERVER['REQUEST_URI'], 'addquicktag.php')) {
|
49 |
-
add_action('init', 'wpaq_install');
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
function wpaq_admin_menu(){
|
54 |
-
add_options_page('WP-Quicktag - Add Quicktags', 'Add Quicktags', 9, basename(__FILE__), 'wpaq_options_page');
|
55 |
-
}
|
56 |
|
57 |
-
|
|
|
58 |
global $wpdb;
|
|
|
59 |
$wpaq_document_root = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI'];
|
60 |
$wpaq_document_root = str_replace("/wp-admin/options-general.php?page=addquicktag.php", "/wp-content", $wpaq_document_root);
|
61 |
|
62 |
-
$wpaq_link
|
63 |
-
$wpaq_link
|
64 |
|
65 |
-
if ($_POST['wpaq']){
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
$b['
|
72 |
-
$b['
|
73 |
-
|
|
|
|
|
|
|
|
|
74 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
-
$_POST['wpaq']['buttons'] = $buttons;
|
77 |
-
update_option('rmnlQuicktagSettings', $_POST['wpaq']);
|
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 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
-
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
} else {
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
$message_export.= '</p></div>';
|
|
|
|
|
|
|
103 |
}
|
104 |
}
|
105 |
|
106 |
-
//
|
107 |
-
if (($_POST['action'] == '
|
108 |
-
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
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 |
-
|
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);
|
130 |
-
$wpdb->query("UPDATE $wpdb->options SET `option_value` = '$import_file' WHERE `option_name` = 'rmnlQuicktagSettings'");
|
131 |
-
unlink($str_ziel);
|
132 |
-
$message_export.= __('AddQuicktag options imported!', 'addquicktag');
|
133 |
}
|
134 |
-
$message_export.= '</strong></p></div>';
|
135 |
}
|
136 |
|
137 |
-
$string1 = __('
|
138 |
-
$string2 = __('Fill in the fields below to add or edit the quicktags. Fields with * are
|
139 |
-
$field1 = __('
|
140 |
-
$field2 = __('Start
|
141 |
-
$field3 = __('End
|
142 |
$button1 = __('Update Options »', 'addquicktag');
|
143 |
|
144 |
// Export strings
|
145 |
$button2 = __('Export »', 'addquicktag');
|
146 |
-
$export1 = __('Export Quicktag
|
147 |
-
$export2 = __('You can save a wpaq
|
148 |
|
149 |
// Import strings
|
150 |
$button3 = __('Upload file and import »', 'addquicktag');
|
151 |
-
$import1 = __('Import Quicktag
|
152 |
-
$import2 = __('Choose a
|
153 |
$import3 = __('Choose a file from your computer: ', 'addquicktag');
|
154 |
|
|
|
|
|
|
|
|
|
|
|
155 |
// Info
|
156 |
$info1 = __('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.', 'addquicktag');
|
157 |
$info2 = __('You want to thank me? Visit my <a href=\'http://bueltge.de/wunschliste/\'>wishlist</a>.', 'addquicktag');
|
158 |
|
159 |
$o = get_option('rmnlQuicktagSettings');
|
160 |
|
161 |
-
echo
|
162 |
<div class="wrap">
|
163 |
<h2>WP-Quicktag Management</h2>
|
164 |
-
|
165 |
-
|
166 |
<form name="form1" method="post" action="options-general.php?page=addquicktag.php">
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
|
|
171 |
<tr>
|
172 |
-
<th
|
173 |
-
<th
|
174 |
-
<th
|
175 |
</tr>
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
185 |
</tr>
|
186 |
-
|
187 |
}
|
188 |
-
echo
|
189 |
-
<tr valign="top"
|
190 |
-
<td><input type="text" name="wpaq[buttons][
|
191 |
-
<td><textarea name="wpaq[buttons][
|
192 |
-
<td><textarea name="wpaq[buttons][
|
193 |
</tr>
|
194 |
-
</
|
195 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
<p class="submit">
|
197 |
-
<input type="submit" name="
|
|
|
198 |
</p>
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
<p>{$export2}</p>
|
204 |
-
<p class="submit">
|
205 |
-
<input type="submit" name="Submit_export" value="{$button2}" />
|
206 |
-
<input type="hidden" name="action" value="export" />
|
207 |
-
</p>
|
208 |
-
</fieldset>
|
209 |
-
</form>
|
210 |
-
|
211 |
-
<form name="form3" enctype="multipart/form-data" method="post" action="options-general.php?page=addquicktag.php">
|
212 |
-
<fieldset class="options">
|
213 |
-
<legend>{$import1}</legend>
|
214 |
-
<p>{$import2}</p>
|
215 |
-
<p>
|
216 |
-
<label for="datei_id">{$import3}</label>
|
217 |
-
<input name="datei" id="datei_id" type="file" />
|
218 |
-
</p>
|
219 |
-
<p class="submit">
|
220 |
-
<input type="submit" name="Submit_import" value="{$button3}" />
|
221 |
-
<input type="hidden" name="action" value="import" />
|
222 |
-
</p>
|
223 |
-
</fieldset>
|
224 |
-
</form>
|
225 |
-
<hr />
|
226 |
-
<p><small>{$info1}<br />© Copyright 2007 <a href="http://bueltge.de">Frank Bültge</a> | {$info2}</small></p>
|
227 |
</div>
|
228 |
-
|
|
|
|
|
229 |
} //End function wpaq_options_page
|
230 |
|
231 |
-
|
|
|
|
|
232 |
add_action('admin_footer', 'wpaq_addsome');
|
233 |
|
234 |
-
function wpaq_addsome(){
|
235 |
$o = get_option('rmnlQuicktagSettings');
|
236 |
-
if(count($o['buttons']) > 0){
|
237 |
-
echo
|
238 |
<script type="text/javascript">
|
239 |
<!--
|
240 |
-
if(wpaqToolbar = document.getElementById("ed_toolbar")){
|
241 |
var wpaqNr, wpaqBut, wpaqStart, wpaqEnd;
|
242 |
-
|
243 |
-
for ($i = 0; $i < count($o['buttons']); $i++){
|
244 |
$b = $o['buttons'][$i];
|
|
|
|
|
|
|
245 |
$start = preg_replace('![\n\r]+!', "\\n", $b['start']);
|
246 |
$start = str_replace("'", "\'", $start);
|
247 |
$end = preg_replace('![\n\r]+!', "\\n", $b['end']);
|
248 |
$end = str_replace("'", "\'", $end);
|
249 |
-
echo
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
}
|
266 |
-
echo
|
267 |
}
|
268 |
|
269 |
//-->
|
270 |
</script>
|
271 |
-
|
272 |
}
|
273 |
} //End wpaq_addsome
|
274 |
} // End if
|
275 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: AddQuicktag
|
4 |
+
Version: 1.5.3
|
5 |
+
Plugin URI: http://bueltge.de/wp-addquicktags-de-plugin/120/
|
6 |
+
Description: Allows you to easily add custom Quicktags to the editor. You can also export and import your Quicktags.
|
7 |
+
Author: <a href="http://roel.meurders.nl/" >Roel Meurders</a> and <a href="http://bueltge.de" >Frank Bueltge</a>
|
8 |
+
Last Change: 21.08.2008 14:06:21
|
9 |
*/
|
10 |
|
11 |
// SCRIPT INFO ///////////////////////////////////////////////////////////////////////////
|
12 |
/*
|
13 |
+
WP-AddQuicktag for WordPress is in originally by
|
14 |
(C) 2005 Roel Meurders - GNU General Public License
|
15 |
|
16 |
AddQuicktag is an newer version with more functions and worked in WP 2.1
|
26 |
|
27 |
*/
|
28 |
|
29 |
+
// Pre-2.6 compatibility
|
30 |
+
if ( !defined('WP_CONTENT_URL') )
|
31 |
+
define( 'WP_CONTENT_URL', get_option('url') . '/wp-content');
|
32 |
+
if ( !defined('WP_CONTENT_DIR') )
|
33 |
+
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
|
34 |
+
|
35 |
+
|
36 |
+
function wpaq_textdomain() {
|
37 |
|
38 |
+
if (function_exists('load_plugin_textdomain')) {
|
39 |
+
if ( !defined('WP_PLUGIN_DIR') ) {
|
40 |
+
load_plugin_textdomain('addquicktag', str_replace( ABSPATH, '', dirname(__FILE__) ) );
|
41 |
+
} else {
|
42 |
+
load_plugin_textdomain('addquicktag', false, dirname(plugin_basename(__FILE__)) );
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
|
48 |
+
// install options in table _options
|
49 |
function wpaq_install() {
|
50 |
global $wpdb;
|
51 |
|
52 |
+
if (get_option('rmnlQuicktagSettings') == '') {
|
53 |
$name = 'rmnlQuicktagSettings';
|
54 |
$value = 'a:1:{s:7:"buttons";a:1:{i:0;a:3:{s:4:"text";s:7:"Example";s:5:"start";s:9:"<example>";s:3:"end";s:10:"</example>";}}}';
|
|
|
55 |
$autoload = 'yes';
|
56 |
+
$wpdb->query("INSERT INTO $wpdb->options (option_name, option_value, autoload) VALUES ('$name', '$value', '$autoload')");
|
57 |
}
|
|
|
|
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
+
// options-page in wp-backend
|
62 |
+
function wpaq_options_page() {
|
63 |
global $wpdb;
|
64 |
+
|
65 |
$wpaq_document_root = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI'];
|
66 |
$wpaq_document_root = str_replace("/wp-admin/options-general.php?page=addquicktag.php", "/wp-content", $wpaq_document_root);
|
67 |
|
68 |
+
$wpaq_link = $_SERVER['REQUEST_URI'];
|
69 |
+
$wpaq_link = str_replace("\\", "/", $wpaq_link);
|
70 |
|
71 |
+
if ($_POST['wpaq']) {
|
72 |
+
if ( function_exists('current_user_can') && current_user_can('edit_plugins') ) {
|
73 |
+
|
74 |
+
check_admin_referer('rmnl_nonce');
|
75 |
+
$buttons = array();
|
76 |
+
for ($i = 0; $i < count($_POST['wpaq']['buttons']); $i++){
|
77 |
+
$b = $_POST['wpaq']['buttons'][$i];
|
78 |
+
if ($b['text'] != '' && $b['start'] != '') {
|
79 |
+
$b['text'] = ($b['text']);
|
80 |
+
$b['start'] = stripslashes($b['start']);
|
81 |
+
$b['end'] = stripslashes($b['end']);
|
82 |
+
$buttons[] = $b;
|
83 |
+
}
|
84 |
}
|
85 |
+
$_POST['wpaq']['buttons'] = $buttons;
|
86 |
+
update_option('rmnlQuicktagSettings', $_POST['wpaq']);
|
87 |
+
$message = '<br class="clear" /><div class="updated fade"><p><strong>' . __('Options saved.', 'addquicktag') . '</strong></p></div>';
|
88 |
+
|
89 |
+
} else {
|
90 |
+
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
91 |
}
|
|
|
|
|
|
|
92 |
}
|
93 |
|
94 |
// Export sql-option
|
95 |
if (($_POST['action'] == 'export')) {
|
96 |
+
if ( function_exists('current_user_can') && current_user_can('edit_plugins') ) {
|
97 |
+
|
98 |
+
check_admin_referer('rmnl_nonce');
|
99 |
+
$wpaq_data = mysql_query("SELECT option_value FROM $wpdb->options WHERE option_name = 'rmnlQuicktagSettings'");
|
100 |
+
$wpaq_data = mysql_result($wpaq_data, 0);
|
101 |
+
$file_name = $wpaq_document_root . '/wpaq_export-' . date('Y-m-d_G-i-s') . '.wpaq';
|
102 |
+
$file_name = str_replace("//", "/", $file_name);
|
103 |
+
$fh = @ fopen($file_name, 'w');
|
104 |
+
|
105 |
+
if ($fh == false) {
|
106 |
+
$message_export = '<br class="clear" /><div class="error"><p><strong>' . __('Can not open for write!', 'addquicktag') . '</strong></p></div>';
|
107 |
+
} else {
|
108 |
+
@flock($fh, LOCK_EXCLUSIVE);
|
109 |
+
$err = @fputs($fh, $wpaq_data);
|
110 |
+
@fclose($fh);
|
111 |
|
112 |
+
if ($err === false) {
|
113 |
+
$message_export = '<br class="clear" /><div class="error"><p><strong>' . __('Can not write!', 'addquicktag') . '</strong></p></div>';
|
114 |
+
}
|
115 |
+
|
116 |
+
$message_export = '<br class="clear" /><div class="updated fade"><p><strong>' . __('AddQuicktag options saved!', 'addquicktag') . '</strong><br />';
|
117 |
+
$message_export.= __('Saved in: ', 'addquicktag') . $file_name;
|
118 |
+
$message_export.= '</p></div>';
|
119 |
+
}
|
120 |
+
|
121 |
} else {
|
122 |
+
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
123 |
+
}
|
124 |
+
}
|
125 |
+
|
126 |
+
// Import the sql-file
|
127 |
+
if (($_POST['action'] == 'import')) {
|
128 |
+
if ( function_exists('current_user_can') && current_user_can('edit_plugins') ) {
|
129 |
+
|
130 |
+
check_admin_referer('rmnl_nonce');
|
131 |
+
$message_export = '<br class="clear" /><div class="updated fade"><p>';
|
132 |
|
133 |
+
// check file extension sql
|
134 |
+
$str_file_name = $_FILES['datei']['name'];
|
135 |
+
$str_file_ext = explode(".", $str_file_name);
|
136 |
|
137 |
+
if ($str_file_ext[1] != 'wpaq') {
|
138 |
+
$message_export.= __('Invalid file extension!', 'addquicktag');
|
139 |
+
} elseif (file_exists($_FILES['datei']['name'])) {
|
140 |
+
$message_export.= __('File is exist!', 'addquicktag');
|
141 |
+
} else {
|
142 |
+
// path for file
|
143 |
+
$wpaq_document_root = str_replace("/wp-admin/options-general.php?page=addquicktag.php", "/wp-content/", $wpaq_document_root);
|
144 |
+
$str_ziel = $wpaq_document_root . '/' . $_FILES['datei']['name'];
|
145 |
+
$str_ziel = str_replace("//", "/", $str_ziel);
|
146 |
+
// transfer
|
147 |
+
move_uploaded_file($_FILES['datei']['tmp_name'], $str_ziel);
|
148 |
+
// access authorisation
|
149 |
+
chmod($str_ziel, 0644);
|
150 |
+
// SQL import
|
151 |
+
ini_set('default_socket_timeout', 120);
|
152 |
+
$import_file = file_get_contents($str_ziel);
|
153 |
+
$wpdb->query("UPDATE $wpdb->options SET `option_value` = '$import_file' WHERE `option_name` = 'rmnlQuicktagSettings'");
|
154 |
+
unlink($str_ziel);
|
155 |
+
$message_export.= __('AddQuicktag options imported!', 'addquicktag');
|
156 |
+
}
|
157 |
$message_export.= '</p></div>';
|
158 |
+
|
159 |
+
} else {
|
160 |
+
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
161 |
}
|
162 |
}
|
163 |
|
164 |
+
// Uninstall options
|
165 |
+
if (($_POST['action'] == 'uninstall')) {
|
166 |
+
if ( function_exists('current_user_can') && current_user_can('edit_plugins') ) {
|
167 |
|
168 |
+
check_admin_referer('rmnl_nonce');
|
169 |
+
delete_option('rmnlQuicktagSettings', $_POST['wpaq']);
|
170 |
+
$message_export = '<br class="clear" /><div class="updated fade"><p>';
|
171 |
+
$message_export.= __('AddQuicktag options have been deleted!', 'addquicktag');
|
172 |
+
$message_export.= '</p></div>';
|
173 |
|
|
|
|
|
|
|
|
|
174 |
} else {
|
175 |
+
wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
}
|
|
|
177 |
}
|
178 |
|
179 |
+
$string1 = __('Add or delete Quicktag buttons', 'addquicktag');
|
180 |
+
$string2 = __('Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields.', 'addquicktag');
|
181 |
+
$field1 = __('Button Label*', 'addquicktag');
|
182 |
+
$field2 = __('Start Tag(s)*', 'addquicktag');
|
183 |
+
$field3 = __('End Tag(s)', 'addquicktag');
|
184 |
$button1 = __('Update Options »', 'addquicktag');
|
185 |
|
186 |
// Export strings
|
187 |
$button2 = __('Export »', 'addquicktag');
|
188 |
+
$export1 = __('Export Quicktag buttons options', 'addquicktag');
|
189 |
+
$export2 = __('You can save a .wpaq file with your options in <em>/wp-content/wpaq_export.wpaq</em>', 'addquicktag');
|
190 |
|
191 |
// Import strings
|
192 |
$button3 = __('Upload file and import »', 'addquicktag');
|
193 |
+
$import1 = __('Import Quicktag buttons options', 'addquicktag');
|
194 |
+
$import2 = __('Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>.', 'addquicktag');
|
195 |
$import3 = __('Choose a file from your computer: ', 'addquicktag');
|
196 |
|
197 |
+
// Uninstall strings
|
198 |
+
$button4 = __('Uninstall Options »', 'addquicktag');
|
199 |
+
$uninstall1 = __('Uninstall options', 'addquicktag');
|
200 |
+
$uninstall2 = __('This button deletes all options of the WP-AddQuicktag plugin. Please use it <strong>before</strong> deactivating the plugin.<br /><strong>Attention: </strong>You cannot undo this!', 'addquicktag');
|
201 |
+
|
202 |
// Info
|
203 |
$info1 = __('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.', 'addquicktag');
|
204 |
$info2 = __('You want to thank me? Visit my <a href=\'http://bueltge.de/wunschliste/\'>wishlist</a>.', 'addquicktag');
|
205 |
|
206 |
$o = get_option('rmnlQuicktagSettings');
|
207 |
|
208 |
+
echo '
|
209 |
<div class="wrap">
|
210 |
<h2>WP-Quicktag Management</h2>
|
211 |
+
' . $message .
|
212 |
+
$message_export . '
|
213 |
<form name="form1" method="post" action="options-general.php?page=addquicktag.php">
|
214 |
+
' . wp_nonce_field('rmnl_nonce') . '
|
215 |
+
<h3>' . $string1 . '</h3>
|
216 |
+
<p>' . $string2 . '</p>
|
217 |
+
<table summary="rmnl" class="widefat">
|
218 |
+
<thead>
|
219 |
<tr>
|
220 |
+
<th scope="col">' . $field1 . '</th>
|
221 |
+
<th scope="col">' . $field2 . '</th>
|
222 |
+
<th scope="col">' . $field3 . '</th>
|
223 |
</tr>
|
224 |
+
</thead>
|
225 |
+
<tbody>
|
226 |
+
';
|
227 |
+
for ($i = 0; $i < count($o['buttons']); $i++) {
|
228 |
+
$b = $o['buttons'][$i];
|
229 |
+
$b['text'] = htmlentities(stripslashes($b['text']), ENT_COMPAT, get_option('blog_charset'));
|
230 |
+
$b['start'] = htmlentities($b['start'], ENT_COMPAT, get_option('blog_charset'));
|
231 |
+
$b['end'] = htmlentities($b['end'], ENT_COMPAT, get_option('blog_charset'));
|
232 |
+
$nr = $i + 1;
|
233 |
+
echo '
|
234 |
+
<tr valign="top">
|
235 |
+
<td><input type="text" name="wpaq[buttons][' . $i . '][text]" value="' . $b['text'] . '" style="width: 95%;" /></td>
|
236 |
+
<td><textarea class="code" name="wpaq[buttons][' . $i . '][start]" rows="2" cols="25" style="width: 95%;">' . $b['start'] . '</textarea></td>
|
237 |
+
<td><textarea class="code" name="wpaq[buttons][' . $i . '][end]" rows="2" cols="25" style="width: 95%;">' . $b['end'] . '</textarea></td>
|
238 |
</tr>
|
239 |
+
';
|
240 |
}
|
241 |
+
echo '
|
242 |
+
<tr valign="top">
|
243 |
+
<td><input type="text" name="wpaq[buttons][' . $i . '][text]" value="" tyle="width: 95%;" /></td>
|
244 |
+
<td><textarea class="code" name="wpaq[buttons][' . $i . '][start]" rows="2" cols="25" style="width: 95%;"></textarea></td>
|
245 |
+
<td><textarea class="code" name="wpaq[buttons][' . $i . '][end]" rows="2" cols="25" style="width: 95%;"></textarea></td>
|
246 |
</tr>
|
247 |
+
</tbody>
|
248 |
+
</table>
|
249 |
+
<p class="submit">
|
250 |
+
<input class="button" type="submit" name="Submit" value="' . $button1 . '" />
|
251 |
+
</p>
|
252 |
+
</form>
|
253 |
+
|
254 |
+
<form name="form2" method="post" action="options-general.php?page=addquicktag.php">
|
255 |
+
' . wp_nonce_field('rmnl_nonce') . '
|
256 |
+
<h3>' . $export1 . '</h3>
|
257 |
+
<p>' . $export2 . '</p>
|
258 |
+
<p class="submit">
|
259 |
+
<input class="button" type="submit" name="Submit_export" value="' . $button2 . '" />
|
260 |
+
<input type="hidden" name="action" value="export" />
|
261 |
+
</p>
|
262 |
+
</form>
|
263 |
+
|
264 |
+
<form name="form3" enctype="multipart/form-data" method="post" action="options-general.php?page=addquicktag.php">
|
265 |
+
' . wp_nonce_field('rmnl_nonce') . '
|
266 |
+
<h3>' . $import1 . '</h3>
|
267 |
+
<p>' . $import2 . '</p>
|
268 |
+
<p>
|
269 |
+
<label for="datei_id">' . $import3 . '</label>
|
270 |
+
<input name="datei" id="datei_id" type="file" />
|
271 |
+
</p>
|
272 |
+
<p class="submit">
|
273 |
+
<input class="button" type="submit" name="Submit_import" value="' . $button3 . '" />
|
274 |
+
<input type="hidden" name="action" value="import" />
|
275 |
+
</p>
|
276 |
+
</form>
|
277 |
+
|
278 |
+
<form name="form4" method="post" action="options-general.php?page=addquicktag.php">
|
279 |
+
' . wp_nonce_field('rmnl_nonce') . '
|
280 |
+
<h3>' . $uninstall1 . '</h3>
|
281 |
+
<p>' . $uninstall2 . '</p>
|
282 |
<p class="submit">
|
283 |
+
<input class="button" type="submit" name="Submit_uninstall" value="' . $button4 . '" />
|
284 |
+
<input type="hidden" name="action" value="uninstall" />
|
285 |
</p>
|
286 |
+
</form>
|
287 |
+
|
288 |
+
<div class="tablenav">
|
289 |
+
<br style="clear:both;" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
</div>
|
291 |
+
<p><small>' . $info1 . '<br />© Copyright 2007 - ' . date("Y") . ' <a href="http://bueltge.de">Frank Bültge</a> | ' . $info2 . '</small></p>
|
292 |
+
</div>
|
293 |
+
';
|
294 |
} //End function wpaq_options_page
|
295 |
|
296 |
+
|
297 |
+
// only for post.php, page.php, post-new.php, page-new.php, comment.php
|
298 |
+
if (strpos($_SERVER['REQUEST_URI'], 'post.php') || strpos($_SERVER['REQUEST_URI'], 'post-new.php') || strpos($_SERVER['REQUEST_URI'], 'page-new.php') || strpos($_SERVER['REQUEST_URI'], 'page.php') || strpos($_SERVER['REQUEST_URI'], 'comment.php')) {
|
299 |
add_action('admin_footer', 'wpaq_addsome');
|
300 |
|
301 |
+
function wpaq_addsome() {
|
302 |
$o = get_option('rmnlQuicktagSettings');
|
303 |
+
if (count($o['buttons']) > 0) {
|
304 |
+
echo '
|
305 |
<script type="text/javascript">
|
306 |
<!--
|
307 |
+
if (wpaqToolbar = document.getElementById("ed_toolbar")) {
|
308 |
var wpaqNr, wpaqBut, wpaqStart, wpaqEnd;
|
309 |
+
';
|
310 |
+
for ($i = 0; $i < count($o['buttons']); $i++) {
|
311 |
$b = $o['buttons'][$i];
|
312 |
+
$txt = html_entity_decode(stripslashes($b['txt']), ENT_COMPAT, get_option('blog_charset'));
|
313 |
+
$text = stripslashes($b['text']);
|
314 |
+
$b['text'] = stripslashes($b['text']);
|
315 |
$start = preg_replace('![\n\r]+!', "\\n", $b['start']);
|
316 |
$start = str_replace("'", "\'", $start);
|
317 |
$end = preg_replace('![\n\r]+!', "\\n", $b['end']);
|
318 |
$end = str_replace("'", "\'", $end);
|
319 |
+
echo '
|
320 |
+
wpaqStart = \'' . $start . '\';
|
321 |
+
wpaqEnd = \'' . $end . '\';
|
322 |
+
wpaqNr = edButtons.length;
|
323 |
+
edButtons[wpaqNr] = new edButton(\'ed_wpaq' . $i . '\', \'' . $b['txt'] . '\', wpaqStart, wpaqEnd,\'\');
|
324 |
+
var wpaqBut = wpaqToolbar.lastChild;
|
325 |
+
while (wpaqBut.nodeType != 1) {
|
326 |
+
wpaqBut = wpaqBut.previousSibling;
|
327 |
+
}
|
328 |
+
wpaqBut = wpaqBut.cloneNode(true);
|
329 |
+
wpaqToolbar.appendChild(wpaqBut);
|
330 |
+
wpaqBut.value = \'' . $b['text'] . '\';
|
331 |
+
wpaqBut.title = wpaqNr;
|
332 |
+
wpaqBut.onclick = function () {edInsertTag(edCanvas, parseInt(this.title));}
|
333 |
+
wpaqBut.id = "ed_wpaq' . $i .'";
|
334 |
+
';
|
335 |
}
|
336 |
+
echo '
|
337 |
}
|
338 |
|
339 |
//-->
|
340 |
</script>
|
341 |
+
';
|
342 |
}
|
343 |
} //End wpaq_addsome
|
344 |
} // End if
|
345 |
|
346 |
+
|
347 |
+
// add to wp
|
348 |
+
register_activation_hook(__FILE__, 'wpaq_install');
|
349 |
+
if ( is_admin() ) {
|
350 |
+
add_action('init', 'wpaq_textdomain');
|
351 |
+
add_action('admin_menu', 'wpaq_add_settings_page');
|
352 |
+
add_action('in_admin_footer', 'wpaq_admin_footer');
|
353 |
+
}
|
354 |
+
|
355 |
+
|
356 |
+
/**
|
357 |
+
* Add action link(s) to plugins page
|
358 |
+
* Thanks Dion Hulse -- http://dd32.id.au/wordpress-plugins/?configure-link
|
359 |
+
*/
|
360 |
+
function wpaq_filter_plugin_actions($links, $file){
|
361 |
+
static $this_plugin;
|
362 |
+
|
363 |
+
if( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
|
364 |
+
|
365 |
+
if( $file == $this_plugin ){
|
366 |
+
$settings_link = '<a href="options-general.php?page=addquicktag.php">' . __('Settings') . '</a>';
|
367 |
+
$links = array_merge( array($settings_link), $links); // before other links
|
368 |
+
}
|
369 |
+
return $links;
|
370 |
+
}
|
371 |
+
|
372 |
+
|
373 |
+
/**
|
374 |
+
* settings in plugin-admin-page
|
375 |
+
*/
|
376 |
+
function wpaq_add_settings_page() {
|
377 |
+
if( function_exists('current_user_can') && current_user_can('manage_options') ) {
|
378 |
+
add_options_page('WP-Quicktag - Add Quicktags', 'Add Quicktags', 9, basename(__FILE__), 'wpaq_options_page');
|
379 |
+
add_filter('plugin_action_links', 'wpaq_filter_plugin_actions', 10, 2);
|
380 |
+
}
|
381 |
+
}
|
382 |
+
|
383 |
+
|
384 |
+
/**
|
385 |
+
* credit in wp-footer
|
386 |
+
*/
|
387 |
+
function wpaq_admin_footer() {
|
388 |
+
if( basename($_SERVER['REQUEST_URI']) == 'options-general.php?page=addquicktag.php') {
|
389 |
+
$plugin_data = get_plugin_data( __FILE__ );
|
390 |
+
printf('%1$s plugin | ' . __('Version') . ' %2$s | ' . __('Author') . ' %3$s<br />', $plugin_data['Title'], $plugin_data['Version'], $plugin_data['Author']);
|
391 |
+
}
|
392 |
+
}
|
393 |
?>
|
addquicktag.pot
CHANGED
@@ -2,96 +2,127 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: AddQuicktag\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
-
"PO-Revision-Date:
|
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: __
|
|
|
12 |
|
13 |
-
|
14 |
-
#: addquicktag.php:76
|
15 |
msgid "Options saved."
|
16 |
-
msgstr ""
|
17 |
|
18 |
#: addquicktag.php:82
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
#: addquicktag.php:
|
|
|
|
|
|
|
|
|
23 |
msgid "AddQuicktag options saved!"
|
24 |
-
msgstr ""
|
25 |
|
26 |
-
#: addquicktag.php:
|
27 |
msgid "Saved in: "
|
28 |
-
msgstr ""
|
29 |
|
30 |
-
#: addquicktag.php:
|
31 |
msgid "Invalid file extension!"
|
32 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
#: addquicktag.php:
|
35 |
msgid "AddQuicktag options imported!"
|
36 |
-
msgstr ""
|
37 |
|
38 |
-
#: addquicktag.php:
|
39 |
-
msgid "
|
40 |
-
msgstr ""
|
41 |
|
42 |
-
#: addquicktag.php:
|
43 |
-
msgid "
|
44 |
-
msgstr ""
|
45 |
|
46 |
-
#: addquicktag.php:
|
47 |
-
msgid "
|
48 |
-
msgstr ""
|
49 |
|
50 |
-
#: addquicktag.php:
|
51 |
-
msgid "
|
52 |
-
msgstr ""
|
53 |
|
54 |
-
#: addquicktag.php:
|
55 |
-
msgid "
|
56 |
-
msgstr ""
|
57 |
|
58 |
-
#: addquicktag.php:
|
|
|
|
|
|
|
|
|
59 |
msgid "Update Options »"
|
60 |
-
msgstr ""
|
61 |
|
62 |
-
#: addquicktag.php:
|
63 |
msgid "Export »"
|
64 |
-
msgstr ""
|
65 |
|
66 |
-
#: addquicktag.php:
|
67 |
-
msgid "Export Quicktag
|
68 |
-
msgstr ""
|
69 |
|
70 |
-
#: addquicktag.php:
|
71 |
-
msgid "You can save a wpaq
|
72 |
-
msgstr ""
|
73 |
|
74 |
-
#: addquicktag.php:
|
75 |
msgid "Upload file and import »"
|
76 |
-
msgstr ""
|
77 |
|
78 |
-
#: addquicktag.php:
|
79 |
-
msgid "Import Quicktag
|
80 |
-
msgstr ""
|
81 |
|
82 |
-
#: addquicktag.php:
|
83 |
-
msgid "Choose a
|
84 |
-
msgstr ""
|
85 |
|
86 |
-
#: addquicktag.php:
|
87 |
msgid "Choose a file from your computer: "
|
88 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
-
#: addquicktag.php:
|
|
|
|
|
|
|
|
|
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:
|
95 |
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
96 |
-
msgstr ""
|
97 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: AddQuicktag\n"
|
4 |
"POT-Creation-Date: \n"
|
5 |
+
"PO-Revision-Date: 2008-03-25 13:29+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 |
+
"X-Poedit-SearchPath-0: .\n"
|
13 |
|
14 |
+
#: addquicktag.php:79
|
|
|
15 |
msgid "Options saved."
|
16 |
+
msgstr "Einstellungen gespeichert."
|
17 |
|
18 |
#: addquicktag.php:82
|
19 |
+
#: addquicktag.php:114
|
20 |
+
#: addquicktag.php:152
|
21 |
+
#: addquicktag.php:167
|
22 |
+
msgid "You do not have sufficient permissions to edit plugins for this blog."
|
23 |
+
msgstr "Du hast keine ausreichenden Rechte um das Plugin zu ändern."
|
24 |
+
|
25 |
+
#: addquicktag.php:98
|
26 |
+
msgid "Can not open for write!"
|
27 |
+
msgstr "Öffnen zum Schreiben nicht möglich!"
|
28 |
|
29 |
+
#: addquicktag.php:105
|
30 |
+
msgid "Can not write!"
|
31 |
+
msgstr "Schreiben nicht möglich!"
|
32 |
+
|
33 |
+
#: addquicktag.php:108
|
34 |
msgid "AddQuicktag options saved!"
|
35 |
+
msgstr "AddQuicktag Einstellungen gespeichert!"
|
36 |
|
37 |
+
#: addquicktag.php:109
|
38 |
msgid "Saved in: "
|
39 |
+
msgstr "Gespeichert in: "
|
40 |
|
41 |
+
#: addquicktag.php:130
|
42 |
msgid "Invalid file extension!"
|
43 |
+
msgstr "Nicht zulässige Dateierweiterung!"
|
44 |
+
|
45 |
+
#: addquicktag.php:132
|
46 |
+
msgid "File is exist!"
|
47 |
+
msgstr "Datei nicht vorhanden!"
|
48 |
|
49 |
+
#: addquicktag.php:147
|
50 |
msgid "AddQuicktag options imported!"
|
51 |
+
msgstr "AddQuicktag Einstellungen importiert!"
|
52 |
|
53 |
+
#: addquicktag.php:163
|
54 |
+
msgid "AddQuicktag options have been deleted!"
|
55 |
+
msgstr "AddQuicktag Einstellungenwurden gelöschtt!"
|
56 |
|
57 |
+
#: addquicktag.php:171
|
58 |
+
msgid "Add or delete Quicktag buttons"
|
59 |
+
msgstr "Hinzufügen oder löschen eines Quicktag-buttons"
|
60 |
|
61 |
+
#: addquicktag.php:172
|
62 |
+
msgid "Fill in the fields below to add or edit the quicktags. Fields with * are required. To delete a tag simply empty all fields."
|
63 |
+
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."
|
64 |
|
65 |
+
#: addquicktag.php:173
|
66 |
+
msgid "Button Label*"
|
67 |
+
msgstr "Button Name*"
|
68 |
|
69 |
+
#: addquicktag.php:174
|
70 |
+
msgid "Start Tag(s)*"
|
71 |
+
msgstr "Start Tag(s)*"
|
72 |
|
73 |
+
#: addquicktag.php:175
|
74 |
+
msgid "End Tag(s)"
|
75 |
+
msgstr "Ende Tag(s)"
|
76 |
+
|
77 |
+
#: addquicktag.php:176
|
78 |
msgid "Update Options »"
|
79 |
+
msgstr "Einstellungen aktualisieren »"
|
80 |
|
81 |
+
#: addquicktag.php:179
|
82 |
msgid "Export »"
|
83 |
+
msgstr "Exportieren »"
|
84 |
|
85 |
+
#: addquicktag.php:180
|
86 |
+
msgid "Export Quicktag buttons options"
|
87 |
+
msgstr "Exportiere deine Quicktag-buttons"
|
88 |
|
89 |
+
#: addquicktag.php:181
|
90 |
+
msgid "You can save a .wpaq file with your options in <em>/wp-content/wpaq_export.wpaq</em>"
|
91 |
+
msgstr "Du kannst eine .wpaq Datei mit allen Einstellungen auf <em>/wp-content/</em> speichern."
|
92 |
|
93 |
+
#: addquicktag.php:184
|
94 |
msgid "Upload file and import »"
|
95 |
+
msgstr "Datei hochladen und importieren »"
|
96 |
|
97 |
+
#: addquicktag.php:185
|
98 |
+
msgid "Import Quicktag buttons options"
|
99 |
+
msgstr "Importiere deine Quicktag-buttons"
|
100 |
|
101 |
+
#: addquicktag.php:186
|
102 |
+
msgid "Choose a Quicktag (<em>.wpaq</em>) file to upload, then click <em>Upload file and import</em>."
|
103 |
+
msgstr "Wähle eine Quicktag (.wpaq) Datei zum hochladen und klicke dann <em>Datei hochladen und importieren</em>."
|
104 |
|
105 |
+
#: addquicktag.php:187
|
106 |
msgid "Choose a file from your computer: "
|
107 |
+
msgstr "Wähle eine Datei von deinem Rechner. "
|
108 |
+
|
109 |
+
#: addquicktag.php:190
|
110 |
+
msgid "Uninstall Options »"
|
111 |
+
msgstr "Einstellungen löschen »"
|
112 |
+
|
113 |
+
#: addquicktag.php:191
|
114 |
+
msgid "Uninstall options"
|
115 |
+
msgstr "Deinstalliere Einstellungen"
|
116 |
|
117 |
+
#: addquicktag.php:192
|
118 |
+
msgid "This button deletes all options of the WP-AddQuicktag plugin. Please use it <strong>before</strong> deactivating the plugin.<br /><strong>Attention: </strong>You cannot undo this!"
|
119 |
+
msgstr "Der Button löscht alle Einstellungen des Plugins ©Feed. Bitte nutze ihn, <strong>bevor</strong> das Plugin deaktiviert wird.<br /><strong>Achtung: </strong>Du kannst dies nicht rückgängig machen!"
|
120 |
+
|
121 |
+
#: addquicktag.php:195
|
122 |
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."
|
123 |
+
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."
|
124 |
|
125 |
+
#: addquicktag.php:196
|
126 |
msgid "You want to thank me? Visit my <a href='http://bueltge.de/wunschliste/'>wishlist</a>."
|
127 |
+
msgstr "Du willst Danke sagen? Besuche meine <a href='http://bueltge.de/wunschliste/'>Wunschliste</a>."
|
128 |
|