r47449 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47448‎ | r47449 | r47450 >
Date:13:24, 18 February 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Put link from 'g-back-link' in code. Taken out of the message.
Modified paths:
  • /trunk/extensions/SocialProfile/UserGifts/SpecialGiveGift.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserGifts/SpecialRemoveGift.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserGifts/SpecialViewGift.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserGifts/SpecialViewGifts.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserGifts/UserGifts.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserGifts/UserGifts.i18n.php
@@ -27,7 +27,7 @@
2828 'g-add-message' => 'Add a message',
2929 'g-back-edit-gift' => 'Back to edit this gift',
3030 'g-back-gift-list' => 'Back to gift list',
31 - 'g-back-link' => '<a href="$1">< Back to $2\'s page</a>',
 31+ 'g-back-link' => '< Back to $2\'s page',
3232 'g-choose-file' => 'Choose file:',
3333 'g-cancel' => 'Cancel',
3434 'g-count' => '$1 has $2 {{PLURAL:$2|gift|gifts}}.',
@@ -148,7 +148,7 @@
149149 'g-add-message' => 'أضف رسالة',
150150 'g-back-edit-gift' => 'رجوع لتعديل هذه الهدية',
151151 'g-back-gift-list' => 'رجوع لقائمة الهدايا',
152 - 'g-back-link' => '<a href="$1">< رجوع إلى صفحة $2</a>',
 152+ 'g-back-link' => '< رجوع إلى صفحة $2',
153153 'g-choose-file' => 'اختر الملف:',
154154 'g-cancel' => 'إلغاء',
155155 'g-count' => '$1 يمتلك $2 {{PLURAL:$2|هدية|هدية}}.',
@@ -250,7 +250,7 @@
251251 'g-add-message' => 'أضف رسالة',
252252 'g-back-edit-gift' => 'رجوع لتعديل هذه الهدية',
253253 'g-back-gift-list' => 'رجوع لقائمة الهدايا',
254 - 'g-back-link' => '<a href="$1">< رجوع إلى صفحة $2</a>',
 254+ 'g-back-link' => '< رجوع إلى صفحة $2',
255255 'g-choose-file' => 'اختر الملف:',
256256 'g-cancel' => 'إلغاء',
257257 'g-count' => '$1 يمتلك $2 {{PLURAL:$2|هدية|هدية}}.',
@@ -354,7 +354,7 @@
355355 'g-add-message' => 'Дадаць паведамленьне',
356356 'g-back-edit-gift' => 'Вярнуцца да рэдагаваньня гэтага падарунка',
357357 'g-back-gift-list' => 'Вярнуцца да сьпісу падарункаў',
358 - 'g-back-link' => '<a href="$1">< Вярнуцца на старонку $2</a>',
 358+ 'g-back-link' => '< Вярнуцца на старонку $2',
359359 'g-choose-file' => 'Выбраць файл:',
360360 'g-cancel' => 'Адмяніць',
361361 'g-count' => '$1 мае $2 {{PLURAL:$2|падарунак|падарункі|падарункаў}}.',
@@ -458,7 +458,7 @@
459459 'g-add-message' => 'Füge eine Nachricht hinzu',
460460 'g-back-edit-gift' => 'Zurück zur Geschenkbearbeitung',
461461 'g-back-gift-list' => 'Zurück zur Geschenkeliste',
462 - 'g-back-link' => '<a href="$1">< Zurück zum Profil von $2</a>',
 462+ 'g-back-link' => '< Zurück zum Profil von $2',
463463 'g-choose-file' => 'Wähle Datei:',
464464 'g-cancel' => 'Abbrechen',
465465 'g-count' => '$1 hat $2 {{PLURAL:$2|Geschenk|Geschenke}}.',
@@ -608,7 +608,7 @@
609609 'g-add-message' => 'Agregar un mensaje',
610610 'g-back-edit-gift' => 'Regresar a editar este regalo',
611611 'g-back-gift-list' => 'Regresar a lista de regalos',
612 - 'g-back-link' => '<a href="$1">< Regresar a la página de $2</a>',
 612+ 'g-back-link' => '< Regresar a la página de $2',
613613 'g-choose-file' => 'Escoger archivo:',
614614 'g-cancel' => 'Cancelar',
615615 'g-count' => '$1 tiene $2 {{PLURAL:$2|regalo|regalos}}.',
@@ -688,7 +688,7 @@
689689 'g-add-message' => 'Lisää viesti',
690690 'g-back-edit-gift' => 'Takaisin tämän lahjan muokkaamiseen',
691691 'g-back-gift-list' => 'Takaisin lahjalistaan',
692 - 'g-back-link' => '<a href="$1">< Takaisin käyttäjän $2 sivulle</a>',
 692+ 'g-back-link' => '< Takaisin käyttäjän $2 sivulle',
