Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/56156
Change subject: Use PHPDoc notation for @todo
......................................................................
Use PHPDoc notation for @todo
Change-Id: I9c68098101a1d4d33f1ac9cf6f720e17b3419e92
---
M api/ApiQueryMessageGroups.php
M ffs/AndroidXmlFFS.php
M ffs/MediaWikiExtensions.php
M messagegroups/WorkflowStatesMessageGroup.php
M specials/SpecialManageGroups.php
M specials/SpecialSupportedLanguages.php
M tag/PageTranslationHooks.php
M translationaids/GettextDocumentationAid.php
M ttmserver/RemoteTTMServer.php
9 files changed, 8 insertions(+), 9 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/56/56156/1
diff --git a/api/ApiQueryMessageGroups.php b/api/ApiQueryMessageGroups.php
index a2c5532..a69d58c 100644
--- a/api/ApiQueryMessageGroups.php
+++ b/api/ApiQueryMessageGroups.php
@@ -69,7 +69,7 @@
$result->setIndexedTagName( $a, 'group' );
- // TODO: Add a continue?
+ // @todo Add a continue?
$fit = $result->addValue( array( 'query',
$this->getModuleName() ), null, $a );
if ( !$fit ) {
$this->setWarning( 'Could not fit all groups in
the resultset.' );
diff --git a/ffs/AndroidXmlFFS.php b/ffs/AndroidXmlFFS.php
index 15fac78..a3f2570 100644
--- a/ffs/AndroidXmlFFS.php
+++ b/ffs/AndroidXmlFFS.php
@@ -31,7 +31,7 @@
}
return array(
- 'AUTHORS' => array(), // TODO
+ 'AUTHORS' => array(), // @todo
'MESSAGES' => $mangler->mangle( $messages ),
);
}
diff --git a/ffs/MediaWikiExtensions.php b/ffs/MediaWikiExtensions.php
index e356457..571b974 100644
--- a/ffs/MediaWikiExtensions.php
+++ b/ffs/MediaWikiExtensions.php
@@ -108,7 +108,7 @@
$target = str_replace( '%GROUPROOT%/', '',
$conf['FILES']['sourcePattern'] );
$conf['FILES']['targetPattern'] = $target;
- // @TODO: find a better way
+ // @todo Find a better way
if ( isset( $info['aliasfile'] ) ) {
$conf['FILES']['aliasFile'] = $info['aliasfile'];
}
diff --git a/messagegroups/WorkflowStatesMessageGroup.php
b/messagegroups/WorkflowStatesMessageGroup.php
index 5534d71..a420e6d 100644
--- a/messagegroups/WorkflowStatesMessageGroup.php
+++ b/messagegroups/WorkflowStatesMessageGroup.php
@@ -49,7 +49,7 @@
$defs = TranslateUtils::getContents( array_keys( $keys ),
$this->getNamespace() );
foreach ( $keys as $key => $state ) {
if ( !isset( $defs[$key] ) ) {
- // TODO: use jobqueue
+ // @todo Use jobqueue
$title = Title::makeTitleSafe(
$this->getNamespace(), $key );
$page = new WikiPage( $title );
$page->doEdit(
diff --git a/specials/SpecialManageGroups.php b/specials/SpecialManageGroups.php
index aff2709..923339b 100644
--- a/specials/SpecialManageGroups.php
+++ b/specials/SpecialManageGroups.php
@@ -41,7 +41,7 @@
$changefile = TranslateUtils::cacheFile( self::CHANGEFILE );
if ( !file_exists( $changefile ) ) {
- // TODO: Tell them when changes was last checked/process
+ // @todo Tell them when changes was last checked/process
// or how to initiate recheck.
$out->addWikiMsg( 'translate-smg-nochanges' );
return;
diff --git a/specials/SpecialSupportedLanguages.php
b/specials/SpecialSupportedLanguages.php
index 27aaaed..b83fb0f 100644
--- a/specials/SpecialSupportedLanguages.php
+++ b/specials/SpecialSupportedLanguages.php
@@ -54,7 +54,6 @@
$this->outputHeader();
$dbr = wfGetDB( DB_SLAVE );
if ( $dbr->getType() === 'sqlite' ) {
- // @TODO
$out->addWikiText( '<div class=errorbox>SQLite is not
supported.</div>' );
return;
}
diff --git a/tag/PageTranslationHooks.php b/tag/PageTranslationHooks.php
index 9fbf597..9ee67d0 100644
--- a/tag/PageTranslationHooks.php
+++ b/tag/PageTranslationHooks.php
@@ -546,7 +546,7 @@
$languages = TranslateMetadata::get( $groupId, 'prioritylangs'
);
$filter = array_flip( explode( ',', $languages ) );
if ( !isset( $filter[$handle->getCode()] ) ) {
- // TODO: default reason if none provided
+ // @todo Default reason if none provided
$reason = TranslateMetadata::get( $groupId,
'priorityreason' );
$result = array( 'tpt-translation-restricted', $reason
);
return false;
diff --git a/translationaids/GettextDocumentationAid.php
b/translationaids/GettextDocumentationAid.php
index 5921e9e..f387a16 100644
--- a/translationaids/GettextDocumentationAid.php
+++ b/translationaids/GettextDocumentationAid.php
@@ -62,7 +62,7 @@
return array(
'language' => $wgContLang->getCode(),
- // TODO: provide raw data when possible
+ // @todo Provide raw data when possible
//'value' => $help,
'html' => $this->context->getOutput()->parse( $out ),
);
diff --git a/ttmserver/RemoteTTMServer.php b/ttmserver/RemoteTTMServer.php
index cc61fd3..059496b 100644
--- a/ttmserver/RemoteTTMServer.php
+++ b/ttmserver/RemoteTTMServer.php
@@ -18,7 +18,7 @@
*/
class RemoteTTMServer extends TTMServer implements ReadableTTMServer {
public function query( $sourceLanguage, $targetLanguage, $text ) {
- // TODO: implement some day perhaps?
+ // @todo Implement some day perhaps?
return array();
}
--
To view, visit https://gerrit.wikimedia.org/r/56156
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c68098101a1d4d33f1ac9cf6f720e17b3419e92
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits