r92037 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92036‎ | r92037 | r92038 >
Date:00:30, 13 July 2011
Author:kaldari
Status:ok (Comments)
Tags:
Comment:
output campaign log details
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.db.php (modified) (history)
  • /trunk/extensions/CentralNotice/CentralNotice.i18n.php (modified) (history)
  • /trunk/extensions/CentralNotice/centralnotice.css (modified) (history)
  • /trunk/extensions/CentralNotice/centralnotice.js (modified) (history)
  • /trunk/extensions/CentralNotice/special/SpecialCentralNotice.php (modified) (history)
  • /trunk/extensions/CentralNotice/special/SpecialCentralNoticeLogs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/special/SpecialCentralNotice.php
@@ -556,7 +556,7 @@
557557 // Countries
558558 $htmlOut .= Xml::openElement( 'tr' );
559559 $htmlOut .= Xml::tags( 'td', array(),
560 - Xml::label( wfMsg( 'centralnotice-geotargeted' ), 'geotargeted' ) );
 560+ Xml::label( wfMsg( 'centralnotice-geo' ), 'geotargeted' ) );
561561 $htmlOut .= Xml::tags( 'td', array(),
562562 Xml::check( 'geotargeted', false,
563563 wfArrayMerge( $readonly, array( 'value' => 1, 'id' => 'geotargeted' ) ) ) );
@@ -880,7 +880,7 @@
881881 // Countries
882882 $htmlOut .= Xml::openElement( 'tr' );
883883 $htmlOut .= Xml::tags( 'td', array(),
884 - Xml::label( wfMsg( 'centralnotice-geotargeted' ), 'geotargeted' ) );
 884+ Xml::label( wfMsg( 'centralnotice-geo' ), 'geotargeted' ) );
885885 $htmlOut .= Xml::tags( 'td', array(),
886886 Xml::check( 'geotargeted', $isGeotargeted,
887887 wfArrayMerge(
Index: trunk/extensions/CentralNotice/special/SpecialCentralNoticeLogs.php
@@ -54,7 +54,8 @@
5555 $htmlOut .= Xml::closeElement( 'form' );
5656
5757 // End log selection fieldset
58 - $htmlOut .= Xml::closeElement( 'fieldset' );
 58+ // Uncomment when we have multiple logs
 59+ //$htmlOut .= Xml::closeElement( 'fieldset' );
5960
6061 $wgOut->addHTML( $htmlOut );
6162
@@ -74,7 +75,8 @@
7576 $htmlOut = '';
7677
7778 // Begin log fieldset
78 - $htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) );
 79+ // Uncomment when we have multiple logs
 80+ //$htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) );
7981
8082 // Show paginated list of log entries
8183 $htmlOut .= Xml::tags( 'div',
@@ -120,13 +122,7 @@
121123 function getQueryInfo() {
122124 return array(
123125 'tables' => array( 'cn_notice_log' ),
124 - 'fields' => array(
125 - 'notlog_timestamp',
126 - 'notlog_user_id',
127 - 'notlog_action',
128 - 'notlog_not_id',
129 - 'notlog_not_name',
130 - )
 126+ 'fields' => '*',
131127 );
132128 }
133129
@@ -134,7 +130,7 @@
135131 * Generate the content of each table row (1 row = 1 log entry)
136132 */
137133 function formatRow( $row ) {
138 - global $wgLang;
 134+ global $wgLang, $wgExtensionAssetsPath;
139135
140136 // Create a user object so we can pull the name, user page, etc.
141137 $loggedUser = User::newFromId( $row->notlog_user_id );
@@ -147,47 +143,212 @@
148144 htmlspecialchars( $row->notlog_not_name ),
149145 'method=listNoticeDetail&notice=' . urlencode( $row->notlog_not_name ) );
150146
151 - // Begin banner row
 147+ // Begin log entry primary row
152148 $htmlOut = Xml::openElement( 'tr' );
153149
154 - $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ),
 150+ $htmlOut .= Xml::openElement( 'td', array( 'valign' => 'top' ) );
 151+ if ( $row->notlog_action !== 'removed' ) {
 152+ $htmlOut .= '<a href="javascript:toggleDisplay(\''.$row->notlog_id.'\')">'.
 153+ '<img src="'.$wgExtensionAssetsPath.'/CentralNotice/collapsed.png" id="cn-collapsed-'.$row->notlog_id.'" style="display:block;vertical-align:baseline;"/>'.
 154+ '<img src="'.$wgExtensionAssetsPath.'/CentralNotice/uncollapsed.png" id="cn-uncollapsed-'.$row->notlog_id.'" style="display:none;vertical-align:baseline;"/>'.
 155+ '</a>';
 156+ }
 157+ $htmlOut .= Xml::closeElement( 'td' );
 158+ $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top', 'class' => 'primary' ),
155159 $wgLang->date( $row->notlog_timestamp ) . ' ' . $wgLang->time( $row->notlog_timestamp )
156160 );
157 - $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ),
 161+ $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top', 'class' => 'primary' ),
158162 $userLink
159163 );
160 - $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ),
 164+ $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top', 'class' => 'primary' ),
161165 $row->notlog_action
162166 );
163 - $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ),
 167+ $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top', 'class' => 'primary' ),
164168 $campaignLink
165169 );
 170+ $htmlOut .= Xml::tags( 'td', array(),
 171+ '&nbsp;'
 172+ );
166173
167 - // End banner row
 174+ // End log entry primary row
168175 $htmlOut .= Xml::closeElement( 'tr' );
169176
 177+ if ( $row->notlog_action !== 'removed' ) {
 178+ // Begin log entry secondary row
 179+ $htmlOut .= Xml::openElement( 'tr', array( 'id' => 'cn-log-details-'.$row->notlog_id, 'style' => 'display:none;' ) );
 180+
 181+ $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ),
 182+ '&nbsp;' // force a table cell in older browsers
 183+ );
 184+ $htmlOut .= Xml::openElement( 'td', array( 'valign' => 'top', 'colspan' => '5' ) );
 185+ if ( $row->notlog_action == 'created' ) {
 186+ $htmlOut .= $this->showInitialSettings( $row );
 187+ } else if ( $row->notlog_action == 'modified' ) {
 188+ $htmlOut .= $this->showChanges( $row );
 189+ }
 190+ $htmlOut .= Xml::closeElement( 'td' );
 191+
 192+ // End log entry primary row
 193+ $htmlOut .= Xml::closeElement( 'tr' );
 194+ }
 195+
