Skip to content

Commit 89ba2fa

Browse files
committed
Bump to version 0.4
Use custom l10n domain
1 parent 237fd81 commit 89ba2fa

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

BbcodeToolbar.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@ public function run()
2929

3030
public function addLanguage($data)
3131
{
32-
translate('bbeditor', 'featherbb', false, __DIR__.'/lang');
32+
translate('bbeditor', 'bbcode-toolbar', false, __DIR__.'/lang');
3333
$lang_bbeditor = array(
34-
'btnBold' => __('btnBold'),
35-
'btnItalic' => __('btnItalic'),
36-
'btnUnderline' => __('btnUnderline'),
37-
'btnColor' => __('btnColor'),
38-
'btnLeft' => __('btnLeft'),
39-
'btnRight' => __('btnRight'),
40-
'btnJustify' => __('btnJustify'),
41-
'btnCenter' => __('btnCenter'),
42-
'btnLink' => __('btnLink'),
43-
'btnPicture' => __('btnPicture'),
44-
'btnList' => __('btnList'),
45-
'btnQuote' => __('btnQuote'),
46-
'btnCode' => __('btnCode'),
47-
'promptImage' => __('promptImage'),
48-
'promptUrl' => __('promptUrl'),
49-
'promptQuote' => __('promptQuote')
34+
'btnBold' => __('btnBold', 'bbcode-toolbar'),
35+
'btnItalic' => __('btnItalic', 'bbcode-toolbar'),
36+
'btnUnderline' => __('btnUnderline', 'bbcode-toolbar'),
37+
'btnColor' => __('btnColor', 'bbcode-toolbar'),
38+
'btnLeft' => __('btnLeft', 'bbcode-toolbar'),
39+
'btnRight' => __('btnRight', 'bbcode-toolbar'),
40+
'btnJustify' => __('btnJustify', 'bbcode-toolbar'),
41+
'btnCenter' => __('btnCenter', 'bbcode-toolbar'),
42+
'btnLink' => __('btnLink', 'bbcode-toolbar'),
43+
'btnPicture' => __('btnPicture', 'bbcode-toolbar'),
44+
'btnList' => __('btnList', 'bbcode-toolbar'),
45+
'btnQuote' => __('btnQuote', 'bbcode-toolbar'),
46+
'btnCode' => __('btnCode', 'bbcode-toolbar'),
47+
'promptImage' => __('promptImage', 'bbcode-toolbar'),
48+
'promptUrl' => __('promptUrl', 'bbcode-toolbar'),
49+
'promptQuote' => __('promptQuote', 'bbcode-toolbar')
5050
);
5151
$data['jsVars']['bbcodeToolbar'] = json_encode($lang_bbeditor);
5252
return $data;

featherbb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "bbcode-toolbar",
33
"title": "BBCode Toolbar",
44
"description": "Add a default toolbar to format BBCode in your posts.",
5-
"version": "0.3.1",
5+
"version": "0.4.0",
66
"keywords": ["featherbb", "bbcode", "toolbar", "helper", "messages"],
77
"author": {
88
"name": "beaver"

0 commit comments

Comments
 (0)