Commit graph

282 commits

Author SHA1 Message Date
Translation updater bot b8c95dace1 Localisation updates from http://translatewiki.net.
Change-Id: I5bb2e690191dea436e6659ae7511f851a2e76f38
2013-05-04 20:26:23 +00:00
Translation updater bot def5c20269 Localisation updates from http://translatewiki.net.
Change-Id: If66dac65058527d3a1b7299b6b28348f2af85d29
2013-05-02 20:50:31 +00:00
Translation updater bot 7c02b6052b Localisation updates from http://translatewiki.net.
Change-Id: I19074dc7b902b2870438bb2e542d7c76e688e6b4
2013-05-01 20:39:50 +00:00
Translation updater bot f8d81c66b6 Localisation updates from http://translatewiki.net.
Change-Id: I8fbb953b557967f568c33bcf62b4cfd1ea122461
2013-04-30 21:19:16 +00:00
Trevor Parscal 718db58fd5 Category editing
Modifications:

VisualEditor.php
* Added links to new widgets

VisualEditor.i18n.php
* Added placeholder text for category input

ve.ui.Widget.css
* Added styles for new widgets

New:

ve.ui.MWMetaDialog.js
* Create category widget with categories from dm.
* Listen to metaList for insert and remove events
** insert / remove bound methods to be improved upon additional meta groups
* Add listeners to mwCategoryWidget for new categories and updates

ve.ui.MWCategoryWidget.js
* Top-level category editing widget

ve.ui.MWCategoryItemWidget.js
* Items within a category widget

ve.ui.MWCategoryInputWidget.js
* Input for new categories, handles menu and API requests

ve.ui.MWCategoryPopupWidget.js
* Mini-inspector for a category item

Bug: 39597
Change-Id: I5eafaa484a1924a566d3a1ee1d869293089d0ecf
2013-04-30 17:50:31 +00:00
Translation updater bot 3e6f36d27f Localisation updates from http://translatewiki.net.
Change-Id: I5355846543cacf41656e05c3bdc45ad458dd4d49
2013-04-29 20:03:41 +00:00
Translation updater bot 50e86936be Localisation updates from http://translatewiki.net.
Change-Id: I6338609aefffbbe2bbc6c7d317069e59d2a9a6f1
2013-04-28 23:58:38 +00:00
Translation updater bot 9dcc627a1a Localisation updates from http://translatewiki.net.
Change-Id: I323d7b9d6f326ce1f99853a51a9e248d6828703c
2013-04-27 20:30:00 +00:00
Translation updater bot 50810533bd Localisation updates from http://translatewiki.net.
Change-Id: I31dd15bacdd46bd0be299e99af6163dec72734d5
2013-04-26 22:15:48 +00:00
Trevor Parscal 6a068e7d83 UI Refactor
Changed:

VisualEditor.i18n.php
* Updated Link inspector i18n messages

ve.ui.MetaDialog.js -> ve.ui.PagedDialog
* Moved paging functionality into Paged dialog

ve.ui.EditorPanelLayout -> ve.ui.PagePanelLayout.js
* Renamed from EditorPanelLayout to work nicely with the concept of
  stacks and pages

ve.ui.GroupElement.js
* Added addItem method and change addItems to use it

ve.ui.Dialog.css
* Updated classname as per refactor of meta dialog

ve.ui.StackPanelLayout.js
* Set currentItem property on showItem
* In addItems method, show currentItem with class method
** rather display block on element

ve.ui.Layout.css
* Make editorPanel layout 100% in width.

ve.ui.Widget.css
* Added CategoryWidget and CategoryPopup styles
* Other adjustments

ve.ui.PopupWidget.js
* Added auto-close on loss of focus
* Made friendly with being initialized inside a frame

ve.ui.MWLinkTargetInputWidget.js
* Mixin ve.ui.PendingInputWidget and remove pending methods
* Prevent querying on spaces
* Reintroduce i18n messages for menu sections

ve.ui.MenuWidget.js
* Update cases of $input config property to input

New:

ve.ui.PagedDialog.js
* Refactored base-class for mwMeta dialog (and probably other dialogs
  too)
* Abstracts adding and accessing pages

ve.ui.PendingInputWidget.js
* Moved pushPending and popPending methods into pending class

Change-Id: I29bcd92b7b5641941a4e98e65b2a56424a5263ff
2013-04-26 21:18:13 +00:00
James D. Forrester 73cb0c7506 Make the feedback link language-variable for release
This involves setting some i18n messages for the target languages based on the
translations already provided - I hope this doesn't break anything for TWN but
the need for this only just became apparent; apologies!

Longer-term we will need to come up with a better way of doing this, if we are
keeping the in-VisualEditor feedback link around.