170196 return $htmlOut;
171197 }
172198
 199+ function showInitialSettings( $row ) {
 200+ global $wgLang;
 201+ $details = '';
 202+ $details .= '<b>'.wfMsg ( 'centralnotice-start-date' ).':</b> '.
 203+ $wgLang->date( $row->notlog_end_start ).' '.
 204+ $wgLang->time( $row->notlog_end_start )."<br/>";
 205+ $details .= '<b>'.wfMsg ( 'centralnotice-end-date' ).':</b> '.
 206+ $wgLang->date( $row->notlog_end_end ).' '.
 207+ $wgLang->time( $row->notlog_end_end )."<br/>";
 208+ $details .= '<b>'.wfMsg ( 'centralnotice-projects' ).':</b> '.
 209+ $row->notlog_end_projects."<br/>";
 210+ $language_count = count( explode ( ', ', $row->notlog_end_languages ) );
 211+ $languageList = '';
 212+ if ( $language_count > 15 ) {
 213+ $languageList = wfMsg ( 'centralnotice-multiple-languages', $language_count );
 214+ } elseif ( $language_count > 0 ) {
 215+ $languageList = $row->notlog_end_languages;
 216+ }
 217+ $details .= '<b>'.wfMsg ( 'centralnotice-languages' ).':</b> '.
 218+ $languageList."<br/>";
 219+ $details .= '<b>'.wfMsg ( 'centralnotice-geo' ).':</b> ';
 220+ $details .= $row->notlog_end_geo ? 'on' : 'off';
 221+ $details .= "<br/>";
 222+ if ( $row->notlog_end_geo ) {
 223+ $country_count = count( explode ( ', ', $row->notlog_end_countries ) );
 224+ $countryList = '';
 225+ if ( $country_count > 20 ) {
 226+ $countryList = wfMsg ( 'centralnotice-multiple-countries', $country_count );
 227+ } elseif ( $country_count > 0 ) {
 228+ $countryList = $row->notlog_end_countries;
 229+ }
 230+ $details .= '<b>'.wfMsg ( 'centralnotice-countries' ).':</b> '.
 231+ $countryList."<br/>";
 232+ }
 233+ return $details;
 234+ }
 235+
 236+ function showChanges( $row ) {
 237+ global $wgLang;
 238+ $details = '';
 239+ if ( $row->notlog_begin_start !== $row->notlog_end_start ) {
 240+ $details .= '<b>'.wfMsg ( 'centralnotice-start-date' ).':</b> ';
 241+ $details .= wfMsg ( 'centralnotice-changed',
 242+ $wgLang->date( $row->notlog_begin_start ).' '.$wgLang->time( $row->notlog_begin_start ),
 243+ $wgLang->date( $row->notlog_end_start ).' '.$wgLang->time( $row->notlog_end_start ) )."<br/>";
 244+ }
 245+ if ( $row->notlog_begin_end !== $row->notlog_end_end ) {
 246+ $details .= '<b>'.wfMsg ( 'centralnotice-end-date' ).':</b> ';
 247+ $details .= wfMsg ( 'centralnotice-changed',
 248+ $wgLang->date( $row->notlog_begin_end ).' '.$wgLang->time( $row->notlog_begin_end ),
 249+ $wgLang->date( $row->notlog_end_end ).' '.$wgLang->time( $row->notlog_end_end ) )."<br/>";
 250+ }
 251+ $details .= $this->testBooleanChange( 'enabled', $row );
 252+ $details .= $this->testBooleanChange( 'preferred', $row );
 253+ $details .= $this->testBooleanChange( 'locked', $row );
 254+ $details .= $this->testBooleanChange( 'geo', $row );
 255+ $details .= $this->testSetChange( 'projects', $row );
 256+ $details .= $this->testSetChange( 'languages', $row );
 257+ $details .= $this->testSetChange( 'countries', $row );
 258+ if ( $row->notlog_begin_banners !== $row->notlog_end_banners ) {
 259+ // Show changes to banner weights and assignment
 260+ $beginBannersObject = json_decode( $row->notlog_begin_banners );
 261+ $endBannersObject = json_decode( $row->notlog_end_banners );
 262+ $beginBanners = array();
 263+ $endBanners = array();
 264+ foreach( $beginBannersObject as $key => $weight ) {
 265+ $beginBanners[$key] = $key.' ('.$weight.')';
 266+ }
 267+ foreach( $endBannersObject as $key => $weight ) {
 268+ $endBanners[$key] = $key.' ('.$weight.')';
 269+ }
 270+ $details .= '<b>'.wfMsg ( 'centralnotice-templates' ).':</b> ';
 271+ if ( $beginBanners ) {
 272+ $before = implode( ', ', $beginBanners );
 273+ } else {
 274+ $before = wfMsg ( 'centralnotice-no-assignments' );
 275+ }
 276+ if ( $endBanners ) {
 277+ $after = implode( ', ', $endBanners );
 278+ } else {
 279+ $after = wfMsg ( 'centralnotice-no-assignments' );
 280+ }
 281+ $details .= wfMsg ( 'centralnotice-changed', $before, $after) . "<br/>";
 282+ }
 283+ return $details;
 284+ }
 285+
 286+ private function testBooleanChange( $param, $row ) {
 287+ $result = '';
 288+ $beginField = 'notlog_begin_'.$param;
 289+ $endField = 'notlog_end_'.$param;
 290+ if ( $row->$beginField !== $row->$endField ) {
 291+ $result .= '<b>'.wfMsg ( 'centralnotice-'.$param ).':</b> ';
 292+ $result .= wfMsg ( 'centralnotice-changed',
 293+ ( $row->$beginField ? wfMsg ( 'centralnotice-on' ) : wfMsg ( 'centralnotice-off' ) ),
 294+ ( $row->$endField ? wfMsg ( 'centralnotice-on' ) : wfMsg ( 'centralnotice-off' ) ) )."<br/>";
 295+ }
 296+ return $result;
 297+ }
 298+
 299+ private function testSetChange( $param, $row ) {
 300+ $result = '';
 301+ $beginField = 'notlog_begin_'.$param;
 302+ $endField = 'notlog_end_'.$param;
 303+ if ( $row->$beginField !== $row->$endField ) {
 304+ $beginSet = array();
 305+ $endSet = array();
 306+ if ( $row->$beginField ) {
 307+ $beginSet = explode( ', ', $row->$beginField );
 308+ }
 309+ if ( $row->$endField ) {
 310+ $endSet = explode( ', ', $row->$endField );
 311+ }
 312+ $added = array_diff( $endSet, $beginSet );
 313+ $removed = array_diff( $beginSet, $endSet );
 314+ $result .= '<b>'.wfMsg ( 'centralnotice-'.$param ).':</b> ';
 315+ if ( $added ) {
 316+ $result .= wfMsg ( 'centralnotice-added', implode( ', ', $added ) );
 317+ if ( $removed ) {
 318+ $result .= '; ';
 319+ } else {
 320+ $result .= '<br/>';
 321+ }
 322+ }
 323+ if ( $removed ) {
 324+ $result .= wfMsg ( 'centralnotice-removed', implode( ', ', $removed ) ).'<br/>';
 325+ }
 326+ }
 327+ return $result;
 328+ }
 329+
173330 /**
174331 * Specify table headers
175332 */
176333 function getStartBody() {
177334 $htmlOut = '';
178 - $htmlOut .= Xml::openElement( 'table', array( 'id' => 'cn-campaign-logs', 'cellpadding' => 4 ) );
 335+ $htmlOut .= Xml::openElement( 'table', array( 'id' => 'cn-campaign-logs', 'cellpadding' => 3 ) );
179336 $htmlOut .= Xml::openElement( 'tr' );
180 - $htmlOut .= Xml::element( 'th', array( 'align' => 'left' ),
 337+ $htmlOut .= Xml::element( 'th', array( 'style' => 'width: 20px;' ) );
 338+ $htmlOut .= Xml::element( 'th', array( 'align' => 'left', 'style' => 'width: 130px;' ),
181339 wfMsg ( 'centralnotice-timestamp' )
182340 );
183 - $htmlOut .= Xml::element( 'th', array( 'align' => 'left' ),
 341+ $htmlOut .= Xml::element( 'th', array( 'align' => 'left', 'style' => 'width: 130px;' ),
184342 wfMsg ( 'centralnotice-user' )
185343 );
186 - $htmlOut .= Xml::element( 'th', array( 'align' => 'left' ),
 344+ $htmlOut .= Xml::element( 'th', array( 'align' => 'left', 'style' => 'width: 130px;' ),
187345 wfMsg ( 'centralnotice-action' )
188346 );
189 - $htmlOut .= Xml::element( 'th', array( 'align' => 'left' ),
 347+ $htmlOut .= Xml::element( 'th', array( 'align' => 'left', 'style' => 'width: 130px;' ),
190348 wfMsg ( 'centralnotice-notice' )
191349 );
 350+ $htmlOut .= Xml::tags( 'td', array(),
 351+ '&nbsp;'
 352+ );
192353 $htmlOut .= Xml::closeElement( 'tr' );
193354 return $htmlOut;
194355 }
Index: trunk/extensions/CentralNotice/centralnotice.css
@@ -60,6 +60,15 @@
6161 #preferences table#cn-campaign-logs {
6262 width: auto;
6363 }
 64+#preferences table#cn-campaign-logs td.primary {
 65+ background-color: #F0F0F0;
 66+}
 67+#preferences .cn-new-value {
 68+ color: #006400;
 69+}
 70+#preferences .cn-old-value {
 71+ color: #8B0000;
 72+}
6473
6574 /* Vector-specific definitions */
6675 body.skin-vector #preferences fieldset.prefsection {
Index: trunk/extensions/CentralNotice/CentralNotice.i18n.php
@@ -39,7 +39,9 @@
4040 'centralnotice-show-notices' => 'Show campaigns',
4141 'centralnotice-list-templates' => 'List banners',
4242 'centralnotice-multiple-projects' => 'Multiple ($1)',
43 - 'centralnotice-multiple-languages' => 'Multiple ($1)', 'centralnotice-all-projects' => 'All projects',
 43+ 'centralnotice-multiple-languages' => 'Multiple ($1)',
 44+ 'centralnotice-multiple-countries' => 'Multiple ($1)',
 45+ 'centralnotice-all-projects' => 'All projects',
4446 'centralnotice-language-listing' => '$1 - $2',
4547 'centralnotice-translations' => 'Translations',
4648 'centralnotice-translate-to' => 'Translate to',
@@ -131,7 +133,7 @@
132134 'centralnotice-banner-fundraising' => 'This is a fundraising banner',
133135 'centralnotice-banner-fundraising-help' => 'Create an anchor tag in the banner body with id="cn_fundraising_link" and enter one or more landing pages below, for example, "JimmyAppeal01". The href of the link will be constructed automatically.',
134136 'centralnotice-banner-landing-pages' => 'Landing pages (comma-separated):',
135 - 'centralnotice-geotargeted' => 'Geotargeted',
 137+ 'centralnotice-geo' => 'Geotargeted',
