kiteditor 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/POST_INSTALL +21 -0
- data/{vendor → app}/assets/images/mercury/button.png +0 -0
- data/{vendor → app}/assets/images/mercury/close.png +0 -0
- data/app/assets/images/mercury/default-snippet.png +0 -0
- data/{vendor → app}/assets/images/mercury/loading-dark.gif +0 -0
- data/{vendor → app}/assets/images/mercury/loading-light.gif +0 -0
- data/{vendor → app}/assets/images/mercury/missing-image.png +0 -0
- data/{vendor → app}/assets/images/mercury/search-icon.png +0 -0
- data/{vendor → app}/assets/images/mercury/temp-logo.png +0 -0
- data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/tools.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
- data/app/assets/images/mercury/toolbar/primary/user.png +0 -0
- data/app/assets/images/mercury/toolbar/snippets/buttons.png +0 -0
- data/{vendor/assets/javascripts/mercury/dependencies → app/assets/javascripts}/jquery-1.7.js +0 -0
- data/{vendor → app}/assets/javascripts/mercury.js +60 -87
- data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
- data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.additions.js +103 -13
- data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
- data/{vendor → app}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
- data/{vendor → app}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
- data/{vendor → app}/assets/javascripts/mercury/dialog.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +1 -1
- data/{vendor → app}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +1 -1
- data/{vendor → app}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/finalize.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/lightview.js.coffee +38 -17
- data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +201 -0
- data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +208 -0
- data/{vendor → app}/assets/javascripts/mercury/locales/de.locale.js.coffee +4 -10
- data/{vendor → app}/assets/javascripts/mercury/locales/es.locale.js.coffee +3 -9
- data/{vendor → app}/assets/javascripts/mercury/locales/example.local.js.coffee +3 -5
- data/{vendor → app}/assets/javascripts/mercury/locales/fr.locale.js.coffee +3 -9
- data/app/assets/javascripts/mercury/locales/hu.locale.js.coffee +209 -0
- data/{vendor → app}/assets/javascripts/mercury/locales/it.locale.js.coffee +3 -9
- data/{vendor → app}/assets/javascripts/mercury/locales/ko.local.js.coffee +4 -10
- data/{vendor → app}/assets/javascripts/mercury/locales/nl.locale.js.coffee +3 -9
- data/app/assets/javascripts/mercury/locales/pl.locale.js.coffee +213 -0
- data/{vendor → app}/assets/javascripts/mercury/locales/pt.locale.js.coffee +3 -9
- data/app/assets/javascripts/mercury/locales/ru.locale.js.coffee +200 -0
- data/{vendor → app}/assets/javascripts/mercury/locales/sv.local.js.coffee +3 -9
- data/{vendor → app}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +3 -9
- data/app/assets/javascripts/mercury/locales/uk.locale.js.coffee +200 -0
- data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +203 -0
- data/app/assets/javascripts/mercury/mercury-compiled.js +10720 -0
- data/{vendor → app}/assets/javascripts/mercury/mercury.js.coffee +10 -1
- data/{vendor → app}/assets/javascripts/mercury/modal.js.coffee +62 -40
- data/{vendor → app}/assets/javascripts/mercury/modals/htmleditor.js.coffee +1 -0
- data/{vendor → app}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +1 -0
- data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +152 -0
- data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +132 -0
- data/{vendor → app}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +2 -0
- data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +68 -0
- data/{vendor → app}/assets/javascripts/mercury/native_extensions.js.coffee +0 -6
- data/{vendor → app}/assets/javascripts/mercury/page_editor.js.coffee +84 -50
- data/{vendor → app}/assets/javascripts/mercury/palette.js.coffee +1 -1
- data/{vendor → app}/assets/javascripts/mercury/panel.js.coffee +3 -2
- data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
- data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
- data/{vendor → app}/assets/javascripts/mercury/region.js.coffee +18 -17
- data/{vendor/assets/javascripts/mercury/regions/editable.js.coffee → app/assets/javascripts/mercury/regions/full.js.coffee} +41 -31
- data/app/assets/javascripts/mercury/regions/image.js.coffee +93 -0
- data/{vendor/assets/javascripts/mercury/regions/markupable.js.coffee → app/assets/javascripts/mercury/regions/markdown.js.coffee} +29 -24
- data/{vendor → app}/assets/javascripts/mercury/regions/simple.js.coffee +11 -54
- data/{vendor/assets/javascripts/mercury/regions/snippetable.js.coffee → app/assets/javascripts/mercury/regions/snippets.js.coffee} +10 -9
- data/{vendor → app}/assets/javascripts/mercury/select.js.coffee +1 -1
- data/app/assets/javascripts/mercury/snippet.js.coffee +136 -0
- data/{vendor → app}/assets/javascripts/mercury/snippet_toolbar.js.coffee +19 -6
- data/{vendor → app}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/support/history.js +0 -0
- data/{vendor → app}/assets/javascripts/mercury/table_editor.js.coffee +16 -0
- data/{vendor → app}/assets/javascripts/mercury/toolbar.button.js.coffee +45 -30
- data/{vendor → app}/assets/javascripts/mercury/toolbar.button_group.js.coffee +2 -2
- data/{vendor → app}/assets/javascripts/mercury/toolbar.expander.js.coffee +4 -4
- data/{vendor → app}/assets/javascripts/mercury/toolbar.js.coffee +10 -6
- data/{vendor → app}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/mercury/uploader.js.coffee +37 -19
- data/app/assets/stylesheets/_mercury-bootstrap-overrides.scss +61 -0
- data/app/assets/stylesheets/_mercury-sass.scss +33 -0
- data/{vendor → app}/assets/stylesheets/mercury.css +1 -5
- data/{vendor → app}/assets/stylesheets/mercury/all_images.css.erb +6 -2
- data/app/assets/stylesheets/mercury/bootstrap-ish.css +1367 -0
- data/app/assets/stylesheets/mercury/bootstrap-overrides.css +61 -0
- data/{vendor → app}/assets/stylesheets/mercury/dialog.css +21 -8
- data/{vendor → app}/assets/stylesheets/mercury/lightview.css +6 -56
- data/app/assets/stylesheets/mercury/mercury.css +43 -0
- data/{vendor → app}/assets/stylesheets/mercury/modal.css +15 -32
- data/{vendor → app}/assets/stylesheets/mercury/statusbar.css +0 -0
- data/{vendor → app}/assets/stylesheets/mercury/toolbar.css +4 -1
- data/{vendor → app}/assets/stylesheets/mercury/tooltip.css +0 -0
- data/{vendor → app}/assets/stylesheets/mercury/uploader.css +4 -4
- data/app/helpers/mercury_helper.rb +7 -0
- data/app/views/layouts/mercury.html.erb +10 -20
- data/app/views/layouts/mercury.html.haml +19 -0
- data/app/views/layouts/mercury.html.slim +19 -0
- data/app/views/mercury/modals/character.html +1 -1
- data/app/views/mercury/modals/htmleditor.html +3 -7
- data/app/views/mercury/modals/link.html +37 -51
- data/app/views/mercury/modals/media.html +102 -0
- data/app/views/mercury/modals/table.html +79 -73
- data/app/views/mercury/panels/snippets.html +6 -1
- data/app/views/mercury/snippets/example/options.html.erb +23 -27
- data/app/views/mercury/snippets/no_options/preview.html.erb +1 -0
- data/config/routes.rb +9 -0
- data/features/generators/authentication.feature +10 -0
- data/features/generators/images.feature +41 -0
- data/features/generators/install.feature +21 -0
- data/features/loading/loading.feature +5 -2
- data/features/loading/user_interface.feature +9 -7
- data/features/regions/{editable → full}/advanced_editing.feature +0 -0
- data/features/regions/full/basic_editing.feature +198 -0
- data/features/regions/{editable → full}/inserting_links.feature +20 -19
- data/features/regions/{editable → full}/inserting_media.feature +36 -18
- data/features/regions/{editable → full}/inserting_snippets.feature +28 -18
- data/features/regions/{editable → full}/inserting_special_characters.feature +2 -2
- data/features/regions/full/inserting_tables.feature +109 -0
- data/features/regions/{editable → full}/pasting.feature +0 -0
- data/features/regions/{editable → full}/uploading_images.feature +0 -0
- data/features/regions/{markupable → image}/uploading_images.feature +0 -0
- data/features/regions/{markupable → markdown}/advanced_editing.feature +0 -0
- data/features/regions/{markupable → markdown}/basic_editing.feature +0 -0
- data/features/regions/{markupable → markdown}/inserting_links.feature +0 -0
- data/features/regions/{markupable → markdown}/inserting_media.feature +0 -0
- data/features/regions/{markupable → markdown}/inserting_snippets.feature +0 -0
- data/features/regions/{markupable → markdown}/inserting_special_characters.feature +0 -0
- data/features/regions/{markupable → markdown}/inserting_tables.feature +0 -0
- data/features/regions/{snippetable/advanced_editing.feature → markdown/uploading_images.feature} +0 -0
- data/features/regions/simple/basic_editing.feature +5 -0
- data/features/regions/{snippetable/basic_editing.feature → snippets/advanced_editing.feature} +0 -0
- data/features/regions/{snippetable/inserting_snippets.feature → snippets/basic_editing.feature} +0 -0
- data/{vendor/assets/javascripts/mercury/locales/da.locale.js.coffee → features/regions/snippets/inserting_snippets.feature} +0 -0
- data/features/saving/saving.feature +8 -8
- data/features/step_definitions/custom_web_steps.rb +22 -0
- data/features/step_definitions/generator_steps.rb +23 -0
- data/features/step_definitions/mercury_steps.rb +1 -438
- data/features/support/aruba.rb +28 -0
- data/features/support/env.rb +11 -1
- data/features/support/selectors.rb +23 -0
- data/lib/generators/mercury/install/authentication/authentication_generator.rb +17 -0
- data/lib/generators/mercury/install/images/images_generator.rb +47 -0
- data/{app/models/mercury/image.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image.rb} +7 -0
- data/{db/migrate/20110526035601_create_mercury_images.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb} +0 -0
- data/{app/controllers/mercury → lib/generators/mercury/install/images/templates}/images_controller.rb +0 -0
- data/lib/generators/mercury/install/{templates → images/templates}/mongoid_paperclip_image.rb +0 -0
- data/lib/generators/mercury/install/install_generator.rb +12 -23
- data/lib/mercury-rails.rb +1 -2
- data/lib/mercury/authentication.rb +1 -0
- data/lib/mercury/cucumber/step_definitions.rb +13 -0
- data/lib/mercury/cucumber/step_definitions/mercury_steps.rb +408 -0
- data/{features → lib/mercury/cucumber}/support/mercury_contents.rb +3 -3
- data/{features → lib/mercury/cucumber}/support/mercury_selectors.rb +0 -20
- data/lib/mercury/engine.rb +19 -0
- data/lib/mercury/rails.rb +5 -0
- data/lib/mercury/version.rb +3 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -0
- data/spec/dummy/app/assets/javascripts/prototype.js +6082 -0
- data/spec/dummy/app/assets/stylesheets/application.css.scss +110 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mercury.html.erb +28 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +58 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +10 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/teabag.rb +9 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/db/.gitkeep +0 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/blank.html +1 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/images/bunny.gif +0 -0
- data/spec/dummy/public/images/bunny2.jpg +0 -0
- data/spec/dummy/public/index.html +279 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/javascripts/{templates → fixtures}/mercury/dialog.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/dialogs/backcolor.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/dialogs/forecolor.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/dialogs/formatblock.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/dialogs/snippetpanel.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/dialogs/style.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/lightview.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/modal.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/modals/htmleditor.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/modals/insertcharacter.html +0 -0
- data/spec/javascripts/fixtures/mercury/modals/insertlink.html +67 -0
- data/spec/javascripts/fixtures/mercury/modals/insertmedia.html +87 -0
- data/spec/javascripts/{templates → fixtures}/mercury/modals/insertsnippet.html +0 -0
- data/spec/javascripts/fixtures/mercury/modals/inserttable.html +73 -0
- data/spec/javascripts/{templates → fixtures}/mercury/page_editor.html +4 -4
- data/spec/javascripts/{templates → fixtures}/mercury/palette.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/panel.html +0 -0
- data/spec/javascripts/fixtures/mercury/region.html +6 -0
- data/spec/javascripts/fixtures/mercury/regions/full.html +1 -0
- data/spec/javascripts/fixtures/mercury/regions/image.html +1 -0
- data/spec/javascripts/fixtures/mercury/regions/markdown.html +1 -0
- data/spec/javascripts/fixtures/mercury/regions/simple.html +1 -0
- data/spec/javascripts/fixtures/mercury/regions/snippets.html +4 -0
- data/spec/javascripts/{templates → fixtures}/mercury/select.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/snippet.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/snippet_toolbar.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/statusbar.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/table_editor.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/toolbar.button.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/toolbar.button_group.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/toolbar.expander.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/toolbar.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/tooltip.html +0 -0
- data/spec/javascripts/{templates → fixtures}/mercury/uploader.html +0 -0
- data/spec/javascripts/mercury/{dialog_spec.js.coffee → dialog_spec.coffee} +11 -12
- data/spec/javascripts/mercury/dialogs/backcolor_spec.js.coffee +2 -3
- data/spec/javascripts/mercury/dialogs/forecolor_spec.js.coffee +3 -4
- data/spec/javascripts/mercury/dialogs/formatblock_spec.js.coffee +2 -3
- data/spec/javascripts/mercury/dialogs/snippetpanel_spec.js.coffee +2 -3
- data/spec/javascripts/mercury/dialogs/style_spec.js.coffee +2 -3
- data/spec/javascripts/mercury/lightview_spec.js.coffee +180 -142
- data/spec/javascripts/mercury/mercury_spec.js.coffee +19 -13
- data/spec/javascripts/mercury/modal_spec.js.coffee +192 -148
- data/spec/javascripts/mercury/modals/htmleditor_spec.js.coffee +4 -5
- data/spec/javascripts/mercury/modals/insertcharacter_spec.js.coffee +2 -3
- data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +107 -34
- data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +106 -26
- data/spec/javascripts/mercury/modals/insertsnippet_spec.js.coffee +2 -3
- data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +50 -40
- data/spec/javascripts/mercury/page_editor_spec.js.coffee +124 -80
- data/spec/javascripts/mercury/palette_spec.js.coffee +4 -5
- data/spec/javascripts/mercury/panel_spec.js.coffee +9 -12
- data/spec/javascripts/mercury/region_spec.js.coffee +22 -17
- data/spec/javascripts/mercury/regions/{editable_spec.js.coffee → full_spec.js.coffee} +26 -28
- data/spec/javascripts/mercury/regions/image_spec.js.coffee +33 -0
- data/spec/javascripts/mercury/regions/{markupable_spec.js.coffee → markdown_spec.js.coffee} +32 -34
- data/spec/javascripts/mercury/regions/simple_spec.js.coffee +32 -0
- data/spec/javascripts/mercury/regions/{snippetable_spec.js.coffee → snippets_spec.js.coffee} +54 -55
- data/spec/javascripts/mercury/select_spec.js.coffee +4 -5
- data/spec/javascripts/mercury/snippet_spec.js.coffee +92 -16
- data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +31 -16
- data/spec/javascripts/mercury/statusbar_spec.js.coffee +9 -10
- data/spec/javascripts/mercury/table_editor_spec.js.coffee +1 -2
- data/spec/javascripts/mercury/toolbar.button_group_spec.js.coffee +7 -9
- data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +55 -26
- data/spec/javascripts/mercury/toolbar.expander_spec.js.coffee +13 -13
- data/spec/javascripts/mercury/toolbar_spec.js.coffee +43 -14
- data/spec/javascripts/mercury/tooltip_spec.js.coffee +1 -2
- data/spec/javascripts/mercury/uploader_spec.js.coffee +47 -33
- data/spec/javascripts/spec_helper.coffee +4 -0
- data/spec/javascripts/{spec_helper.js → support/event_simulation.js} +0 -2
- data/spec/teabag_env.rb +32 -0
- metadata +366 -196
- data/features/regions/editable/basic_editing.feature +0 -195
- data/features/regions/editable/inserting_tables.feature +0 -109
- data/spec/javascripts/templates/mercury/modals/insertlink.html +0 -30
- data/spec/javascripts/templates/mercury/modals/insertmedia.html +0 -35
- data/spec/javascripts/templates/mercury/modals/inserttable.html +0 -27
- data/spec/javascripts/templates/mercury/region.html +0 -2
- data/spec/javascripts/templates/mercury/regions/editable.html +0 -3
- data/spec/javascripts/templates/mercury/regions/snippetable.html +0 -4
- data/vendor/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -54
- data/vendor/assets/javascripts/mercury_loader.js +0 -193
- data/vendor/assets/javascripts/mercury_overrides.js +0 -6
- data/vendor/assets/stylesheets/mercury/mercury.css +0 -151
- data/vendor/assets/stylesheets/mercury_overrides.css +0 -17
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@Mercury.dialogHandlers.foreColor = ->
|
2
2
|
@element.find('.picker, .last-picked').on 'click', (event) =>
|
3
|
-
color = jQuery(event.target).css('background-color')
|
3
|
+
color = jQuery(event.target).css('background-color').toHex()
|
4
4
|
@element.find('.last-picked').css({background: color})
|
5
5
|
@button.css({backgroundColor: color})
|
6
6
|
Mercury.trigger('action', {action: 'foreColor', value: color})
|
File without changes
|
@@ -7,4 +7,4 @@
|
|
7
7
|
|
8
8
|
# when an element is dragged, set it so we have a global object
|
9
9
|
@element.find('img[data-snippet]').on 'dragstart', ->
|
10
|
-
Mercury.snippet = jQuery(@).data('snippet')
|
10
|
+
Mercury.snippet = {name: jQuery(@).data('snippet'), hasOptions: !(jQuery(@).data('options') == false)}
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,19 +1,27 @@
|
|
1
1
|
@Mercury.lightview = (url, options = {}) ->
|
2
|
-
Mercury.lightview.
|
3
|
-
|
2
|
+
Mercury.lightview.instance ||= new Mercury.Lightview(url, options)
|
3
|
+
Mercury.lightview.instance.show(url, options)
|
4
|
+
return Mercury.lightview.instance
|
4
5
|
|
5
|
-
jQuery.extend Mercury.lightview,
|
6
|
-
minWidth: 400
|
7
6
|
|
8
|
-
|
7
|
+
class @Mercury.Lightview
|
8
|
+
|
9
|
+
constructor: (@url, @options = {}) ->
|
10
|
+
|
11
|
+
|
12
|
+
show: (url, options) ->
|
13
|
+
@url = url || @url
|
14
|
+
@options = options || @options
|
15
|
+
@options.ujsHandling = true unless @options.ujsHandling == false
|
16
|
+
|
9
17
|
Mercury.trigger('focus:window')
|
10
|
-
@
|
18
|
+
@initializeLightview()
|
11
19
|
if @visible then @update() else @appear()
|
12
20
|
if @options.content
|
13
|
-
setTimeout
|
21
|
+
setTimeout((=> @loadContent(@options.content)), 500)
|
14
22
|
|
15
23
|
|
16
|
-
|
24
|
+
initializeLightview: ->
|
17
25
|
return if @initialized
|
18
26
|
@build()
|
19
27
|
@bindEvents()
|
@@ -46,9 +54,10 @@ jQuery.extend Mercury.lightview,
|
|
46
54
|
@titleElement.find('.mercury-lightview-close').on 'click', =>
|
47
55
|
@hide()
|
48
56
|
|
49
|
-
@
|
50
|
-
|
51
|
-
|
57
|
+
if @options.ujsHandling
|
58
|
+
@element.on 'ajax:beforeSend', (event, xhr, options) =>
|
59
|
+
options.success = (content) =>
|
60
|
+
@loadContent(content)
|
52
61
|
|
53
62
|
jQuery(document).on 'keydown', (event) =>
|
54
63
|
@hide() if event.keyCode == 27 && @visible
|
@@ -146,7 +155,7 @@ jQuery.extend Mercury.lightview,
|
|
146
155
|
return unless @url
|
147
156
|
@element.addClass('loading')
|
148
157
|
if Mercury.preloadedViews[@url]
|
149
|
-
setTimeout(
|
158
|
+
setTimeout((=> @loadContent(Mercury.preloadedViews[@url])), 10)
|
150
159
|
else
|
151
160
|
jQuery.ajax @url, {
|
152
161
|
headers: Mercury.ajaxHeaders()
|
@@ -160,7 +169,7 @@ jQuery.extend Mercury.lightview,
|
|
160
169
|
|
161
170
|
|
162
171
|
loadContent: (data, options = null) ->
|
163
|
-
@
|
172
|
+
@initializeLightview()
|
164
173
|
@options = options || @options
|
165
174
|
@setTitle()
|
166
175
|
@loaded = true
|
@@ -175,11 +184,20 @@ jQuery.extend Mercury.lightview,
|
|
175
184
|
@options.afterLoad.call(@) if @options.afterLoad
|
176
185
|
if @options.handler
|
177
186
|
if Mercury.modalHandlers[@options.handler]
|
178
|
-
Mercury.modalHandlers[@options.handler]
|
187
|
+
if typeof(Mercury.modalHandlers[@options.handler]) == 'function'
|
188
|
+
Mercury.modalHandlers[@options.handler].call(@)
|
189
|
+
else
|
190
|
+
jQuery.extend(@, Mercury.modalHandlers[@options.handler])
|
191
|
+
@initialize()
|
179
192
|
else if Mercury.lightviewHandlers[@options.handler]
|
180
|
-
Mercury.lightviewHandlers[@options.handler]
|
193
|
+
if typeof(Mercury.lightviewHandlers[@options.handler]) == 'function'
|
194
|
+
Mercury.lightviewHandlers[@options.handler].call(@)
|
195
|
+
else
|
196
|
+
jQuery.extend(@, Mercury.lightviewHandlers[@options.handler])
|
197
|
+
@initialize()
|
181
198
|
|
182
199
|
@element.localize(Mercury.locale()) if Mercury.config.localization.enabled
|
200
|
+
@element.find('.lightview-close').on('click', @hide)
|
183
201
|
@resize()
|
184
202
|
|
185
203
|
|
@@ -187,15 +205,18 @@ jQuery.extend Mercury.lightview,
|
|
187
205
|
@titleElement.find('span').html(Mercury.I18n(@options.title))
|
188
206
|
|
189
207
|
|
208
|
+
serializeForm: ->
|
209
|
+
return @element.find('form').serializeObject() || {}
|
210
|
+
|
211
|
+
|
190
212
|
reset: ->
|
191
213
|
@titleElement.find('span').html('')
|
192
214
|
@contentElement.html('')
|
193
215
|
|
194
216
|
|
195
|
-
hide:
|
217
|
+
hide: =>
|
196
218
|
return if @showing
|
197
219
|
@options = {}
|
198
|
-
@initialized = false
|
199
220
|
|
200
221
|
Mercury.trigger('focus:frame')
|
201
222
|
@element.hide()
|
@@ -0,0 +1,201 @@
|
|
1
|
+
Mercury.I18n['ar'] =
|
2
|
+
# ## Javascript Strings
|
3
|
+
|
4
|
+
# ### Default Configuration
|
5
|
+
"Save": "حفظ"
|
6
|
+
"Save this page": "حفظ الصفحة"
|
7
|
+
"Preview": "معاينة"
|
8
|
+
"Preview this page": "معاينة هذه الضفحة"
|
9
|
+
"Undo": "تراجع"
|
10
|
+
"Undo your last action": "تراجع عن أخر فعل"
|
11
|
+
"Redo": "إعادة"
|
12
|
+
"Redo your last action": "إعادة أخر فعل"
|
13
|
+
"Link": "رابط"
|
14
|
+
"Insert Link": "إدراج رابط"
|
15
|
+
"Media": "ملف ميديا"
|
16
|
+
"Insert Media (images and videos)": "إدراج ملف ميديا (صور أو فيديو)"
|
17
|
+
"Table": "جدول"
|
18
|
+
"Insert Table": "إدراج جدول"
|
19
|
+
"Character": "حرف"
|
20
|
+
"Special Characters": "حرف مميز "
|
21
|
+
"Snippet": "قصاصة"
|
22
|
+
"Snippet Panel": "لوحة قصاصات"
|
23
|
+
"History": "سجل"
|
24
|
+
"Page Version History": "نسج مسجلة من الصفحة"
|
25
|
+
"Notes": "ملاحظات"
|
26
|
+
"Page Notes": "ملاحظات الصفحة"
|
27
|
+
"Style": "نمط"
|
28
|
+
"Block Format": "تنسيق كتلة"
|
29
|
+
"Background Color": "لون الخلفية"
|
30
|
+
"Text Color": "لون النص"
|
31
|
+
"Bold": "واضح"
|
32
|
+
"Italicize": "مائلة"
|
33
|
+
"Overline": "خط فوق"
|
34
|
+
"Strikethrough": " خط فى الوسط "
|
35
|
+
"Underline": "خط تحت"
|
36
|
+
"Subscript": " نص سفلى"
|
37
|
+
"Superscript": " نص علوى"
|
38
|
+
"Align Left": "محاذاة إلى اليسار"
|
39
|
+
"Center": "محاذاة إلى الوسط"
|
40
|
+
"Align Right": "محاذاة إلى اليمين"
|
41
|
+
"Justify Full": "ضبط كامل"
|
42
|
+
"Unordered List": "قائمة غير مرتبة"
|
43
|
+
"Numbered List": "قائمة مرقمة"
|
44
|
+
"Decrease Indentation": "إنقاص المسافة البادئة"
|
45
|
+
"Increase Indentation": "زيادة المسافة البادئة"
|
46
|
+
"Insert Table Row": "إدراج صف "
|
47
|
+
"Insert a table row before the cursor": "إدراج صف قبل المؤشر"
|
48
|
+
"Insert a table row after the cursor": "إدراج صف بعد المؤشر"
|
49
|
+
"Delete Table Row": "حذف صف"
|
50
|
+
"Delete this table row": "حذف هذا الصف"
|
51
|
+
"Insert Table Column": "إضافة عمود للجدول"
|
52
|
+
"Insert a table column before the cursor": "إدراج عمود قبل المؤشر"
|
53
|
+
"Insert a table column after the cursor": "إدراج عمود بعد المؤشر"
|
54
|
+
"Delete Table Column": "حذف عمود جدول"
|
55
|
+
"Delete this table column": "حذف هذا العمود"
|
56
|
+
"Increase Cell Columns": "زيادة أعمدة الخلية"
|
57
|
+
"Decrease Cell Columns": "إنقاص أعمدة الخلية"
|
58
|
+
"Increase Cell Rows": "زيادة صفوف الخلية"
|
59
|
+
"Decrease Cell Rows": "إنقاص صفوف الخلية"
|
60
|
+
"Horizontal Rule": "مسطرة أفقية"
|
61
|
+
"Insert a horizontal rule": "إدراج مسطرة أفقية"
|
62
|
+
"Remove Formatting": "إزالة التنسيق"
|
63
|
+
"Remove formatting for the selection": "إزالة التنسيق لاختيار"
|
64
|
+
"Edit HTML": "تعديل ال HTML"
|
65
|
+
"Edit the HTML content": "تعديل ال HTML"
|
66
|
+
"Edit Snippet Settings": "تعديل ضبط قصاصة"
|
67
|
+
"Remove Snippet": "إزالة القصاصات"
|
68
|
+
|
69
|
+
# ### General
|
70
|
+
# Error Messages
|
71
|
+
"Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "Mercury.Regions.%s غير غير مدعوم فى هذا المتصفح. المتصفحات المدعومة هى %s"
|
72
|
+
"Mercury.PageEditor can only be instantiated once.": "Mercury.PageEditor لا يمكن إلا أن يمثل مرة واحدة.."
|
73
|
+
"Opera isn't a fully supported browser, your results may not be optimal.": "أوبرا ليست متصفح متوافق بالكامل، قد لا تكون نتائجك الأمثل."
|
74
|
+
"Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor غير قاد على تحميل: %s\n\nمن فضلك حدث الصفحة ."
|
75
|
+
"Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "نوع المساحة تالف, لا يوجد نوع , أو \"%s\" غير معروف للمساحة \"%s\""
|
76
|
+
"Mercury was unable to save to the url: %s": "غير قادر على حفظ الرابط: %s"
|
77
|
+
"invalid": "باطل"
|
78
|
+
"can't be blank": "لا يمكن أن تكون فارغة"
|
79
|
+
# Confirmations
|
80
|
+
"You have unsaved changes.Are you sure you want to leave without saving them first?": "لديك تغييرات غير محفوظة. هل أنت متأكد أنك تريد أن تترك دون حفظها أولا؟"
|
81
|
+
|
82
|
+
# ### Toolbar / Buttons
|
83
|
+
# Error Messages
|
84
|
+
"Unknown button type \"%s\" used for the \"%s\" button.": "نوع زر غير معروف \"%s\" مستخدمة ل \"%s\""
|
85
|
+
"Unknown button structure -- please provide an array, object, or string for \"%s\".": "بنية زر غير معروفة - يرجى تقديم مجموعة واسعة، كائنات، أو كلمة \"%s\"."
|
86
|
+
|
87
|
+
# ### Modals / Dialogs / Etc.
|
88
|
+
# Error Messages
|
89
|
+
"Mercury was unable to load %s for the \"%s\" dialog.": "غير قادر على تحميل %s للنافذة \"%s\"."
|
90
|
+
"Mercury was unable to load %s for the lightview.": "غير قادر على تحميل %s للضوء."
|
91
|
+
"Mercury was unable to load %s for the modal.": "غير قادر على تحميل %s للنافذة."
|
92
|
+
|
93
|
+
# ### Snippets
|
94
|
+
# Error Messages
|
95
|
+
"Error loading the preview for the \"%s\" snippet.": "خطأ فى تحميل معاينة القصاصة \"%s\"."
|
96
|
+
# Misc
|
97
|
+
"Snippet Options": "خيارات القصاصة"
|
98
|
+
|
99
|
+
# ### Uploader
|
100
|
+
# Error Messages
|
101
|
+
"Unable to process response: %s": "غير قادر على معالجة الرد: %s"
|
102
|
+
"Error: Unable to upload the file": "خطأ: غير قادر على رفع الملف"
|
103
|
+
"Malformed response from server": "استجابة من الخادم متلوفة"
|
104
|
+
"Too large": "كبير جدا"
|
105
|
+
"Unsupported format": "تنسيق غير مدعوم"
|
106
|
+
# Statuses
|
107
|
+
"Processing...": "معالجة..."
|
108
|
+
"Uploading...": "رفع..."
|
109
|
+
"Aborted": "ملغى"
|
110
|
+
"Successfully uploaded...": "تم الرفع بنجاح..."
|
111
|
+
"Name: %s": "اسم: %s"
|
112
|
+
"Size: %s": "حجم: %s"
|
113
|
+
"Type: %s": "نوع: %s"
|
114
|
+
|
115
|
+
# Statusbar
|
116
|
+
"Path:": "مسار:"
|
117
|
+
|
118
|
+
|
119
|
+
# ## HTML / Template Strings
|
120
|
+
|
121
|
+
# ### Modals
|
122
|
+
# Insert Link Modal (link.html)
|
123
|
+
"Link Content": "محتوى الرابط"
|
124
|
+
"Standard Links": "رابط قياسى"
|
125
|
+
"URL": "عنوان"
|
126
|
+
"Index / Bookmark Links": "روابط فهرس / الإشارة المرجعية"
|
127
|
+
"Existing Links": "الروابط الموجودة"
|
128
|
+
"Bookmark": "الإشارة المرجعية"
|
129
|
+
"Options": "خيارات"
|
130
|
+
"Link Target": "هدف الرابط"
|
131
|
+
"Self (the same window or tab)": "الذاتية (نفس النافذة أو التبويب)"
|
132
|
+
"Blank (a new window or tab)": "فارغة (نافذة جديدة أو علامة التبويب)"
|
133
|
+
"Top (removes any frames)": "أعلى (يزيل أي إطارات)"
|
134
|
+
"Popup Window (javascript new window popup)": "نافذة منبثقة (جافا سكريبت نافذة منبثقة جديد)"
|
135
|
+
"Popup Width": "عرض النافذة المنبثقة"
|
136
|
+
"Popup Height": "طول النافذة المنبثقة"
|
137
|
+
|
138
|
+
# Insert Media Modal (media.html)
|
139
|
+
"Images": "صور"
|
140
|
+
"Videos": "فيديو"
|
141
|
+
"YouTube URL": "رابط يوتيوب"
|
142
|
+
"Vimeo URL": "رابط فيميو"
|
143
|
+
"Alignment": "المحاذاة"
|
144
|
+
"None": "لا شيء"
|
145
|
+
"Left": "يسار"
|
146
|
+
"Right": "يمين"
|
147
|
+
"Top": "أعلى"
|
148
|
+
"Middle": "وسط"
|
149
|
+
"Bottom": "أسفل"
|
150
|
+
"Absolute Middle": "أوسط مطلق"
|
151
|
+
"Absolute Bottom": "أسفل مطلق"
|
152
|
+
"Width": "عرض"
|
153
|
+
"Height": "ارتفاع"
|
154
|
+
"Insert Media": "إدراج ملف ميديا"
|
155
|
+
|
156
|
+
# Insert Table Modal (table.html)
|
157
|
+
"Rows": "صفوف"
|
158
|
+
"Add Before": "إضافة قبل"
|
159
|
+
"Add After": "إضافة بعد"
|
160
|
+
"Remove": "حذف"
|
161
|
+
"Columns": "أعمدة"
|
162
|
+
"Row Span": "إمتداد الصف"
|
163
|
+
"Column Span": "إمتداد العمود"
|
164
|
+
"Border": "الحدود"
|
165
|
+
"Spacing": "تباعد"
|
166
|
+
|
167
|
+
# HTML Editor Modal (htmleditor.html)
|
168
|
+
"HTML Editor": "HTML محرر"
|
169
|
+
"Save and Replace": "حفظ واستبدال"
|
170
|
+
|
171
|
+
# ### Dialogs / Etc.
|
172
|
+
# Color Palettes (forecolor.html, backcolor.html)
|
173
|
+
"Last Color Picked": "التقطت آخر لون"
|
174
|
+
|
175
|
+
# Block Format Select (formatblock.html)
|
176
|
+
"Heading 1": "العنوان 1"
|
177
|
+
"Heading 2": "العنوان 2"
|
178
|
+
"Heading 3": "العنوان 3"
|
179
|
+
"Heading 4": "العنوان 4"
|
180
|
+
"Heading 5": "العنوان 5"
|
181
|
+
"Heading 6": "العنوان 6"
|
182
|
+
"Paragraph": "فقرة"
|
183
|
+
"Blockquote": "قتباس فقرة"
|
184
|
+
"Formatted": "منسقة"
|
185
|
+
|
186
|
+
# About Mercury Panel (about.html)
|
187
|
+
"Project Home": "صفحة المشروع"
|
188
|
+
"Project Source": "مصدر المشروع"
|
189
|
+
|
190
|
+
# ### Demo / Placeholder / Defaults
|
191
|
+
"The history panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "لوحة التواريخ متوقع أن تكن مبرمجة. بما أن هد نسخة تجربية فهى غير محتواه."
|
192
|
+
|
193
|
+
"The notes panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "لوحة الملاحظات متوقع أن تكن مبرمجة. بما أن هد نسخة تجربية فهى غير محتواه"
|
194
|
+
|
195
|
+
"Snippet Name": "اسم قصاصة"
|
196
|
+
"A one or two line long description of what this snippet does.": "وصف سطر واحد أو اثنين عما تفعل هذه القصاصة."
|
197
|
+
|
198
|
+
"First Name": "اﻷسم اﻷول"
|
199
|
+
"Favorite Beer": "المفضلة"
|
200
|
+
"Insert Snippet": "إدراج قصاصة"
|
201
|
+
|
@@ -0,0 +1,208 @@
|
|
1
|
+
<<<<<<< HEAD:vendor/assets/javascripts/mercury/locales/da.locale.js.coffee
|
2
|
+
=======
|
3
|
+
Mercury.I18n['da'] =
|
4
|
+
# ## Javascript Strings
|
5
|
+
|
6
|
+
# ### Default Configuration
|
7
|
+
"Save": "Gem"
|
8
|
+
"Save this page": "Gem denne side"
|
9
|
+
"Preview": "Forhåndsvisning"
|
10
|
+
"Preview this page": "Forhåndsvis denne side"
|
11
|
+
"Undo": "Fortryd"
|
12
|
+
"Undo your last action": "Fortryd din sidste hændelse"
|
13
|
+
"Redo": "Gentag"
|
14
|
+
"Redo your last action": "Gentag din sidste hændelse"
|
15
|
+
"Link": "Link"
|
16
|
+
"Insert Link": "Indsæt link"
|
17
|
+
"Media": "Media"
|
18
|
+
"Insert Media (images and videos)": "Indsæt media (billeder og videoer)"
|
19
|
+
"Table": "Tabel"
|
20
|
+
"Insert Table": "Indsæt Tabel"
|
21
|
+
"Character": "Tegn"
|
22
|
+
"Special Characters": "Specialtegn"
|
23
|
+
"Snippet": "Snippet"
|
24
|
+
"Snippet Panel": "Snippetpanel"
|
25
|
+
"History": "Historie"
|
26
|
+
"Page Version History": "Sidens versionshistorik"
|
27
|
+
"Notes": "Noter"
|
28
|
+
"Page Notes": "Sidenoter"
|
29
|
+
"Style": "Stil"
|
30
|
+
"Block Format": "Blokformat"
|
31
|
+
"Background Color": "Baggrundsfarve"
|
32
|
+
"Text Color": "Tekstfarve"
|
33
|
+
"Bold": "Fed"
|
34
|
+
"Italicize": "Kursiv"
|
35
|
+
"Overline": "Overstreg"
|
36
|
+
"Strikethrough": "Gennemstreg"
|
37
|
+
"Underline": "Understreg"
|
38
|
+
"Subscript": "Sænket skrift"
|
39
|
+
"Superscript": "Hævet skrift"
|
40
|
+
"Align Left": "Venstrejusteret"
|
41
|
+
"Center": "Centreret"
|
42
|
+
"Align Right": "Højrejusteret"
|
43
|
+
"Justify Full": "Lige margener"
|
44
|
+
"Unordered List": "Usorteret liste"
|
45
|
+
"Numbered List": "Nummereret liste"
|
46
|
+
"Decrease Indentation": "Formindsk indrykning"
|
47
|
+
"Increase Indentation": "Forøg indrykning"
|
48
|
+
"Insert Table Row": "Indsæt tabelrække"
|
49
|
+
"Insert a table row before the cursor": "Indsæt en tabelrække før pegeren"
|
50
|
+
"Insert a table row after the cursor": "Indsæt en tabelrække efter pegeren"
|
51
|
+
"Delete Table Row": "Slet tabelrække"
|
52
|
+
"Delete this table row": "Slet denne tabelrække"
|
53
|
+
"Insert Table Column": "Indsæt tabelkolonne"
|
54
|
+
"Insert a table column before the cursor": "Indsæt en tabelkolonne før pegeren"
|
55
|
+
"Insert a table column after the cursor": "Indsæt en tabelkolonne efter pegeren"
|
56
|
+
"Delete Table Column": "Slet tabelkolonne"
|
57
|
+
"Delete this table column": "Slet denne tabelkolonne"
|
58
|
+
"Increase Cell Columns": "Forøg cellekolonner"
|
59
|
+
"Decrease Cell Columns": "Formindsk cellekolonner"
|
60
|
+
"Increase Cell Rows": "Forøg cellerækker"
|
61
|
+
"Decrease Cell Rows": "Formindsk cellerækker"
|
62
|
+
"Horizontal Rule": "Vandret linje"
|
63
|
+
"Insert a horizontal rule": "Indsæt en vandret linje"
|
64
|
+
"Remove Formatting": "Fjern formatering"
|
65
|
+
"Remove formatting for the selection": "Fjern formatering fra markeringen"
|
66
|
+
"Edit HTML": "Rediger HTML"
|
67
|
+
"Edit the HTML content": "Rediger HTML-indholdet"
|
68
|
+
"Edit Snippet Settings": "Rediger snippetindstillinger"
|
69
|
+
"Remove Snippet": "Fjern snippet"
|
70
|
+
|
71
|
+
# ### General
|
72
|
+
# Error Messages
|
73
|
+
"Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "Mercury.Regions.%s er ikke understøttet i denne browser. Understøttede browsere er %s."
|
74
|
+
"Mercury.PageEditor can only be instantiated once.": "Mercury.PageEditor kan kun blive instantieret én gang."
|
75
|
+
"Opera isn't a fully supported browser, your results may not be optimal.": "Opera er ikke en fuldt ud understøttet. Dine resultater kan derfor være uoptimale."
|
76
|
+
"Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor kunne ikke starte: %s\n\n Prøv venligst at opdatere siden."
|
77
|
+
"Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "Regionstype er forkert formateret. Enten blev ingen datatype angivet, ellers er \"%s\" ukendt for \"%s\"regionen."
|
78
|
+
"Mercury was unable to save to the url: %s": "Mercury var ikke i stand til at gemme til addressen: %s"
|
79
|
+
"invalid": "ugyldig"
|
80
|
+
"can't be blank": "kan ikke være tomt"
|
81
|
+
# Confirmations
|
82
|
+
"You have unsaved changes. Are you sure you want to leave without saving them first?": "Du har ændringer der ikke er blevet gemt. Er du sikker på, at du vil forlade siden uden først at gemme dem?"
|
83
|
+
|
84
|
+
# ### Toolbar / Buttons
|
85
|
+
# Error Messages
|
86
|
+
"Unknown button type \"%s\" used for the \"%s\" button.": "Ukendt knaptype \"%s\" anvendt for \"%s\"knappen."
|
87
|
+
"Unknown button structure -- please provide an array, object, or string for \"%s\".": "Ukendt knappestruktur -- Angiv venligst et array, objekt eller en streng for \"%s\"."
|
88
|
+
|
89
|
+
# ### Modals / Dialogs / Etc.
|
90
|
+
# Error Messages
|
91
|
+
"Mercury was unable to load %s for the \"%s\" dialog.": "Mercury kunne ikke indlæse %s for \"%s\"dialogen."
|
92
|
+
"Mercury was unable to load %s for the lightview.": "Mercury kunne ikke indlæse %s for lightview."
|
93
|
+
"Mercury was unable to load %s for the modal.": "Mercury kunne ikke indlæse %s for denna modal."
|
94
|
+
|
95
|
+
# ### Snippets
|
96
|
+
# Error Messages
|
97
|
+
"Error loading the preview for the \"%s\" snippet.": "Fejl ved indlæsning af forhåndsvisningen for \"%s\"snippeten."
|
98
|
+
# Misc
|
99
|
+
"Snippet Options": "Snippetindstillinger"
|
100
|
+
|
101
|
+
# ### Uploader
|
102
|
+
# Error Messages
|
103
|
+
"Unable to process response: %s": "Kunne ikke forarbejde svar: %s"
|
104
|
+
"Error: Unable to upload the file": "Fejl: Kunne ikke uploade filen"
|
105
|
+
"Malformed response from server": "Deform svar fra server"
|
106
|
+
"Too large": "For stor"
|
107
|
+
"Unsupported format": "Formatet er ikke understøttet"
|
108
|
+
# Statuses
|
109
|
+
"Processing...": "Forarbejder..."
|
110
|
+
"Uploading...": "Uploader..."
|
111
|
+
"Aborted": "Afbrudt"
|
112
|
+
"Successfully uploaded...": "Upload færdig..."
|
113
|
+
"Name: %s": "Navn: %s"
|
114
|
+
"Size: %s": "Størrelse: %s"
|
115
|
+
"Type: %s": "Type: %s"
|
116
|
+
|
117
|
+
# Statusbar
|
118
|
+
"Path:": "Sti:"
|
119
|
+
|
120
|
+
|
121
|
+
# ## HTML / Template Strings
|
122
|
+
|
123
|
+
# ### Modals
|
124
|
+
# Insert Link Modal (link.html)
|
125
|
+
"Link Content": "Link indhold"
|
126
|
+
"Standard Links": "Standard links"
|
127
|
+
"URL": "URL"
|
128
|
+
"Index / Bookmark Links": "Indeks- / bogmærkelinks"
|
129
|
+
"Existing Links": "Eksisterende links"
|
130
|
+
"Bookmark": "Bogmærke"
|
131
|
+
"Options": "Indstillinger"
|
132
|
+
"Link Target": "Link Target"
|
133
|
+
"Self (the same window or tab)": "Self (det samme vindue eller fane)"
|
134
|
+
"Blank (a new window or tab)": "Blank (et nyt vindue eller fane)"
|
135
|
+
"Top (removes any frames)": "Top (fjerner eventuelle rammer)"
|
136
|
+
"Popup Window (javascript new window popup)": "Popupvindue (JavaScript nyt vindue popup)"
|
137
|
+
"Popup Width": "Bredde for popup"
|
138
|
+
"Popup Height": "Højde for popup"
|
139
|
+
|
140
|
+
# Insert Media Modal (media.html)
|
141
|
+
"Images": "Billeder"
|
142
|
+
"Videos": "Videoer"
|
143
|
+
"YouTube URL": "YouTube-URL"
|
144
|
+
"Vimeo URL": "Vimeo-URL"
|
145
|
+
"Alignment": "Justering"
|
146
|
+
"None": "Ingen"
|
147
|
+
"Left": "Venstre"
|
148
|
+
"Right": "Højre"
|
149
|
+
"Top": "Top"
|
150
|
+
"Middle": "Midt"
|
151
|
+
"Bottom": "Bund"
|
152
|
+
"Absolute Middle": "Absolut midte"
|
153
|
+
"Absolute Bottom": "Absolut bund"
|
154
|
+
"Width": "Bredde"
|
155
|
+
"Height": "Højde"
|
156
|
+
"Insert Media": "Indsæt media"
|
157
|
+
|
158
|
+
# Insert Table Modal (table.html)
|
159
|
+
"Rows": "Rækker"
|
160
|
+
"Add Before": "Tilføj før"
|
161
|
+
"Add After": "Tilføj efter"
|
162
|
+
"Remove": "Fjern"
|
163
|
+
"Columns": "Kolonner"
|
164
|
+
"Row Span": "Rækkevidde"
|
165
|
+
"Column Span": "Kolonnevidde"
|
166
|
+
"Border": "Ramme"
|
167
|
+
"Spacing": "Mellemrum"
|
168
|
+
|
169
|
+
# HTML Editor Modal (htmleditor.html)
|
170
|
+
"HTML Editor": "HTML-editor"
|
171
|
+
"Save and Replace": "Gem og erstat"
|
172
|
+
|
173
|
+
# ### Dialogs / Etc.
|
174
|
+
# Color Palettes (forecolor.html, backcolor.html)
|
175
|
+
"Last Color Picked": "Sidste valgte farve"
|
176
|
+
|
177
|
+
# Block Format Select (formatblock.html)
|
178
|
+
"Heading 1": "Rubrik 1"
|
179
|
+
"Heading 2": "Rubrik 2"
|
180
|
+
"Heading 3": "Rubrik 3"
|
181
|
+
"Heading 4": "Rubrik 4"
|
182
|
+
"Heading 5": "Rubrik 5"
|
183
|
+
"Heading 6": "Rubrik 6"
|
184
|
+
"Paragraph": "Paragraf"
|
185
|
+
"Blockquote": "Citattekst"
|
186
|
+
"Formatted": "Formateret"
|
187
|
+
|
188
|
+
# About Mercury Panel (about.html)
|
189
|
+
"Project Home": "Projektets hjemmeside"
|
190
|
+
"Project Source": "Projektets kildekode"
|
191
|
+
|
192
|
+
# ### Demo / Placeholder / Defaults
|
193
|
+
"The history panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "Historikpanelet forventes at være implementeret med en server back-end. Eftersom dette er en demo så inkluderede vi den ikke."
|
194
|
+
|
195
|
+
"The notes panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "Notepanelet forventes at være implementeret med en server back-end. Eftersom dette er en demo så inkluderede vi den ikke."
|
196
|
+
|
197
|
+
"Snippet Name": "Snippetnavn"
|
198
|
+
"A one or two line long description of what this snippet does.": "En eller to linjers lang beskrivelse om hvad denne snippet gør."
|
199
|
+
|
200
|
+
"First Name": "Fornavn"
|
201
|
+
"Favorite Beer": "Favorit øl"
|
202
|
+
"Insert Snippet": "Indsæt snippet"
|
203
|
+
|
204
|
+
|
205
|
+
# ## Custom Regional Overrides (eg. en-US)
|
206
|
+
_US_:
|
207
|
+
"Save": "Gem"
|
208
|
+
>>>>>>> upstream/master:app/assets/javascripts/mercury/locales/da.locale.js.coffee
|