Commit graph

632 commits

Author SHA1 Message Date
Ed Sanders 9df1a59818 Disable inspection of references with unknown contents
Ed & Roan:
 Disable editing of references of which we are unable to find the
 source (e.g. <ref name="x"> without a target, or when the target is
 currently nested in something we don't yet process such as inside a
 <references> block or a template).

Timo:
 Improve UI to not be a regular focusable node where the inspector just
 won't show up but add a not-allowed cursor and explanatory tooltip.

James:
 Fix messages to refer to VisualEditor instead of "the" VisualEditor.

Change-Id: Ib2bca092ce13c9187fa8b27ad6a6404cae02aea2
2013-06-27 20:34:32 -07:00
Roan Kattouw f538fcf6be mw.ViewPageTarget: Add sanity check for DOM roundtrip
The sanity check converts the linear model back to DOM, then
compares this DOM to the original DOM and rejects the deferred
if they are not equal.

The DOM creation has to be done synchronously (before we unlock
the surface), but the actual comparsion can be (and is) done
asynchronously.

To make the UI flow of the save dialog easier we just keep the
save button on the toolbar itself disabled until the sanity
check is done. Though this should finish before the user starts
editing the document (let alone start saving), we do add a class
to the button to indicate a progress cursor.

To simulate a slow sanity check, set the setTimeout in
startSanityCheck to 5000, load VE, make a change, hover the
button, and see it change from disabled + progress-cursor to
enabled after 5 seconds.

To simulate the sanity check failing, change !== to === in
the first "if" in startSanityCheck.

Bug: 47521
Bug: 50067
Change-Id: I04f71fe8e00c6257fbc953cc9de3323e24709b0f
2013-06-27 19:20:14 -07:00
Trevor Parscal 0aac4c7e60 Reference insertion, new and existing
Objectives:

* Split reference dialog (at least for now) an edit and an insert dialog
* Add reference search widget for selecting an existing source, or
  choosing to add a new one
* Abstract reference names, don't allow editing them and generate them
  when needed
* When editing groups, move the internal item and update all references
  to it
* Resolve name conflicts when moving a reference to a new group by
  generating a new list key

Bonus:

* Add getNodeGroups method to internal list
* Add getUniqueListKey method to internal list
* Add destroy functionality to ce.node to release events and references

Bug: 49733
Change-Id: Ib244ff6ad9b4cee1decfd9b9e1d3d4e9cdcfb78c
2013-06-27 18:11:31 -07:00
Translation updater bot 3a1cc27aaa Localisation updates from http://translatewiki.net.
Change-Id: Iacd23ddc7096a766606a8b76e04ce285b96fc2d8
2013-06-27 19:56:54 +00:00
jenkins-bot 3b0d5734fb Merge "Remove the preference to use the wikitext editor for editing sections" 2013-06-26 20:48:49 +00:00
jenkins-bot d323477b21 Merge "Show "edit source" section edit links in addition to VE ones" 2013-06-26 20:43:03 +00:00
Translation updater bot ae06dbab12 Merge "Localisation updates from http://translatewiki.net." 2013-06-26 19:25:30 +00:00
MatmaRex 7a2811b6de Remove the preference to use the wikitext editor for editing sections
No longer useful now that I4b9c47fd exposes both ways of section
editing.

Change-Id: I93958413b4b6ad870306d9f06f540cdde47f7499
2013-06-26 19:25:29 +00:00
Translation updater bot 58a01bbec7 Localisation updates from http://translatewiki.net.
Change-Id: Idb10326e14f5054366488cc57ef415ece81983ea
2013-06-26 19:24:41 +00:00
James D. Forrester eafe5d844c Discourage (ab)use of H1s, and relabel them
Re-label the headings in the MWFormatDropdownTool with MW-specific
headings per bug 43334, reduce the size of the dropdown's contents a
little to make the headings less vibrant, and move the H1 option to the
end of the list to further discourage its use.

Note that there are some issues with the underlying structure here and our
ability to split the repos into VE-core and VE-MW will need this to be
refactored.

Bug: 43334
Change-Id: I5a58b4dcebd6ceae0ffcd24f663429f25bdc3db9
2013-06-26 19:19:51 +00:00
Trevor Parscal c1ea21739f Show "edit source" section edit links in addition to VE ones
Objective:

* Provide quick access to section edit links for both source and visual
  editing

Story:

After using this prototype of my mockup, I realized how bad my mockup
was. Hooray for prototyping!

The issues were twofold:

1. Adding down-arrows to the edit links made the page look worse, and
was sure to incite rage and panic throughout the community.
2. The menu was just too heavy. Matmarex made an observation early on
after seeing it, that it wasn't very "Vector", and while I agreed, at
the time I didn't have any better ideas.

Thank you to Matma Rex for prototyping this feature. Aparently there was
also a previous attempt (I13bbb9549). We appreciate your help.

The new design is simple.

* Section edit links look normal
* On hover or focus, the edit source link also appears next to it

To make the two links look separate, we needed a divider. To make the
divider look good we needed to add space around it. To balance the
space, we needed to add space to the brackets. To avoid changing the
view, we needed to only add space to the brackets on hover. To avoid
the text moving around, we needed to make the brackets move away from
the text, rather than the text move away from the brackets. To make
this change smooth, we needed to use transitions. To make the links not
force the heading to wrap in one state but not the other, we needed to
reserve the space, using visibility rather than display. To reserve the
space we had to use closing brackets as spacers, hiding/showing one of
them on mouse enter/leave and leaving the other always hidden. To avoid
the right bracket from getting clipped by the edge of the screen when in
expanded mode, we needed to add a bit of padding to the right side of the
section edit link top level span. To prevent the extra links from
flashing as you move your mouse down the page, we needed to wait 100ms
before showing or hiding them due to mouse enter/leave.

We use negative margins to move the brackets. Animation implemented
using CSS transitions. We bring the pipe divider in from the core
'pipe-separator' message.

To style the brackets independently we needed to wrap them in spans and
add classes to them. Change Id27555c6 in core will make the wrapping
unnecessary, but the two should still get along just fine.

Interestingly, we needed to @noflip the bracket styles because CSS
Janus flipping is triggered on UI language, but the brackets need to be
styled according to the content language.

Changes:

ve.init.mw.ViewPageTarget.css
* Add styles for extra section edit link components

ve.init.mw.ViewPageTarget.js
* Add edit source link, and make it visible when the mouse is over the
heading or either section edit link is focused

*.php
* Links to new messages

Bug: 48429
Change-Id: I4b9c47fd65a700a81c880144247fec524edff7e5
2013-06-26 12:13:44 -07:00
Translation updater bot 7e7410ec79 Localisation updates from http://translatewiki.net.
Change-Id: Ief601e0ee402b3cedbb654f06434217f24e6c1a5
2013-06-25 19:58:57 +00:00
Translation updater bot 9fcd7fc6fe Localisation updates from http://translatewiki.net.
Change-Id: I09ab01a8a27702ad56f7e26938f4dd8fa7519bd5
2013-06-24 19:57:27 +00:00
Translation updater bot 8de1234759 Localisation updates from http://translatewiki.net.
Change-Id: Id326581d28c047d89b520c166774eeb001a76911
2013-06-23 20:27:08 +00:00
Timo Tijhof 8a2c9431e6 Create ref list insertion tool
Fixes (follows-up I1b48ef5240, I6daff5c596):
* Invalid html passed to jQuery constructor.
* Use prop() instead of attr() for boolean values.
* Use append() instead of html() when appending nodes instead
  of parsing html.
* Rename shadowed variable name clash 'mw' to 'mwData'.
* Fix odd construction where we parse '{}' to create an empty
  object.
* Have ve.ce.MWReferenceListNode#update perform changes off-document
  in a detached tree.
* Fix deep property access that can fail. mwData is set to
  either JSON parse of data-mw attr or empty object.
  Accessing mwData.attrs.group needs to be guarded by whether
  mw.attrs is indeed set.