Change-Id: Id6ed80cdcd4314e84e75fb718421767162d73ef3
2013-04-25 09:02:28 -07:00
Translation updater bot 4d0ca9a4f7 Localisation updates from http://translatewiki.net.
Change-Id: Ie342a495e66b207423ba3f6a8a84c53f3f172c92
2013-04-24 20:09:34 +00:00
Timo Tijhof c1383b8012 ve.init.mw.ViewPageTarget: Account for serialize error
This is showing a separate need for refactoring. We call
"this.serialize( ..., callback )" but if it failed callback
is never called and an event is emitter for the error.

That makes it rather disconnected from each other.

In this case we're lucky that all calls to serialize are similar
in nature and need the same kind of error callback but other
wise this would be pretty messed up. It obviously needs to be
untangled and get rid of this akward eventemitter dance.

This doesn't fix bug 47581, but it does fix the "Infinite loader
with no error" problem as a result of it by handling the error
in a more intuitive way.

Bug: 47581
Change-Id: Icdf64a792c13a326f494e051be47f2946928d142
2013-04-24 02:06:12 +02:00
Raimond Spekking f00da336a5 Revert "Localisation updates from http://translatewiki.net."
Overwrites If598552fac639da645a8b1273c5fc6028695fcc1

This reverts commit d53bb3a578

Change-Id: I2ab4f72058d3e42a3f380aaebdf1f9730c659a4a
2013-04-23 20:27:00 +00:00
Translation updater bot d53bb3a578 Localisation updates from http://translatewiki.net.
Change-Id: Ie746cd3269a47233b43f6eed6bd825622a4890fc
2013-04-23 20:15:18 +00:00
Timo Tijhof cc37ba242b ViewPageTarget: Refactor 'replace' tabLayout
The 'add' tabLayout path is pretty basic and up to date. The
older (now active again) tabLayout 'replace' was fairly outdated
and unmaintained.

Fixes:
* Attributes copied from the original (except for the 'id'
  attribute) were not actually beinged copied over because they
  don't exist on the ca-edit list item, but on the anchor link
  inside that list item.
* Clean up messages from the module registry that were unused.
  Keys 'accesskey-ca-edit' and 'tooltip-ca-edit' were also inexistant.
* Add message keys for tooltip and accesskey of editsource tab.

Depends on I0bde1a228983c58b in mediawiki/core.

Bug: 47396
Change-Id: If598552fac639da645a8b1273c5fc6028695fcc1
2013-04-22 20:09:46 +00:00
Translation updater bot e2ea207bf4 Localisation updates from http://translatewiki.net.
Change-Id: I4e44b9415dd16b10b2354c0049e1cbfd53a137e5
2013-04-20 22:44:05 +00:00
Translation updater bot a22c8fe94e Localisation updates from http://translatewiki.net.
Change-Id: I7b275fcf941ed4d07dd127216cff5bb92dffeb4d
2013-04-19 20:29:37 +00:00
Amir E. Aharoni cc657246b2 Improve two messages in English
Change-Id: I964ea73700ac9b6e621ec63536c30c9341667048
2013-04-19 15:02:17 +00:00
Translation updater bot cec856032a Localisation updates from http://translatewiki.net.
Change-Id: If48c12717c23a0e05122f9912118eddd1b4f03c9
2013-04-16 19:47:52 +00:00
Translation updater bot 7613972cbb Localisation updates from http://translatewiki.net.
Change-Id: I43d68d92b1a36f3832881391932bb8b2cc157f8b
2013-04-15 21:05:05 +00:00
Translation updater bot 61e2db4d35 Localisation updates from http://translatewiki.net.
Change-Id: Ifd24a43489b8921e3c1e85f61718351e6c021e07
2013-04-12 18:20:52 +00:00
Translation updater bot 79d3fc7f7d Localisation updates from http://translatewiki.net.
Change-Id: I1e2e270822c7c9eefe8a2ae182ae63e992bfde8e
2013-04-11 20:25:18 +00:00
Raimond Spekking cd31f8166a Revert "Localisation updates from http://translatewiki.net."
Overwrites Iededbc54b287328b3047b05efad6ca3cc152caa5

This reverts commit 96614883bb

Change-Id: I5f55f0241427965d33a8205d891c05230fc5f55e
2013-04-10 21:21:30 +00:00
Translation updater bot 96614883bb Localisation updates from http://translatewiki.net.
Change-Id: Ie1b9b1d917924f78544b88a2c06a1e848da924c1
2013-04-10 20:41:15 +00:00
Trevor Parscal 8f3e6f152f Dialog button changes
ve.ui.MetaDialog.js
* Added scrolling to outline panel

ve.ui.css
* Added reusable animation keyframes

ve.ui.Dialog.css
* Changed dialog head style
* Changed dialog cancel button to close icon button
* Added animation of dialog opening
* Increased min-height of dialog to always show a little content