693693 'g-choose-file' => 'Valitse tiedosto:',
694694 'g-cancel' => 'Peruuta',
695695 'g-count' => 'Käyttäjällä $1 on $2 {{PLURAL:$2|lahja|lahjaa}}.',
@@ -791,7 +791,7 @@
792792 'g-add-message' => 'Ajouter un message',
793793 'g-back-edit-gift' => 'Revenir à la modification de ce cadeau',
794794 'g-back-gift-list' => 'Revenir à la liste des cadeaux',
795 - 'g-back-link' => '<a href="$1">< Revenir à la page de $2</a>',
 795+ 'g-back-link' => '< Revenir à la page de $2',
796796 'g-choose-file' => 'Choisir le fichier :',
797797 'g-cancel' => 'Annuler',
798798 'g-count' => '$1 a $2 {{PLURAL:$2|cadeau|cadeaux}}.',
@@ -893,7 +893,7 @@
894894 'g-add-message' => 'Engadir unha mensaxe',
895895 'g-back-edit-gift' => 'Voltar á edición deste agasallo',
896896 'g-back-gift-list' => 'Voltar á lista de agasallos',
897 - 'g-back-link' => '<a href="$1">< Voltar á páxina de $2</a>',
 897+ 'g-back-link' => '< Voltar á páxina de $2',
898898 'g-choose-file' => 'Elixir o ficheiro:',
899899 'g-cancel' => 'Cancelar',
900900 'g-count' => '$1 ten {{PLURAL:$2|un agasallo|$2 agasallos}}.',
@@ -1002,7 +1002,7 @@
10031003 'g-add-message' => 'Fieg e Nochricht dezue',
10041004 'g-back-edit-gift' => 'Zrugg zum Bearbeite vu däm Gschänk',
10051005 'g-back-gift-list' => 'Zrugg zue dr Gschänklischt',
1006 - 'g-back-link' => '<a href="$1">< Zrugg zum Profil vu $2</a>',
 1006+ 'g-back-link' => '< Zrugg zum Profil vu $2',
10071007 'g-choose-file' => 'Wehl Datei:',
10081008 'g-cancel' => 'Abbräche',
10091009 'g-count' => '$1 het $2 {{PLURAL:$2|Gschänk|Gschänk}}.',
@@ -1103,7 +1103,7 @@
11041104 'g-add-message' => 'Adder un message',
11051105 'g-back-edit-gift' => 'Retornar verso Modificar iste dono',
11061106 'g-back-gift-list' => 'Retornar al lista de donos',
1107 - 'g-back-link' => '<a href="$1">< Retornar al pagina de $2</a>',
 1107+ 'g-back-link' => '< Retornar al pagina de $2',
11081108 'g-choose-file' => 'Selige file:',
11091109 'g-cancel' => 'Cancellar',
11101110 'g-count' => '$1 ha $2 {{PLURAL:$2|dono|donos}}.',
@@ -1212,7 +1212,7 @@
12131213 'g-add-message' => 'En Nohresch dobei donn',
12141214 'g-back-edit-gift' => 'Jangk retuur noh em Ändere för dat Jeschenk',
12151215 'g-back-gift-list' => 'Jangk retuur op de Leß met de Jeschenke',
1216 - 'g-back-link' => '<a href="$1">< Retuur noh dem $2 sing Sigg</a>',
 1216+ 'g-back-link' => '< Retuur noh dem $2 sing Sigg',
12171217 'g-choose-file' => 'Donn de Datei ußwähle:',
12181218 'g-cancel' => 'Stopp! Avbreche!',
12191219 'g-count' => '{{GENDER:$1|Dä|Dat|Dä Metmaacher}} $1 hät {{PLURAL:$2|ei Jeschengk|$2 Geschengke|kei Jeschengk}}.',
@@ -1308,7 +1308,7 @@
13091309 'giftmanager-public' => 'ëffentlech',
13101310 'giftmanager-private' => 'privat',
13111311 'g-add-message' => 'Eng Noriicht derbäisetzen',
1312 - 'g-back-link' => '<a href="$1">< Zréck op dem $2 seng Säit</a>',
 1312+ 'g-back-link' => '< Zréck op dem $2 seng Säit',
13131313 'g-choose-file' => 'Fichier wielen:',
13141314 'g-cancel' => 'Ofbriechen',
13151315 'g-current-image' => 'Aktuellt Bild',
@@ -1358,7 +1358,7 @@
13591359 'g-add-message' => 'Een bericht toevoegen',
13601360 'g-back-edit-gift' => 'Terug naar gift bewerken',
13611361 'g-back-gift-list' => 'Terug naar giftenlijst',
1362 - 'g-back-link' => '<a href="$1">< Terug naar de pagina van $2</a>',
 1362+ 'g-back-link' => '< Terug naar de pagina van $2',
13631363 'g-choose-file' => 'Bestand kiezen:',
13641364 'g-cancel' => 'Annuleren',
13651365 'g-count' => '$1 heeft $2 {{PLURAL:$2|gift|giften}}.',
@@ -1459,7 +1459,7 @@
14601460 'g-add-message' => 'Legg til ei melding',
14611461 'g-back-edit-gift' => 'Attende til endring av gåva',
14621462 'g-back-gift-list' => 'Attende til gåvelista',
1463 - 'g-back-link' => '<a href="$1">< attende til sida til $2</a>',
 1463+ 'g-back-link' => '< attende til sida til $2',
14641464 'g-choose-file' => 'Vel fil:',
14651465 'g-cancel' => 'Avrbyt',
14661466 'g-count' => '$1 har $2 {{PLURAL:$2|éi gåva|gåver}}.',
@@ -1561,7 +1561,7 @@
15621562 'g-add-message' => 'Apondre un messatge',
15631563 'g-back-edit-gift' => "Tornar a la modificacion d'aqueste present",
15641564 'g-back-gift-list' => 'Tornar a la lista dels presents',
1565 - 'g-back-link' => '<a href="$1">< Tornar a la pagina de $2</a>',
 1565+ 'g-back-link' => '< Tornar a la pagina de $2',
15661566 'g-choose-file' => 'Causir lo fichièr :',
15671567 'g-cancel' => 'Anullar',
15681568 'g-count' => '$1 a $2 {{PLURAL:$2|present|presents}}.',
@@ -1663,7 +1663,7 @@
16641664 'g-add-message' => 'Dodaj wiadomość',
16651665 'g-back-edit-gift' => 'Powrót do edycji tego prezentu',
16661666 'g-back-gift-list' => 'Powrót do listy prezentów',
1667 - 'g-back-link' => '<a href="$1">< Powrót do strony $2</a>',
 1667+ 'g-back-link' => '< Powrót do strony $2',
16681668 'g-choose-file' => 'Wybierz plik',
16691669 'g-cancel' => 'Anuluj',
16701670 'g-count' => '$1 otrzymał $2 {{PLURAL:$2|prezent|prezenty|prezentów}}.',
@@ -1715,7 +1715,7 @@
17161716 'g-add-message' => 'Adicionar Mensagem',
17171717 'g-back-edit-gift' => 'Volar para Editar Este Presente',
17181718 'g-back-gift-list' => 'Voltar para Lista de Presentes',
1719 - 'g-back-link' => '<a href="$1">< Voltar para página de $2</a>',
 1719+ 'g-back-link' => '< Voltar para página de $2',
17201720 'g-choose-file' => 'Escolher Arquivo:',
17211721 'g-cancel' => 'Cancelar',
17221722 'g-count' => '$1 tem $2 {{PLURAL:$2|presente|presentes}}.',
@@ -1817,7 +1817,7 @@
18181818 'g-add-message' => 'Pridať správu',
18191819 'g-back-edit-gift' => 'Späť na Upraviť tento darček',
18201820 'g-back-gift-list' => 'Späť na Zoznam darčekov',
1821 - 'g-back-link' => '<a href="$1">< Späť na stránku $2</a>',
 1821+ 'g-back-link' => '< Späť na stránku $2',
18221822 'g-choose-file' => 'Vybrať súbor:',
18231823 'g-cancel' => 'Zrušiť',
18241824 'g-count' => '$1 má $2 {{PLURAL:$2|darček|darčeky|darčekov}}.',
@@ -1929,7 +1929,7 @@
19301930 'g-add-message' => 'Magdagdag ng isang Mensahe',
19311931 'g-back-edit-gift' => 'Bumalik sa Baguhin ang Handog na Ito',
19321932 'g-back-gift-list' => 'Bumalik sa Talaan ng Handog',
1933 - 'g-back-link' => '<a href="$1">< Bumalik sa Pahina ni $2</a>',
 1933+ 'g-back-link' => '< Bumalik sa Pahina ni $2',