* Have `mw` and `about` attribtue in references list roundtrip
  (especially mw which can data we aren't editing/re-creating).
* Add missing 'refGroup' property to MWReferenceListNode's
  data element (similar to what MWReferenceNode already has).

Change-Id: I67e4f378ccd04e97361d8e58ae57db5353075756
2013-06-22 20:23:22 -07:00
Translation updater bot e6a241d22e Localisation updates from http://translatewiki.net.
Change-Id: I0fba494fc41c9334aa98354325be16f1c8f83b2a
2013-06-22 21:30:28 +00:00
Translation updater bot 482c436405 Localisation updates from http://translatewiki.net.
Change-Id: I0c54d3b8390cc9881006625270f906b511fd0c0a
2013-06-21 20:25:47 +00:00
Translation updater bot 4b74101e2d Localisation updates from http://translatewiki.net.
Change-Id: Iadc784cacdaadf18f7d2cc7d2c2fcf147b98cfa0
2013-06-20 19:00:32 +00:00
Translation updater bot 0ee7f9a5ca Localisation updates from http://translatewiki.net.
Change-Id: Ibdb1d5a893254ac66f0d940023b78a0e6dfe326c
2013-06-19 20:41:11 +00:00
Inez Korczyński a886952563 Support for editing captions of block images
Bug: 38129
Change-Id: I02207e78f5c28eaccd9bc97a48baa78280192255
2013-06-18 17:57:10 -07:00
Trevor Parscal 23b2da91fd Template and content adding
Objectives:

* Allow adding content or templates within a transclusion
* Add template placeholder to model and view which resolves to nothing
  when saving (thus disappearing if not resolved)

Changes:

*.php
* Add links to new messages and files

ve.ui.OutlineControlsWidget.js
* Organize controls into "adders" and "movers"

ve.ui.Widget.css
* Add styles for adders/movers sections of outline controls
* Make adders appear on hover to reduce clutter

ve.ui.Icons-*.css
* Add icon for "add item"

ve.ui.Dialog.css
* Add styles for add template fieldsets
* Make placeholder items in the outline italic

ve.ui.PagedDialog.js
* Pass adders config to outline controls

ve.ui.MWTransclusionDialog.js
* Add support for adding content and templates

ve.dm.MWTransclusionModel.js
* Add addPlaceholder method

ve.dm.MWTemplatePlaceholderModel.js
* New class, pretty much an empty part
* Using this makes the UI much easier to work with - no need to special
  case the outline control for new items
* Because it's not supported specifically in
  ve.dm.MWTransclusionModel.getPlainObject, it produces nothing and goes
  away naturally on apply

Change-Id: I3478560fb53ba2ccd3fb26bafb6a61e6415565eb
2013-06-18 23:37:44 +00:00
Translation updater bot bb5400ddce Localisation updates from http://translatewiki.net.
Change-Id: I9d1c9d12981d693909a4413018aefa3ae7c90903
2013-06-18 20:28:04 +00:00
Translation updater bot 33d4addc68 Localisation updates from http://translatewiki.net.
Change-Id: I2fdd442caa83b2bce4af36980f76623dff39d4a5
2013-06-17 21:32:21 +00:00
Siebrand Mazeland 2ab3b9be0e Fix grammatical error
Change-Id: Iff809c799199a10f7895e4896c4baadaa189b270
2013-06-17 13:28:21 +02:00
Siebrand Mazeland 4ba540a4f3 article -> page
Change-Id: I843f1f559bdab9c36797812b39e081ae43c9c9b2
2013-06-17 13:27:41 +02:00
Translation updater bot 3715036d8f Localisation updates from http://translatewiki.net.
Change-Id: I3ea2e3765665eacbdbc7a7a19d7bd5df13b0a18a
2013-06-16 20:46:38 +00:00
Translation updater bot 0c29f0b08b Localisation updates from http://translatewiki.net.
Change-Id: Ice2073e38a0c30259622846b6a6909f07c8ddabc
2013-06-15 21:13:17 +00:00
Trevor Parscal fc8c46dd74 Reference name and group editing
Objective:

* Allow editing reference groups and names in the reference dialog

Bonus:

* Modify attribute transaction builder to support multiple attribute
  changes in a single transaction

Changes:

ve.ui.MWReferenceDialog.js
* Load ref name and group from model
* Save ref name and group, if changed, to model

ve.ui.ListAction.js, ve.ui.Transaction.test.js, ve.ce.ResizableNode.js
* Update use of newFromAttributeChange to newFromAttributeChanges

ve.dm.SurfaceFragment.test.js
* Add test for new changeAttributes method

ve.dm.InternalList.js
* Missing new line at end of file

ve.dm.Transaction.js
* Change newFromAttributeChange to accept an list of attribute changes and
  produce a single transaction that applies one or more attribute changes
  at once

ve.dm.SurfaceFragment.js
* Fix bug in getCoveredNodes where the wrong mode name was being used
* Add changeAttributes method, which applies attributes to all covered
  nodes and allows filtering of which types of nodes the attributes are
  applied to

ve.dm.MWReferenceNode.js
* Actually write key and group back to DOM
* Separate onRoot functionality into addToInternalList so it can be called
  separately (similarly onUnroot/removeFromInternalList)

ve.ce.MWReferenceListNode.js
* Clone internal item CE node before appending to avoid rendering bug.

*.php
* Add links to messages and sort them

Change-Id: Ic4121e4fcfc09265d5863af6f078cdeb77926c8e
2013-06-14 15:29:56 -07:00
jenkins-bot 3e1e544e48 Merge "Add group field to reference dialog" 2013-06-14 22:24:38 +00:00
Translation updater bot 3b176dd151 Merge "Localisation updates from http://translatewiki.net." 2013-06-14 21:57:07 +00:00
Translation updater bot 9de71ff8fe Localisation updates from http://translatewiki.net.
Change-Id: I8b44f6f5172520a84416217fa0df19c10692702a
2013-06-14 21:54:48 +00:00
jenkins-bot 86406d5e48 Merge "Outline controls" 2013-06-14 21:47:36 +00:00
Trevor Parscal ac26f5fc69 Outline controls
Objectives:

* Allow reordering items in outline widgets using an outline control
  widget
* Use an outline control widget to reorder transclusion parts

Changes:

ve.ui.SelectWidget.js
* Emit add and remove events

ve.ui.OutlineItemWidget.js
* Add movable config options
* Add isMovable method

ve.ui.OutlineControlsWidget.js
* New class
* Displays move up/down buttons which are synchronized with an outline
  widget
* Doesn't actually move items (since an outline widget is probably
  data-driven) just emits events

ve.ui.Widget.css
* Add disabled style for icon button widgets
* Add styles for outline controls widget

ve.ui.Icons*.css
* Add missing icon styles

ve.ui.Dialog.css
* Add styles for outline and controls in editable paged dialogs

ve.ui.GroupElement.js
* Fix bug where items are insertions are in the wrong place when "moving"
  them

ve.ui.PagedDialog.js
* Add editable config option which shows outline controls under the
  outline
* Pass through movable config option when creating pages

ve.ui.MWTranclusionDialog.js
* Configure paged dialog outline as editable
* Add initialize method to connect outline controls widget events
* Make addPart method automatically add parameters when templates are
  added
* Add handler for outline controls move event which re-orders parts
* Make parts movable (params are automatically ordered, so they aren't
  movable)

ve.dm.MWTransclusionModel.js
* Add addPart method and use it within the addContent and addTemplate
  methods
* Fix documentation lies
* Add getPartFromId method

*.php
* Add links to new files and messages

Change-Id: I919d4c3e9b85d07a97a99c0b2e8739a859bdf2b1
2013-06-14 11:56:30 -07:00
Trevor Parscal acea97263b Add group field to reference dialog
Change-Id: Icf9ea348cd97bdb09ddf18769f53c01ea5a8b7ef
2013-06-14 10:30:03 -07:00
James D. Forrester 863c512d20 Fix section edit preference language
Change-Id: Ibad97bea238d0b76f809335b9a8814007da3f02d
2013-06-13 15:56:25 -07:00
Roan Kattouw 97f770e58b Change wording of new preference per James
Change-Id: I95443fcde120d1d6020ef4f3397adacd016668f5
2013-06-13 15:08:25 -07:00
Roan Kattouw 3674c8937b Send section edit links to VE by default
Add a preference to disable this behavior. Requires rewording by James.

Bug: 49260
Change-Id: I5ce7ea8c1e47e8243b619fc61aa957f767d22b48
2013-06-13 15:04:02 -07:00
Translation updater bot 131e9b9bf3 Localisation updates from http://translatewiki.net.
Change-Id: I7b1f8e917eac6eafff630dfcee64e4e975c9f1b7
2013-06-13 19:33:18 +00:00
jenkins-bot 628fd18930 Merge "Category popup fixes" 2013-06-13 15:30:07 +00:00
Trevor Parscal e2b7504b8e Category popup fixes
Objectives:

* Make category popup show "Category" rather than missing message -
this is more similar to other popups like inspectors, which identify
what that thing is that you are working on
* Fix alignment of icon and label in category popup

Changes:

ve.ui.Widget.css
* Make popup title align properly with the remove button

ve.ui.MWCategoryPopupWidget.js
* Update message key

*.php
* Add new message

Change-Id: Ia8051125bbc9bde47ceb931e1ebf42b2955481ff
2013-06-12 16:44:10 -07:00
Trevor Parscal d3a2fab2c4 Transclusion editing
Objectives:

* Rename just about every use of "template" to "transclusion"
* Make a proper data structure for transclusions
* Abstract away template data
* Use more template data in the user interface
* Allow adding parameters
* Allow removing templates, parameters and content

Changes:

ve.ui.Dialog.css
* Add rule to place add param controls on a single line

ve.ui.MWTemplateDialogs.js
* Move template spec loading into transclusion class
* Add remove button for parts and parameters
* Add parameter adding form
* Use template data for labels and descriptions

ve.dm.*
* Add new transclusion data structures

*.php
* Add links to new files

*.*
* Rename all things "template" to "transclusion"

Bug: 39598
Bug: 49403
Change-Id: I3bcf924a3e179cb65f19e833277a39dfd3dad8bd
2013-06-12 16:39:13 -07:00
Raimond Spekking 7a4237fc39 Revert "Localisation updates from http://translatewiki.net."
Overwrites I2af295a009121236d46c0705f85d3722dfb72aae

This reverts commit 78044e6cd5

Change-Id: I17e5fe0ea9026a2fca94237686739b14060b8eea
2013-06-12 20:09:07 +00:00
Translation updater bot 78044e6cd5 Localisation updates from http://translatewiki.net.
Change-Id: I6bfe49fd013591dfb020b86ccb10b48608650990
2013-06-12 19:59:59 +00:00
James D. Forrester 4b315cb4af Sort out i18n strings
Sort them alphabetically; trim unused ones; give descriptions for missing ones;
only use the needed messages in the ResourceLoader payload.

Change-Id: I2af295a009121236d46c0705f85d3722dfb72aae
2013-06-12 12:15:01 -07:00
Trevor Parscal 8f9d2a607e Cleanup unused dialogs
Objectives:
* Remove unused dialogs

Changes:

*.js
* Remove unused stuff
*.php
* Cleanup links to files and messages

Change-Id: Ie670afa3aef1757151e385bf922464b85f662a7d
2013-06-12 11:49:44 -07:00
James D. Forrester 198caeb603 Replace alpha notice with beta label hiding the feedback link
Bug: 48428
Change-Id: I725beec4e76dadfb1ccca873758f8f37b7f58a73
2013-06-11 18:17:10 -07:00
jenkins-bot 2573708132 Merge "Improve langlinks styling in meta dialog" 2013-06-11 21:16:02 +00:00
Trevor Parscal 0c935f69af Improve langlinks styling in meta dialog
Change-Id: I88d6d374d34dc08ecf46053cfc639c03ec23f8bf
2013-06-11 14:02:28 -07:00
Translation updater bot a8478b6fe7 Localisation updates from http://translatewiki.net.
Change-Id: Icd89869d643a9413d7f9230fad4a2b857cad5693
2013-06-11 20:57:43 +00:00
Translation updater bot 863fe70098 Localisation updates from http://translatewiki.net.
Change-Id: I531e6caedacd3be2fac25b972aa3e3a0a59c9c56
2013-06-10 07:32:31 +00:00
Timo Tijhof a0d764b8ee mw: Remove 'Report problem' feature
Removed the "report" slide from the mw.ViewPageTarget save
dialog and everything that becomes obsolete as a result of it:

