Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
542a2ede
Commit
542a2ede
authored
Dec 19, 2018
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: translations for MarkdownInupt
parent
ea538dba
Pipeline
#1670
passed with stage
in 13 minutes and 6 seconds
Changes
3
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
258 additions
and
165 deletions
+258
-165
core/templates/core/markdown_textarea.jinja
core/templates/core/markdown_textarea.jinja
+21
-21
core/views/forms.py
core/views/forms.py
+21
-0
locale/fr/LC_MESSAGES/django.po
locale/fr/LC_MESSAGES/django.po
+216
-144
No files found.
core/templates/core/markdown_textarea.jinja
View file @
542a2ede
...
...
@@ -56,25 +56,25 @@
name
:
"
heading
"
,
action
:
SimpleMDE
.
toogleHeadingSmaller
,
className
:
"
fa fa-header
"
,
title
:
"
Heading
"
title
:
"
{{
translations.heading
}}
"
},
{
name
:
"
italic
"
,
action
:
SimpleMDE
.
toggleItalic
,
className
:
"
fa fa-italic
"
,
title
:
"
Italic
"
title
:
"
{{
translations.italic
}}
"
},
{
name
:
"
bold
"
,
action
:
SimpleMDE
.
toggleBold
,
className
:
"
fa fa-bold
"
,
title
:
"
Bold
"
title
:
"
{{
translations.bold
}}
"
},
{
name
:
"
strikethrough
"
,
action
:
SimpleMDE
.
toggleStrikethrough
,
className
:
"
fa fa-strikethrough
"
,
title
:
"
Strikethrough
"
title
:
"
{{
translations.strikethrough
}}
"
},
{
name
:
"
underline
"
,
...
...
@@ -83,102 +83,102 @@
cm
.
replaceSelection
(
'
__
'
+
cm
.
getSelection
()
+
'
__
'
);
},
className
:
"
fa fa-underline
"
,
title
:
"
Underline
"
title
:
"
{{
translations.underline
}}
"
},
{
name
:
"
sup
"
,
name
:
"
sup
erscript
"
,
action
:
function
customFunction
(
editor
){
var
cm
=
editor
.
codemirror
;
cm
.
replaceSelection
(
'
<sup>
'
+
cm
.
getSelection
()
+
'
</sup>
'
);
},
className
:
"
fa fa-superscript
"
,
title
:
"
Sup
"
title
:
"
{{
translations.superscript
}}
"
},
{
name
:
"
sub
"
,
name
:
"
sub
script
"
,
action
:
function
customFunction
(
editor
){
var
cm
=
editor
.
codemirror
;
cm
.
replaceSelection
(
'
<sub>
'
+
cm
.
getSelection
()
+
'
</sub>
'
);
},
className
:
"
fa fa-subscript
"
,
title
:
"
Sub
"
title
:
"
{{
translations.subscript
}}
"
},
{
name
:
"
code
"
,
action
:
SimpleMDE
.
toggleCodeBlock
,
className
:
"
fa fa-code
"
,
title
:
"
Code
"
title
:
"
{{
translations.code
}}
"
},
"
|
"
,
{
name
:
"
quote
"
,
action
:
SimpleMDE
.
toggleBlockquote
,
className
:
"
fa fa-quote-left
"
,
title
:
"
Quote
"
title
:
"
{{
translations.quote
}}
"
},
{
name
:
"
unordered-list
"
,
action
:
SimpleMDE
.
toggleUnorderedList
,
className
:
"
fa fa-list-ul
"
,
title
:
"
Generic List
"
title
:
"
{{
translations.unordered_list
}}
"
},
{
name
:
"
ordered-list
"
,
action
:
SimpleMDE
.
toggleOrderedList
,
className
:
"
fa fa-list-ol
"
,
title
:
"
Numbered List
"
title
:
"
{{
translations.ordered_list
}}
"
},
"
|
"
,
{
name
:
"
link
"
,
action
:
SimpleMDE
.
drawLink
,
className
:
"
fa fa-link
"
,
title
:
"
Create Link
"
title
:
"
{{
translations.link
}}
"
},
{
name
:
"
image
"
,
action
:
SimpleMDE
.
drawImage
,
className
:
"
fa fa-picture-o
"
,
title
:
"
Insert Image
"
title
:
"
{{
translations.image
}}
"
},
{
name
:
"
table
"
,
action
:
SimpleMDE
.
drawTable
,
className
:
"
fa fa-table
"
,
title
:
"
Insert Table
"
title
:
"
{{
translations.table
}}
"
},
"
|
"
,
{
name
:
"
clean-block
"
,
action
:
SimpleMDE
.
cleanBlock
,
className
:
"
fa fa-eraser fa-clean-block
"
,
title
:
"
Clean block
"
title
:
"
{{
translations.clean_block
}}
"
},
"
|
"
,
{
name
:
"
preview
"
,
action
:
SimpleMDE
.
togglePreview
,
className
:
"
fa fa-eye no-disable
"
,
title
:
"
Toggle Preview
"
title
:
"
{{
translations.preview
}}
"
},
{
name
:
"
side-by-side
"
,
action
:
SimpleMDE
.
toggleSideBySide
,
className
:
"
fa fa-columns no-disable no-mobile
"
,
title
:
"
Toggle Side by Side
"
title
:
"
{{
translations.side_by_side
}}
"
},
{
name
:
"
fullscreen
"
,
action
:
SimpleMDE
.
toggleFullScreen
,
className
:
"
fa fa-arrows-alt no-disable no-mobile
"
,
title
:
"
Toggle Fullscreen
"
title
:
"
{{
translations.fullscreen
}}
"
},
"
|
"
,
{
name
:
"
guide
"
,
action
:
"
/page/Aide_sur_la_syntaxe
"
,
className
:
"
fa fa-question-circle
"
,
title
:
"
Markdown Guide
"
title
:
"
{{
translations.guide
}}
"
},
]
});
...
...
core/views/forms.py
View file @
542a2ede
...
...
@@ -101,6 +101,27 @@ class MarkdownInput(Textarea):
"js"
:
static
(
"core/simplemde/simplemde.min.js"
),
"css"
:
static
(
"core/simplemde/simplemde.min.css"
),
}
context
[
"translations"
]
=
{
"heading"
:
_
(
"Heading"
),
"italic"
:
_
(
"Italic"
),
"bold"
:
_
(
"Bold"
),
"strikethrough"
:
_
(
"Strikethrough"
),
"underline"
:
_
(
"Underline"
),
"superscript"
:
_
(
"Superscript"
),
"subscript"
:
_
(
"Subscript"
),
"code"
:
_
(
"Code"
),
"quote"
:
_
(
"Quote"
),
"unordered_list"
:
_
(
"Unordered list"
),
"ordered_list"
:
_
(
"Ordered list"
),
"image"
:
_
(
"Insert image"
),
"link"
:
_
(
"Insert link"
),
"table"
:
_
(
"Insert table"
),
"clean_block"
:
_
(
"Clean block"
),
"preview"
:
_
(
"Toggle preview"
),
"side_by_side"
:
_
(
"Toggle side by side"
),
"fullscreen"
:
_
(
"Toggle fullscreen"
),
"guide"
:
_
(
"Markdown guide"
),
}
context
[
"markdown_api_url"
]
=
reverse
(
"api:api_markdown"
)
return
context
...
...
locale/fr/LC_MESSAGES/django.po
View file @
542a2ede
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment