Skip to content

Commit

Permalink
support lang:id, missing flags image: #2, static path
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed Mar 15, 2017
1 parent 439376f commit 03e4c94
Show file tree
Hide file tree
Showing 9 changed files with 288 additions and 7 deletions.
2 changes: 1 addition & 1 deletion draceditor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-

__VERSION__ = '1.1.6'
__VERSION__ = '1.1.7'
__AUTHOR__ = 'Agus Makmun (Summon Agus)'
__AUTHOR_EMAIL__ = '[email protected]'
Binary file added draceditor/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
139 changes: 139 additions & 0 deletions draceditor/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-15 07:07+0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: templates/draceditor/emoji.html:4
msgid "Select Emoji to Insert"
msgstr ""

#: templates/draceditor/emoji.html:8
msgid "Preparing emojis..."
msgstr ""

#: templates/draceditor/guide.html:4
msgid "Markdown Guide"
msgstr ""

#: templates/draceditor/guide.html:6
#, python-format
msgid ""
"This site is powered by Markdown. For full documentation, <a href="
"\"%(doc_url)s\" target=\"_blank\">click here</a>"
msgstr ""

#: templates/draceditor/guide.html:10 templates/draceditor/toolbar.html:33
msgid "Code"
msgstr ""

#: templates/draceditor/guide.html:11
msgid "Or"
msgstr ""

#: templates/draceditor/guide.html:14
msgid "... to Get"
msgstr ""

#: templates/draceditor/toolbar.html:3
msgid "Uploading... please wait..."
msgstr ""

#: templates/draceditor/toolbar.html:9
msgid "Bold"
msgstr ""

#: templates/draceditor/toolbar.html:12
msgid "Italic"
msgstr ""

#: templates/draceditor/toolbar.html:15
msgid "Horizontal Line"
msgstr ""

#: templates/draceditor/toolbar.html:18 templates/draceditor/toolbar.html:21
#: templates/draceditor/toolbar.html:22 templates/draceditor/toolbar.html:23
msgid "Heading"
msgstr ""

#: templates/draceditor/toolbar.html:29
msgid "Pre or Code"
msgstr ""

#: templates/draceditor/toolbar.html:32
msgid "Pre"
msgstr ""

#: templates/draceditor/toolbar.html:36
msgid "Quote"
msgstr ""

#: templates/draceditor/toolbar.html:39
msgid "Unordered List"
msgstr ""

#: templates/draceditor/toolbar.html:42
msgid "Ordered List"
msgstr ""

#: templates/draceditor/toolbar.html:48
msgid "URL/Link"
msgstr ""

#: templates/draceditor/toolbar.html:51
msgid "Insert Image Link"
msgstr ""

#: templates/draceditor/toolbar.html:54 templates/draceditor/toolbar.html:56
msgid "Upload an Image"
msgstr ""

#: templates/draceditor/toolbar.html:58
msgid "Insert Emoji"
msgstr ""

#: templates/draceditor/toolbar.html:61
msgid "Direct Mention a User"
msgstr ""

#: templates/draceditor/toolbar.html:66
msgid "Toggle Editor"
msgstr ""

#: templates/draceditor/toolbar.html:69
msgid "Toggle Preview"
msgstr ""

#: templates/draceditor/toolbar.html:72
msgid "Full Screen"
msgstr ""

#: templates/draceditor/toolbar.html:75
msgid "Markdown Guide (Help)"
msgstr ""

#: views.py:20 views.py:34 views.py:35
msgid "Invalid request!"
msgstr ""

#: views.py:77
#, python-format
msgid "No users registered as `%(username)s` or user is unactived."
msgstr ""

#: views.py:83
msgid "Validation Failed for field `username`"
msgstr ""
Binary file added draceditor/locale/id/LC_MESSAGES/django.mo
Binary file not shown.
142 changes: 142 additions & 0 deletions draceditor/locale/id/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-15 07:06+0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: templates/draceditor/emoji.html:4
msgid "Select Emoji to Insert"
msgstr "Pilih Emoji untuk menyisipkan"

#: templates/draceditor/emoji.html:8
msgid "Preparing emojis..."
msgstr "Sedang menyiapkan emoji..."

#: templates/draceditor/guide.html:4
msgid "Markdown Guide"
msgstr "Bantuan Penggunaan Markdown"

#: templates/draceditor/guide.html:6
#, python-format
msgid ""
"This site is powered by Markdown. For full documentation, <a href="
"\"%(doc_url)s\" target=\"_blank\">click here</a>"
msgstr ""
"Situs ini menggunakan Markdown. Untuk dokumentasi lengkapnya <a href="
"\"%(doc_url)s\" target=\"_blank\">klik disini</a>"

#: templates/draceditor/guide.html:10 templates/draceditor/toolbar.html:33
msgid "Code"
msgstr "Kode"

#: templates/draceditor/guide.html:11
msgid "Or"
msgstr "Atau"