* JS saveDialogReviewWrongButton, which pointed to the report
     slide (was already hidden as of I90de95f6337ee).
* JS ve.init.mw.Target#reportProblem.
* JS ve.init.mw.ViewPageTarget#diffHtml.
* JS ve.dm.ElementLinearData#getUsedStoreValues.
* PHP mw.config wgVisualEditorConfig.reportProblemURL.
* PHP $wgVisualEditorParsoidProblemReportURL.
* I18N visualeditor-savedialog-title-report.
* I18N visualeditor-savedialog-label-review-wrong

Change-Id: I8a5e0ab2060d7c14086bba413d4c7d73b29c9b97
2013-06-08 01:11:27 +02:00
Timo Tijhof d5868a0f13 mw.ViewPageTarget: Make 'review' step optional in save flow
Summary:

Instead of having a button "Review and save" that opens with a
diff and leads the user to the "Report a bug" and "Save page"
slides respectively, make it more like the default EditPage.

There is now a "Save page" button that opens with the save
form with a button to "Review changes" (diff) or "Save page".

The "Report a bug" slide has been unlinked from the UI and is
no longer accessible for now.

As a result of the UI no longer requesting a diff upfront this
also means we will no longer detect "nochanges" event (when it
turns out the submittted revision matches the latest version).

This is unfortunate as it was a nice feature to detect it
before the user spends time writing the edit summary) but it
is the same as how the default EditPage works.

Changes:

Improved interface messages.

Adapted "nochanges" caption to the new context (it is no
longer shown when clicking "Save page", it is now shown as a
result of clicking "Show changes").

Now that the "save" slide is accessible from multiple paths
it is needed to keep track of slide changes in a history
array. Previously the slide tree was 1 level deep with
everything descending from "review". Now it starts at "save"
and can go in multiple directions including a loop from
save>review>save. We also need to toggle the "Prev" button
based on history instead of based on whether or not we are
on the "first" slide.

Hid the "saveDialogReviewWrongButton" from the review slide.
We're approaching wider launches and this will not scale to
a wider audience.

Bug: 49258
Change-Id: I90de95f6337eeddd794b75d56543d8d152421a6f
2013-06-08 01:05:05 +02:00
Trevor Parscal 1fd7e85846 Image insertion
Objective:

* Allow inserting images from local wiki and commons

Changes:

ve.init.mw.ViewPageTarget.js
* Add media insert button to toolbar

ve.init.mw.Platform.js
* Add getMediaSources method - defaults to local wiki and commons

ve.ui.MWMediaInsertDialog.js
* New dialog for inserting media
* Uses a media select widget and inserts block images

ve.ui.Dialog.css
* Added styling for media select widget in media insert dialog

ve.ui.Widget.css
* Added styles for media select widget and media select item widget

ve.ui.MWMediaInsertButtonTool.js
* New tool for inserting media

ve.ui.MediaSelectItemWidget.js
* New item widget for media select widgets

ve.ui.MediaSelectWidget.js
* New widget for searching for and selecting media items

ve.ui.TextInputWidget.js
* Added isPending method

VisualEditor.i18n.php
* New messages for media insert dialog

VisualEditor.php
* Added links to new files and messages

PhantomJS--

Change-Id: Ia803ff3ef518782ce76802d2dab7559686a1bb0a
2013-06-06 17:36:55 -07:00
James D. Forrester 760470ab38 Give users a read-only view of language links
This makes the 'category' section of the meta-data panel less lonely, and
prompts us to actually do this at some point quite soon (or encourage others
so to do).

Bug: 48814

Change-Id: I5b8fdfb78a2117839277a683db47fe97107d87b0
2013-06-05 20:22:58 -07:00
jenkins-bot ebbcc86ecf Merge "Make the mwMeta dialog trigger a toolbar action, not a button" 2013-06-05 22:08:58 +00:00
James D. Forrester 96b007eb7b Make the mwMeta dialog trigger a toolbar action, not a button
This has the secondary impact of moving mwMeta dialog out of experimental mode.

Change-Id: I3bb61d536826c6ba139661861092cd63423d99a4
2013-06-05 15:02:19 -07:00
jenkins-bot 3e61357e59 Merge "Make it clear in the labels that this is for sorting" 2013-06-05 21:58:58 +00:00
Ed Sanders 1b94858c6c Message documentation for visualeditor-browserwarning.
Change-Id: Ifde7373535d1e4f8597257fdf779161ba4583819
2013-06-05 16:27:50 +01:00
jenkins-bot b67019e0c2 Merge "Implement new browser compatibility checks" 2013-06-05 12:32:56 +00:00
Ed Sanders aaa5ad254b Implement new browser compatibility checks
We now have three stages:
1. Browser feature tests. Dies silently if any fail.
2. Browser blacklist. Dies silently if match found.
3. Browser whitelist. Shows warning if no match found.

Previously we were treating the remotely generated
edit notices as if they were in an object when
in fact they were in an array - the code has been
fixed to reflect that fact.

As locally generated notices will typically require
parsed messages, we've also moved the notice rendering
to after onReady is fired.

Updated jquery.client to latest master from MediaWiki core
(needed for proper detection of Iceweasel, Android and Safari)

Bug: 38128
Change-Id: Idc5f4a23a2709264d869a91d00873c4e187bc470
2013-06-05 14:29:36 +02:00
Translation updater bot 3f1dc8059c Localisation updates from http://translatewiki.net.
Change-Id: I32f8aafbb6093f321ca46d2b759b95fa5fea9504
2013-06-04 09:33:18 +00:00
Amir E. Aharoni 15d553e1a7 Make it clear in the labels that this is for sorting
Change-Id: I6441365aa81b0ee1a6481390dd7aa1afe9cef310
2013-06-03 12:53:30 -07:00
Translation updater bot 065b8c7ff9 Localisation updates from http://translatewiki.net.
Change-Id: I5f4e2e9a04316fd9a30961c367af2424304bbe52
2013-06-03 19:11:48 +00:00
Translation updater bot 43c6e88bbf Localisation updates from http://translatewiki.net.
Change-Id: Id809fd2303ffd336dfc812da4ae418ba92e111c1
2013-06-03 11:58:27 +00:00
Translation updater bot 42fc8ecf4c Localisation updates from http://translatewiki.net.
Change-Id: I541c827aed5fbdc6d5308007378f6714f6b80821
2013-05-29 08:42:18 +00:00
jenkins-bot 6ddf7f3695 Merge "Rename 'langlinks' to 'languages'" 2013-05-26 09:19:45 +00:00
Translation updater bot 21769c8730 Localisation updates from http://translatewiki.net.
Change-Id: Id0be8b082f241ba0be50b477173db525d32e394b
2013-05-26 08:45:12 +00:00
Ed Sanders dd0086468e Rename 'langlinks' to 'languages'
For internal naming consistency (e.g. with MWLanguageMetaItem).

Change-Id: Ifb53fa10da52e1ea87389b024b7c581b8dd730e6
2013-05-25 18:07:46 +02:00
James D. Forrester 5819375022 Internationalisation for the metadata dialog
Change-Id: Iefb6d5c90583f0684cb9548d38b83048b43d3c81
2013-05-25 10:11:35 +00:00
Translation updater bot 331d74ca60 Localisation updates from http://translatewiki.net.
Change-Id: I7dc7ab1b79f2a8807ec4cbb849e01e07143f54b1
2013-05-25 08:29:47 +00:00
Ed Sanders ce86aa77c8 Add MW meta button to toolbar
Bug: 48561
Change-Id: Ibf63329a53bcd8043d46315239c19be4e681a18a
2013-05-24 15:54:50 +00:00
Translation updater bot 936a7fa3ac Localisation updates from http://translatewiki.net.
Change-Id: I46da13c29a2f21fd36da068df338276d8f2ace2e
2013-05-24 08:39:15 +00:00
Translation updater bot be912c464c Localisation updates from http://translatewiki.net.
Change-Id: I2797cd857bfe1ebb301c617ac0a806cede2c5a50
2013-05-23 05:44:55 +00:00
Translation updater bot d5ecd18bb2 Localisation updates from http://translatewiki.net.
Change-Id: I02bdae14ac66abf865cc9fbaeca41367dbc7cadb
2013-05-21 06:01:09 +00:00
jenkins-bot 8ba06a89b8 Merge "Refetch the token when we get a badtoken error" 2013-05-20 20:04:36 +00:00
jenkins-bot f31e8d19d9 Merge changes Icbab46af,Ied54d2b7
* changes:
  Move toolbar cancel message to VE specific message
  Remove parsedMessages from messages array
2013-05-18 16:48:36 +00:00
jenkins-bot bbfdb30f87 Merge "Change 'Edit source' to 'Create source' for new pages" 2013-05-18 10:19:01 +00:00
Catrope 6f0c739d42 Refetch the token when we get a badtoken error
Intercept badtoken errors, refetch the edit token from the
action=tokens API, and retry the request again. If this fails too,
show the error to the user.

Right now this just shows the good old confirm() dialog if the token
refetch fails; we should probaby give the user a clearer error message
telling them to refresh the page or something.

Bug: 42984
Change-Id: Ib43d1938ffa24bc8d1dc76a300e16e486dabd928
2013-05-17 19:15:21 -07:00
Translation updater bot d8051f4006 Localisation updates from http://translatewiki.net.
Change-Id: I3f4502145e220843975bf2c3b6342a90b6774299
2013-05-17 20:51:58 +00:00
Ed Sanders e968fc717f Change 'Edit source' to 'Create source' for new pages
Bug: 47421
Change-Id: Iafba040cb8eb53017f38f2099a473e0e43e2ec46
2013-05-17 18:43:41 +01:00
Ed Sanders f56bdf70fd Move toolbar cancel message to VE specific message
Be consistent with all other button messages.

