SyntaxHighlighter Evolved - Version 3.1.2

Version Description

Download this release

Release Info

Developer Viper007Bond
Plugin Icon wp plugin SyntaxHighlighter Evolved
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

localization/syntaxhighlighter-ja.mo ADDED
Binary file
localization/syntaxhighlighter-ja.po ADDED
@@ -0,0 +1,458 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Japanese translations for PACKAGE package
2
+ # Copyright (C) 2009 Viper007Bond
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # makoto_kw <makoto_kw+wordpress@gmail.com>, 2009.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: PACKAGE VERSION\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/syntaxhighlighter\n"
10
+ "POT-Creation-Date: 2010-11-15 23:07+0000\n"
11
+ "PO-Revision-Date: 2009-12-09 18:13+0900\n"
12
+ "Last-Translator: makoto_kw <makoto_kw+wordpress@gmail.com>\n"
13
+ "Language-Team: Japanese <translation-team-ja@lists.sourceforge.net>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ #: syntaxhighlighter.php:239
20
+ msgid "Default"
21
+ msgstr "Default"
22
+
23
+ #: syntaxhighlighter.php:240
24
+ msgid "Django"
25
+ msgstr "Django"
26
+
27
+ #: syntaxhighlighter.php:241
28
+ msgid "Eclipse"
29
+ msgstr "Eclipse"
30
+
31
+ #: syntaxhighlighter.php:242
32
+ msgid "Emacs"
33
+ msgstr "Emacs"
34
+
35
+ #: syntaxhighlighter.php:243
36
+ msgid "Fade to Grey"
37
+ msgstr "Fade to Grey"
38
+
39
+ #: syntaxhighlighter.php:244
40
+ msgid "Midnight"
41
+ msgstr "Midnight"
42
+
43
+ #: syntaxhighlighter.php:245
44
+ msgid "RDark"
45
+ msgstr "RDark"
46
+
47
+ #: syntaxhighlighter.php:246
48
+ msgid "[None]"
49
+ msgstr "[なし]"
50
+
51
+ #: syntaxhighlighter.php:258 syntaxhighlighter.php:944
52
+ msgid "SyntaxHighlighter Settings"
53
+ msgstr "SyntaxHighlighterの設定"
54
+
55
+ #: syntaxhighlighter.php:258
56
+ msgid "SyntaxHighlighter"
57
+ msgstr "SyntaxHighlighter"
58
+
59
+ #: syntaxhighlighter.php:289
60
+ msgid "Settings"
61
+ msgstr "設定"
62
+
63
+ #: syntaxhighlighter.php:610
64
+ msgid "show source"
65
+ msgstr "ソースを見る"
66
+
67
+ #: syntaxhighlighter.php:611
68
+ msgid "view source"
69
+ msgstr "ソースを表示"
70
+
71
+ #: syntaxhighlighter.php:612
72
+ msgid "copy to clipboard"
73
+ msgstr "クリップボードへコピー"
74
+
75
+ #: syntaxhighlighter.php:613
76
+ msgid "The code is in your clipboard now"
77
+ msgstr "コードをクリップボードへコピーしました"
78
+
79
+ #: syntaxhighlighter.php:614
80
+ msgid "print"
81
+ msgstr "印刷"
82
+
83
+ #: syntaxhighlighter.php:615 syntaxhighlighter.php:622
84
+ msgid "?"
85
+ msgstr "SyntaxHighlighterについて"
86
+
87
+ #: syntaxhighlighter.php:616 syntaxhighlighter.php:623
88
+ msgid "SyntaxHighlighter\\n\\n"
89
+ msgstr "SyntaxHighlighter\\n\\n"
90
+
91
+ #: syntaxhighlighter.php:617 syntaxhighlighter.php:624
92
+ msgid "Can't find brush for: "
93
+ msgstr "指定のブラシが見つかりませんでした: "
94
+
95
+ #: syntaxhighlighter.php:618 syntaxhighlighter.php:625
96
+ msgid "Brush wasn't configured for html-script option: "
97
+ msgstr "HTMLスクリプトのオプションのためにブラシが構成されませんでした: "
98
+
99
+ #: syntaxhighlighter.php:621
100
+ msgid "+ expand source"
101
+ msgstr "ソースを表示"
102
+
103
+ #: syntaxhighlighter.php:932
104
+ msgid "Are you sure you want to reset your settings to the defaults?"
105
+ msgstr "設定を初期化してもよいですか?"
106
+
107
+ #: syntaxhighlighter.php:936
108
+ msgid "Settings reset to defaults."
109
+ msgstr "設定を初期化する"
110
+
111
+ #: syntaxhighlighter.php:953
112
+ msgid "Highlighter Version"
113
+ msgstr "SyntaxHighlighterのバージョン"
114
+
115
+ #: syntaxhighlighter.php:958
116
+ msgid "Version 3.x"
117
+ msgstr ""
118
+
119
+ #: syntaxhighlighter.php:959
120
+ msgid "Version 2.x"
121
+ msgstr ""
122
+
123
+ #: syntaxhighlighter.php:967
124
+ msgid ""
125
+ "Version 3 allows visitors to easily highlight portions of your code with "
126
+ "their mouse (either by dragging or double-clicking) and copy it to their "
127
+ "clipboard. No toolbar containing a Flash-based button is required."
128
+ msgstr ""
129
+ "バージョン3は、訪問者が簡単にマウスを使用して(ドラッグかダブルクリック)、コードの部分を強調表示し、クリップボードにへコピーできます。"
130
+ "Flashベースボタンを含むツールバーが不要です。"
131
+
132
+ #: syntaxhighlighter.php:968
133
+ msgid ""
134
+ "Version 2 allows for line wrapping, something that version 3 does not do at "
135
+ "this time."
136
+ msgstr ""
137
+ "バージョン2は行 の折り返しが許可されています、この機能は現時点でバージョン3はサポートされません"
138
+
139
+ #: syntaxhighlighter.php:972
140
+ msgid "Color Theme"
141
+ msgstr "テーマ"
142
+
143
+ #: syntaxhighlighter.php:984 syntaxhighlighter.php:987
144
+ msgid "Load All Brushes"
145
+ msgstr "すべてのブラシを読み込む"
146
+
147
+ #: syntaxhighlighter.php:988
148
+ msgid ""
149
+ "Always load all language files (for directly using <code>&lt;pre&gt;</code> "
150
+ "tags rather than shortcodes)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If left "
151
+ "unchecked (default), then language files will only be loaded when needed<br /"
152
+ ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If unsure, leave this box unchecked"
153
+ msgstr ""
154
+ "常にすべての言語ファイルを読込みます"
155
+ "(ショートコードではなく、<code>&lt;pre&gt;</code>タグを直接使用する場合)<br />"
156
+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;オフ(デフォルト)の場合、言語ファイルは必要に応じてロードされます。<br />"
157
+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;よくわからない場合は、このチェックボックスをオフのままにしてください。"
158
+
159
+ #: syntaxhighlighter.php:994
160
+ msgid "Defaults"
161
+ msgstr "規定の設定"
162
+
163
+ #: syntaxhighlighter.php:996
164
+ msgid ""
165
+ "All of the settings below can be configured on a per-code block basis, but "
166
+ "you can control the defaults of all code blocks here."
167
+ msgstr "設定はコードの出力ごとに構成できますが、規定の設定をここで指定できます"
168
+
169
+ #: syntaxhighlighter.php:1000 syntaxhighlighter.php:1003
170
+ msgid "Miscellaneous"
171
+ msgstr "一般"
172
+
173
+ #: syntaxhighlighter.php:1005
174
+ msgid "Display line numbers"
175
+ msgstr "行番号を表示する"
176
+
177
+ #: syntaxhighlighter.php:1006
178
+ msgid "Display the toolbar"
179
+ msgstr "ツールバーを表示する"
180
+
181
+ #: syntaxhighlighter.php:1007
182
+ msgid "Automatically make URLs clickable"
183
+ msgstr "自動リンクを有効にする"
184
+
185
+ #: syntaxhighlighter.php:1008
186
+ msgid "Collapse code boxes"
187
+ msgstr "コードボックスの表示を閉じておく"
188
+
189
+ #: syntaxhighlighter.php:1009
190
+ msgid "Use the light display mode, best for single lines of code"
191
+ msgstr "軽い表示モードを使う"
192
+
193
+ #: syntaxhighlighter.php:1010
194
+ msgid "Use smart tabs allowing tabs being used for alignment"
195
+ msgstr "インデントタブを許容するスマートタブを使う"
196
+
197
+ #: syntaxhighlighter.php:1011
198
+ msgid ""
199
+ "Wrap long lines (v2.x only, disabling this will make a scrollbar show "
200
+ "instead)"
201
+ msgstr "長い行を折り返す(v2.xのみ、横スクロールバーを無効にする)"
202
+
203
+ #: syntaxhighlighter.php:1012
204
+ msgid ""
205
+ "Enable &quot;HTML script&quot; mode by default (see the bottom of this page "
206
+ "for details). Checking this box is not recommended as this mode only works "
207
+ "with certain languages."
208
+ msgstr ""
209
+ "&quot;HTMLスクリプト&quot; モードを有効にする。 (詳細はこのページの下を参"
210
+ "照)。Checking this box is not recommended as this mode only works with "
211
+ "certain languages."
212
+
213
+ #: syntaxhighlighter.php:1017
214
+ msgid "Additional CSS Class(es)"
215
+ msgstr "追加のCSSのclass名(複数可能)"
216
+
217
+ #: syntaxhighlighter.php:1021
218
+ msgid "Starting Line Number"
219
+ msgstr "行番号の開始"
220
+
221
+ #: syntaxhighlighter.php:1025
222
+ msgid "Line Number Padding"
223
+ msgstr "行番号の余白"
224
+
225
+ #: syntaxhighlighter.php:1030
226
+ msgid "Off"
227
+ msgstr "なし"
228
+
229
+ #: syntaxhighlighter.php:1031
230
+ msgid "Automatic"
231
+ msgstr "自動"
232
+
233
+ #: syntaxhighlighter.php:1047
234
+ msgid "Tab Size"
235
+ msgstr "タブのサイズ"
236
+
237
+ #: syntaxhighlighter.php:1051
238
+ msgid "Title"
239
+ msgstr "タイトル"
240
+
241
+ #: syntaxhighlighter.php:1054
242
+ msgid ""
243
+ "Some optional default text to display above each code block or as the "
244
+ "clickable text for collapsed code blocks."
245
+ msgstr ""
246
+ "いくつかのオプションの既定のテキストは、各コードブロックの上または折りたたまれたコードブロックのクリック可能なテキストとして表示する"
247
+
248
+
249
+ #: syntaxhighlighter.php:1064 syntaxhighlighter.php:1067
250
+ msgid "Reset to Defaults"
251
+ msgstr "設定を初期化"
252
+
253
+ #: syntaxhighlighter.php:1066
254
+ msgid "Save Changes"
255
+ msgstr "変更を保存"
256
+
257
+ #: syntaxhighlighter.php:1074
258
+ msgid "Preview"
259
+ msgstr "プレビュー"
260
+
261
+ #: syntaxhighlighter.php:1076
262
+ msgid "Click &quot;Save Changes&quot; to update this preview."
263
+ msgstr "プレビューを更新するには &quot;変更を保存&quot; をクリックしてください"
264
+
265
+ #: syntaxhighlighter.php:1095
266
+ msgid "PHP Code Example"
267
+ msgstr "PHP コードサンプル"
268
+
269
+ #: syntaxhighlighter.php:1097
270
+ msgid "Hello World!"
271
+ msgstr "Hello World!"
272
+
273
+ #: syntaxhighlighter.php:1099
274
+ msgid "This line is highlighted."
275
+ msgstr "この行はハイライトされました"
276
+
277
+ #: syntaxhighlighter.php:1102
278
+ msgid ""
279
+ "\t\tThis\tis\tan\r\n"
280
+ "\t\texample\tof\tsmart\r\n"
281
+ "\t\ttabs."
282
+ msgstr ""
283
+ "\t\tこの\t行は\tスマート\r\n"
284
+ "\t\tタブ\tの\t例\r\n"
285
+ "\t\tです。"
286
+
287
+ #: syntaxhighlighter.php:1107
288
+ msgid "WordPress"
289
+ msgstr ""
290
+
291
+ #: syntaxhighlighter.php:1118
292
+ msgid "Shortcode Parameters"
293
+ msgstr "ショートコードパラメータ"
294
+
295
+ #: syntaxhighlighter.php:1120
296
+ #, php-format
297
+ msgid ""
298
+ "These are the parameters you can pass to the shortcode and what they do. For "
299
+ "the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s."
300
+ msgstr ""
301
+ "これらはショートコードで渡すことができるパラメータと説明です。 bool値(有効・"
302
+ "無効など)の指定には %1$s/%2$s または %3$s/%4$s を渡してください。"
303
+
304
+ #: syntaxhighlighter.php:1123
305
+ #, php-format
306
+ msgctxt "language parameter"
307
+ msgid ""
308
+ "%1$s or %2$s &#8212; The language syntax to highlight with. You can "
309
+ "alternately just use that as the tag, such as <code>[php]code[/php]</code>. "
310
+ "<a href=\"%3$s\">Click here</a> for a list of valid tags (under &quot;"
311
+ "aliases&quot;)."
312
+ msgstr ""
313
+ "%1$s または %2$s &#8212; ハイライトするコードの言語。パラメータ指定だけでなく"
314
+ "<code>[php]code[/php]</code>のように言語をタグとして記述できます。有効なタグ"
315
+ "のリストは <a href=\"%3$s\">こちらをクリック</a> (&quot;aliases&quot;の下を参"
316
+ "照)"
317
+
318
+ #: syntaxhighlighter.php:1124
319
+ #, php-format
320
+ msgctxt "autolinks parameter"
321
+ msgid "%s &#8212; Toggle automatic URL linking."
322
+ msgstr "%s &#8212; 自動リンクの有効・無効"
323
+
324
+ #: syntaxhighlighter.php:1125
325
+ #, php-format
326
+ msgctxt "classname parameter"
327
+ msgid "%s &#8212; Add an additional CSS class to the code box."
328
+ msgstr "%s &#8212; コードボックスに追加するCSSのclass"
329
+
330
+ #: syntaxhighlighter.php:1126
331
+ #, php-format
332
+ msgctxt "collapse parameter"
333
+ msgid ""
334
+ "%s &#8212; Toggle collapsing the code box by default, requiring a click to "
335
+ "expand it. Good for large code posts."
336
+ msgstr ""
337
+ "%s &#8212; コードボックスをデフォルトの状態で閉じるかどうか。コードボックスを"
338
+ "開くにはクリックが要求されます。長いコードの出力の際に有効です。"
339
+
340
+ #: syntaxhighlighter.php:1127
341
+ #, php-format
342
+ msgctxt "firstline parameter"
343
+ msgid ""
344
+ "%s &#8212; An interger specifying what number the first line should be (for "
345
+ "the line numbering)."
346
+ msgstr "%s &#8212; 行番号の出力の際に、最初の行の番号を表す数値"
347
+
348
+ #: syntaxhighlighter.php:1128
349
+ #, php-format
350
+ msgctxt "gutter parameter"
351
+ msgid "%s &#8212; Toggle the left-side line numbering."
352
+ msgstr "%s &#8212; 左側に行番号を配置するかどうか"
353
+
354
+ #: syntaxhighlighter.php:1129
355
+ #, php-format
356
+ msgctxt "highlight parameter"
357
+ msgid ""
358
+ "%1$s &#8212; A comma-sperated list of line numbers to highlight. You can "
359
+ "also specify a range. Example: %2$s"
360
+ msgstr "%1$s &#8212; ハイライトさせる行番号のリスト(カンマ区切り)、範囲でも指定可能。例: %2$s"
361
+
362
+ #: syntaxhighlighter.php:1130
363
+ #, php-format
364
+ msgctxt "htmlscript parameter"
365
+ msgid ""
366
+ "%s &#8212; Toggle highlighting any extra HTML/XML. Good for when you're "
367
+ "mixing HTML/XML with another language, such as having PHP inside an HTML web "
368
+ "page. The above preview has it enabled for example. This only works with "
369
+ "certain languages."
370
+ msgstr ""
371
+ "%s &#8212; HTML/XML をハイライトするかどうか。HTMLウェブページで PHP を使うよ"
372
+ "うにHTML/XMLとプログラムが混在するような時に有効です。上のプレビューではこの"
373
+ "設定が有効になっています。これは特定の言語でしか動作しません。"
374
+
375
+ #: syntaxhighlighter.php:1131
376
+ #, php-format
377
+ msgctxt "light parameter"
378
+ msgid ""
379
+ "%s &#8212; Toggle light mode which disables the gutter and toolbar all at "
380
+ "once."
381
+ msgstr "%s &#8212; 行番号やツールバーを無効にする軽い表示モードのオン・オフ"
382
+
383
+ #: syntaxhighlighter.php:1132
384
+ #, php-format
385
+ msgctxt "padlinenumbers parameter"
386
+ msgid ""
387
+ "%s &#8212; Controls line number padding. Valid values are <code>false</code> "
388
+ "(no padding), <code>true</code> (automatic padding), or an integer (forced "
389
+ "padding)."
390
+ msgstr ""
391
+ "%s &#8212; 行番号の余白。有効な値は、 <code>false</code>(余白なし), "
392
+ "<code>true</code> (自動)、数値(余白)"
393
+
394
+ #: syntaxhighlighter.php:1133
395
+ #, php-format
396
+ msgctxt "title parameter"
397
+ msgid ""
398
+ "%1$s (v3 only) &#8212; Sets some text to show up before the code. Very "
399
+ "useful when combined with the %2$s parameter."
400
+ msgstr ""
401
+ "%1$s (v3のみ) &#8212; コードの前に表示される表題テキスト。%2$sのパラメータと合わせて使うと有効です。"
402
+
403
+ #: syntaxhighlighter.php:1134
404
+ #, php-format
405
+ msgctxt "toolbar parameter"
406
+ msgid ""
407
+ "%s &#8212; Toggle the toolbar (buttons in v2, the about question mark in v3)"
408
+ msgstr "%s &#8212; ツールバーのオン・オフ(v2のボタン、v3のクエッションマーク)"
409
+
410
+ #: syntaxhighlighter.php:1135
411
+ #, php-format
412
+ msgctxt "wraplines parameter"
413
+ msgid "%s (v2 only) &#8212; Toggle line wrapping."
414
+ msgstr "%s (v2のみ) &#8212; 折り返しの有効・無効"
415
+
416
+ #: syntaxhighlighter.php:1138
417
+ msgid "Some example shortcodes:"
418
+ msgstr "引数指定の例:"
419
+
420
+ #: syntaxhighlighter.php:1141 syntaxhighlighter.php:1142
421
+ #: syntaxhighlighter.php:1143 syntaxhighlighter.php:1144
422
+ msgid "your code here"
423
+ msgstr "ここにコードを入れます"
424
+
425
+ #: syntaxhighlighter.php:1142
426
+ msgid "example-filename.php"
427
+ msgstr ""
428
+
429
+ #. Plugin Name of the plugin/theme
430
+ msgid "SyntaxHighlighter Evolved"
431
+ msgstr "SyntaxHighlighter Evolved"
432
+
433
+ #. Plugin URI of the plugin/theme
434
+ msgid "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
435
+ msgstr "http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/"
436
+
437
+ #. Description of the plugin/theme
438
+ #, fuzzy
439
+ msgid ""
440
+ "Easily post syntax-highlighted code to your site without having to modify "
441
+ "the code at all. Uses Alex Gorbatchev's <a href=\"http://alexgorbatchev.com/"
442
+ "wiki/SyntaxHighlighter\">SyntaxHighlighter</a>. <strong>TIP:</strong> Don't "
443
+ "use the Visual editor if you don't want your code mangled. TinyMCE will "
444
+ "\"clean up\" your HTML."
445
+ msgstr ""
446
+ "コードに手を加えることなくハイライトしたソースコードを簡単に投稿できます。このプラグ"
447
+ "インはAlex Gorbatchev さんの <a href=\"http://alexgorbatchev.com/wiki/"
448
+ "SyntaxHighlighter\">SyntaxHighlighter</a>を使っています。"
449
+ "<strong>TIP:</strong> コードがおかしくなる場合はビジュアルエディターは使わないでください。 "
450
+ "TinyMCEは記事内のHTMLをクリーンアップする恐れがあります。"
451
+
452
+ #. Author of the plugin/theme
453
+ msgid "Viper007Bond"
454
+ msgstr "Viper007Bond氏"
455
+
456
+ #. Author URI of the plugin/theme
457
+ msgid "http://www.viper007bond.com/"
458
+ msgstr "http://www.viper007bond.com/"
readme.txt CHANGED
@@ -55,10 +55,17 @@ Make sure your theme's `footer.php` file has `<?php wp_footer(); ?>` somewhere i
55
 
