Alexandros Kosiaris has submitted this change and it was merged.

Change subject: Beta: Add support for more language pairs
......................................................................


Beta: Add support for more language pairs

* Updated needed apertium packages.
* Updated config to enable language pairs.
* Language pairs without MT support has empty language tools.

Bug: T84829
Change-Id: I70f1b26b4316beb5d21765f5dd25f042f728ba81
---
M modules/apertium/manifests/init.pp
M modules/cxserver/templates/config.erb
2 files changed, 70 insertions(+), 0 deletions(-)

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



diff --git a/modules/apertium/manifests/init.pp 
b/modules/apertium/manifests/init.pp
index b2b6e05..e9fdf83 100644
--- a/modules/apertium/manifests/init.pp
+++ b/modules/apertium/manifests/init.pp
@@ -7,9 +7,15 @@
     package { [
         'apertium',
         'apertium-apy',
+        'apertium-en-ca',
+        'apertium-en-eo',
+        'apertium-en-es',
         'apertium-es-ca',
         'apertium-es-pt',
+        'apertium-id-ms',
+        'apertium-nno-nob',
         'apertium-pt-ca',
+        'apertium-sv-da',
         'apertium-lex-tools',
         'lttoolbox'
     ]:
diff --git a/modules/cxserver/templates/config.erb 
b/modules/cxserver/templates/config.erb
index c4c3731..4fc3e15 100644
--- a/modules/cxserver/templates/config.erb
+++ b/modules/cxserver/templates/config.erb
@@ -31,6 +31,39 @@
                                }
                        }
                },
+               en: {
+                       ca: {
+                               mt: {
+                                       providers: [
+                                               'Apertium'
+                                       ]
+                               }
+                       },
+                       da: {
+                               },
+                       eo: {
+                               mt: {
+                                       providers: [
+                                               'Apertium'
+                                       ]
+                               }
+                       },
+                       es: {
+                               mt: {
+                                       providers: [
+                                               'Apertium'
+                                       ]
+                               }
+                       },
+                       id: {
+                               },
+                       ms: {
+                               },
+                       nob: {
+                               },
+                       pt: {
+                               }
+               },
                es: {
                        ca: {
                                dictionary: {
@@ -45,6 +78,33 @@
                                }
                        },
                        pt: {
+                               mt: {
+                                       providers: [
+                                               'Apertium'
+                                       ]
+                               }
+                       }
+               },
+               id: {
+                       ms: {
+                               mt: {
+                                       providers: [
+                                               'Apertium'
+                                       ]
+                               }
+                       }
+               },
+               ms: {
+                       id: {
+                               mt: {
+                                       providers: [
+                                               'Apertium'
+                                       ]
+                               }
+                       }
+               },
+               nno: {
+                       nob: {
                                mt: {
                                        providers: [
                                                'Apertium'
@@ -67,6 +127,10 @@
                                        ]
                                }
                        }
+               },
+               sv: {
+                       da: {
+                               }
                }
        }
 };

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I70f1b26b4316beb5d21765f5dd25f042f728ba81
Gerrit-PatchSet: 6
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: KartikMistry <kartik.mis...@gmail.com>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Santhosh <santhosh.thottin...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to