Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/58869


Change subject: More internationalization
......................................................................

More internationalization

Change-Id: I115e2794d9321d8e908d48c8734aff0d0c839ccf
---
M MainPage/MainPage.i18n.php
M MainPage/specials/SpecialTwnMainPage.php
2 files changed, 64 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/69/58869/1

diff --git a/MainPage/MainPage.i18n.php b/MainPage/MainPage.i18n.php
index 664b0c5..31048fe 100644
--- a/MainPage/MainPage.i18n.php
+++ b/MainPage/MainPage.i18n.php
@@ -27,9 +27,25 @@
        'twnmp-translate-button' => 'Translate',
        'twnmp-proofread-button' => 'Proofread',
 
+       'twnmp-your-translations-stats' => 'Your translation statistics',
+       'twnmp-your-view-language-stats' => 'View language statistics',
        'twnmp-translations-per-month' => 'Translations/month',
        'twnmp-reviews-per-month' => 'Reviews/month',
        'twnmp-translations-translator-ranking' => '{{GENDER:$1|Ranked}} $2 of 
$3 translators<br />in $4',
+
+       'twnmp-bottom-help' => 'Help',
+       'twnmp-bottom-special-pages' => 'Special pages',
+       'twnmp-bottom-languages-supported' => 'Supported languages',
+       'twnmp-bottom-about' => 'About',
+       'twnmp-signup-username-placeholder' => 'Username',
+       'twnmp-signup-password-placeholder' => 'Password',
+       'twnmp-signup-email-placeholder' => 'Email',
+       'twnmp-create-account-button' => 'Create account',
+
+       'twnmp-become-translator' => 'Become a translator',
+       'twnmp-choose-languages-you-know' => 'Choose languages you know',
+       'twnmp-choose-another-language' => 'Choose another language...',
+       'twnmp-choose-fill-account-details' => 'Fill in your account details',
 );
 
 /** English
@@ -60,6 +76,8 @@
        'twnmp-proofread-button' => 'A label for the button that appears near 
the user\'s translation statistics.
 Pressing the button brings the user to the translation editor in proofread 
mode. Parallel to {{ms-msg|twnmp-translate-button}}.',
 
+       'twnmp-your-translations-stats' => "A header for the user's translation 
statistics.",
+       'twnmp-your-view-language-stats' => "A link that appears under the 
user's translation statistics.",
        'twnmp-translations-per-month' => "Appears in the user's statistics box 
near a number.
 Means that the users performs that number of translations every month.
 Translate it in a way that is natural to your language - you don't have to use 
the '/' character.",
@@ -73,6 +91,20 @@
 * $2 - the ranking of this user.
 * $3 - the total number of translators into that language.
 * $4 - the language name.',
+
+       'twnmp-bottom-help' => 'A link that appears at the bottom of the main 
page.',
+       'twnmp-bottom-special-pages' => 'A link that appears at the bottom of 
the main page. {{Identical|specialpages}}',
+       'twnmp-bottom-languages-supported' => 'A link that appears at the 
bottom of the main page.',
+       'twnmp-bottom-about' => 'A link that appears at the bottom of the main 
page. {{Identical|about}}',
+       'twnmp-signup-username-placeholder' => 'A placeholder for the username 
field in the sign up form.',
+       'twnmp-signup-password-placeholder' => 'A placeholder for the password 
field in the sign up form.',
+       'twnmp-signup-email-placeholder' => 'A placeholder for the email field 
in the sign up form.',
+       'twnmp-create-account-button' => 'A label for the button that submits 
the account creation form. {{Identical|createaccount}}',
+
+       'twnmp-become-translator' => 'The top heading to the sign up form. A 
call to action to sign up to the site.',
+       'twnmp-choose-languages-you-know' => 'A heading to a list of 
auto-detected languages.',
+       'twnmp-choose-another-language' => "A link to choose a language that 
doesn't appear in the list.",
+       'twnmp-choose-fill-account-details' => 'A heading for the personal 
details form.',
 );
 
 /** Hebrew (עברית)
@@ -100,9 +132,25 @@
        'twnmp-translate-button' => 'תרגום',
        'twnmp-proofread-button' => 'הגהה',
 
+       'twnmp-your-translations-stats' => 'סטטיסטיקת התרגומים שלך',
+       'twnmp-your-view-language-stats' => 'הצגת הסטטיסטיקה לשפה',
        'twnmp-translations-per-month' => 'תרגומים לחודש',
        'twnmp-reviews-per-month' => 'הגהות לחודש',
        'twnmp-translations-translator-ranking' => '{{GENDER:$1|אתה דורג|את 
מדורגת}} במקום ה{{GRAMMAR:תחילית|$2}} מתוך $3 מתרגמים<br 
/>ל{{GRAMMAR:תחילית|$4}}',
+
+       'twnmp-bottom-help' => 'עזרה',
+       'twnmp-bottom-special-pages' => 'דפים מיוחדים',
+       'twnmp-bottom-languages-supported' => 'שפות נתמכות',
+       'twnmp-bottom-about' => 'אודות',
+       'twnmp-signup-username-placeholder' => 'שם משתמש',
+       'twnmp-signup-password-placeholder' => 'ססמה',
+       'twnmp-signup-email-placeholder' => 'דואר אלקטרוני',
+       'twnmp-create-account-button' => 'יצירת חשבון',
+
+       'twnmp-become-translator' => 'בואו להיות מתרגמים',
+       'twnmp-choose-languages-you-know' => 'השפה שלך',
+       'twnmp-choose-another-language' => 'בחירת שפה אחרת...',
+       'twnmp-choose-fill-account-details' => 'הפרטים שלך',
 );
 
 /** Dutch (Nederlands)
diff --git a/MainPage/specials/SpecialTwnMainPage.php 
b/MainPage/specials/SpecialTwnMainPage.php
index 1ea9d95..97ac7d8 100644
--- a/MainPage/specials/SpecialTwnMainPage.php
+++ b/MainPage/specials/SpecialTwnMainPage.php
@@ -176,7 +176,7 @@
                <div class="row project-top">
                        <div class="project-icon four columns">$image</div>
                        <div class="project-content eight columns">
-                               <div class="row project-name">$label</div>
+                               <div class="row project-name" 
dir="auto">$label</div>
                                <div class="row project-statsbar">$stats</div>
                                <div class="row project-stats">$acts</div>
                        </div>
@@ -228,19 +228,19 @@
                $out .= Html::element( 'a', array(
                        'class' => 'three column',
                        'href' =>Title::newFromText( 
'Special:MyLanguage/Project:About' )->getLocalUrl(),
-               ), 'About' );
+               ), $this->msg( 'twnmp-bottom-about' )->text() );
                $out .= Html::element( 'a', array(
                        'class' => 'three column',
                        'href' => SpecialPage::getTitleFor( 
'SupportedLanguages' )->getLocalUrl(),
-               ), 'Languages supported' );
+               ), $this->msg( 'twnmp-bottom-languages-supported' )->text() );
                $out .= Html::element( 'a', array(
                        'class' => 'three column',
                        'href' => SpecialPage::getTitleFor( 'Specialpages' 
)->getLocalUrl(),
-               ), 'Special pages' );
+               ), $this->msg( 'twnmp-bottom-special-pages' )->text() );
                $out .= Html::element( 'a', array(
                        'class' => 'three column',
                        'href' => Title::newFromText( 'Translating:Index' 
)->getLocalUrl(),
-               ), 'Help' );
+               ), $this->msg( 'twnmp-bottom-help' )->text() );
                $out .= Html::closeElement( 'div' );
 
                return $out;
@@ -385,20 +385,20 @@
                                                'returnto' => 
'Special:MainPage',
                                                'type' => 'signup' ) ),
                        ) );
-               $out .= Html::element( 'h1', $row, 'Become a translator' );
-               $out .= Html::element( 'h2', $row, 'Choose languages you know' 
);
+               $out .= Html::element( 'h1', $row, $this->msg( 
'twnmp-become-translator' )->text() );
+               $out .= Html::element( 'h2', $row, $this->msg( 
'twnmp-choose-languages-you-know' )->text() );
                $out .= Xml::checkLabel( $languageName, 'wpLanguage1', 
'wpLanguage1', true );
                $out .= Html::openElement( 'div', $row );
                $out .= Html::element( 'div', array(
                        'class' => 'eight columns offset-by-one 
signup-language-selector'
-               ), 'Choose another language...' );
+               ), $this->msg( 'twnmp-choose-another-language' )->text() );
                $out .= Html::closeElement( 'div' );
-               $out .= Html::element( 'h2', $row, 'Fill in your account 
details' );
+               $out .= Html::element( 'h2', $row, $this->msg( 
'twnmp-choose-fill-account-details' )->text() );
                $out .= Html::openElement( 'div', $row );
                $out .= Html::element( 'input', array(
                        'class' => 'eleven columns',
                        'name' => 'wpName',
-                       'placeholder' => 'Username',
+                       'placeholder' => $this->msg( 
'twnmp-signup-username-placeholder' )->text(), // @todo IE doesn't support 
placeholders
                ) );
                $out .= Html::closeElement( 'div' );
 
@@ -407,7 +407,7 @@
                        'class' => 'eleven columns',
                        'name' => 'wpPassword',
                        'type' => 'password',
-                       'placeholder' => 'Password',
+                       'placeholder' => $this->msg( 
'twnmp-signup-password-placeholder' )->text(), // @todo IE doesn't support 
placeholders
                ) );
                $out .= Html::closeElement( 'div' );
 
@@ -416,14 +416,14 @@
                        'class' => 'eleven columns',
                        'name' => 'wpEmail',
                        'type' => 'email',
-                       'placeholder' => 'Email',
+                       'placeholder' => $this->msg( 
'twnmp-signup-email-placeholder' )->text(), // @todo IE doesn't support 
placeholders
                ) );
                $out .= Html::closeElement( 'div' );
 
                $out .= Html::openElement( 'div', $row );
                $out .= Html::element( 'button', array(
                        'class' => 'six columns green button offset-by-three',
-               ), 'Create account' );
+               ), $this->msg( 'twnmp-create-account-button' )->text() );
                $out .= Html::closeElement( 'div' );
 
                $out .= Html::closeElement( 'form' );
@@ -445,7 +445,7 @@
                $out = Html::openElement( 'div', array( 'class' => 'five 
columns main-widget stats-widget' ) );
 
                $out .= Html::openElement( 'div', array( 'class' => 'row 
user-stats-title' ) );
-               $out .= Html::element( 'h2', array(), 'Your translation 
statistics' );
+               $out .= Html::element( 'h2', array(), $this->msg( 
'twnmp-your-translations-stats' )->text() );
                $out .= Html::element( 'div', array(), $languageName );
                $out .= Html::closeElement( 'div' );
 
@@ -484,7 +484,7 @@
                foreach ( $stats as $user => $count ) {
                        if ( $user === $myuser ) {
                                $out .= Html::element( 'div', array( 'class' => 
'count' ), $count );
-                               $out .= Html::element( 'div', array( 'class' => 
'count-description' ), 'Revisions/month' );
+                               $out .= Html::element( 'div', array( 'class' => 
'count-description' ), $this->msg( 'twnmp-reviews-per-month' )->text() );
 
                                $msg = $this->msg( 
'twnmp-translations-translator-ranking' )
                                        ->params( $myuser, $i, $translators, 
$languageName )
@@ -506,7 +506,7 @@
                $out .= Html::element( 'a', array(
                        'class' => 'twelve columns langstats-link',
                        'href' => SpecialPage::getTitleFor( 'LanguageStats' 
)->getLocalUrl(),
-               ), 'View language statistics' );
+               ), $this->msg( 'twnmp-your-view-language-stats' )->text() );
                $out .= Html::closeElement( 'div' );
                $out .= Html::closeElement( 'div' );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/58869
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I115e2794d9321d8e908d48c8734aff0d0c839ccf
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to