jenkins-bot has submitted this change and it was merged.

Change subject: Add CodevTT
......................................................................


Add CodevTT

Change-Id: I228b836637cd2b39b2c291a26a45b63267075827
---
M TranslateSettings.php
M bin/EXTERNAL-PROJECTS
A bin/REPONG-PROJECTS
M bin/repocommit
M bin/repoexport
M bin/repoupdate
A groups/MantisBT/CodevTT.yaml
M repoconfig.json
M repoconfig.json.nike
M repong/repong.php
10 files changed, 50 insertions(+), 11 deletions(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/TranslateSettings.php b/TranslateSettings.php
index 6035fd2..60912e0 100644
--- a/TranslateSettings.php
+++ b/TranslateSettings.php
@@ -255,6 +255,7 @@
 
 wfAddNamespace( 1210, 'Mantis' );
 $wgTranslateGroupFiles[] = "$GROUPS/MantisBT/MantisBT.yaml";
+$wgTranslateGroupFiles[] = "$GROUPS/MantisBT/CodevTT.yaml";
 
 # No longer in use.
 wfAddNamespace( 1212, 'Mwlib' );
diff --git a/bin/EXTERNAL-PROJECTS b/bin/EXTERNAL-PROJECTS
index 4379897..6b5429f 100644
--- a/bin/EXTERNAL-PROJECTS
+++ b/bin/EXTERNAL-PROJECTS
@@ -1,4 +1,5 @@
 blockly
+codev
 entryscape
 eol
 etherpad-lite
diff --git a/bin/REPONG-PROJECTS b/bin/REPONG-PROJECTS
new file mode 100644
index 0000000..e793286
--- /dev/null
+++ b/bin/REPONG-PROJECTS
@@ -0,0 +1,2 @@
+codev
+hivejs
diff --git a/bin/repocommit b/bin/repocommit
index b5948ae..f6ef518 100755
--- a/bin/repocommit
+++ b/bin/repocommit
@@ -96,9 +96,7 @@
        fi
 done
 
-REPONG="
-hivejs"
-
+REPONG=$(cat "$DIRSCRIPT/REPONG-PROJECTS");
 for i in $REPONG; do
        if [ "$i" = "$PROJECT" ]
        then
diff --git a/bin/repoexport b/bin/repoexport
index 7bdfe0e..fc2693c 100755
--- a/bin/repoexport
+++ b/bin/repoexport
@@ -20,9 +20,7 @@
 THRESHOLD="--threshold 35"
 HOURS="--hours 200" # Somewhat over a week
 
-REPONG="
-hivejs"
-
+REPONG=$(cat "$DIRSCRIPT/REPONG-PROJECTS");
 for i in $REPONG; do
        if [ "$i" = "$PROJECT" ]
        then
@@ -34,7 +32,6 @@
 if [ "$PROJECT" = "blockly" ]
 then
        php "$EXPORTER" --target . --group=out-blockly* --lang='*' --skip en 
$THRESHOLD
-
 
 elif [ "$PROJECT" = "crosswatch" ]
 then
diff --git a/bin/repoupdate b/bin/repoupdate
index 700f7b4..68e4653 100755
--- a/bin/repoupdate
+++ b/bin/repoupdate
@@ -96,9 +96,7 @@
        fi
 done
 
-REPONG="
-hivejs"
-
+REPONG=$(cat "$DIRSCRIPT/REPONG-PROJECTS");
 for i in $REPONG; do
        if [ "$i" = "$PROJECT" ]
        then
diff --git a/groups/MantisBT/CodevTT.yaml b/groups/MantisBT/CodevTT.yaml
new file mode 100644
index 0000000..a775d82
--- /dev/null
+++ b/groups/MantisBT/CodevTT.yaml
@@ -0,0 +1,24 @@
+BASIC:
+  id: codev
+  label: CodevTT
+  icon: wiki://CodevTT_logo.png
+  description: "{{Special:MyLanguage/Translations:Group 
descriptions/codev/en}}"
+  namespace: NS_MANTIS
+  class: FileBasedMessageGroup
+
+FILES:
+  class: GettextFFS
+  keyAlgorithm: simple
+  sourcePattern: "%GROUPROOT%/codev/i18n/locale/%CODE%/LC_MESSAGES/codev.po"
+  definitionFile: "%GROUPROOT%/codev/i18n/locale/codevtt.pot"
+  codeMap:
+    de:    de_DE
+    es:    es_ES
+    it:    it_IT
+    pt-br: pt_BR
+
+MANGLER:
+  class: StringMatcher
+  prefix: codev-
+  patterns:
+    - "*"
diff --git a/repoconfig.json b/repoconfig.json
index e72effe..e6aacd9 100644
--- a/repoconfig.json
+++ b/repoconfig.json
@@ -2,6 +2,15 @@
        "@meta": {
                "export": "php 
/srv/mediawiki/targets/production/extensions/Translate/scripts/export.php"
        },
+       "codev": {
+               "group": "codev",
+               "repos": {
+                       "codev": {
+                               "type": "git",
+                               "url": "git://github.com/lbayle/codev.git"
+                       }
+               }
+       },
        "hivejs": {
                "group": "hive*",
                "repos": {
diff --git a/repoconfig.json.nike b/repoconfig.json.nike
index 4bcfd83..475c762 100644
--- a/repoconfig.json.nike
+++ b/repoconfig.json.nike
@@ -2,6 +2,15 @@
        "@meta": {
                "export": "php 
/srv/mediawiki/targets/production/extensions/Translate/scripts/export.php"
        },
+       "codev": {
+               "group": "codev",
+               "repos": {
+                       "codev": {
+                               "type": "git",
+                               "url": "[email protected]/lbayle/codev.git"
+                       }
+               }
+       },
        "hivejs": {
                "group": "hivejs*",
                "repos": {
diff --git a/repong/repong.php b/repong/repong.php
index f9b507f..97b46cc 100644
--- a/repong/repong.php
+++ b/repong/repong.php
@@ -21,7 +21,7 @@
                        if ( $repo['type'] === 'git' ) {
                                $command = "$bindir/clupdate-git-repo 
'{$repo['url']}' '$base/$name'";
                        } else {
-                               throw new RuntimeException( "Unknown repo rype" 
);
+                               throw new RuntimeException( 'Unknown repo rype' 
);
                        }
                        echo "$command\n";
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I228b836637cd2b39b2c291a26a45b63267075827
Gerrit-PatchSet: 4
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to