Change-Id: Icbab46aff210b79db59de688d539b8e69a13ec0d
2013-05-17 15:21:46 +01:00
Translation updater bot 83bdceb64c Localisation updates from http://translatewiki.net.
Change-Id: I14e7d7bac0117b405066166a6bbd47bd8a3748c6
2013-05-16 20:23:42 +00:00
Catrope c52c18441c Revert "Localisation updates from http://translatewiki.net."
This reverts commit b91469867d

Change-Id: I2e48e70597f13ffb6b59c3d780442288b5087046
2013-05-15 21:16:12 +00:00
Translation updater bot b91469867d Localisation updates from http://translatewiki.net.
Change-Id: I405c871bce7014222ee24ed1b995ca29408bff82
2013-05-15 21:11:48 +00:00
Trevor Parscal 231a50f2b6 Implement ve.ui.MWTemplateDialog
Objective:

* Add button to launch template dialog
* Add template dialog

Changes;

*.php
* Add messages and links to files

ve.ce.Node.css
* Make inline templates display as inline-block to contain their
  contents (allowing shields to work properly)

ve.ui.MWTemplateDialog.js
* New empty dialog for templates

ve.ui.MWTemplateButtonTool.js
* New template button, appears in context and launches dialog

Change-Id: I9174ed7c9012522246a6defc859276bf36763f5b
2013-05-15 19:36:18 +00:00
Ed Sanders f675d73204 Move no changes message to separate save dialog slide
Previously it was just being returned as the diff html, which
looked weird becacuse 1: it was the wrong width and 2: the
save buttons were still there.

Bug: 43754
Change-Id: I537bcae91f51a3f30ca4736c41f7a5619bbf321d
2013-05-14 16:40:14 -07:00
Ed Sanders ea6e1b26ed Move edit conflict notice to a save dialog slide
Previously used a confirm() dialog which is a bit ugly.

Bug: 42522
Change-Id: I709d936d998b130515b62de880c6e7aa7978786b
2013-05-14 16:31:58 -07:00
Translation updater bot a3927850e5 Localisation updates from http://translatewiki.net.
Change-Id: I7a5e28780b95155519e2fb9d0d0e09125719bc8b
2013-05-14 21:32:50 +00:00
Trevor Parscal 67a2613a12 Reference dialog
Objective:

Add a basic (empty) dialog for mediawiki references. Editor to follow.

Changes:

*.php
* Added file links and messages

ve.ui.MWMetaDialog.js
* Moved initialize method to the top (for consistent ordering)

ve.ui.MWReferenceDialog.js
* New class, basic empty dialog for references

ve.ui.LinkInspector.js, ve.ui.MWLinkInspector.js, ve.ui.MediaButtonTool.js
* Cleanup documentation
* Whitespace

icons.ai, reference.png, reference.svg
* Switch to reference icon being 3 books on a shelf

ve.ui.MWReferenceButtonTool.js
* New class, basic dialog button for references

Change-Id: Ia4e30e9239fa1e3b28c0a1ef1ca0a6515a8103ef
2013-05-13 13:10:59 -07:00
Translation updater bot f94d5cccc1 Localisation updates from http://translatewiki.net.
Change-Id: I9185e045a20582b04962a03392f67c73aee8fe0f
2013-05-13 19:55:10 +00:00
Translation updater bot da4ddbc4d9 Localisation updates from http://translatewiki.net.
Change-Id: Ifd9a13e5f4236c55b2313c1df5ec189baca08ec6
2013-05-11 19:43:28 +00:00
Ed Sanders 375a7fceff Access keys for edit and edit source
Set up 'v' for edit, and 'e' for edit source as access keys.

Bug: 48107
Change-Id: I598177bc75ed84dea35952a3b2b1b2111aac89b2
2013-05-10 17:10:26 -07:00
Catrope 3f9f764949 Output a nice message when the diff is empty
Bug: 43754
Change-Id: I8daae124b060ccf54ce5ca7c1e1a6d18b7265ade
2013-05-10 15:34:18 -07:00
Translation updater bot 5c40ba89c0 Localisation updates from http://translatewiki.net.
Change-Id: I263431ad6d92d3d62497bffcc0abd930f675c9aa
2013-05-10 19:57:31 +00:00
Trevor Parscal e888d7b985 Category UI improvements
Objectives:
* Ensure items don't get moved to the end when their sort-key is edited
* Add placeholder text and pending styling to input
* Auto-expand input to the end of the line
* Make the minimum input width smaller

Changes:

ve.ui.MWMetaDialog.js
* Added calls to fitInput on initialize
* Fixed sort key update and insert handlers to maintain item position when updating

ve.ui.GroupElement.js
* Added index argument to addItems, allowing items to be inserted at a specific location

ve.ui.PagePanelLayout.js
* Fixed CSS class name

ve.ui.StackPanelLayout.js, ve.ui.MenuWidget.js, ve.ui.SelectWidget.js
* Passed index argument through to group element

ve.ui.PanelLayout.js
* Fixed overflow direction for scrolling option

ve.ui.Inspector.css
* Moved border-box properties to text input widget class
* Set input widget within inspectors to be 100% by default

ve.ui.Layout.css
* Updated CSS class name
* Whitespace fixes

ve.ui.Widget.css
* Made text input widgets's wrapper default to 20em wide and the input inside it be 100%, using border-box to ensure proper sizing
* Adjusted category list item and input styles to make input appear more like a category item
* Whitespace fixes

ve.ui.MWCategoryInputWidget.js
* Made category input widget inherit text input widget, rather than just input widget

ve.ui.MWCategoryWidget.js
* Replaced group functionality by mixing in group element
* Added fitInput, which automatically make the input fill the rest of the line or take up the entire next line depending on how much space is left

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

Change-Id: I79a18a7b849804027473084a42c36133fdacad57
2013-05-10 00:19:46 +00:00
Translation updater bot d30378013e Localisation updates from http://translatewiki.net.
Change-Id: I333bb2869366ae69ab210bf21f2b7ca78209e7d5
2013-05-09 20:33:25 +00:00
Translation updater bot 9c37181788 Localisation updates from http://translatewiki.net.
Change-Id: Ia26c0c0675a018f487524dc5b6d3ffc757c99f9f
2013-05-08 20:22:53 +00:00
Translation updater bot b706295f81 Localisation updates from http://translatewiki.net.
Change-Id: I8f74b7bce92ba91fce39387edc0307c6a753b929
2013-05-07 20:20:03 +00:00
Translation updater bot 8e1eb317b5 Localisation updates from http://translatewiki.net.
Change-Id: I2f5b38067c995de61c249abdfa64d394314afcce
2013-05-06 20:22:13 +00:00
Translation updater bot 2f6c0409e8 Localisation updates from http://translatewiki.net.
Change-Id: I7db778949f1e4dff4d780808c8c24601bf7ac74a
2013-05-05 21:11:45 +00:00
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
Translation updater bot 83cce843a6 Localisation updates from http://translatewiki.net.
Change-Id: I7a30b371511809c38fd139989d6d90e0c9d6252a
2013-03-01 21:31:52 +00:00
Translation updater bot e7d1abf2ce Localisation updates from http://translatewiki.net.
Change-Id: I449dd66f68534abd4e726579869f49f2984679a5
2013-02-27 21:23:13 +00:00
Translation updater bot 3fd8ace016 Localisation updates from http://translatewiki.net.
Change-Id: If262096fc513b30795fb84c81a786740f477cc8c
2013-02-26 20:55:13 +00:00
Translation updater bot 028f7a411a Localisation updates from http://translatewiki.net.
Change-Id: I4a09f45475098c28a8862cbd419d4f7b6cafb0c9
2013-02-18 21:01:53 +00:00
Translation updater bot 7fc8644b90 Localisation updates from http://translatewiki.net.
Change-Id: I20aaef5aad0f74f46dd50cfd7cbd4ed00a153f11
2013-02-17 20:53:26 +00:00
Translation updater bot 28d4613085 Localisation updates from http://translatewiki.net.
Change-Id: Idda059853b3df58b733d99ab28156ddb7209b0c0
2013-02-16 23:23:29 +00:00
Translation updater bot e221faadf6 Localisation updates from http://translatewiki.net.
Change-Id: I134fd570e2881c051c2261054d5fbb43b42fc121
2013-02-15 20:39:29 +00:00
Translation updater bot 0313baea6b Localisation updates from http://translatewiki.net.
Change-Id: Iaec2e74ce6b5ffa4e87050ad7c787b174d413eb3
2013-02-14 20:34:19 +00:00
Translation updater bot 92292a2ba7 Localisation updates from http://translatewiki.net.
Change-Id: I4561ae3efd3987de864486263027ef9a093fd9c9
2013-02-13 21:07:51 +00:00
Translation updater bot 90f5b95e9a Localisation updates from http://translatewiki.net.
Change-Id: I1d654ef2a718211bf4ba41e032c5530de60b7640
2013-02-12 20:30:16 +00:00
Translation updater bot 4a25f6714c Localisation updates from http://translatewiki.net.
Change-Id: I55ee9d5914bdb7dba7c28ba59041b1024bd46fc2
2013-02-09 23:05:39 +00:00
Translation updater bot 1ee96c9e0e Localisation updates from http://translatewiki.net.
Change-Id: Ic8bc2d5212d5653157c73b474af478778a905039
2013-02-08 21:34:51 +00:00
Translation updater bot 45591e903e Localisation updates from http://translatewiki.net.
Change-Id: I174b1db993124f5d965e06287a80d60654abb96c
2013-02-06 20:18:07 +00:00
Translation updater bot e17220a0af Localisation updates from http://translatewiki.net.
Change-Id: I3a0914ad5d1dc4acd067991a624bca03af2a08e2
2013-02-05 21:32:18 +00:00
Translation updater bot c4ee328edf Localisation updates from http://translatewiki.net.
Change-Id: I637f92daed34ac338e858a0fd151cfae43cc2895
2013-02-04 22:24:09 +00:00
Translation updater bot 269ad2392b Localisation updates from http://translatewiki.net.
Change-Id: I1d4ab6e2e6012124c9ede2bc0ab895d74babb2f0
2013-02-02 21:35:49 +00:00
Translation updater bot d894c84ea7 Localisation updates from http://translatewiki.net.
Change-Id: Ia91eccdbac663c4cbcd0a967d98acce893cd9db4
2013-01-31 20:44:48 +00:00
Translation updater bot 186dabf40b Localisation updates from http://translatewiki.net.
Change-Id: I5f90aee8638592987274beb2456b109c85eca5e1
2013-01-30 20:51:45 +00:00
Trevor Parscal 294db5e3ef Trigger refactor
Objective: Simplify the registration and use of triggers

