| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2013 Eyeo GmbH | 3 * Copyright (C) 2006-2013 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 "title-main": "first-run-title-install", | 129 "title-main": "first-run-title-install", |
| 130 "i18n-features-heading": "first-run-features-heading", | 130 "i18n-features-heading": "first-run-features-heading", |
| 131 "i18n-feature-betterSurfing": "first-run-feature-betterSurfing", | 131 "i18n-feature-betterSurfing": "first-run-feature-betterSurfing", |
| 132 "i18n-feature-videoAds": "first-run-feature-videoAds", | 132 "i18n-feature-videoAds": "first-run-feature-videoAds", |
| 133 "share-text1": "first-run-share1", | 133 "share-text1": "first-run-share1", |
| 134 "share-text2": "first-run-share2", | 134 "share-text2": "first-run-share2", |
| 135 "share-donate": "first-run-share2-donate", | 135 "share-donate": "first-run-share2-donate", |
| 136 "share2-connection": "first-run-share2-or" | 136 "share2-connection": "first-run-share2-or" |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 document.title = AdblockPlus.getMessage("first-run-title-install"); | 139 document.title = AdblockPlus.getMessage("first-run", "first-run-title-install"
); |
| 140 for (var i in mapping) | 140 for (var i in mapping) |
| 141 { | 141 { |
| 142 var element = document.getElementById(i); | 142 var element = document.getElementById(i); |
| 143 element.innerText = AdblockPlus.getMessage(mapping[i]); | 143 element.innerText = AdblockPlus.getMessage("first-run", mapping[i]); |
| 144 } | 144 } |
| 145 } | 145 } |
| 146 | 146 |
| 147 function init() | 147 function init() |
| 148 { | 148 { |
| 149 // Choose a share text variant randomly | 149 // Choose a share text variant randomly |
| 150 var variant = Math.floor(Math.random() * 2) + 1; | 150 var variant = Math.floor(Math.random() * 2) + 1; |
| 151 var classList = document.documentElement.className.split(" "); | 151 var classList = document.documentElement.className.split(" "); |
| 152 classList.push("share-variant-" + variant); | 152 classList.push("share-variant-" + variant); |
| 153 document.documentElement.className = classList.join(" "); | 153 document.documentElement.className = classList.join(" "); |
| 154 | 154 |
| 155 initTranslations(); | 155 initTranslations(); |
| 156 initSocialLinks(variant); | 156 initSocialLinks(variant); |
| 157 | 157 |
| 158 var donateLink = document.getElementById("share-donate"); | 158 var donateLink = document.getElementById("share-donate"); |
| 159 donateLink.href = getDocLink("donate") + "&variant=" + variant; | 159 donateLink.href = getDocLink("donate") + "&variant=" + variant; |
| 160 } | 160 } |
| 161 | 161 |
| 162 addListener(window, "load", init); | 162 addListener(window, "load", init); |
| OLD | NEW |