ve.ui.Icons-*.css
* Added close icon (not sure why it was missing)

ve.ui.Window.css
* Moved head padding out of window and into implementations of window

ve.ui.Dialog.js
* Moved apply button to footer
* Renamed cancel button to close button
* Overrode close method with triggers a closing animation and then calls the parent close method after an animation is complete
* Added classes to close and apply buttons to make styling less ambiguous
* Converted cancel button (now the close button) to an icon button

ve.ui.Window.js
* Added footer to dialog

VisualEditor*.php
* Added close message

Change-Id: Iededbc54b287328b3047b05efad6ca3cc152caa5
2013-04-10 12:34:52 -07:00
Translation updater bot 20a1a7d541 Localisation updates from http://translatewiki.net.
Change-Id: I35da34be26ff883143802d73c83af3083ad3c100
2013-04-08 20:07:31 +00:00
Translation updater bot 46b875952c Localisation updates from http://translatewiki.net.
Change-Id: I62770f638377f21bb7b701f08feebc78ecaf0a57
2013-04-07 20:59:24 +00:00
Translation updater bot 22b507ba94 Localisation updates from http://translatewiki.net.
Change-Id: I4a080a31c5102cea5b14b05e89d93db6a7c12bb9
2013-04-05 22:29:45 +00:00
Trevor Parscal 148b6bf8a8 Media dialog support
*/index.php
* Added links to new files

VisualEditor.php
* Added links to new files
* Removed keys of non-existent messages

ve.ui.ContentDialog.js, ve.ui.MetaDialog.js
* Removed redundant comments

ve.ui.MediaDialog.js
* New dialog, just for media

icons.ai, picture.png, picture.svg, ve.ui.Icons-*.css
* Added picture icon

ve.ui.MediaButtonTool.js
* New button, just for media (shows up in the context toolbar)

ve.ui.DialogButtonTool.js
* New base class for dialog buttons

ve.ui.Context.js
* Added basic support for showing dialog buttons, in addition to
  annotation buttons, in the context toolbar - to test, select only an
  image node

ve.ui.Dialog.js
* Prevent clicks on the click-block from changing focus
* Moved initialize to below the event handlers and updated its
  documentation

ve.ui.DialogFactory.js
* Added a way to get the names of dialogs that can be used to edit a
  node

ve.ui.Inspector.js
* Removed close handler which set focus, this is done already in window

ve.ui.InspectorFactory.js
* Fixed comment so it's not telling lies anymore

ve.ui.Window.js
* Removed auto-focus on frame, it's changing the focus in the parent
  document which blows-away the focus in CE, and it really isn't needed
  as it turns out

VisualEditor.18n.php
* Added media dialog title message
* Added media tool tooltip message

Bug: 37870
Change-Id: I9150c46b3e292910fed899fa60d6da433049ca45
2013-04-05 11:52:57 -07:00
Translation updater bot 7b7d7fea86 Localisation updates from http://translatewiki.net.
Change-Id: I71e8c813c9847577c8a1f599985b140862f32da2
2013-04-02 19:15:11 +00:00
Translation updater bot ec0ffcb0ba Localisation updates from http://translatewiki.net.
Change-Id: I9692a5fa27269e660c6076690ca0875260bfadd4
2013-03-31 18:56:58 +00:00
Translation updater bot 8305c59403 Localisation updates from http://translatewiki.net.
Change-Id: Ia143d0bc7cfc83e55cdb7a2c512e24b09d1cee87
2013-03-30 18:17:34 +00:00
Translation updater bot e47ed7309b Localisation updates from http://translatewiki.net.
Change-Id: I654e5ee090f9dd708ad57a666bfdfd3a2e5e5c68
2013-03-27 21:08:02 +00:00
Trevor Parscal e1f4196046 Message cleanup
VisualEditor.i18n.php, VisualEditor.php
* Remove unused message