Changes:

* Renamed ve.Command to ve.Trigger
* Renamed command demo to trigger demo
* Removed language prefixing of triggers
* Generating trigger tooltips rather than hard-coding them in i18n
* Added documentation to clarify that only 'mac' and 'pc' are supported platforms, and how the default is chosen
* Simplified trigger registry's register command
* Updated trigger registrations

Change-Id: Ibab6ad5b5c86f24707f064967dc2119a81125392
2013-01-28 17:06:13 -08:00
Translation updater bot c9f444b9b1 Localisation updates from http://translatewiki.net.
Change-Id: I5171de253449ce947efe8969518da3a94bb839c6
2013-01-28 22:04:40 +00:00
Translation updater bot f77a02f217 Localisation updates from http://translatewiki.net.
Change-Id: I936572e4e09bf17e23d30b9907cdbdce280fca2a
2013-01-27 17:58:25 +00:00
Translation updater bot 2bec00925e Localisation updates from http://translatewiki.net.
Change-Id: Iede32ba7a624255707727bdf5d9f144aa39b73b3
2013-01-25 20:42:27 +00:00
Translation updater bot 930807c114 Localisation updates from http://translatewiki.net.
Change-Id: I1f79d22cd0f29a4289400306059c0e25e0063479
2013-01-24 21:02:09 +00:00
Translation updater bot 3d3635e6c1 Localisation updates from http://translatewiki.net.
Change-Id: Ieedf1c85849348ddef28ec360b2d4dde0ff82286
2013-01-22 20:52:37 +00:00
Translation updater bot 41bce227f4 Localisation updates from http://translatewiki.net.
Change-Id: I4433a78e3a9baa78d97d4e2c975971860733918a
2013-01-21 20:50:57 +00:00
Translation updater bot ad0fc08082 Localisation updates from http://translatewiki.net.
Change-Id: I3dc88656fb58d21aa7e8321d1b08659ddfecac5a
2013-01-20 19:48:56 +00:00
Translation updater bot b6086e598a Localisation updates from http://translatewiki.net.
Change-Id: Ibc33a284b2b57ec299b099633d5b373f6483fe11
2013-01-19 16:15:02 +00:00
Rob Moen 8ba81f4d67 Add interplatform, i18n shortcuts to ui buttons.
Objective:
* Put command shortcuts in button title attributes. (Bug 42919)
* Provide a registry for platform specific command triggers and their
corresponding i18n messages. (Bug 44012)
* Enable loading of triggers after ve.Surface is created. (lazy load)

Changes:

VisualEditor.i18n.php
* Add default trigger i18n messags for mac and pc system platforms

VisusalEditor.php, demos/ve/index.php
* Add links to files

ve.init.mw.Platform.js
* Define getUserLanguage and getSystemPlatform methods.

ve.init.sa.Platform.js
* Define getUserLanguage and getSystemPlatform methods.

ve.init.Platform.js
* Define abstract methods: getUserLangauge, getSystemPlatform

ve.ui.BoldBUttonTool.js, ve.ui.IndentButtonTool.js, ve.ui.ItalicButtonTool.js,
ve.ui.LinkButtonTool.js, ve.ui.OutdentButtonTool.js, ve.ui.RedoButtonTool.js,
ve.ui.UndoButtonTool.js
* Add registration for command triggers.

ve.Surface.js
* Methodize loading of triggers.
* Bind register event to ve.triggerRegistry to allow lazy loading of triggers.

ve.ui.Tool.js
* Init pre-registered tooltip messages.
* Update tool titles when new triggers are loaded.

ve.CommandRegistry.js
* Remove command registration ( moved to buttons themselves )

ve.TriggerRegistry.js
* New class for registering triggers.

ve.init.mw.ViewPageTarget.js
* Changed instance of unindent command to outdent.

Change-Id: Id8580a3f81aac751db0b7482422a73912648dfed
2013-01-17 15:28:32 -08:00
Translation updater bot 66cc9924d8 Localisation updates from http://translatewiki.net.
Change-Id: I1f4f17c7f1e7ef53cc0bb8f24a907e215c364e48
2013-01-16 20:38:15 +00:00
Translation updater bot 763a65ed93 Localisation updates from http://translatewiki.net.
Change-Id: If669449da461d18437a6517d935f6f3c58f33e48
2013-01-13 20:41:52 +00:00
Translation updater bot b7ed6cebde Localisation updates from http://translatewiki.net.
Change-Id: I7f8958a151049fef2bbbd94e3213ff12f14221ac
2013-01-12 20:30:38 +00:00
jenkins-bot 0b3b12950b Merge "Trivial wording change to disclaimer meant to be done before launch" 2013-01-08 20:36:01 +00:00
Translation updater bot 3a14ed48e9 Localisation updates from http://translatewiki.net.
Change-Id: Iab61dbf42cb2dc61bebc9960116229e249eb1d06
2013-01-06 20:16:38 +00:00
Translation updater bot ee307cd871 Localisation updates from http://translatewiki.net.
Change-Id: I0f6a8f9f101d8ba5b2382cdc1ea7e6cd1ad28499
2013-01-01 20:27:16 +00:00
Translation updater bot 19da918cc2 Localisation updates from http://translatewiki.net.
Change-Id: I78cbf7250e1475ed145055e5c2d590af042817a1
2012-12-31 21:15:55 +00:00
Translation updater bot d3518f3793 Localisation updates from http://translatewiki.net.
Change-Id: I50ab1323ccc7192465e5cefa71a5abb30ab5dc4c
2012-12-30 20:21:52 +00:00
Translation updater bot d0cad8628e Localisation updates from http://translatewiki.net.
Change-Id: I12838f56addebc08a200a9c626d97891b95ff7eb
2012-12-29 19:49:51 +00:00
Translation updater bot b144746517 Localisation updates from http://translatewiki.net.
Change-Id: If55ce5814a3471480e0acedc87905a98ecf594fd
2012-12-28 21:22:37 +00:00
Translation updater bot 55df10e697 Localisation updates from http://translatewiki.net.
Change-Id: I682f716924f7c8e214ca7705dfc4a08961285496
2012-12-27 21:30:45 +00:00
Translation updater bot 28b3ab9bfa Localisation updates from http://translatewiki.net.
Change-Id: I39b0dc4c8a2ce55c462aac6ceebc4a722e369b7d
2012-12-26 21:19:22 +00:00
Translation updater bot 7dd12c2fa8 Localisation updates from http://translatewiki.net.
Change-Id: I58cb40894e2ba167ed9d300cd572a81e435b9cc3
2012-12-25 20:19:51 +00:00
Translation updater bot d644d255a7 Localisation updates from http://translatewiki.net.
Change-Id: Ia65549e788fc97248a113240139e82d94663d7d1
2012-12-23 22:03:12 +00:00
Siebrand Mazeland 7593905152 Remove en-gb
Same as en. Superfluous.

Change-Id: I6f3a6a2779e935ab4f76d9f5cfa529b16994b9b4
2012-12-23 02:29:24 +01:00
Translation updater bot 402d9836de Localisation updates from http://translatewiki.net.
Change-Id: I3601870992d4b8feb6e7952776218bfb85cbf394
2012-12-22 22:25:37 +00:00
Translation updater bot 85257f13c3 Localisation updates from http://translatewiki.net.
Change-Id: I368511b4adc0a4d7f700aa0812305edaa01f60ce
2012-12-20 21:07:05 +00:00
Translation updater bot ea769d221b Localisation updates from http://translatewiki.net.
Change-Id: I00df3f25088c46eda00b2c3aa210757a4b73076c
2012-12-19 20:04:35 +00:00
Translation updater bot 40e366009d Localisation updates from http://translatewiki.net.
Change-Id: Ic13434f023a33edc221881b6b085cc51107a06fc
2012-12-18 20:42:20 +00:00
Translation updater bot 79248e3071 Localisation updates from http://translatewiki.net.
Change-Id: I81ecea2a6e989ac25c382195e8acad69ebd5b26c
2012-12-17 21:31:50 +00:00
Translation updater bot 563d7c06e6 Localisation updates from http://translatewiki.net.
Change-Id: I8c4bd126e41e9b3087f74a6356557d9ded88e87b
2012-12-16 20:54:59 +00:00
Translation updater bot 6433b7ccbf Localisation updates from http://translatewiki.net.
Change-Id: I271d6fd62d52ff8a456b19e3297d3d1d914f70d3
2012-12-15 23:58:20 +00:00
James D. Forrester 7fc63a1d75 Trivial wording change to disclaimer meant to be done before launch
Change-Id: Ic89b3f0847f4f9ebd798ab36b7732c7f6e9a81ce
2012-12-14 16:18:13 -08:00
Translation updater bot 240ae6b81f Localisation updates from http://translatewiki.net.
Change-Id: I79058ee012e3fde329ab0fc19205af2686a5b189
2012-12-14 20:38:13 +00:00
Translation updater bot a69d446c1e Localisation updates from http://translatewiki.net.
Change-Id: I5869cd6c77c94e4c3994917860c6f399cc4ec274
2012-12-13 20:31:37 +00:00
Translation updater bot 3163cb4053 Localisation updates from http://translatewiki.net.
Change-Id: Ie9545be769df90cab2d67bdd20cd68d25f643da6
2012-12-12 21:18:18 +00:00
James D. Forrester 112a22f820 Link 'user' namespace as well as 'main' in preferences label
This was skipped due to time constraints; now fixing up.