#: templates/draceditor/guide.html:14
msgid "... to Get"
msgstr "... untuk Mendapatkan"

#: templates/draceditor/toolbar.html:3
msgid "Uploading... please wait..."
msgstr "Sedang mengupload... silahkan tunggu..."

#: templates/draceditor/toolbar.html:9
msgid "Bold"
msgstr "Tebal"

#: templates/draceditor/toolbar.html:12
msgid "Italic"
msgstr "Miring"

#: templates/draceditor/toolbar.html:15
msgid "Horizontal Line"
msgstr "Garis Horisontal"

#: templates/draceditor/toolbar.html:18 templates/draceditor/toolbar.html:21
#: templates/draceditor/toolbar.html:22 templates/draceditor/toolbar.html:23
msgid "Heading"
msgstr ""

#: templates/draceditor/toolbar.html:29
msgid "Pre or Code"
msgstr "Pre atau Kode"

#: templates/draceditor/toolbar.html:32
msgid "Pre"
msgstr ""

#: templates/draceditor/toolbar.html:36
msgid "Quote"
msgstr "Kutipan"

#: templates/draceditor/toolbar.html:39
msgid "Unordered List"
msgstr "Daftar tak berurut"

#: templates/draceditor/toolbar.html:42
msgid "Ordered List"
msgstr "Daftar berurut"

#: templates/draceditor/toolbar.html:48
msgid "URL/Link"
msgstr ""

#: templates/draceditor/toolbar.html:51
msgid "Insert Image Link"
msgstr "Sisipkan Link Gambar"

#: templates/draceditor/toolbar.html:54 templates/draceditor/toolbar.html:56
msgid "Upload an Image"
msgstr "Unggah Gambar"

#: templates/draceditor/toolbar.html:58
msgid "Insert Emoji"
msgstr "Sisipkan Emoji"

#: templates/draceditor/toolbar.html:61
msgid "Direct Mention a User"
msgstr "Sebutkan Pengguna secara Langsung"

#: templates/draceditor/toolbar.html:66
msgid "Toggle Editor"
msgstr "Beralih Editor"

#: templates/draceditor/toolbar.html:69
msgid "Toggle Preview"
msgstr "Beralih Pratinjau"

#: templates/draceditor/toolbar.html:72
msgid "Full Screen"
msgstr "Layar Penuh"

#: templates/draceditor/toolbar.html:75
msgid "Markdown Guide (Help)"
msgstr "Bantuan Penggunaan Markdown"

#: views.py:20 views.py:34 views.py:35
msgid "Invalid request!"
msgstr "Permintaan tidak valid"

#: views.py:77
#, python-format
msgid "No users registered as `%(username)s` or user is unactived."
msgstr "Tidak ada pengguna terdaftar sebagai `%(username)s` atau pengguna telah nonaktif."

#: views.py:83
msgid "Validation Failed for field `username`"
msgstr "Validasi Gagal untuk field `username`"
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Name : DracEditor v1.1.6
* Name : DracEditor v1.1.7
* Created by : Agus Makmun (Summon Agus)
* Release date : 28-Jan-2017
* Release date : 15-March-2017
* Official : https://dracos-linux.org
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
* Repository : https://github.com/agusmakmun/dracos-markdown-editor
Expand Down
4 changes: 2 additions & 2 deletions draceditor/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Media:
'all': (
'plugins/css/ace.min.css',
'plugins/css/semantic.min.css',
'css/draceditor.css',
'draceditor/css/draceditor.css',
)
}
js = (
Expand All @@ -53,7 +53,7 @@ class Media:
'plugins/js/highlight.min.js',

'plugins/js/emojis.min.js',
'js/draceditor.js',
'draceditor/js/draceditor.js',
)
if DRACEDITOR_ENABLE_CONFIGS['jquery'] == 'true':
js = ('plugins/js/jquery.min.js',).__add__(js)
Expand Down
4 changes: 2 additions & 2 deletions draceditor_demo/app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<link href="{% static 'plugins/css/ace.min.css' %}" type="text/css" media="all" rel="stylesheet" />
<link href="{% static 'plugins/css/semantic.min.css' %}" type="text/css" media="all" rel="stylesheet" />
<link href="{% static 'css/draceditor.css' %}" type="text/css" media="all" rel="stylesheet" />
<link href="{% static 'draceditor/css/draceditor.css' %}" type="text/css" media="all" rel="stylesheet" />
<style>
.main-container {margin-top: 7em}
</style>
Expand Down Expand Up @@ -55,6 +55,6 @@
<script type="text/javascript" src="{% static 'plugins/js/theme-github.js' %}"></script>
<script type="text/javascript" src="{% static 'plugins/js/highlight.min.js' %}"></script>
<script type="text/javascript" src="{% static 'plugins/js/emojis.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/draceditor.js' %}"></script>
<script type="text/javascript" src="{% static 'draceditor/js/draceditor.js' %}"></script>
</body>
</html>

0 comments on commit 03e4c94

Please sign in to comment.