Change-Id: I6e1fdfdbcbf112f8ba09176f1e19dfafabe43f51
2013-03-27 10:15:09 -07:00
Translation updater bot 2139b91450 Localisation updates from http://translatewiki.net.
Change-Id: I5d0e4892e88b404edcbb1c6fdc96405eab7a7860
2013-03-26 21:23:07 +00:00
Translation updater bot 3986e0a4ed Localisation updates from http://translatewiki.net.
Change-Id: Id57f55ea0eb7ef9b2613dadd25513716bc2785b3
2013-03-22 20:23:53 +00:00
Translation updater bot a576ae11c5 Localisation updates from http://translatewiki.net.
Change-Id: I88f19e3a2a23df1a037c22fbc0dd0ac11344e82e
2013-03-20 21:03:03 +00:00
Translation updater bot 06968951c0 Localisation updates from http://translatewiki.net.
Change-Id: I5c5835c268f4654228f253ca72afacc768251ee0
2013-03-19 21:46:15 +00:00
Translation updater bot 5301df5bc3 Localisation updates from http://translatewiki.net.
Change-Id: I7954146323f7c48487aa21fc578aa09f3815f981
2013-03-18 21:10:10 +00:00
Translation updater bot 2fc5edf688 Localisation updates from http://translatewiki.net.
Change-Id: Iaf83e65d89f7b3f4700edbd16527b13677ec0d91
2013-03-16 21:32:28 +00:00
Translation updater bot c189f6345c Localisation updates from http://translatewiki.net.
Change-Id: I1e44ab524f7f8d54cd6dfa0c1556c67c96acb0c6
2013-03-15 20:05:19 +00:00
Translation updater bot b4a95dc4de Localisation updates from http://translatewiki.net.
Change-Id: I160ebbac817543781de503ae1e5928c18b08e4da
2013-03-14 20:52:11 +00:00
Trevor Parscal 1572ec1569 Context, frame, window, dialog and inspector refactor
This is a major refactor of user interface context, frame, dialog
and inspector classes, including adding several new classes which
generalize managing inspectors/dialogs (which are now subclasses
of window).

New classes:
* ve.ui.Window.js - base class for inspector and dialog classes
* ve.ui.WindowSet.js - manages mutually exclusive windows, used
  by surface and context for dialogs and inspectors respectively
* ve.ui.DialogFactory - generates dialogs
* ve.ui.IconButtonWidget - used in inspector for buttons in the head

Refactored classes:
* ve.ui.Context - moved inspector management to window set
* ve.ui.Frame - made iframes initialize asynchronously
* ve.ui.Dialog and ve.ui.Inspector - moved initialization to async
  initialize method

Other interesting bits:

ve.ui.*Icons*.css, *.svg, *.png, *.ai
* Merged icon stylesheets so all icons are available inside windows
* Renamed inspector icon to window

ve.ui.*.css
* Reorganized styles so that different windows can include only
  what they need
* Moved things to where they belonged (some things were in strange places)

ve.init.Target.js, ve.init.mw.ViewPageTarget.js, ve.init.sa.Target.js
* Removed dialog management - dialogs are managed by the surface now

ve.ui.*Dialog.js
* Renamed title message static property
* Added registration

ve.ui.*Inspector.js
* Switch to accept surface object rather than context, which conforms
  to the more general window class without losing any functionality
  (in fact, most of the time the surface was what we actually wanted)

ve.ui.MenuWidget.js, ve.ui.MWLinkTargetInputWidget.js
* Using surface overly rather than passing an overlay around
  through constructors

Change-Id: Ifd16a1003ff44c48ee7b2c66928cf9cc858b2564
2013-03-14 00:03:31 +00:00
Translation updater bot 4a53ed263d Localisation updates from http://translatewiki.net.
Change-Id: I3a873d19eb5c2cbe689492321df12b500f323ba9
2013-03-12 21:19:07 +00:00
Translation updater bot 0f7575a4be Localisation updates from http://translatewiki.net.
Change-Id: Ie45aaead6474f3b53454314685bda6593693885a
2013-03-10 21:45:06 +00:00
Translation updater bot d62d0241e2 Localisation updates from http://translatewiki.net.
Change-Id: I524b94d521f8da5fe48b066964b73b5b22e3959f
2013-03-08 17:13:48 +00:00
Rob Moen 1206d20646 Tweak i18n for meta and content dialog title
Change-Id: I4dc5c07073d1c1b202dbdb2f7c0c9e138d967a22
2013-03-07 15:48:59 -08:00
Rob Moen 7044ec820f More work on dialog classes and their mw specific handling.
Changes include:

VisualEditor.i18n.php, VisualEditor.php
* i18n labels for dialogs

ve.init.mw.ViewPageTarget.js
* Initial go at onOpenDialog and onCloseDialog methods

ve.init.Target.js
* Change calls to dialog hide & show to close & open

ve.ui.MetaDialog.js, ve.ui.ContentDialog.js
* Pass surface when constructing
* Add static title message property

ve.ui.Surface.css
* Set high z-index for toolbar for shadow to overlap dialog.

ve.ui.Dialog.js
* Extends EventEmitter class.
* Changed hide/show method names to open/close.
* Create base ui elements.

ve.Surface.js
* Create instance of meta dialog.

Change-Id: I867ca0546606eeb5e2ab7f612bb5af700ab877ec
2013-03-07 12:47:42 -08:00
Translation updater bot 9f0474cb71 Localisation updates from http://translatewiki.net.
Change-Id: Ibfabac13df838d583054964d68533f2be227781e
2013-03-04 21:36:20 +00:00