Change-Id: I4ef25c0aeabdcf14a078aa3360e43db223010ff7
2012-12-12 11:50:57 -08:00
jenkins-bot 98ae870d83 Merge "Add "and User namespace" to message" 2012-12-12 03:35:31 +00:00
Catrope c966ff0544 Add "and User namespace" to message
enwiki now also has VE enabled in NS_USER

Change-Id: Ic96d09fe0a54c43d1c951d44c1c4efe3006f75c8
2012-12-11 19:28:19 -08:00
James D. Forrester fee25f14f7 Add missing qqq strings and other minor clean-ups
In our rush to get the code out of the door, we skipped the qqq strings for some
of these strings, and we left a ghastly i18n hole in the middle. Now fixed.

Change-Id: I88319cdc2d10f99a631989047a571a7a3e7122da
2012-12-11 18:32:45 -08:00
James D. Forrester 98fdcbe5b5 Fix renamed message keys
Some of the message keys have been renamed but only in English; find/replace of others.

Change-Id: I4d85fe2d4da5a4a09083223701ae10810caee6cb
2012-12-11 18:11:41 -08:00
Timo Tijhof cdee18dae8 Save dialog: Implement new "Review and Save" model.
Basically saveDialog-body now has three slides:
* review
* report
* save

There is a viewPage.swapSaveDialog method that is called like this
 viewPage.swapSaveDialog( 'review' );
initially called from showSaveDialog.

Misc:
 * Replaced more reused core message with a ve ones:
   savearticle => visualeditor-savedialog-label-save
   showdiff => (removed)

 * Removed min-height from saveDialog. When slide-review is
   load, it is very short and there shouldn't be 10em's of
   whitespace below the loader + buttons.

To avoid problems with diff cache being cleared while looking
at the save dialog, we lock and unlock the surface.
We could later remove this as and optimise it as feature, but for
now this fixes a bug.

Change-Id: I5f59482f4db16264014720b199d7652843c36108
2012-12-11 17:52:48 -08:00
Translation updater bot 14501243b4 Localisation updates from http://translatewiki.net.
Change-Id: I0b2116010549ad4ab035abd0fba0b4134e8b242a
2012-12-11 22:56:02 +00:00
Trevor Parscal 5db88a3140 Added VisualEditor specific edit notices
Default message used is visualeditor-alphawarning

Configure in $wgVisualEditorEditNotices

Change-Id: Ie56dac47aa825dd7a2eb9f74be486ae4228672c6
2012-12-10 19:41:23 -08:00
Trevor Parscal 99ccfab9f0 (bug 42920) Add the feedback tool
icons, comment.*, ve.ui.Icons-*
* Added comment icon

ve.init.mw.ViewPageTarget
* Refactored editNoticeButton into being just a tool
* Added feedback tool, which shares the editNoticeButton code
* Added feedback object construction in init constructor
* Added launching code to feedback tool

VisualEditor.i18n
* Renamed editnotices-button message to editnotices-tool to match changes in code
* Added feedback tool message

VisualEditor
* Added dependency on mediawiki.feedback
* Updated changed message key
* Added reference to new message

Change-Id: I813c89a505386a9b3206bfbcb176016e28a592cb
2012-12-10 18:47:53 -08:00
jenkins-bot bbf92208d4 Merge "Alter messages to pull in the links for messages from other messages" 2012-12-11 01:02:42 +00:00
James D. Forrester fb3d9d1657 Alter messages to pull in the links for messages from other messages
Thanks to Siebrand for explaining what he wanted done.

PS2: Altered capitalisation.

Change-Id: If34045989f5d9fdfec7d8170828cdf5de8f25e46
2012-12-10 16:07:20 -08:00
jenkins-bot b6d0cebe59 Merge "(bug 42654) Implement Show changes in Save dialog." 2012-12-10 21:49:38 +00:00
Translation updater bot 1fdfc69a48 Localisation updates from http://translatewiki.net.
Change-Id: I83f5a64f5e8742ca2b733d6c7a8c07af600594d8
2012-12-10 20:33:27 +00:00
Translation updater bot 98c079ee8f Localisation updates from http://translatewiki.net.
Change-Id: Ief397cfb05a3b19c472e63a63a03fce426db7674
2012-12-09 20:32:01 +00:00
Timo Tijhof 97fa232c8f (bug 42654) Implement Show changes in Save dialog.
Turned saveDialog-body into slide-based swapper.

Moved footer into saveDiaog-body so that the license text doesn't
stay under the diff-slide (and move body bottom padding to foot
top)

Wrapped buttons and title in a saveDialog-header and converted
closeButton from absolutely positioned to a floated layout.
This way the title doesn't need to be repositioned but will scooch
over if the prevButton gets shown/hidden.

Update API "diff" action to include table wrapper and table
header. Without it the mediawiki CSS for diff doesn't work
properly (needs colgroups for proper width of the "-" and "+" column etc)

Renamed -saving class to -disabled for consistency.

Set prop.disabled to really lock/unlock buttons, not just visual
(otherwise the click handlers are still triggered on click, can
potentially cause actions to be triggered when not expected)

Using a ve message for "Show your changes" title instead of
re-using core tooltip-savepage in a different context.

Diff slide triggers "auto width" on dialog (inline undo of width: 29em), keeping min-width, to allow it to expand as wide as needed.

Functions that I copied as base for onShowChanges and
onShowChangeError had some incorrect argument descriptions. Fixed
in both.

Note:
* Pass function to .off(), so that only that one is unbound
  instead of any "resize" handler on the page (by other extensions
  or gadgets or core)
* NB: ve.bind ($.proxy) preserves internal guid, so that $.Event
  can find the bound function by the original reference.
* keydown has an anonymous function, should either moved to
  prototype or namespaced, did latter for now, save enough and
  better than destructive .off('keydown')

Change-Id: I9d05ef6e3e2461bdcf363232f7b0fbad5e24f506
2012-12-08 02:26:24 +01:00
Translation updater bot 532bf0af05 Localisation updates from http://translatewiki.net.
Change-Id: Ie2ffad47f93de2a1b4093f297f9a7e76ccb523d0
2012-12-07 21:59:02 +00:00
James D. Forrester caef7713da Add qqq messages for missing i18n strings
Also minor tweaks to existing wording for consistency.

Change-Id: I7ccdf036a5df8029bb2f47856c917055da081f0a
2012-12-06 18:45:24 -08:00
Translation updater bot 0f280d8bde Localisation updates from http://translatewiki.net.
Change-Id: I2fcfd71016937d9f1f2d70ac84e0f1d7cc552d5b
2012-12-06 20:16:47 +00:00
jenkins-bot 82746f990d Merge "Add tooltips to close and remove inspector controls." 2012-12-06 01:51:00 +00:00
Rob Moen 63f96b6539 Add tooltips to close and remove inspector controls.
Addresses (Bug 41153)

Change-Id: I6fa0bb8acafbc9e4e7763f9f0e158b853bc1afaa
2012-12-05 17:18:36 -08:00
Trevor Parscal 571c2e2ff4 (bug 42750) Save button says "Create page" when creating a new page
Change-Id: I25e07f531b911eef3cf55412862b163393d03d33
2012-12-05 15:38:48 -08:00
Translation updater bot 2f73e65204 Localisation updates from http://translatewiki.net.
Change-Id: Ia08d43f4355b029eb284dcf474b77a652e1cd3b6
2012-12-05 20:57:33 +00:00
Trevor Parscal 78eb16035c (bug 41865) Save page behavior for oldid
ApiVisualEditor
* Reverted some of I223235a6ea8b4178c50beeaaedb709b2de7cf0b5 turned out to be full of problems - the race condition is only relevant to getting the HTML
* Fixed check for $content to be false before it was defined

ve.init.mw.ViewPageTarget
* Reverted some more of I223235a6ea8b4178c50beeaaedb709b2de7cf0b5 - wgCurRevisionId is not equal to oldid, it's equal to $title->getLatestRevId() - this was causing lots of oldid problems
* Added use of restored message
* Made save button not locked when using oldid
* Customized save buttons depending on oldid

ve.init.mw.Target
* Reverted even more of I223235a6ea8b4178c50beeaaedb709b2de7cf0b5 - we don't want to keep a copy of the wgCurRevisionId at all, we just want the oldid if it was given

VisualEditor.i18n, VisualEditor
* Added restored notification and restore save button label messages

Change-Id: I8b30c2a153911f44643e369b7c6a9b89c0fb2c5b
2012-12-05 06:44:41 +00:00
Translation updater bot 0d79c2db30 Localisation updates from http://translatewiki.net.
Change-Id: I3c2b7aa0acb5240c174822e8f97b2a071085423a
2012-12-04 21:09:22 +00:00
Krinkle 46e52ae7bc Merge "(bug 42220) Added support for edit notices, which appear on the toolbar" 2012-12-03 22:02:16 +00:00
Trevor Parscal a63f812d52 (bug 42220) Added support for edit notices, which appear on the toolbar
ApiVisualEditor
* Including notices in response to parse actions

ve.init.mw.ViewPageTarget
* Added styles for editNoticeButton and editNotices

ve.init.mw.ViewPageTarget
* Added toolbarEditNoticeButton and toolbarEditNotices
* Combined toolbarEditNoticeButton and toolbarSaveButton setup
* Moved toolbar buttons setup to onLoad (it could vary per-parse now)
* Added tearDownToolbarButtons which fires on deactivate
* Renamed some instances of teardown to tearDown
* Added click handler for toolbarEditNoticeButton
* Added toolbarEditNotices setup method, called on load
* Made notices fade in and out, in by default on load if any
* Made notices hide when save dialog is opened