19341934 'g-choose-file' => 'Piliin ang Talaksan:',
19351935 'g-cancel' => 'Huwag ituloy',
19361936 'g-count' => 'Si $1 ay may $2 {{PLURAL:$2|handog|mga handog}}.',
Index: trunk/extensions/SocialProfile/UserGifts/SpecialGiveGift.php
@@ -95,7 +95,7 @@
9696 $output .= $wgOut->setPageTitle( wfMsg('g-sent-title', $this->user_name_to) );
9797
9898 $output .= "<div class=\"back-links\">
99 - ".wfMsg('g-back-link', $user_title->escapeFullURL(), $this->user_name_to)."
 99+ <a href=\"" . $user_title->escapeFullURL() . "\">" . wfMsg( 'g-back-link', $this->user_name_to ) . "</a>
100100 </div>
101101 <div class=\"g-message\">
102102 ".wfMsg('g-sent-message', $this->user_name_to)."
@@ -234,7 +234,7 @@
235235 $wgOut->setPagetitle( wfMsg('g-give-all-title', $this->user_name_to) );
236236
237237 $output .= '<div class="back-links">
238 - '.wfMsg('g-back-link', $user->escapeFullURL(), $this->user_name_to).'
 238+ <a href="' . $user->escapeFullURL() . '">' . wfMsg( 'g-back-link', $this->user_name_to ) . '</a>
239239 </div>
240240 <div class="g-message">
241241 '.wfMsg('g-give-all', $this->user_name_to).'
Index: trunk/extensions/SocialProfile/UserGifts/SpecialViewGift.php
@@ -55,7 +55,7 @@
5656 $output .= $wgOut->setPageTitle( wfMsg( 'g-description-title', $gift['user_name_to'], $gift['name'] ) );
5757
5858 $output .= '<div class="back-links">
59 - '.wfMsg('g-back-link', Title::makeTitle( NS_USER, $gift['user_name_to'] )->escapeFullURL(), $gift['user_name_to']).'
 59+ <a href="' . Title::makeTitle( NS_USER, $gift['user_name_to'] )->escapeFullURL() . '">' . wfMsg( 'g-back-link', $gift['user_name_to'] ) . '</a>
6060 </div>';
6161
6262 $user = Title::makeTitle( NS_USER, $gift['user_name_from'] );
Index: trunk/extensions/SocialProfile/UserGifts/SpecialRemoveGift.php
@@ -51,7 +51,7 @@
5252 $out .= $wgOut->setPageTitle( wfMsg( 'g-remove-success-title', $gift['name'] ) );
5353
5454 $out .= "<div class=\"back-links\">
55 - ".wfMsg( 'g-back-link', $wgUser->getUserPage()->escapeFullURL(), $gift['user_name_to'] )."
 55+ <a href=\"" . $wgUser->getUserPage()->escapeFullURL() . "\">" . wfMsg( 'g-back-link', $gift['user_name_to'] ) . "</a>
5656 </div>
5757 <div class=\"g-container\">
5858 {$gift_image}
@@ -82,7 +82,7 @@
8383 $output = '';
8484 $output .= $wgOut->setPagetitle( wfMsg( 'g-remove-title', $gift['name'] ) );
8585 $output .= "<div class=\"back-links\">
86 - ".wfMsg( 'g-back-link', $wgUser->getUserPage()->escapeFullURL(), $gift['user_name_to'] )."
 86+ <a href=\"" . $wgUser->getUserPage()->escapeFullURL() . "\">" . wfMsg( 'g-back-link', $gift['user_name_to'] ) . "</a>
8787 </div>
8888 <form action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"form1\">
8989 <div class=\"g-remove-message\">
Index: trunk/extensions/SocialProfile/UserGifts/SpecialViewGifts.php
@@ -73,8 +73,8 @@
7474 */
7575 $output .= $wgOut->setPageTitle( wfMsg('g-list-title', $rel->user_name) );
7676
77 - $output .= '<div class="back-links">
78 - '.wfMsg( 'g-back-link', $user->getFullURL(), $rel->user_name ).'
 77+ $output .= '<div class="back-links"><a href="' . $user->getFullURL() . '">
 78+ ' . wfMsg( 'g-back-link', $rel->user_name ) . '</a>
7979 </div>
8080 <div class="g-count">
8181 '.wfMsgExt( 'g-count', 'parsemag', $rel->user_name, $total ).'

Follow-up revisions

RevisionCommit summaryAuthorDate
r47689SocialProfile: please read the fine source (follow-up to r47449)ashley23:02, 22 February 2009

Status & tagging log