Commit graph

433 commits

Author SHA1 Message Date
Eloquence c5de7696a7 Make beta notice more informative and increase CSS width.
Point out that the software may have issues, and point users to the "Edit source"
link explicitly.

Change-Id: Id84d76887038a3a6a9e11a203f19dc3db7703e6a
2013-07-16 18:49:39 -07:00
Translation updater bot 70d1503605 Localisation updates from http://translatewiki.net.
Change-Id: I14f0e3f4d6e6e936feb31abf1bfd1d4429135313
2013-07-16 20:06:54 +00:00
Trevor Parscal 09f920fcac Remove field set label on reference edit dialog
Objective:

* Allow fieldsets to not have labels
* Remove label from reference edit dialog field set

Changes:

ve.ui.Layout.css
* Only apply negative top margin if fieldset label is being used

ve.ui.FieldsetLayout.js
* Only add label element to DOM if icon or label are used

ve.ui.MWReferenceEditDialog.js
* Remove label from reference edit dialog's first fieldset

*.php
* Remove unused message

Change-Id: I4a36e819ec6ef73aad80d3fb2f06000cb35ec109
2013-07-15 23:44:07 +00:00
Eloquence 5fea00f8f0 Clarify wikitext warning to indicate "Edit source" option
(rather than asking the user not to type wikitext).

Change-Id: I3d6635a68f6542fc30e1e344233b7e585e0ad78f
2013-07-15 15:59:49 -07:00
Timo Tijhof 45c79f8c23 mw.ViewPageTarget: Refetch token if session expired
* Rephrased visualeditor-savedialog-error-badtoken to emphasise
  that it is the old session that become invalid, not the one
  the user started browsing with since in a different window.
* If the session changed, the user will be asked whether they
  agree to save with this new session instead.
* We explictly update mw.config so that future save attempts
  in the same window compare against the correct environment.
  Without this there are two problems when saving and then
  making a second edit in the same window and saving that:
  - It will bring up the same question again (user A -> user B),
    which is annoying.
  - If the user logged back in again (new session, but for
    user A again) it would silently try with that new token
    without asking, thus saving as user A when the user still
    thinks it switched to user B. It switching back automatically
    is not obvious since we asked them from A->B, so we should
    also ask the other way around.
  This can be reproduced by opending ve-edit logged-in, then
  logging out in a new window, save, confirm anon, save,
  open edit again, log back in in a new window, save open edit
  in the old window, confirm new logged-in, save.

Bug: 50424
Change-Id: Id055eca1886f85aeaf615f645de29898afc0373c
2013-07-15 21:40:18 +02:00
Translation updater bot 71504c3d15 Localisation updates from http://translatewiki.net.
Change-Id: I44dfffeba679eee88c28e29149315b9ced7584bb
2013-07-15 19:30:59 +00:00
jenkins-bot fa290148c2 Merge "Fix i18n typo in abf3671 spotted by PleaseStand" 2013-07-15 02:39:26 +00:00
Roan Kattouw 78a1e0a383 Fix i18n typo in abf3671 spotted by PleaseStand
Change-Id: I592f3c4e2d4004d15609897986672f170a52fa5d
2013-07-14 19:37:02 -07:00
jenkins-bot 9379483a5f Merge "Warn users when they are typing wikitext" 2013-07-15 02:30:44 +00:00
Ed Sanders abf3671723 Warn users when they are typing wikitext
Without making the code much more complex (and possibly create
performance issues) the warning will fire on pages which already
contain escaped wikitext (when that text is edited). I think this
should be a small enough minority that it won't be an major annoyance.

Bug: 49820
Change-Id: I0f67ec04b890f4add9247be6126bdc086b6ae72f
2013-07-14 19:27:32 -07:00
Translation updater bot 22d9760260 Localisation updates from http://translatewiki.net.
Change-Id: I88d9c92fab77ce9fac8d00286d144566a03be29f
2013-07-14 19:20:19 +00:00
Translation updater bot 4edadf8a0f Localisation updates from http://translatewiki.net.
Change-Id: I96e09b7bb12ad6969e05ba71bee03cb92d49971f
2013-07-12 20:17:54 +00:00
James D. Forrester cc9d71593e i18n: Sort message keys (again)
Change-Id: I258466be47cda414f10150d49d592da61a323a5a
2013-07-11 16:46:05 -07:00
Timo Tijhof c292e326e8 mw.ViewPageTarget: Improve error message for badtoken error
Previously all it did was surface api response error.info,
which surfaced underneath the edit summary form as mere:
"Error: Invalid token".

Bug: 50424
Change-Id: I60169b42701ae3b88e54626c4ff7050549e6ef55
2013-07-11 16:20:26 -07:00
jenkins-bot 466a371109 Merge "Remove "Tag: " prefix, now that they're in MW core" 2013-07-11 22:43:34 +00:00
Translation updater bot 7583c8c07e Localisation updates from http://translatewiki.net.
Change-Id: I6656f68985534c1b9a7de5dd1814b26909c2b799
2013-07-11 19:17:04 +00:00
Translation updater bot 42cca00ec3 Localisation updates from http://translatewiki.net.
Change-Id: I644c9a9cc989bf983a7b2edbca6c5e84037bb24a
2013-07-10 21:31:42 +00:00
James D. Forrester 157bfe5ffc Remove "Tag: " prefix, now that they're in MW core
When If21eaed41 gets merged, the custom of writing "Tag: Foo" will be obviated
by MediaWiki core having this itself. Consequently, once that is merged, we should
remove them from VisualEditor's messages. (Not removing from the non-English
messages per standing guidance from the Language Engineering team.)

Bug: 49602
Change-Id: Ibdd8053c1df950522379f8b05d260b71593d4741
2013-07-10 19:17:24 +00:00
jenkins-bot 691d9fe462 Merge "Language Inspector: CE / DM" 2013-07-10 19:13:40 +00:00
Moriel Schottlender fdcec169d1 Language Inspector: CE / DM
This is the infrastructure for the Language Inspector prototype, defining
the dm and ce pieces of the <span lang='xx' dir='yy'> annotations. It also
sets up a visual indicator for language blocks (with informational tooltip
for the user while editing. The UI is built on top of this.

Bug: 47759
Change-Id: I239eef5124e29369ea9c5d8c0f49b2f6a61bc053
2013-07-10 12:11:27 -07:00
jenkins-bot 0e61539cfe Merge "Revert "Add support for <blockquote> elements"" 2013-07-09 21:37:17 +00:00
Catrope 30ebc9a656 Revert "Add support for <blockquote> elements"
Whoops, merged too soon. The dropdown part of it doesn't
actually work right.

This reverts commit 3c51ebad93.

Change-Id: Ieafbf18ca8a43b07e33a787772abbc77aef63e4c
2013-07-09 21:35:47 +00:00
jenkins-bot 6dee20d408 Merge "Add support for <blockquote> elements" 2013-07-09 21:34:46 +00:00
Translation updater bot c5ad0c1078 Localisation updates from http://translatewiki.net.
Change-Id: I434dbca8e5fc80919b9e77ee9f4507cd96705718
2013-07-09 20:40:59 +00:00
James D. Forrester 3c51ebad93 Add support for <blockquote> elements
Bug: 51009
Change-Id: I7ba1635e4f856a021e1a7a2d26a8714230c9364a
2013-07-09 13:15:06 -07:00
Translation updater bot 9b38c2ce87 Localisation updates from http://translatewiki.net.
Change-Id: Icf828cf3171a868c14cb7c2db30692fcb9c85e25
2013-07-08 19:02:59 +00:00
Translation updater bot 7d9cfbe15f Localisation updates from http://translatewiki.net.
Change-Id: Ic28f51ba1ef4f1eb80bea69cdc131cec8994b4e2
2013-07-07 19:46:57 +00:00
jenkins-bot 67d1629754 Merge changes I4d7533af,Ib909c5fb
* changes:
  Math Node UI
  Math Node Matcher
2013-07-07 07:36:00 +00:00
Trevor Parscal 37240aca59 Math Node UI
Show an inspector with inputwidget when the user clicks a math
node. The data of the math equation is shown in the
edit box, it can re-render the math tag image when
the inspector is closed, and save the change when
saving the page.

TODO:
* Change the icon from link to math
* Translate title by translatewiki in i18n
* Other further UI improvements

Change-Id: I4d7533af25186cc39cc4bc6a4326d222ffd6db19
2013-07-07 07:32:11 +00:00
Translation updater bot 0ecebaf513 Localisation updates from http://translatewiki.net.
Change-Id: Id3a95220459e85d156529e28636712434a27578f
2013-07-06 19:04:45 +00:00
Translation updater bot 3d7cbb0312 Localisation updates from http://translatewiki.net.
Change-Id: I631fcfc2a3eaf6f30f88e8bbeb44109f9045e75d
2013-07-05 21:40:51 +00:00
Translation updater bot 330c39215c Localisation updates from http://translatewiki.net.
Change-Id: I05fb211278f6b6e975fa26b8cf0448c7c5d5fc0a
2013-07-04 20:09:43 +00:00
Translation updater bot 0749eead9f Localisation updates from http://translatewiki.net.
Change-Id: I8c11d92d466b3a00371cbcc6ed7906d969670ae7
2013-07-03 20:03:51 +00:00
Trevor Parscal 4568274949 Template parameter adding
Objective:

* Allow browsing, searching and adding documented parameters

Changes:

ve.ui.MWTransclusionDialog.js
* Replace regular text input with ve.ui.ParameterSearchWidget
* Fix uses of $(), this.frame.$$ is correct

ve.ui.Dialog.css
* Change rules for addParameterFieldset to make search widget auto-size vertically

ve.ui.Widget.css
* Add styles for ve.ui.MWParameterResultWidget

ve.ui.MWParameterSearchWidget.js, ve.ui.MWParameterResultWidget.js
* New classes
* Provides a way to search and select parameter for a template
* Displays parameter label, name, aliases and description

*.php
* Links to new files and messages

Change-Id: Ie5dbe8c44ce5d64c4b49b09517fb66cd30dd7304
2013-07-02 13:40:54 -07:00
Translation updater bot d75b4c0cfb Localisation updates from http://translatewiki.net.
Change-Id: Ia57ea5446ae7c561736d9df1458d7a7e55ce7af0
2013-07-02 19:24:27 +00:00
jenkins-bot 07891660c9 Merge "Avoid self-references, and refer instead to "source mode"" 2013-07-02 16:29:46 +00:00
Erik Moeller f73b520ddb Avoid self-references, and refer instead to "source mode"
Messages like "This element cannot yet be edited in VisualEditor"
presuppose an awareness on the user's part what VisualEditor is,
but ideally, we want the software to be invisible. Where we want
to refer to behavior of the software, we should characterize it
using language that is discoverable by the user.

Change-Id: Ia4ef7aca1501cf9cf0f772f82ac2b0a99ca53a63
2013-07-02 16:28:17 +00:00
Siebrand Mazeland af9c7089a7 Simplify UI text from Caption content to Caption
Suggested in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Visualeditor-dialog-media-content-section/he

Change-Id: I2cc48aa710bfc1ce302ef02a12aa2679a3cf0dc3
2013-07-02 15:06:52 +02:00
jenkins-bot d57fd0d259 Merge "Fix display of 'please check this edit' tag" 2013-07-02 00:00:02 +00:00
James D. Forrester a24c40ac3b Fix display of 'please check this edit' tag
Change-Id: I09f8926f7f65f092cf37eb661d90602677d04924
2013-07-01 23:57:57 +00:00
jenkins-bot 518dd6247c Merge "Add GuidedTour survey about user gender" 2013-07-01 22:46:52 +00:00
Matthew Flaschen 3b4b0c3c89 Add GuidedTour survey about user gender
Disabled by default, enabled with $wgVisualEditorEnableGenderSurvey.

Change-Id: I2b4aba6a95a33474c3e68423d478aa78e57d86ad
2013-07-02 00:13:38 +02:00
Translation updater bot 1283441e94 Localisation updates from http://translatewiki.net.
Change-Id: Ifec1fe1b5e20f43dc9adf05a42c36f910db0bee7
2013-07-01 20:01:04 +00:00
jenkins-bot 3b6b29c1a5 Merge "mw.ViewPageTarget: Show save errors in save dialog instead of alert" 2013-07-01 18:38:23 +00:00
James D. Forrester 662d35178f Add user guide link to beta icon drop down
As part of this, put the 'help' icon next to the beta icon, make the
text not greyed-out (now that it's an actual action) and provide the
link.

On hover, all three items get underlined, which is irritating, however.

Bug: 50476
Change-Id: Id65968072b7134f5864bbd96acf34fd0c23fe17c
2013-07-01 11:07:08 -07:00
Timo Tijhof 1f1a1970be mw.ViewPageTarget: Show save errors in save dialog instead of alert
To trigger a save rejection from the api, set:
 $wgSpamRegex = '/spam/i';
and making an edit adding the word "spam" to a page.

Class changes:
* Rename message system in the save dialog from "warning" to
  "message" as it will now contain both warnings and errors.
  (css class, class property, method names, ..)

Localisation:
* Remove ugly hardcoded and wikitext-requiring "'''Warning:'''"
  prefix from the warning message, instead have a message for the
  word "Warning" and re-use this in #showMessage for each message
  of type "warning" (bolding applied in code instead of in i18n).
* Rename visualeditor-savedialog-dirtywarning to
  visualeditor-savedialog-warning-dirty and remove from
  VisualEditorMessagesModule.php as it no longer requires pre-
  processing from the server.

Clean up:
* Re-alphabetise the order of some messages.
* Clean up duplication and redundant logic in mw.Target#onSaveError
  and mw.ViewPageTarget#onSaveError.

Bug: 50350
Change-Id: I3daf631fb0d62ba88e05aa50c77c9940d61395a0
2013-07-01 16:41:12 +02:00
jenkins-bot e486307976 Merge "Move colon to make it bold too" 2013-06-30 01:41:45 +00:00
Translation updater bot f8d2f14953 Localisation updates from http://translatewiki.net.
Change-Id: I4112ca869980947884249f7af5e3cc08bb749b06
2013-06-29 19:39:23 +00:00
Yuki Shira 808c60efdd Move colon to make it bold too
For consistency with other MediaWiki extensions

Change-Id: I023cea932775e6d089942ff0c52f8aee99bfe2a3
2013-06-29 01:06:13 +00:00
Translation updater bot 9e81731ff1 Localisation updates from http://translatewiki.net.
Change-Id: Id6a1a3cade03355049f713585407e005aa699c8b
2013-06-28 13:58:30 +00:00