ve.init.mw.Target
* Added storing of notices on parse

icons, alert, ve.ui-Icons
* Added alert icon

VisualEditor.i18n, VisualEditor
* Added notices button message

Change-Id: I581bf5a005a9c18422f952d71064d17d0ba9b540
2012-12-03 11:49:33 -08:00
Translation updater bot 727c79f23a Localisation updates from http://translatewiki.net.
Change-Id: I2269608d54880f164e508b2c727e883da4593232
2012-12-02 20:46:01 +00:00
Translation updater bot 6fda421895 Localisation updates from http://translatewiki.net.
Change-Id: I19ea12d771cb735d3ab29713c3170d8f832d0885
2012-11-30 21:17:49 +00:00
Translation updater bot a525cd86b5 Localisation updates from http://translatewiki.net.
Change-Id: I773eb9c1114a64e83335024611612efd25d55dce
2012-11-29 21:04:07 +00:00
Trevor Parscal 1d0ad9573e (bug 37828) Handle edit conflicts
ApiVisualEditor
* Added basetimestamp and starttimestamp to all methods where appropriate
* Added new serialize method which converts HTML to Wikitext

ve.init.mw.ViewPageTarget
* Added edit conflict handling
* Moved form value reading code into getSaveOptions method
* Prevented edit warning from appearing while submitting

ve.init.mw.Target
* Added serialize and submit methods
* Fixed some documentation
* Added support for baseTimeStamp and startTimeStamp

VisualEditor.i18n
* Added edit conflict confirmation box message

VisualEditor
* Included new edit conflict message to resource loader module

Change-Id: I002c5aa23704c1c46ef46fa1970a4254614b9eb1
2012-11-28 17:55:23 -08:00
Trevor Parscal b370bad0e0 Revert "Localisation updates from http://translatewiki.net."
This reverts commit d18e70a818.

Change-Id: I0444abd84cc04be49d1cc983d78fe0016c4de0f2
2012-11-28 16:14:53 -08:00
Translation updater bot d18e70a818 Localisation updates from http://translatewiki.net.
Change-Id: I8f4559ee6462d7248bfc4aa1b0023619634b2ba5
2012-11-28 20:23:19 +00:00
Trevor Parscal e1a15b8845 Merge "(bug 42221) (bug 42142) Refactor init.mw setupSkinTabs." 2012-11-28 19:38:05 +00:00
Catrope 8324d550b9 Add message docs for 43684f88fc
Change-Id: I3aa5b7f594f3ea47baab0de3cc191ae5e0c39d03
2012-11-28 11:06:10 -08:00
Timo Tijhof a48581945b (bug 42221) (bug 42142) Refactor init.mw setupSkinTabs.
* Remove the logic where we create a ve-edit button even though
  we know there is no native ca-edit button (bug 42142).
  This was previously in place to allow ve-editing a page while
  restricting source editing, but this is no longer wanted.

* Implement new tabLayout mode "add", which adds a VE tab.
  Previous default is now the "replace" mode, which replaces the
  native "Edit" tab and creates a "Edit source" link.

Change-Id: I3fe29c52b743837c2e1d66f25ccdca6115b8bd25
2012-11-28 19:15:13 +01:00
Trevor Parscal 1e41f63450 Merge "(bug 42172) Tag edits made by VE" 2012-11-27 21:37:59 +00:00
Translation updater bot 4195e00631 Localisation updates from http://translatewiki.net.
Change-Id: I9d20942a1f9095ac9aeb4aa9868120f03e33dde5
2012-11-27 21:12:41 +00:00
Catrope 43684f88fc (bug 42172) Tag edits made by VE
Uses MW's built-in change tagging. Made this configurable so it can be
turned off if it looks like we're blowing up the tags system with the
volume of VE edits.

Change-Id: I63052d90772906e34021035de496a65fea7945f7
2012-11-26 21:39:11 +00:00
Translation updater bot 2847e5b8cc Localisation updates from http://translatewiki.net.
Change-Id: Ie008e85ee25d436c63e43dc68b79ad25a35f64e7
2012-11-26 20:37:51 +00:00
Translation updater bot 3017d9acff Localisation updates from http://translatewiki.net.
Change-Id: If4f899438fdf8990bd35401fbd71fa6618d57754
2012-11-23 21:46:45 +00:00
Translation updater bot 8e905f5e60 Localisation updates from http://translatewiki.net.
Change-Id: I86a9e953f42073deeecc237c53533462820ec39c
2012-11-21 22:30:47 +00:00
raymond a54441611c Fix message key, probably c&p error in I1cc00844
Change-Id: I4400ceeda59d76e433cda61c546a196cb3400ba8
2012-11-20 22:09:41 +01:00
Translation updater bot a1a6121c9d Localisation updates from http://translatewiki.net.
Change-Id: Ie3c5ab02ac00f19f5f7b0bf2f65782eb748e990b
2012-11-20 20:55:23 +00:00
Catrope 22a01bfc4f Merge "The great inspector and context rewrite of 2012" 2012-11-19 23:23:48 +00:00
Trevor Parscal d2476a26d2 The great inspector and context rewrite of 2012
ve.AnnotationAction
* Added filter to the clearAll method to allow clearing all matching annotations only

ve.dm.Document
* Some variable renaming for consistency

ve.dm.SurfaceFragment
* Added truncateRange method
* Added annotation scope to expandRange method
* Added support for passing an annotation object into annotateContent method
* Switched to using name instead of type in annotateContent method to match the ve.dm.Annotation class
* Fixed logic in annotation mode of expandSelection so that expansion only takes place if the annotation is found

ve.ui.LinkInspector
* Moved most of the functionality elsewhere
* General reorganization
* Changed setOverlayPosition to accept 2 arguments instead of an object with 2 properties and renamed it to positionOverlayBelow
* Check for annotation object before extracting target information from it
* Initialize default target as empty string to avoid undefined being cast to a string and the default target becoming 'undefined'

icons.ai, inspector.png, inspector.svg
* Added generic inspector icon which will be used when a custom icon is not specified in future inspector subclasses

ve.ui.Inspector.Icons
* Added inspector icon
* Renamed clear icon to remove to match it's actual image

ve.ui.Context
* Greatly simplified the interface, reducing the number of methods by inlining a few things and combining others
* Now always listening to resize events on the window rather than only while document is focused
* Not listening to scroll events anymore, they used to affect the top/bottom positioning of the menu which we don't do anymore
* Lots of cleanup and reorganization
* No need to fallback to empty array since getInspectorsForAnnotations does so already
* Only consider fully-covered annotations for inspectors

ve.ui.Frame
* Simplified the constructor by introducing the createFrame method
* General cleanup
* Typo fixes

ve.ui.Inspector
* Generalized lots of functionality previously located in the link inspector class which will be useful to all inspectors (such as title, clear button, saving changes, etc.)
* Added setDisabled and isDisabled methods to manage CSS changes and avoid needing to check the CSS to determine the state of the inspector (storing state in the view is evil)
* Added getMatchingAnnotations method for convenience
* Added prepareSelection stub
* Lots of cleanup and documentation
* Type pattern is now defined in base class
* Added stubs for onOpen and onClose with documentation so that subclass authors know what these methods do
* Removed checks for onOpen or onClose methods since they are now noop stubs and are always there
* Added stub and removed checks for onRemove
* Made esc key close and accept - the illusion is supposed to be that the link changes are applied instantly, even though they are only updated when you close, so all closing except for when removing should apply changes - i.e. esc is now equal to back rather than being a special function that doesn't have an associated affordance
* Only consider fully-covered annotations when getting matching annotations

ve.ui.InspectorFactory
* Depending on type pattern now since it's always there
* Added getInspectorsForAnnotations method
* Return empty array if annotation set is empty

VisualEditor, VisualEditor.i18n
* Added default inspector message

Change-Id: I1cc008445bcbc8cba6754ca4b6ac0397575980d5
2012-11-19 15:21:27 -08:00
Translation updater bot 3f731b76e0 Localisation updates from http://translatewiki.net.
Change-Id: I0fd2a0761ab62d22a4c76a218a85e82eb8cd0696
2012-11-19 20:21:34 +00:00
Translation updater bot b06324bd2b Localisation updates from http://translatewiki.net.
Change-Id: I24b10d41bc7ffac229c3335724df8edaf169f797
2012-11-18 20:39:47 +00:00
Translation updater bot b767f34852 Localisation updates from http://translatewiki.net.
Change-Id: Ib32c20bdd01c5113a5600fa70a6c238ed1e8a347
2012-11-17 20:52:42 +00:00
Catrope 7fb9b1c09a Merge "(bug 42123) Add i18n for aliennated content tool tip." 2012-11-17 01:08:07 +00:00
James D. Forrester c7fd1819a3 (bug 42123) Add i18n for aliennated content tool tip.
Change-Id: Ibb98d256fb989cd69407b487df673ee22f8c9758
2012-11-16 16:52:22 -08:00
Translation updater bot bc6a5a2a47 Localisation updates from http://translatewiki.net.
Change-Id: I7dcadb47a4996fb4995f349747c6331b3102cf50
2012-11-16 20:41:16 +00:00
Translation updater bot 55a5c35a14 Localisation updates from http://translatewiki.net.
Change-Id: Ida3f68c387b52b82a78519c6028c3046d6fe4417
2012-11-15 20:44:06 +00:00
James D. Forrester 42fb99728b (bug 41722) Remove use of the Feedback tool for December release
We do not want to use the Feedback tool for the December release, as it does not
work cleanly with LiquidThreads and would strand most users in an unfamiliar
wiki and expect them to have more complex/technical responses than they are
likely to be able to give; instead, have just purged it entirely from the code
(except for i15d strings, per Roan).