136138 'centralnotice-countries' => 'Countries',
137139 'centralnotice-allocation' => 'Allocation',
138140 'centralnotice-view-allocation' => 'View banner allocation',
@@ -149,6 +151,13 @@
150152 'centralnotice-timestamp' => 'Timestamp',
151153 'centralnotice-user' => 'User',
152154 'centralnotice-action' => 'Action',
 155+ 'centralnotice-changed' => 'Changed from <span class="cn-old-value">$1</span> to <span class="cn-new-value">$2</span>',
 156+ 'centralnotice-on' => 'on',
 157+ 'centralnotice-off' => 'off',
 158+ 'centralnotice-added' => 'Added <span class="cn-new-value">$1</span>',
 159+ 'centralnotice-removed' => 'Removed <span class="cn-old-value">$1</span>',
 160+ 'centralnotice-banners-changed' => 'Banner assignments were changed',
 161+ 'centralnotice-no-assignments' => 'no banners assigned',
153162 );
154163
155164 /** Message documentation (Message documentation)
@@ -190,7 +199,8 @@
191200 'centralnotice-translate-heading' => 'Fieldset label. $1 is a name of a template.',
192201 'centralnotice-manage' => 'Title of sub-page of [http://meta.wikimedia.org/wiki/Special:CentralNotice Manage Central Notice] special page.',
193202 'centralnotice-add' => '{{Identical|Add}}',
194 - 'centralnotice-multiple-languages' => '$1 is the number of languages in which the notice is available. It is always greater than 3. This message in the column "languages" in the table.',
 203+ 'centralnotice-multiple-languages' => '$1 is the number of languages in which the notice is available. It is always greater than 3. This message is in the column "languages" in the table.',
 204+ 'centralnotice-multiple-languages' => '$1 is the number of countries in which the notice is available.',
195205 'centralnotice-all-projects' => 'Data entry in the column "Projects" in the table on the [[m:Special:CentralNotice|Central Notice]] special page.',
196206 'centralnotice-language-listing' => 'A language listing for the language multi-select box. First parameter is the language code. Second parameter is the name of the language.',
197207 'centralnotice-translations' => '{{Identical|Translation}}',
@@ -219,7 +229,7 @@
220230 'centralnotice-insert' => '{{Identical|Insert}}',
221231 'centralnotice-hide-button' => 'See also {{msg|Centralnotice-expand-button}}.',
222232 'centralnotice-expand-button' => 'See also {{msg|Centralnotice-hide-button}}.',
223 - 'centralnotice-geotargeted' => 'Used to label a checkbox which activates geotargeting',
 233+ 'centralnotice-geo' => 'Used to label a checkbox which activates geotargeting',
224234 'centralnotice-allocation' => 'Tab for sub-page [[m:BannerAllocation|banner allocation]] to central notice special page.',
225235 'centralnotice-view-allocation' => 'Heading of dialog box on [[m:Special:BannerAllocation|banner allocation]] special page.',
226236 'centralnotice-allocation-instructions' => 'Dialog box instructions on [[m:Special:BannerAllocation|banner allocation]] special page.',
@@ -236,6 +246,7 @@
237247 'centralnotice-logs' => 'Label for tab which displays a log of changes',
238248 'centralnotice-user' => '{{Identical|User}}',
239249 'centralnotice-action' => '{{Identical|Action}}',
 250+ 'centralnotice-no-assignments' => 'Appears in the middle of a sentence; should be all lower case.',
240251 );
241252
242253 /** Afrikaans (Afrikaans)
@@ -551,7 +562,7 @@
552563 'centralnotice-banner-fundraising' => 'هذا هو شعار جمع التبرعات.',
553564 'centralnotice-banner-fundraising-help' => 'إنشاء علامة ارتساء في نص الشعار مع معرف = "cn_fundraising_link"، وقم بإدخال واحد أو أكثر الصفحات المقصودة أدناه، على سبيل المثال، "JimmyAppeal01". سيتم تعبيد href الارتباط تلقائياً.',
554565 'centralnotice-banner-landing-pages' => 'الصفحات المقصودة (مفصولة بفواصل) :',
555 - 'centralnotice-geotargeted' => 'الاستهداف الجغرافي',
 566+ 'centralnotice-geo' => 'الاستهداف الجغرافي',
556567 'centralnotice-countries' => 'الدول',
557568 'centralnotice-allocation' => 'تخصيص',
558569 'centralnotice-view-allocation' => 'موقع عرض الشعار',
@@ -928,7 +939,7 @@
929940 'centralnotice-banner-type' => 'Баннер төрө:',
930941 'centralnotice-banner-hidable' => 'Статик/йәшерелеүсән',
931942 'centralnotice-banner-collapsible' => 'Төрөлөүсән',
932 - 'centralnotice-geotargeted' => 'Геобәйләнеш',
 943+ 'centralnotice-geo' => 'Геобәйләнеш',
933944 'centralnotice-countries' => 'Илдәр',
934945 'centralnotice-allocation' => 'Урынлашыу',
935946 'centralnotice-view-allocation' => 'Баннерҙарҙың урынлашыуын ҡарау',
@@ -1111,7 +1122,7 @@
11121123 'centralnotice-banner-fundraising' => 'Гэта банэр для збору ахвяраваньняў',
11131124 'centralnotice-banner-fundraising-help' => 'Стварыце тэг спасылкі ў зьмесьце банэра з id="cn_fundraising_link" і пазначце адну ці некалькі мэтавых старонак, напрыклад, «JimmyAppeal01». Атрыбут href будзе створаны аўтаматычна.',
11141125 'centralnotice-banner-landing-pages' => 'Мэтавыя старонкі (праз коску):',
1115 - 'centralnotice-geotargeted' => 'Геаграфічная прывязка',
 1126+ 'centralnotice-geo' => 'Геаграфічная прывязка',
11161127 'centralnotice-countries' => 'Краіны',
11171128 'centralnotice-allocation' => 'Прызначэньне',
11181129 'centralnotice-view-allocation' => 'Паказаць разьмяшчэньне банэра',
@@ -1325,7 +1336,7 @@
13261337 'centralnotice-banner-type' => 'ব্যানারের ধরন:',
13271338 'centralnotice-banner-hidable' => 'স্ট্যাটিক/লুকানোযোগ্য',
13281339 'centralnotice-banner-collapsible' => 'ভাঁজযোগ্য',
1329 - 'centralnotice-geotargeted' => 'স্থানাংকলক্ষ্য',
 1340+ 'centralnotice-geo' => 'স্থানাংকলক্ষ্য',
13301341 'centralnotice-countries' => 'দেশ',
13311342 'centralnotice-languages' => 'ভাষা',
13321343 'centralnotice-projects' => 'প্রকল্প',
@@ -1479,7 +1490,7 @@
14801491 'centralnotice-banner-fundraising' => "Ur giton dastum arc'hant eo hemañ",
14811492 'centralnotice-banner-fundraising-help' => 'Krouiñ ur valizenn eoriañ e-korf ar giton gant id = "cn_fundraising_link" ha merkit ur bajenn dal pe meur a hini a-is, da skouer, "JimmyAppeal01". Savet e vo href al liamm ent emgefre.',
14821493 'centralnotice-banner-landing-pages' => 'Pajennoù pal (dispartiet dre skejoù) :',
1483 - 'centralnotice-geotargeted' => "Geolec'hiet",
 1494+ 'centralnotice-geo' => "Geolec'hiet",
14841495 'centralnotice-countries' => 'Broioù',
14851496 'centralnotice-allocation' => 'Skorenn',
14861497 'centralnotice-view-allocation' => 'Gwelout skorenn ar giton',
@@ -1622,7 +1633,7 @@
16231634 'centralnotice-banner-fundraising' => 'Ovo je plakat za donacije',
16241635 'centralnotice-banner-fundraising-help' => 'Pravi oznaku za uklapanje u tijelo banera sa id="cn_fundraising_link" i unosi jedan ili više ciljnih članaka ispod, naprimjer, "JimmyAppeal01". Oznaka href za link će biti automatski napravljen.',
16251636 'centralnotice-banner-landing-pages' => 'Ciljne stranice (razdvojene zarezima):',
1626 - 'centralnotice-geotargeted' => 'Geociljano',
 1637+ 'centralnotice-geo' => 'Geociljano',
16271638 'centralnotice-countries' => 'Države',
16281639 'centralnotice-allocation' => 'Raspoređivanje',
16291640 'centralnotice-view-allocation' => 'Pogledaj dodjelu obavještenja',
@@ -1767,7 +1778,7 @@
17681779 'centralnotice-banner-type' => 'Tipus de pancarta:',
17691780 'centralnotice-banner-hidable' => 'Estàtic/Amagable',
17701781 'centralnotice-banner-collapsible' => 'Plegable',
1771 - 'centralnotice-geotargeted' => 'Geolocalitzat',
 1782+ 'centralnotice-geo' => 'Geolocalitzat',
17721783 'centralnotice-countries' => 'Països',
17731784 'centralnotice-allocation' => 'Assignació',
17741785 'centralnotice-view-allocation' => 'Veure la disposició de la pancarta',
@@ -1937,7 +1948,7 @@
19381949 'centralnotice-banner-fundraising' => 'Tohle je banner pro fundraising',
19391950 'centralnotice-banner-fundraising-help' => 'V těle banneru vytvořte odkaz s id="cn_fundraising_link" a níže zadejte jednu nebo více cílových stránek, například „JimmyAppeal01“. U odkazu se href vyplní automaticky.',
19401951 'centralnotice-banner-landing-pages' => 'Cílové stránky (oddělené čárkou):',
1941 - 'centralnotice-geotargeted' => 'Zeměpisně cílené',
 1952+ 'centralnotice-geo' => 'Zeměpisně cílené',
19421953 'centralnotice-countries' => 'Země',
19431954 'centralnotice-allocation' => 'Přidělení',
19441955 'centralnotice-view-allocation' => 'Zobrazit přidělení bannerů',
@@ -2284,7 +2295,7 @@
22852296 'centralnotice-banner-fundraising' => 'Dies ist ein Fundraisingbanner',
22862297 'centralnotice-banner-fundraising-help' => 'Ein Ankerelement im Korpus des Banners mit id="cn_fundraising_link" erstellen sowie eine oder mehrere Zielseiten, wie bspw. "JimmysAufruf01". Das href-Attribut des Links wird automatisch erstellt.',
22872298 'centralnotice-banner-landing-pages' => 'Zielseiten (durch Kommata getrennt):',
2288 - 'centralnotice-geotargeted' => 'Geo-anvisiert',
 2299+ 'centralnotice-geo' => 'Geo-anvisiert',
22892300 'centralnotice-countries' => 'Staaten',
22902301 'centralnotice-allocation' => 'Anordnung',
22912302 'centralnotice-view-allocation' => 'Anordnung der Vorlagen ansehen',
@@ -2523,7 +2534,7 @@
25242535 'centralnotice-banner-type' => 'Chórgojowy typ:',
25252536 'centralnotice-banner-hidable' => 'Statiski/Chowajobny',
25262537 'centralnotice-banner-collapsible' => 'Fałdujobny',
2527 - 'centralnotice-geotargeted' => 'Geolokalizěrowany',
 2538+ 'centralnotice-geo' => 'Geolokalizěrowany',
25282539 'centralnotice-countries' => 'Kraje',
25292540 'centralnotice-allocation' => 'Zrědowanje',
25302541 'centralnotice-view-allocation' => 'Zrědowanje banarja se woglědaś',
@@ -2674,7 +2685,7 @@
26752686 'centralnotice-banner-type' => 'Τύπος banner:',
26762687 'centralnotice-banner-hidable' => 'Στατικό / Αποκρύψιμο',
26772688 'centralnotice-banner-collapsible' => 'Πτυσσόμενο',
2678 - 'centralnotice-geotargeted' => 'Γεωγραφικά στοχοποιημένο',
 2689+ 'centralnotice-geo' => 'Γεωγραφικά στοχοποιημένο',
26792690 'centralnotice-countries' => 'Χώρες',
26802691 'centralnotice-allocation' => 'Κατανομή',
26812692 'centralnotice-view-allocation' => 'Δείτε κατανομή banner',
@@ -2813,7 +2824,7 @@
28142825 'centralnotice-banner-type' => 'Rubanda tipo:',
28152826 'centralnotice-banner-hidable' => 'Statika/Kaŝebla',
28162827 'centralnotice-banner-collapsible' => 'Maletendebla',
2817 - 'centralnotice-geotargeted' => 'Ŝalti geografian lokigadon',
 2828+ 'centralnotice-geo' => 'Ŝalti geografian lokigadon',
28182829 'centralnotice-countries' => 'Landoj',
28192830 'centralnotice-allocation' => 'Asigno',
28202831 'centralnotice-view-allocation' => 'Vidi asignon de reklamrubando',
@@ -2962,7 +2973,7 @@
29632974 'centralnotice-banner-hidable' => 'Estático/Ocultable',
29642975 'centralnotice-banner-collapsible' => 'Colapsable',
29652976 'centralnotice-banner-fundraising' => 'Esto es un anuncio de la campaña de recaudación de fondos',
2966 - 'centralnotice-geotargeted' => 'Geosegmentado',
 2977+ 'centralnotice-geo' => 'Geosegmentado',
29672978 'centralnotice-countries' => 'Países',
29682979 'centralnotice-allocation' => 'Asignación',
29692980 'centralnotice-view-allocation' => 'Asignación de visualización de pancarta',
@@ -3084,7 +3095,7 @@
30853096 'centralnotice-banner-logged-in' => 'Sisseloginud kasutajatele',
30863097 'centralnotice-banner-type' => 'Malli tüüp:',
30873098 'centralnotice-banner-collapsible' => 'Kokkulükatav',
3088 - 'centralnotice-geotargeted' => 'Kohamääranguga',
 3099+ 'centralnotice-geo' => 'Kohamääranguga',
30893100 'centralnotice-countries' => 'Riigid',
30903101 'centralnotice-allocation' => 'Ülesseadmine',
30913102 'centralnotice-view-allocation' => 'Mallide ülesseade vaatamine',
@@ -3287,7 +3298,7 @@
32883299 'centralnotice-banner-type' => 'نوع پرچم:',
32893300 'centralnotice-banner-hidable' => 'ایستا/نهفتنی',
32903301 'centralnotice-banner-collapsible' => 'متلاشی‌پذیر',
3291 - 'centralnotice-geotargeted' => 'دارای تخصیص جغرفیایی',
 3302+ 'centralnotice-geo' => 'دارای تخصیص جغرفیایی',
32923303 'centralnotice-countries' => 'کشورها',
32933304 'centralnotice-allocation' => 'تخصیص',
32943305 'centralnotice-view-allocation' => 'نمایش تخصیص آگهی',
@@ -3429,7 +3440,7 @@
34303441 'centralnotice-banner-type' => 'Bannerityyppi',
34313442 'centralnotice-banner-hidable' => 'Pysyvä/Piilotettava',
34323443 'centralnotice-banner-collapsible' => 'Piilotettava',
3433 - 'centralnotice-geotargeted' => 'Maantieteellisesti suunnattu',
 3444+ 'centralnotice-geo' => 'Maantieteellisesti suunnattu',
34343445 'centralnotice-countries' => 'Maat',
34353446 'centralnotice-allocation' => 'Jakaminen',
34363447 'centralnotice-view-allocation' => 'Näytä bannerin jakaminen',
@@ -3580,7 +3591,7 @@
35813592 'centralnotice-banner-fundraising' => "Il s'agit d'une bannière de levée de fonds",
35823593 'centralnotice-banner-fundraising-help' => 'Créer une balise d\'ancrage dans le corps de la bannière avec id = "cn_fundraising_link" et entrez un ou plusieurs pages de destination ci-dessous, par exemple, "JimmyAppeal01". Le href du lien sera construit automatiquement.',
35833594 'centralnotice-banner-landing-pages' => 'Pages de destination (séparées par des virgules):',
3584 - 'centralnotice-geotargeted' => 'Géolocalisé',
 3595+ 'centralnotice-geo' => 'Géolocalisé',
35853596 'centralnotice-countries' => 'Pays',
35863597 'centralnotice-allocation' => 'Allocation',
35873598 'centralnotice-view-allocation' => 'Voir la disposition de bannière',
@@ -3719,7 +3730,7 @@
37203731 'centralnotice-banner-type' => 'Tipo de baniére :',
37213732 'centralnotice-banner-hidable' => 'Statica / cachâbla',
37223733 'centralnotice-banner-collapsible' => 'Rèductibla',
3723 - 'centralnotice-geotargeted' => 'G·eolocalisâ',
 3734+ 'centralnotice-geo' => 'G·eolocalisâ',
37243735 'centralnotice-countries' => 'Payis',
37253736 'centralnotice-allocation' => 'Alocacion',
37263737 'centralnotice-view-allocation' => 'Vêre l’alocacion de baniére',
@@ -3867,7 +3878,7 @@
38683879 'centralnotice-banner-fundraising' => 'Este é un cartel da recadación de fondos',
38693880 'centralnotice-banner-fundraising-help' => 'Cree unha etiqueta de largo no corpo do cartel con id="cn_fundraising_link" e insira a continuación unha ou máis páxina de destino; por exemplo, "JimmyAppeal01". O parámetro href da ligazón construirase automaticamente.',
38703881 'centralnotice-banner-landing-pages' => 'Páxinas de destino (separadas por comas):',
3871 - 'centralnotice-geotargeted' => 'Localizado xeograficamente',
 3882+ 'centralnotice-geo' => 'Localizado xeograficamente',
38723883 'centralnotice-countries' => 'Países',
38733884 'centralnotice-allocation' => 'Asignación',
38743885 'centralnotice-view-allocation' => 'Ollar a asignación do modelo',
@@ -4030,7 +4041,7 @@
40314042 'centralnotice-banner-type' => 'Bannertyp:',
40324043 'centralnotice-banner-hidable' => 'Statisch/Uusbländbar',
40334044 'centralnotice-banner-collapsible' => 'Yyklappbar',
4034 - 'centralnotice-geotargeted' => 'Geo-aavisiert',
 4045+ 'centralnotice-geo' => 'Geo-aavisiert',
40354046 'centralnotice-countries' => 'Länder',
40364047 'centralnotice-allocation' => 'Zuewysig',
40374048 'centralnotice-view-allocation' => 'Aaornig vu dr Banner aaluege',
@@ -4174,7 +4185,7 @@
41754186 'centralnotice-banner-fundraising' => 'זוהי כרזת התרמה',
41764187 'centralnotice-banner-fundraising-help' => 'נא ליצור תג עוגן בגוף הכּרזה עם id="cn_fundraising_link"‎ ולהזין דף נחיתה אחד או יותר בהמשך, למשל "JimmyAppeal01". ערך ה־href של הקישור ייבנה באופן אוטומטי.',
41774188 'centralnotice-banner-landing-pages' => 'דפי נחיתה (מופרדים בפסיקים):',
4178 - 'centralnotice-geotargeted' => 'ממוקד גאוגרפית',
 4189+ 'centralnotice-geo' => 'ממוקד גאוגרפית',
41794190 'centralnotice-countries' => 'מדינות',
41804191 'centralnotice-allocation' => 'הקצאה',
41814192 'centralnotice-view-allocation' => 'צפייה בהקצאת הבאנר',
@@ -4334,7 +4345,7 @@
43354346 'centralnotice-banner-type' => 'Tip obavijesti:',
43364347 'centralnotice-banner-hidable' => 'Statični/Dinamični',
43374348 'centralnotice-banner-collapsible' => 'Moguće sakriti',
4338 - 'centralnotice-geotargeted' => 'Geociljano',
 4349+ 'centralnotice-geo' => 'Geociljano',
43394350 'centralnotice-countries' => 'Države',
43404351 'centralnotice-allocation' => 'Dodjela',
43414352 'centralnotice-view-allocation' => 'Prikaži raspodjelu obavijesti',
@@ -4471,7 +4482,7 @@
44724483 'centralnotice-banner-type' => 'Chorhojowy typ:',
44734484 'centralnotice-banner-hidable' => 'Statiski/Chowajomny',
44744485 'centralnotice-banner-collapsible' => 'Fałdujomny',
4475 - 'centralnotice-geotargeted' => 'Geolokalizowany',
 4486+ 'centralnotice-geo' => 'Geolokalizowany',
44764487 'centralnotice-countries' => 'Kraje',
44774488 'centralnotice-allocation' => 'Přidźělenje',
44784489 'centralnotice-view-allocation' => 'Přidźělenje chorhoje sej wobhladać',
@@ -4610,7 +4621,7 @@
46114622 'centralnotice-banner-type' => 'Hirdetés típusa:',
46124623 'centralnotice-banner-hidable' => 'Statikus/elrejthető',
46134624 'centralnotice-banner-collapsible' => 'Becsukható',
4614 - 'centralnotice-geotargeted' => 'Célzás földrajzi hely szerint',
 4625+ 'centralnotice-geo' => 'Célzás földrajzi hely szerint',
46154626 'centralnotice-countries' => 'Országok',
46164627 'centralnotice-allocation' => 'Kiosztás',
46174628 'centralnotice-view-allocation' => 'Hirdetéskiosztás megtekintése',
@@ -4751,7 +4762,7 @@
47524763 'centralnotice-banner-fundraising' => 'Isto es un bandiera de collecta de fundos',
47534764 'centralnotice-banner-fundraising-help' => 'Crea un etiquetta de ancora in le corpore del bandiera con id="cn_fundraising_link" e entra un o plus paginas de arrivata hic infra, per exemplo "AppelloJimmy01". Le "href" del ligamine essera construite automaticamente.',
47544765 'centralnotice-banner-landing-pages' => 'Paginas de arrivata (separate per commas):',
4755 - 'centralnotice-geotargeted' => 'Localisation geographic',
 4766+ 'centralnotice-geo' => 'Localisation geographic',
47564767 'centralnotice-countries' => 'Paises',
47574768 'centralnotice-allocation' => 'Allocation',
47584769 'centralnotice-view-allocation' => 'Vider allocation de bandieras',
@@ -4898,7 +4909,7 @@
48994910 'centralnotice-banner-type' => 'Jenis panji:',
49004911 'centralnotice-banner-hidable' => 'Statis/Dapat disembunyikan',
49014912 'centralnotice-banner-collapsible' => 'Dapat dibuka',
4902 - 'centralnotice-geotargeted' => 'Ditargetgeokan',
 4913+ 'centralnotice-geo' => 'Ditargetgeokan',
49034914 'centralnotice-countries' => 'Negara',
49044915 'centralnotice-allocation' => 'Alokasi',
49054916 'centralnotice-view-allocation' => 'Lihat alokasi pengumuman',
@@ -5231,7 +5242,7 @@
52325243 'centralnotice-banner-hidable' => '固定/非表示可',
52335244 'centralnotice-banner-collapsible' => '折りたたみ',
52345245 'centralnotice-banner-fundraising' => 'これは資金調達のバナーです',
5235 - 'centralnotice-geotargeted' => '対象地域',
 5246+ 'centralnotice-geo' => '対象地域',
52365247 'centralnotice-countries' => '国',
52375248 'centralnotice-allocation' => '割り当て',
52385249 'centralnotice-view-allocation' => 'テンプレートの割り当てを表示',
@@ -5442,7 +5453,7 @@
54435454 'centralnotice-banner-type' => 'ბანერის ტიპი:',
54445455 'centralnotice-banner-hidable' => 'სტატიკური/დაფარული',
54455456 'centralnotice-banner-collapsible' => 'დასაკეცი',
5446 - 'centralnotice-geotargeted' => 'გეო-მიზნობრივი',
 5457+ 'centralnotice-geo' => 'გეო-მიზნობრივი',
54475458 'centralnotice-countries' => 'ქვეყნები',
54485459 'centralnotice-allocation' => 'განაწილება',
54495460 'centralnotice-view-allocation' => 'თარგების განაწილების ხილვა',
@@ -5544,7 +5555,7 @@
55455556 'centralnotice-banner-hidable' => 'នឹងថ្កល់/អាចលាក់បាន',
55465557 'centralnotice-banner-collapsible' => 'អាចបង្រួញបាន',
55475558 'centralnotice-banner-fundraising' => 'នេះជាបដាសំរាប់ឃោសនារៃអង្គាសប្រាក់',
5548 - 'centralnotice-geotargeted' => 'អាចកំនត់តំបន់សំរាប់បង្ហាញ',
 5559+ 'centralnotice-geo' => 'អាចកំនត់តំបន់សំរាប់បង្ហាញ',
55495560 'centralnotice-countries' => 'ប្រទេស',
55505561 'centralnotice-languages' => 'ភាសា',
55515562 'centralnotice-projects' => 'គំរោង',
@@ -5684,7 +5695,7 @@
56855696 'centralnotice-banner-type' => '배너 유형:',
56865697 'centralnotice-banner-hidable' => '정적/숨길 수 있음',
56875698 'centralnotice-banner-collapsible' => '접을 수 있음',
5688 - 'centralnotice-geotargeted' => '특정 지역을 대상으로 공지',
 5699+ 'centralnotice-geo' => '특정 지역을 대상으로 공지',
56895700 'centralnotice-countries' => '국가',
56905701 'centralnotice-allocation' => '배당',
56915702 'centralnotice-languages' => '언어',
@@ -5819,7 +5830,7 @@
58205831 'centralnotice-banner-type' => 'De Zoot Banner_Schablohn:',
58215832 'centralnotice-banner-hidable' => 'Faß udder ußschaltbaa',
58225833 'centralnotice-banner-collapsible' => 'Enklappbaa',
5823 - 'centralnotice-geotargeted' => 'Met Koodinaate op de Ääd',
 5834+ 'centralnotice-geo' => 'Met Koodinaate op de Ääd',
58245835 'centralnotice-countries' => 'Länder',
58255836 'centralnotice-allocation' => 'Verdeilong',
58265837 'centralnotice-view-allocation' => 'De Banner_Schablohne iehr Zohdeilong beloore',
@@ -5994,7 +6005,7 @@
59956006 'centralnotice-banner-hidable' => 'Statesch/Ka verstoppt ginn',
59966007 'centralnotice-banner-collapsible' => 'Aklappbar',
59976008 'centralnotice-banner-fundraising' => "Dëst ass e Banner vun enger Campagne fir Don'en ze sammelen",
5998 - 'centralnotice-geotargeted' => 'Geografesch geziilt',
 6009+ 'centralnotice-geo' => 'Geografesch geziilt',
59996010 'centralnotice-countries' => 'Länner',
60006011 'centralnotice-allocation' => 'Dispositioun',
60016012 'centralnotice-view-allocation' => 'Dispositioun vum Banner weisen',
@@ -6141,7 +6152,7 @@
61426153 'centralnotice-banner-type' => 'Vaantiep:',
61436154 'centralnotice-banner-hidable' => 'Statisch/verbergbaar',
61446155 'centralnotice-banner-collapsible' => 'inklapbaar',
6145 - 'centralnotice-geotargeted' => 'Geografische doele',
 6156+ 'centralnotice-geo' => 'Geografische doele',
61466157 'centralnotice-countries' => 'Lenj',
61476158 'centralnotice-allocation' => 'Toewiezing',
61486159 'centralnotice-view-allocation' => 'Betrach vaantoewiezing',
@@ -6227,7 +6238,7 @@
62286239 'centralnotice-banner-type' => 'Pranešimo tipas:',
62296240 'centralnotice-banner-hidable' => 'Statinis/Paslepiamas',
62306241 'centralnotice-banner-collapsible' => 'Sutraukiamas',
6231 - 'centralnotice-geotargeted' => 'Taikomas geografiškai',
 6242+ 'centralnotice-geo' => 'Taikomas geografiškai',
62326243 'centralnotice-countries' => 'Valstybės',
62336244 'centralnotice-languages' => 'Kalbos',
62346245 'centralnotice-projects' => 'Projektai',
@@ -6476,7 +6487,7 @@
64776488 'centralnotice-banner-fundraising' => 'Ова е плакат за прибирање на средства',
64786489 'centralnotice-banner-fundraising-help' => 'Создајте ознака за вкотвување во содржината на плакатот со id="cn_fundraising_link" и внесете една или повеќе целни страници, како на пр. „JimmyAppeal01“. href на врската ќе се исконструира автоматски.',
64796490 'centralnotice-banner-landing-pages' => 'Целни страници (одделени со запирки):',
6480 - 'centralnotice-geotargeted' => 'Геобележано',
 6491+ 'centralnotice-geo' => 'Геобележано',
64816492 'centralnotice-countries' => 'Земји',
64826493 'centralnotice-allocation' => 'Распределба',
64836494 'centralnotice-view-allocation' => 'Преглед на распределбата на плакати',
@@ -6621,7 +6632,7 @@
66226633 'centralnotice-banner-collapsible' => 'ചുരുക്കാവുന്നത്',
66236634 'centralnotice-banner-fundraising' => 'ഇത് ഫണ്ട്‌റൈസിങ് എഴുത്തുപട്ടയാണ്',
66246635 'centralnotice-banner-landing-pages' => 'എത്തിച്ചേരേണ്ട താളുകൾ (അങ്കുശത്താൽ വേർതിരിച്ച്):',
6625 - 'centralnotice-geotargeted' => 'ഭൂപ്രദേശങ്ങൾ ലക്ഷ്യമാക്കിയവ',
 6636+ 'centralnotice-geo' => 'ഭൂപ്രദേശങ്ങൾ ലക്ഷ്യമാക്കിയവ',
66266637 'centralnotice-countries' => 'രാജ്യങ്ങൾ',
66276638 'centralnotice-allocation' => 'വിന്യാസം',
66286639 'centralnotice-view-allocation' => 'എഴുത്തുപട്ടയ്ക്ക് അനുവദിച്ചിരിക്കുന്ന സ്ഥാനം കാണുക',
@@ -7109,7 +7120,7 @@
71107121 'centralnotice-banner-fundraising' => 'Dit is een fondsenwervingsbanner',
71117122 'centralnotice-banner-fundraising-help' => 'Maak een ankertag in de body van de banner met id="cn_fundraising_link" en voer hieronder een of meer bestemmingspagina\'s in, bijvoorbeeld "JimmyAppeal01". De href voor de verwijzing wordt automatisch geconstrueerd.',
71127123 'centralnotice-banner-landing-pages' => "Landingspagina's (kommagescheiden):",
7113 - 'centralnotice-geotargeted' => 'Geografische doelen',
 7124+ 'centralnotice-geo' => 'Geografische doelen',
71147125 'centralnotice-countries' => 'Landen',
71157126 'centralnotice-allocation' => 'Toewijzing',
71167127 'centralnotice-view-allocation' => 'Bannertoewijzing bekijken',
@@ -7336,7 +7347,7 @@
73377348 'centralnotice-banner-type' => 'Banner type:',
73387349 'centralnotice-banner-hidable' => 'Statisk/skjulbar',
73397350 'centralnotice-banner-collapsible' => 'Sammenleggbar',
7340 - 'centralnotice-geotargeted' => 'Geografisk målrettet',
 7351+ 'centralnotice-geo' => 'Geografisk målrettet',
73417352 'centralnotice-countries' => 'Land',
73427353 'centralnotice-allocation' => 'Tildeling',
73437354 'centralnotice-view-allocation' => 'Vis bannertildeling',
@@ -7625,7 +7636,7 @@
76267637 'centralnotice-banner-fundraising' => 'Baner zbiórki pieniędzy',
76277638 'centralnotice-banner-fundraising-help' => 'Utwórz znacznik kotwicy w ciele banera z id="cn_fundraising_link" i wprowadź jedną lub więcej stron docelowych, na przykład "ApelJimmiego01". Dla linku href zostanie wygenerowane automatycznie.',
76287639 'centralnotice-banner-landing-pages' => 'Strony docelowe (rozdzielone przecinkami):',
7629 - 'centralnotice-geotargeted' => 'Geograficznie nakierowane',
 7640+ 'centralnotice-geo' => 'Geograficznie nakierowane',
76307641 'centralnotice-countries' => 'Kraje',
76317642 'centralnotice-allocation' => 'Przydział',
76327643 'centralnotice-view-allocation' => 'Zobacz przydziały dla banera',
@@ -7768,7 +7779,7 @@
77697780 'centralnotice-banner-type' => 'Sòrt ëd tilèt:',
77707781 'centralnotice-banner-hidable' => 'Stàtich/Stërmàbil',
77717782 'centralnotice-banner-collapsible' => 'Strenzìbil',
7772 - 'centralnotice-geotargeted' => 'Geolocalisà',
 7783+ 'centralnotice-geo' => 'Geolocalisà',
77737784 'centralnotice-countries' => 'Pais',
77747785 'centralnotice-allocation' => 'Alocassion',
77757786 'centralnotice-view-allocation' => 'Vëdde la disposission dël tilèt',
@@ -7966,7 +7977,7 @@
79677978 'centralnotice-banner-fundraising' => 'Este é um modelo de angariação de fundos',
79687979 'centralnotice-banner-fundraising-help' => 'Crie uma âncora no corpo do modelo com id="cn_fundraising_link" e introduza abaixo uma ou mais páginas de destino. Por exemplo, "ApeloJimmy01". O parâmetro href do link será construído automaticamente.',
79697980 'centralnotice-banner-landing-pages' => 'Páginas de destino (separadas por vírgulas):',
7970 - 'centralnotice-geotargeted' => 'Com segmentação geográfica',
 7981+ 'centralnotice-geo' => 'Com segmentação geográfica',
79717982 'centralnotice-countries' => 'Países',
79727983 'centralnotice-allocation' => 'Atribuição',
79737984 'centralnotice-view-allocation' => 'Ver atribuição de modelos',
@@ -8115,7 +8126,7 @@
81168127 'centralnotice-banner-fundraising' => 'Este é um banner de angariação de fundos',
81178128 'centralnotice-banner-fundraising-help' => 'Crie uma âncora no corpo do banner com id="cn_fundraising_link" e introduza abaixo uma ou mais páginas de destino. Por exemplo, "ApeloJimmy01". O parâmetro href do link será construído automaticamente.',
81188129 'centralnotice-banner-landing-pages' => 'Páginas de destino (separadas por vírgulas):',
8119 - 'centralnotice-geotargeted' => 'Localizado geograficamente',
 8130+ 'centralnotice-geo' => 'Localizado geograficamente',
81208131 'centralnotice-countries' => 'Países',
81218132 'centralnotice-allocation' => 'Atribuição',
81228133 'centralnotice-view-allocation' => 'Ver atribuição de modelos',
@@ -8254,7 +8265,7 @@
82558266 'centralnotice-banner-type' => 'Unancha laya:',
82568267 'centralnotice-banner-hidable' => 'Ranuy/Pakana',
82578268 'centralnotice-banner-collapsible' => 'Thuñichina',
8258 - 'centralnotice-geotargeted' => 'Allpapacha taripanachasqa',
 8269+ 'centralnotice-geo' => 'Allpapacha taripanachasqa',
82598270 'centralnotice-countries' => 'Mama llaqtakuna',
82608271 'centralnotice-allocation' => 'Ñiqinchay',
82618272 'centralnotice-view-allocation' => 'Unancha ñiqinchayta qhaway',
@@ -8397,7 +8408,7 @@
83988409 'centralnotice-banner-collapsible' => 'Reductibil',
83998410 'centralnotice-banner-fundraising' => 'Acesta este un banner pentru strângerea de fonduri',
84008411 'centralnotice-banner-landing-pages' => 'Pagini de destinație (separate prin virgulă):',
8401 - 'centralnotice-geotargeted' => 'Geolocalizat',
 8412+ 'centralnotice-geo' => 'Geolocalizat',
84028413 'centralnotice-countries' => 'Țări',
84038414 'centralnotice-allocation' => 'Alocare',
84048415 'centralnotice-view-allocation' => 'Vedeți alocarea bannerului',
@@ -8539,7 +8550,7 @@
85408551 'centralnotice-banner-type' => 'Tipe de banner:',
85418552 'centralnotice-banner-hidable' => 'Stateche/Scunnibbele',
85428553 'centralnotice-banner-collapsible' => 'Collassabbele',
8543 - 'centralnotice-geotargeted' => 'Geo referenziate',
 8554+ 'centralnotice-geo' => 'Geo referenziate',
85448555 'centralnotice-countries' => 'Paìse',
85458556 'centralnotice-allocation' => 'Allocazione',
85468557 'centralnotice-view-allocation' => "Visualizze l'assignazione d'u banner",
@@ -8686,7 +8697,7 @@
86878698 'centralnotice-banner-fundraising' => 'Это баннер сбора средств',
86888699 'centralnotice-banner-fundraising-help' => 'Создайте тег ссылки в тела баннера с id="cn_fundraising_link" и укажите ниже одну или несколько целевых страниц, например, «JimmyAppeal01». Поле HREF ссылки будет создано автоматически.',
86898700 'centralnotice-banner-landing-pages' => 'Целевые страницы (через запятую):',
8690 - 'centralnotice-geotargeted' => 'Геопривязка',
 8701+ 'centralnotice-geo' => 'Геопривязка',
86918702 'centralnotice-countries' => 'Страны',
86928703 'centralnotice-allocation' => 'Распределение',
86938704 'centralnotice-view-allocation' => 'Просмотр размещения баннеров',
@@ -8822,7 +8833,7 @@
88238834 'centralnotice-banner-type' => 'Тіп банера:',
88248835 'centralnotice-banner-hidable' => 'Статічный / Сховательный',
88258836 'centralnotice-banner-collapsible' => 'Зложытельный',
8826 - 'centralnotice-geotargeted' => 'Ґеоґрафічно цілене',
 8837+ 'centralnotice-geo' => 'Ґеоґрафічно цілене',
88278838 'centralnotice-countries' => 'Країны',
88288839 'centralnotice-allocation' => 'Придїлїня',
88298840 'centralnotice-view-allocation' => 'Зобразити придїлїня баверів',
@@ -8961,7 +8972,7 @@
89628973 'centralnotice-banner-hidable' => 'Статическэй / Кистэниллэр',
89638974 'centralnotice-banner-collapsible' => 'Кыччатыллар',
89648975 'centralnotice-banner-fundraising' => 'Харчы хомуйуу бааннера',
8965 - 'centralnotice-geotargeted' => 'Сиргэ баайыы',
 8976+ 'centralnotice-geo' => 'Сиргэ баайыы',
89668977 'centralnotice-countries' => 'Дойдулар',
89678978 'centralnotice-allocation' => 'Тарҕаныыта',
89688979 'centralnotice-view-allocation' => 'Бааннердар ханна баалларын көрүү',
@@ -9194,7 +9205,7 @@
91959206 'centralnotice-banner-type' => 'බැනර වර්ගය:',
91969207 'centralnotice-banner-hidable' => 'ස්ථිතික/සැඟවිය හැකි',
91979208 'centralnotice-banner-collapsible' => 'කුඩා කළ හැකි',
9198 - 'centralnotice-geotargeted' => 'භූමි එල්ල කළ (geotargeted)',
 9209+ 'centralnotice-geo' => 'භූමි එල්ල කළ (geotargeted)',
91999210 'centralnotice-countries' => 'රටවල්',
92009211 'centralnotice-allocation' => 'වෙන්කිරීම',
92019212 'centralnotice-view-allocation' => 'බැනරයේ වෙන්කිරීම පෙන්වන්න',
@@ -9320,7 +9331,7 @@
93219332 'centralnotice-banner-type' => 'Typ oznamu:',
93229333 'centralnotice-banner-hidable' => 'Statický/skrývateľný',
93239334 'centralnotice-banner-collapsible' => 'Zbaliteľný',
9324 - 'centralnotice-geotargeted' => 'Geograficky cielený',
 9335+ 'centralnotice-geo' => 'Geograficky cielený',
93259336 'centralnotice-countries' => 'Krajiny',
93269337 'centralnotice-allocation' => 'Alokácia',
93279338 'centralnotice-view-allocation' => 'Zobraziť alokáciu oznamu',
@@ -9461,7 +9472,7 @@
94629473 'centralnotice-banner-fundraising' => 'To je donatorska pasica',
94639474 'centralnotice-banner-fundraising-help' => 'Ustvarite sidrno oznako v telesu pasice z id="cn_fundraising_link" in spodaj vnesite eno ali več ciljnih strani, na primer "JimmyAppeal01". Celotna povezava bo ustvarjena samodejno.',
94649475 'centralnotice-banner-landing-pages' => 'Ciljne strani (ločene z vejicami):',
9465 - 'centralnotice-geotargeted' => 'Geociljano',
 9476+ 'centralnotice-geo' => 'Geociljano',
94669477 'centralnotice-countries' => 'Države',
94679478 'centralnotice-allocation' => 'Dodelitev',
94689479 'centralnotice-view-allocation' => 'Ogled dodelitve pasic',
@@ -9609,7 +9620,7 @@
96109621 'centralnotice-banner-fundraising' => 'Ky është një flamur për mbledhjen e fondeve',
96119622 'centralnotice-banner-fundraising-help' => 'Krijo një spirancë tag në trup flamurin me id = "cn_fundraising_link" dhe hyjnë në një apo më shumë faqe ulje më poshtë, për shembull, "JimmyAppeal01". Href e lidhjes do të ndërtohet automatikisht.',
96129623 'centralnotice-banner-landing-pages' => 'Faqet ulje (comma-ndarë):',
9613 - 'centralnotice-geotargeted' => 'Geo-objektiv',
 9624+ 'centralnotice-geo' => 'Geo-objektiv',
96149625 'centralnotice-countries' => 'Shtetet',
96159626 'centralnotice-allocation' => 'Rregullimi',
96169627 'centralnotice-view-allocation' => 'Shikoni rregullimin e Stampës',
@@ -9990,7 +10001,7 @@
999110002 'centralnotice-banner-type' => 'Bannertyp:',
999210003 'centralnotice-banner-hidable' => 'Statisk/gömbar',
999310004 'centralnotice-banner-collapsible' => 'Hopfällbar',
9994 - 'centralnotice-geotargeted' => 'Geografiskt fokuserat',
 10005+ 'centralnotice-geo' => 'Geografiskt fokuserat',
999510006 'centralnotice-countries' => 'Länder',
999610007 'centralnotice-allocation' => 'Tilldelning',
999710008 'centralnotice-view-allocation' => 'Visa bannertilldelning',
@@ -10607,7 +10618,7 @@
1060810619 'centralnotice-banner-type' => 'Banner görnüşi:',
1060910620 'centralnotice-banner-hidable' => 'Statik/Gizlenilýän',
1061010621 'centralnotice-banner-collapsible' => 'Düýrlenýän',
10611 - 'centralnotice-geotargeted' => 'Geo-bellikli',
 10622+ 'centralnotice-geo' => 'Geo-bellikli',
1061210623 'centralnotice-countries' => 'Ýurtlar',
1061310624 'centralnotice-allocation' => 'Ýerleşiş',
1061410625 'centralnotice-view-allocation' => 'Bannerleriň ýerleşişini görkez',
@@ -10738,7 +10749,7 @@
1073910750 'centralnotice-banner-type' => 'Uri ng bandera:',
1074010751 'centralnotice-banner-hidable' => 'Hindi tumitinag/Maitatago',
1074110752 'centralnotice-banner-collapsible' => 'Maititiklop',
10742 - 'centralnotice-geotargeted' => 'Puntiryang heograpiya',
 10753+ 'centralnotice-geo' => 'Puntiryang heograpiya',
1074310754 'centralnotice-countries' => 'Mga bansa',
1074410755 'centralnotice-allocation' => 'Paglalaan',
1074510756 'centralnotice-view-allocation' => 'Tingnan ang kabahagi ng bandera',
@@ -10886,7 +10897,7 @@
1088710898 'centralnotice-banner-type' => 'Afiş türü:',
1088810899 'centralnotice-banner-hidable' => 'Statik/Gizlenebilir',
1088910900 'centralnotice-banner-collapsible' => 'Daralabilir',
10890 - 'centralnotice-geotargeted' => 'Geo-hedefli',
 10901+ 'centralnotice-geo' => 'Geo-hedefli',
1089110902 'centralnotice-countries' => 'Ülkeler',
1089210903 'centralnotice-allocation' => 'Tahsis',
1089310904 'centralnotice-view-allocation' => 'Afiş tahsisini gör',
@@ -11009,7 +11020,7 @@
1101011021 'centralnotice-banner-type' => 'Өлгенең төре:',
1101111022 'centralnotice-banner-hidable' => 'Тикторышлы/ Ябылучан',
1101211023 'centralnotice-banner-collapsible' => 'Ябылучан',
11013 - 'centralnotice-geotargeted' => 'Геоялгану',
 11024+ 'centralnotice-geo' => 'Геоялгану',
1101411025 'centralnotice-countries' => 'Илләр',
1101511026 'centralnotice-allocation' => 'Таралу',
1101611027 'centralnotice-view-allocation' => 'Өлгеләрнең таралуын карау',
@@ -11176,7 +11187,7 @@
1117711188 'centralnotice-banner-type' => 'Тип банера:',
1117811189 'centralnotice-banner-hidable' => 'Статичний / Приховуваний',
1117911190 'centralnotice-banner-collapsible' => 'Що згортається',
11180 - 'centralnotice-geotargeted' => "Геоприв'язка",
 11191+ 'centralnotice-geo' => "Геоприв'язка",
1118111192 'centralnotice-countries' => 'Країни',
1118211193 'centralnotice-allocation' => 'Розподіл',
1118311194 'centralnotice-view-allocation' => 'Переглянути розміщення банера',
@@ -11310,7 +11321,7 @@
1131111322 'centralnotice-banner-type' => 'Tipo de banner:',
1131211323 'centralnotice-banner-hidable' => 'Statico/Che se sara',
1131311324 'centralnotice-banner-collapsible' => 'Che se sara',
11314 - 'centralnotice-geotargeted' => 'Geolocalisà',
 11325+ 'centralnotice-geo' => 'Geolocalisà',
1131511326 'centralnotice-countries' => 'Paesi',
1131611327 'centralnotice-allocation' => 'Alocassion',
1131711328 'centralnotice-view-allocation' => 'Varda la disposission dei banner',
@@ -11512,7 +11523,7 @@
1151311524 'centralnotice-banner-fundraising' => 'Đây là một biểu ngữ gây quỹ',
1151411525 'centralnotice-banner-fundraising-help' => 'Tạo một thẻ neo trong phần chính của biểu ngữ có thuộc tính id="cn_fundraising_link" và nhập tên của ít nhất một trang đích ở dưới, thí dụ “JimmyAppeal01”. Thuộc tính href của liên kết sẽ được biên soạn tự động.',
1151511526 'centralnotice-banner-landing-pages' => 'Các trang đích (định giới bằng dấu phẩy):',
11516 - 'centralnotice-geotargeted' => 'Mục tiêu địa lý',
 11527+ 'centralnotice-geo' => 'Mục tiêu địa lý',
1151711528 'centralnotice-countries' => 'Quốc gia',
1151811529 'centralnotice-allocation' => 'Phân bổ',
1151911530 'centralnotice-view-allocation' => 'Xem cách phân phối bảng',
@@ -11825,7 +11836,7 @@
1182611837 'centralnotice-banner-collapsible' => '可收缩',
1182711838 'centralnotice-banner-fundraising' => '这是一个筹款横幅',
1182811839 'centralnotice-banner-landing-pages' => '登录页(逗号分隔):',
11829 - 'centralnotice-geotargeted' => '已地理定位的',
 11840+ 'centralnotice-geo' => '已地理定位的',
1183011841 'centralnotice-countries' => '国家',
1183111842 'centralnotice-allocation' => '配额',
1183211843 'centralnotice-view-allocation' => '察看横幅配额',
@@ -11968,7 +11979,7 @@
1196911980 'centralnotice-banner-type' => '橫幅類型:',
1197011981 'centralnotice-banner-hidable' => '靜態可隱藏',
1197111982 'centralnotice-banner-collapsible' => '可摺疊',
11972 - 'centralnotice-geotargeted' => '已地理定位的',
 11983+ 'centralnotice-geo' => '已地理定位的',
1197311984 'centralnotice-countries' => '國家',
1197411985 'centralnotice-allocation' => '分配',
1197511986 'centralnotice-view-allocation' => '查看橫幅分配',
Index: trunk/extensions/CentralNotice/CentralNotice.db.php
@@ -165,17 +165,15 @@
166166 $campaign['languages'] = implode( ", ", $languages );
167167 $campaign['countries'] = implode( ", ", $geo_countries );
168168
169 - $banners = CentralNoticeDB::getCampaignBanners( $row->not_id );
170 - // Throw out the stuff we don't need for campaign logging
171 - foreach ( $banners as $key => $row ) {
172 - unset( $banners[$key]['display_anon'] );
173 - unset( $banners[$key]['display_account'] );
174 - unset( $banners[$key]['fundraising'] );
175 - unset( $banners[$key]['landing_pages'] );
176 - unset( $banners[$key]['campaign'] );
 169+ $bannersIn = CentralNoticeDB::getCampaignBanners( $row->not_id );
 170+ $bannersOut = array();
 171+ // All we want are the banner names and weights
 172+ foreach ( $bannersIn as $key => $row ) {
 173+ $outKey = $bannersIn[$key]['name'];
 174+ $bannersOut[$outKey] = $bannersIn[$key]['weight'];
177175 }
178176 // Encode into a JSON string for storage
179 - $campaign['banners'] = FormatJson::encode( $banners );
 177+ $campaign['banners'] = FormatJson::encode( $bannersOut );
180178 }
181179
182180 return $campaign;
Index: trunk/extensions/CentralNotice/centralnotice.js
@@ -1,3 +1,17 @@
 2+function toggleDisplay( logId ) {
 3+ var thisCollapsed = document.getElementById( 'cn-collapsed-'+logId );
 4+ var thisUncollapsed = document.getElementById( 'cn-uncollapsed-'+logId );
 5+ var thisDetails = document.getElementById( 'cn-log-details-'+logId );
 6+ if ( thisCollapsed.style.display == "none" ) {
 7+ thisUncollapsed.style.display = "none";
 8+ thisCollapsed.style.display = "block";
 9+ thisDetails.style.display = "none";
 10+ } else {
 11+ thisCollapsed.style.display = "none";
 12+ thisUncollapsed.style.display = "block";
 13+ thisDetails.style.display = "table-row";
 14+ }
 15+}
216 function selectProjects( selectAll ) {
317 var selectBox = document.getElementById('projects[]');
418 var firstSelect = selectBox.options.length - 1;

Follow-up revisions

RevisionCommit summaryAuthorDate
r92073follow up to r92037, fixing redundant qqq messagekaldari18:13, 13 July 2011
r92224follow-up to r92037 - making log details more localizablekaldari01:00, 15 July 2011

Comments

#Comment by Siebrand (talk | contribs)   09:25, 13 July 2011

Duplicate keys in message documentation:

+        'centralnotice-multiple-languages' => '$1 is the number of languages in which the
notice is available. It is always greater than 3. This message is in the column
"languages" in the table.',
+        'centralnotice-multiple-languages' => '$1 is the number of countries in which the
notice is available.',
#Comment by Kaldari (talk | contribs)   18:13, 13 July 2011

fixed in r92073

#Comment by Awjrichards (talk | contribs)   21:53, 14 July 2011

You might consider un-hardcoding styling in showInitialSettings() and showChanges()

#Comment by Kaldari (talk | contribs)   01:01, 15 July 2011

Done in r92224.

#Comment by Seb35 (talk | contribs)   01:12, 24 July 2011

The message key 'centralnotice-banners-changed' has been introduced here but is (still) not used.

#Comment by Kaldari (talk | contribs)   01:27, 29 July 2011

Fixed in r93443.

Status & tagging log