Last modified: 2014-10-16 13:54:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65444, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63444 - Switch i18n JSON files to use tabs instead of spaces
Switch i18n JSON files to use tabs instead of spaces
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-02 19:41 UTC by Ryan Kaldari
Modified: 2014-10-16 13:54 UTC (History)
18 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---
jforrester: Backport_to_Stable+


Attachments

Description Ryan Kaldari 2014-04-02 19:41:21 UTC
Pretty much all MediaWiki code (except Python) uses tabs instead of spaces for indentation. If we change the new i18n JSON files to also use tabs, it will make life easier for MediaWiki developers :)

See this wikitech-l thread for more discussion:
http://lists.wikimedia.org/pipermail/wikitech-l/2014-April/075587.html
Comment 1 James Forrester 2014-04-02 19:50:46 UTC
Should we change FormatJson::encode to use tabs?
Comment 2 Rob Lanphier 2014-04-02 22:51:07 UTC
(In reply to James Forrester from comment #1)
> Should we change FormatJson::encode to use tabs?

We probably should just pass an optional "indent" parameter and use that for localization.  Doesn't look like the native json_encode function supports custom indent, though, which is a little silly, but maybe that's something to try to push upstream later.
Comment 3 Gerrit Notification Bot 2014-04-03 04:45:21 UTC
Change 123518 had a related patch set uploaded by PleaseStand:
FormatJson: Make it possible to change the indent string

https://gerrit.wikimedia.org/r/123518
Comment 4 Gerrit Notification Bot 2014-04-16 14:06:31 UTC
Change 123518 merged by jenkins-bot:
FormatJson: Make it possible to change the indent string

https://gerrit.wikimedia.org/r/123518
Comment 5 Gerrit Notification Bot 2014-04-16 14:19:49 UTC
Change 126253 had a related patch set uploaded by Siebrand:
FormatJson: Make it possible to change the indent string

https://gerrit.wikimedia.org/r/126253
Comment 6 Gerrit Notification Bot 2014-04-16 15:24:50 UTC
Change 126253 merged by jenkins-bot:
FormatJson: Make it possible to change the indent string

https://gerrit.wikimedia.org/r/126253
Comment 7 Gerrit Notification Bot 2014-04-16 15:25:18 UTC
Change 126266 had a related patch set uploaded by Jforrester:
Remove bug 63444 RELEASE-NOTES-1.24 duplicate of RELEASE-NOTES-1.23

https://gerrit.wikimedia.org/r/126266
Comment 8 Gerrit Notification Bot 2014-04-16 15:30:50 UTC
Change 126266 merged by jenkins-bot:
Remove bug 63444 RELEASE-NOTES-1.24 duplicate of RELEASE-NOTES-1.23

https://gerrit.wikimedia.org/r/126266
Comment 9 Gerrit Notification Bot 2014-04-16 16:02:42 UTC
Change 126664 had a related patch set uploaded by Anomie:
Actually put release note for bug 63444 in RELEASE-NOTES-1.23 in master

https://gerrit.wikimedia.org/r/126664
Comment 10 Brad Jorsch 2014-04-16 16:04:33 UTC
@Siebrand: Is the bug actually fixed with this merge? Or does other stuff need to be changed to actually switch all the i18n files yet?
Comment 11 James Forrester 2014-04-16 16:05:02 UTC
(In reply to Brad Jorsch from comment #10)
> @Siebrand: Is the bug actually fixed with this merge? Or does other stuff
> need to be changed to actually switch all the i18n files yet?

That export is running now, apparently.
Comment 12 Gerrit Notification Bot 2014-04-16 16:07:00 UTC
Change 126664 merged by jenkins-bot:
Actually put release note for bug 63444 in RELEASE-NOTES-1.23 in master

https://gerrit.wikimedia.org/r/126664
Comment 13 Gerrit Notification Bot 2014-04-21 20:56:09 UTC
Change 127791 had a related patch set uploaded by PleaseStand:
generateJsonI18n.php: Use tabs for indentation

https://gerrit.wikimedia.org/r/127791
Comment 14 Gerrit Notification Bot 2014-04-22 08:16:58 UTC
Change 127791 merged by jenkins-bot:
generateJsonI18n.php: Use tabs for indentation

https://gerrit.wikimedia.org/r/127791
Comment 15 Gerrit Notification Bot 2014-04-22 08:38:35 UTC
Change 127880 had a related patch set uploaded by Siebrand:
generateJsonI18n.php: Use tabs for indentation

https://gerrit.wikimedia.org/r/127880
Comment 16 Gerrit Notification Bot 2014-04-22 10:24:56 UTC
Change 127880 merged by jenkins-bot:
generateJsonI18n.php: Use tabs for indentation

https://gerrit.wikimedia.org/r/127880
Comment 17 Kevin Israel (PleaseStand) 2014-06-11 03:05:19 UTC
[Patch merged a while ago, so resetting Status and Assignee fields]

In core, space indents were changed to tabs on master (in separate changes) though not on REL1_23.

Siebrand, is there a plan to do this for the en.json files of the various extensions?
Comment 18 Siebrand Mazeland 2014-06-11 05:36:21 UTC
(In reply to Kevin Israel (PleaseStand) from comment #17)
> is there a plan to do this for the en.json files of the various
> extensions?

No. When I come across a file I have to make changes to, I change it. I haven't planned addressing it in bulk.
Comment 19 Niklas Laxström 2014-10-16 13:48:53 UTC
I've created bug 72132 with narrower scope to reflect what has already been done.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links