| OLD | NEW |
| 1 { | 1 { |
| 2 "title": { | 2 "title": { |
| 3 "message": "Source Code" | 3 "message": "Source Code" |
| 4 }, | 4 }, |
| 5 "s1": { | 5 "s1": { |
| 6 "message": "Getting the source code" | 6 "message": "The Adblock Plus project consists of multiple repositories. The
<a>modules</a> page has a good overview of the most important ones." |
| 7 }, | 7 }, |
| 8 "s2": { | 8 "s2": { |
| 9 "message": "The Adblock Plus source code can viewed throught the HG <a>web i
nterface</a>. A local copy may be downloaded by running the following from the c
ommand line:" | 9 "message": "Getting the source code from the Mercurial repositories" |
| 10 }, | 10 }, |
| 11 "s3": { | 11 "s3": { |
| 12 "message": "Similar repositories are set up for <a>Element Hiding Helper</a>
and <a>Diagnostics for Adblock Plus</a>. The local copy may be reset to the sta
te of a particular release by running the command:" | 12 "message": "The Adblock Plus source code is hosted on our <a>Mercurial</a> s
erver. You can see a list of all repositories through the <a>web interface</a>." |
| 13 }, | 13 }, |
| 14 "s4": { | 14 "s4": { |
| 15 "message": "(replace" | 15 "message": "Here's how you clone the Adblock Plus for Firefox repository:" |
| 16 }, | 16 }, |
| 17 "s5": { | 17 "s5": { |
| 18 "message": "with the tag of the required version)." | 18 "message": "Here's how you get the source code for a specific version (e.g.
Adblock Plus 2.3.1):" |
| 19 }, | 19 }, |
| 20 "s6": { | 20 "s6": { |
| 21 "message": "Alternatively, you can also <a>download the source code of the l
atest release</a>." | 21 "message": "Mercurial documentation" |
| 22 }, | 22 }, |
| 23 "s7": { | 23 "s7": { |
| 24 "message": "The <a>Adblock Plus source code documentation</a> provides an ov
erview of the add-on internals." | 24 "message": "Mercurial quickstart" |
| 25 }, | 25 }, |
| 26 "s8": { | 26 "s8": { |
| 27 "message": "HG client and documentation links" | 27 "message": "Mozilla's Mercurial FAQ" |
| 28 }, | 28 }, |
| 29 "s9": { | 29 "s9": { |
| 30 "message": "http://mercurial.selenic.com/" | 30 "message": "Distributed Revision Control with Mercurial (hgbook)" |
| 31 }, | 31 }, |
| 32 "s10": { | 32 "s10": { |
| 33 "message": "Mercurial" | 33 "message": "GUI client and other tools" |
| 34 }, | 34 }, |
| 35 "s11": { | 35 "s11": { |
| 36 "message": "(" | 36 "message": "Getting the source code from the GitHub mirrors" |
| 37 }, | 37 }, |
| 38 "s12": { | 38 "s12": { |
| 39 "message": "http://mercurial.selenic.com/wiki/QuickStart" | 39 "message": "If you prefer to use Git, you can - we have <a>GitHub mirrors</a
> for all our public repositories." |
| 40 }, | 40 }, |
| 41 "s13": { | 41 "s13": { |
| 42 "message": "quickstart" | 42 "message": "Here's how you clone the Adblock Plus for Firefox repository fro
m GitHub:" |
| 43 }, | 43 }, |
| 44 "s14": { | 44 "s14": { |
| 45 "message": ")" | 45 "message": "Here's how you get the source code for a specific version (e.g.
Adblock Plus 2.3.1):" |
| 46 }, | 46 }, |
| 47 "s15": { | 47 "s15": { |
| 48 "message": "https://developer.mozilla.org/en/Mercurial_FAQ" | 48 "message": "<strong>Please note:</strong> We are currently using Mercurial s
ubrepositories heavily, but are unable to mirror these as Git submodules. That m
eans that you need to check the <em>.hgsub</em> file of each repository and clon
e all dependencies manually. This won't be necessary anymore once we've <a>moved
away from subrepositories</a>." |
| 49 }, | 49 }, |
| 50 "s16": { | 50 "s16": { |
| 51 "message": "Mozilla's Mercurial FAQ" | 51 "message": "Build instructions" |
| 52 }, | 52 }, |
| 53 "s17": { | 53 "s17": { |
| 54 "message": "http://hgbook.red-bean.com/" | 54 "message": "Most of our repositories have <em>README.md</em> files with buil
d instructions, please refer to those." |
| 55 }, | 55 }, |
| 56 "s18": { | 56 "s18": { |
| 57 "message": "Distributed Revision Control with Mercurial" | 57 "message": "Source code documentation" |
| 58 }, | 58 }, |
| 59 "s19": { | 59 "s19": { |
| 60 "message": "(hgbook)" | 60 "message": "We have automatically generated source <a>code documentation for
the Adblock Plus core code</a>." |
| 61 }, | |
| 62 "s20": { | |
| 63 "message": "http://mercurial.selenic.com/wiki/OtherTools" | |
| 64 }, | |
| 65 "s21": { | |
| 66 "message": "GUI clients and other tools" | |
| 67 }, | |
| 68 "s22": { | |
| 69 "message": "Creating an Adblock Plus build" | |
| 70 }, | |
| 71 "s23": { | |
| 72 "message": "A development build may be created by entering the \"adblockplus
\" directory (your local copy of the repository) and running the command:" | |
| 73 }, | |
| 74 "s24": { | |
| 75 "message": "The script will create a development build with a name in the fo
rm" | |
| 76 }, | |
| 77 "s25": { | |
| 78 "message": "." | |
| 79 }, | |
| 80 "s26": { | |
| 81 "message": "This file will contain the source code currently in the reposito
ry and all available locales." | |
| 82 }, | |
| 83 "s27": { | |
| 84 "message": "<em>Note</em>: You need" | |
| 85 }, | |
| 86 "s28": { | |
| 87 "message": "with" | |
| 88 }, | |
| 89 "s29": { | |
| 90 "message": "<a>Jinja2 module</a> to create builds." | |
| 91 }, | |
| 92 "s30": { | |
| 93 "message": "To\n install Jinja2 in Python run this command:" | |
| 94 }, | |
| 95 "s31": { | |
| 96 "message": "Testing your changes" | |
| 97 }, | |
| 98 "s32": { | |
| 99 "message": "To simplify the process of testing your changes you can install\
n <a>Extension Auto-Installer</a>\n in your browser." | |
| 100 }, | |
| 101 "s33": { | |
| 102 "message": "Assuming that Extension Auto-Installer is configured to use\n p
ort 8888 (the default value), you can push your changes to this browser by runni
ng:" | |
| 103 }, | |
| 104 "s34": { | |
| 105 "message": "The browser will be restarted automatically if necessary." | |
| 106 }, | |
| 107 "s35": { | |
| 108 "message": "Running unit tests" | |
| 109 }, | |
| 110 "s36": { | |
| 111 "message": "To verify your changes you can use the existing\n <a>unit test
suite</a>." | |
| 112 }, | |
| 113 "s37": { | |
| 114 "message": "The\n unit tests are a separate extension that is installed in
addition to Adblock\n Plus." | |
| 115 }, | |
| 116 "s38": { | |
| 117 "message": "You can either install the\n <a>existing unit test builds</a>\n
or clone the repository and create your own build." | |
| 118 }, | |
| 119 "s39": { | |
| 120 "message": "After installing the unit tests\n go to" | |
| 121 }, | |
| 122 "s40": { | |
| 123 "message": "to run the tests." | |
| 124 } | 61 } |
| 125 } | 62 } |
| OLD | NEW |