Change-Id: Ieebdca3d365943d901e2df37228120fdcff50afd
2012-11-14 16:16:52 -08:00
Translation updater bot 16e41fe343 Localisation updates from http://translatewiki.net.
Change-Id: I9477f99e345a0dd998e890c945b4bfaa2517077c
2012-11-14 20:58:47 +00:00
Translation updater bot afea342bb9 Localisation updates from http://translatewiki.net.
Change-Id: I08515d4e1abab80d5182d3895f63cf42a231fb19
2012-11-13 21:15:07 +00:00
Translation updater bot 411b31cc93 Localisation updates from http://translatewiki.net.
Change-Id: I731ef8fa80d811ce2aea6f8a7cd4071ca81810af
2012-11-10 20:46:20 +00:00
Translation updater bot f676cea3af Localisation updates from http://translatewiki.net.
Change-Id: I38b10dc8ebb5e080407b8241a8fa02f70670e820
2012-11-09 21:57:54 +00:00
Translation updater bot 33062e32fa Localisation updates from http://translatewiki.net.
Change-Id: I25fa8e1f8d2dc6006e2e803c9d3b2284e483e468
2012-11-08 21:10:26 +00:00
Translation updater bot 0408a71c02 Localisation updates from http://translatewiki.net.
Change-Id: If8f9d437f9d1e33602514b7470f844352de36e06
2012-11-07 20:37:29 +00:00
Translation updater bot 44b142ac2d Localisation updates from http://translatewiki.net.
Change-Id: Ib247815a3a047e5950155cd3c2421ed9b1e2afc0
2012-11-06 20:59:50 +00:00
Trevor Parscal 692a67dc3d Merge "Integration revamp for December release" 2012-11-05 23:19:10 +00:00
Translation updater bot 0f205707f2 Localisation updates from http://translatewiki.net.
Change-Id: I750fc83b0530d867e0d2614b0615cbcb83c6ba72
2012-11-05 21:14:57 +00:00
Catrope 4d7952d55c Integration revamp for December release
* Remove VisualEditor namespace, and restrictions on it
** For MW.org these will be moved to mediawiki-config
* Add $wgVisualEditorNamespaces
* Add visualeditor-enable preference and respect it
* Use $skin->getTitle() rather than $wgTitle
* Remove "Sandbox" from i18n message
* Remove duplicate enforcement of VE namespace from JS

Change-Id: I956f68c2dde55e4063530fcc7c90eda048e0d78b
2012-11-05 12:46:14 -08:00
Translation updater bot 138905e49c Localisation updates from http://translatewiki.net.
Change-Id: I7f53cf692b95cd76f530c3289f9a2ee85b3e68ea
2012-11-04 21:23:24 +00:00
Translation updater bot 3cf44d2ab1 Localisation updates from http://translatewiki.net.
Change-Id: I43b3d022da55878430e42ea9a0ce85f5c616441a
2012-11-03 23:25:05 +00:00
Translation updater bot b81a88d75a Localisation updates from http://translatewiki.net.
Change-Id: I68ad405772ddbb85e56524563decfc8c0aeb8740
2012-10-29 21:53:00 +00:00
Translation updater bot 779356243f Localisation updates from http://translatewiki.net.
Change-Id: If8b4ce3c06dd78c26d44d0f73d00f3bdeac0226b
2012-10-28 21:17:46 +00:00
Translation updater bot 03ed368fd9 Localisation updates from http://translatewiki.net.
Change-Id: Ib9b8748fc9c687f17669d983373758006c47db91
2012-10-27 21:16:43 +00:00
Catrope 62cf91cd24 Merge changes I0de5d327,I589ecba3,I840f7242,Ie786fa3d,I04723499,Ibde934d5,I993f4cbe
* changes:
  Add commands to ve.Surface
  Tools changes
  UI context reorganization, inspector rewrite, iframe refactor, icon generalization
  Add ve.Action, ve.ActionFactory, subclasses
  Add ve.dm.Surface.has{Past,Future}State, add docs
  Add ve.dm.Node.hasAttributes()
  Add ve.dm.Node.hasMatchingAncestor()
2012-10-26 21:54:02 +00:00
Rob Moen 9563f0880d UI context reorganization, inspector rewrite, iframe refactor, icon generalization
* Only show the inspector if the selected text has an inspectable annotation
* Replace the inline menu with a toolbar containing inspectable annotations
* Change the appearance of the inspector to match new mockups
* Add the trash can icon for removing annotations
* Move iframe handling code into a class that manages all that nonsense

Change-Id: I840f72426f9a9e50054a28de950393f0e9913153
2012-10-26 14:46:11 -07:00
Translation updater bot 93e089cf38 Localisation updates from http://translatewiki.net.
Change-Id: I12c7cea5120485b963ea1dad105fbab579426485
2012-10-26 19:45:13 +00:00
Translation updater bot a764d0b350 Localisation updates from http://translatewiki.net.
Change-Id: Ib8b826ea7d5d2b6080d71a9cf2fc4ac6f375bd6a
2012-10-25 20:04:29 +00:00
Translation updater bot c31698b381 Localisation updates from http://translatewiki.net.
Change-Id: I7646f89310781f0da59173347886b1a12776edae
2012-10-22 01:54:09 +00:00
Translation updater bot 0024913c16 Localisation updates from http://translatewiki.net.
Change-Id: If2b2b1822e7973ca7c087b5ed72582ac874d9943
2012-10-02 20:39:12 +00:00
Translation updater bot c7d5c28a6b Localisation updates from http://translatewiki.net.
Change-Id: Ib1f0420f7f0752a002dac31a30b2aa00704858d4
2012-10-02 14:04:32 +00:00
Translation updater bot d9570ed0e5 Localisation updates from http://translatewiki.net.
Change-Id: I0299961a807fee46db9502de70a9e5e268fa0f32
2012-09-30 19:22:52 +00:00
Translation updater bot 044c7c728c Localisation updates from http://translatewiki.net.
Change-Id: If0cf357aa5959daa90ad09e8da71e397bffc1fdc
2012-09-26 19:56:22 +00:00
Translation updater bot 948b55e1e3 Localisation updates from http://translatewiki.net.
Change-Id: I9b406a429ed4d868e915599b95ea7f51b0734b27
2012-09-25 19:51:34 +00:00
Translation updater bot f1b827b12f Localisation updates from http://translatewiki.net.
Change-Id: I5459a7fab1821322e27ba2df65a76704208f142f
2012-09-19 20:44:20 +00:00
Translation updater bot 33c86832d7 Localisation updates from http://translatewiki.net.
Change-Id: Ia06fd498d1325185f688a143af9dbe2c7062a189
2012-09-15 19:55:07 +00:00
Translation updater bot aa595bff89 Localisation updates from http://translatewiki.net.
Change-Id: Iec8a768270d2e573312d848c7a686ba8bf7ec3a6
2012-09-13 20:47:51 +00:00
Translation updater bot 0fd054322b Localisation updates from http://translatewiki.net.
Change-Id: Id662844ddf5f62c54f9ac2931289a37d64daec10
2012-09-12 19:56:27 +00:00
Siebrand a218baa8c9 Revert "Added 'bytes' remaining to edit summary dialog."
This reverts commit 75c0cdbd38
2012-09-11 20:57:21 +00:00
Rob Moen 75c0cdbd38 Added 'bytes' remaining to edit summary dialog.
Addresses (Bug 40035)

Change-Id: Iad94ea32b62aef2e1875fa2709b6303b88c9c137
2012-09-11 12:34:19 -07:00
Translation updater bot 8a725f8f92 Localisation updates from http://translatewiki.net.
Change-Id: I24aab36d264b542380c0a494c659f7f662eb6aee
2012-09-08 19:02:28 +00:00
Translation updater bot 992353b3a6 Localisation updates from http://translatewiki.net.
Change-Id: I07696c01128e9b21755b5f279bc03ca8898e1ca0
2012-09-07 22:26:50 +00:00
Translation updater bot e7d3dac1b9 Localisation updates from http://translatewiki.net.
Change-Id: I8e40afc93c7cde4b7814b11f5c967195f491ff46
2012-09-01 20:48:18 +00:00
Translation updater bot 3d47dca9e7 Localisation updates from http://translatewiki.net.
Change-Id: Ibfa61b9fa71e39ba49da7e8d7aa219e09068d8e1
2012-08-30 19:43:08 +00:00
Translation updater bot 483a2ae2a6 Localisation updates from http://translatewiki.net.
Change-Id: Ia754b201c3972aea20f224a2698c611da585066e
2012-08-29 19:24:26 +00:00
Translation updater bot 2a0d589ab0 Localisation updates from http://translatewiki.net.
Change-Id: I84c1980c59751f0d991e856e119aada213ddb1d4
2012-08-26 20:16:55 +00:00
Translation updater bot a9163cf464 Localisation updates from http://translatewiki.net.
Change-Id: I2843c4c92219cd44c2dc0abb3348299de5c2c956
2012-08-25 19:03:57 +00:00
Translation updater bot eb5c938ca2 Localisation updates from http://translatewiki.net.
Change-Id: Ib3d803feb528209e485abec62032a2c9200e1089
2012-08-24 19:40:17 +00:00
Catrope 8c0249bb89 Merge "Bug 37821 - Add support for oldid" 2012-08-23 21:18:37 +00:00
Translation updater bot 832292182e Localisation updates from http://translatewiki.net.
Change-Id: Icdb82599ce5f66d0a6768e973b1ee6103bc9d242
2012-08-23 20:10:39 +00:00
Trevor Parscal fb09872781 Bug 37821 - Add support for oldid
* Added oldid param to the API
* Added oldId argument to ve.init.mw.ViewPageTarget
* Added redirect when saving an oldid page (which adds a new revision)
* Added venotify param to allow notifications even when redirected
* Added creation notification
* Added page title to saved/created notification

Change-Id: I9e957e6f5bc7920093481ffe3c33e299f87ce50a
2012-08-23 12:03:40 -07:00
Translation updater bot 74455888b1 Localisation updates from http://translatewiki.net.
Change-Id: I01ac351e671f27f8f1645c740fc0726d32df118c
2012-08-22 19:56:08 +00:00