56
  == ChangeLog ==
57
 
 
 
 
 
 
 
58
  = Version 3.1.1 =
59
 
60
  * Fix default title setting not working.
61
  * Force `<code>` to be inline. Fixes issues with themes that do `code { display: block; }`.
 
62
 
63
  = Version 3.1.0 =
64
 
55
 
56
  == ChangeLog ==
57
 
58
+ = Version 3.1.2 =
59
+
60
+ * Register some placeholder shortcodes so that `strip_shortcodes()` and such work properly. Previously the shortcodes were only registered during the brief moment that they were processed by one of this plugin's filters.
61
+ * Add a `notranslate` CSS class to the `<pre>` output so that Google won't attempt to translate it. Props [Otto](http://ottopress.com/2011/google-translation-tip/).
62
+ * Run the CSS classes aka SyntaxHighlighter script parameters through a filter.
63
+
64
  = Version 3.1.1 =
65
 
66
  * Fix default title setting not working.
67
  * Force `<code>` to be inline. Fixes issues with themes that do `code { display: block; }`.
68
+ * Added Japanese translation thanks to [Makoto](http://projects.makotokw.com/redmine/projects/wp-plugins/wiki/Translation).
69
 
70
  = Version 3.1.0 =
71
 
syntaxhighlighter.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  Plugin Name: SyntaxHighlighter Evolved
6
  Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
7
- Version: 3.1.1
8
  Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">SyntaxHighlighter</a>. <strong>TIP:</strong> Don't use the Visual editor if you don't want your code mangled. TinyMCE will "clean up" your HTML.
9
  Author: Viper007Bond
10
  Author URI: http://www.viper007bond.com/
@@ -21,7 +21,7 @@ Thanks to:
21
 
22
  class SyntaxHighlighter {
23
  // All of these variables are private. Filters are provided for things that can be modified.
24
- var $pluginver = '3.1.1'; // Plugin version
25
  var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
26
  var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
27
  var $settings = array(); // Contains the user's settings
@@ -233,6 +233,12 @@ class SyntaxHighlighter {
233
  $this->shortcodes = (array) apply_filters( 'syntaxhighlighter_shortcodes', $this->shortcodes );
234
 
235
 
 
 
 
 
 
 
236
  // Create list of themes and their human readable names
237
  // Plugins can add to this list: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/
238
  $this->themes = (array) apply_filters( 'syntaxhighlighter_themes', array(
@@ -917,6 +923,10 @@ class SyntaxHighlighter {
917
 
918
  $code = ( false === strpos( $code, '<' ) && false === strpos( $code, '>' ) && 2 == $this->get_code_format($post) ) ? strip_tags( $code ) : htmlspecialchars( $code );
919
 
 
 
 
 
920
  return apply_filters( 'syntaxhighlighter_htmlresult', '<pre class="' . esc_attr( implode( ' ', $params ) ) . '"' . $title . '>' . $code . '</pre>' );;
921
  }
922
 
4
 
5
  Plugin Name: SyntaxHighlighter Evolved
6
  Plugin URI: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/
7
+ Version: 3.1.2
8
  Description: Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">SyntaxHighlighter</a>. <strong>TIP:</strong> Don't use the Visual editor if you don't want your code mangled. TinyMCE will "clean up" your HTML.
9
  Author: Viper007Bond
10
  Author URI: http://www.viper007bond.com/
21
 
22
  class SyntaxHighlighter {
23
  // All of these variables are private. Filters are provided for things that can be modified.
24
+ var $pluginver = '3.1.2'; // Plugin version
25
  var $agshver = false; // Alex Gorbatchev's SyntaxHighlighter version (dynamically set below due to v2 vs v3)
26
  var $shfolder = false; // Controls what subfolder to load SyntaxHighlighter from (v2 or v3)
27
  var $settings = array(); // Contains the user's settings
233
  $this->shortcodes = (array) apply_filters( 'syntaxhighlighter_shortcodes', $this->shortcodes );
234
 
235
 
236
+ // Register each shortcode with a placeholder callback so that strip_shortcodes() will work
237
+ // The proper callback and such is done in SyntaxHighlighter::shortcode_hack()
238
+ foreach ( $this->shortcodes as $shortcode )
239
+ add_shortcode( $shortcode, '__return_true' );
240
+
241
+
242
  // Create list of themes and their human readable names
243
  // Plugins can add to this list: http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/adding-a-new-theme/
244
  $this->themes = (array) apply_filters( 'syntaxhighlighter_themes', array(
923
 
924
  $code = ( false === strpos( $code, '<' ) && false === strpos( $code, '>' ) && 2 == $this->get_code_format($post) ) ? strip_tags( $code ) : htmlspecialchars( $code );
925
 
926
+ $params[] = 'notranslate'; // For Google, see http://otto42.com/9k
927
+
928
+ $params = apply_filters( 'syntaxhighlighter_cssclasses', $params ); // Use this to add additional CSS classes / SH parameters
929
+
930
  return apply_filters( 'syntaxhighlighter_htmlresult', '<pre class="' . esc_attr( implode( ' ', $params ) ) . '"' . $title . '>' . $code . '</pre>' );;
931
  }
932