Commit a5908299 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #3518 remove the french inside the supann plugin

parent e707ace9
......@@ -28,11 +28,11 @@ class entite extends simplePlugin
static function plInfo()
{
return array(
'plShortName' => _('Entite'),
'plDescription' => _('SUPANN Entite Settings'),
'plShortName' => _('Entity'),
'plDescription' => _('SUPANN Entity Settings'),
'plSelfModify' => FALSE,
'plObjectType' => array('entite' => array(
'name' => _('SUPANN Entite'),
'name' => _('SUPANN Entity'),
'filter' => '(&(objectClass=supannEntite)(objectClass=organizationalUnit))',
'ou' => get_ou('supannStructuresRDN'),
'mainAttr' => 'supannCodeEntite',
......@@ -49,10 +49,10 @@ class entite extends simplePlugin
{
return array(
'main' => array(
'name' => _('Entite'),
'name' => _('Entity'),
'attrs' => array(
new StringAttribute(
_('Name'), _('The name to write in the ou attribute for this entite'),
_('Name'), _('The name to write in the ou attribute for this entity'),
'ou', TRUE
)
)
......@@ -61,19 +61,19 @@ class entite extends simplePlugin
'name' => _('Administrative informations'),
'attrs' => array(
new StringAttribute(
_('Telephone'), _('Phone number for this entite'),
_('Telephone'), _('Phone number for this entity'),
'telephoneNumber', FALSE
),
new StringAttribute(
_('Fax'), _('Fax number for this entite'),
_('Fax'), _('Fax number for this entity'),
'facsimileTelephoneNumber', FALSE
),
new StringAttribute(
_('Postal address'), _('Postal address of this entite'),
_('Postal address'), _('Postal address of this entity'),
'postalAddress', FALSE
),
new TextAreaAttribute(
_('Description'), _('Short description of this entite'),
_('Description'), _('Short description of this entity'),
'description', FALSE
),
)
......@@ -82,20 +82,20 @@ class entite extends simplePlugin
'name' => _('SUPANN informations'),
'attrs' => array(
new SelectAttribute(
_('Entite type'), _('The best SUPANN type that fits this entite'),
_('Entity type'), _('The best SUPANN type that fits this entity'),
'supannTypeEntite', FALSE
),
new StringAttribute(
_('Entite code'), _('The SUPANN code of this entite'),
_('Entity code'), _('The SUPANN code of this entity'),
'supannCodeEntite', TRUE,
'', '', '/^[a-z0-9_-]*$/'.(strict_uid_mode()?'':'i')
),
new SelectAttribute(
_('Parent entite'), _('The parent entite of this entite'),
_('Parent entity'), _('The parent entity of this entity'),
'supannCodeEntiteParent', FALSE
),
new StringAttribute(
_('Reference ID'), _('SUPANN reference ID of this entite'),
_('Reference ID'), _('SUPANN reference ID of this entity'),
'supannRefId', FALSE
),
)
......
......@@ -28,11 +28,11 @@ class etablissement extends simplePlugin
static function plInfo()
{
return array(
'plShortName' => _('Etablissement'),
'plDescription' => _('SUPANN Etablissement Settings'),
'plShortName' => _('Establishment'),
'plDescription' => _('SUPANN Establishment Settings'),
'plSelfModify' => FALSE,
'plObjectType' => array('etablissement' => array(
'name' => _('SUPANN Etablissement'),
'name' => _('SUPANN Establishment'),
'filter' => '(&(objectClass=supannEntite)(objectClass=organization))',
'ou' => get_ou('supannStructuresRDN'),
'mainAttr' => 'supannCodeEntite',
......@@ -52,15 +52,15 @@ class etablissement extends simplePlugin
'name' => _('Properties'),
'attrs' => array(
new BooleanAttribute(
_('Root etablissement'), _('Set this etablissement as the root one'),
_('Root Establishment'), _('Set this Establishment as the root one'),
'set_root'
),
new StringAttribute(
_('Name'), _('The name to write in the o attribute for this etablissement'),
_('Name'), _('The name to write in the o attribute for this Establishment'),
'o', TRUE
),
new TextAreaAttribute(
_('Description'), _('A short description of this etablissement'),
_('Description'), _('A short description of this Establishment'),
'description', FALSE
)
)
......@@ -69,19 +69,19 @@ class etablissement extends simplePlugin
'name' => _('Location'),
'attrs' => array(
new StringAttribute(
_('Location'), _('Usually the city in which is this etablissement'),
_('Location'), _('Usually the city where this Establishment is'),
'l', FALSE
),
new TextAreaAttribute(
_('Address'), _('The postal address of this etablissement'),
_('Address'), _('The postal address of this Establishment'),
'postalAddress', FALSE
),
new StringAttribute(
_('Telephone'), _('Phone number for this etablissement'),
_('Telephone'), _('Phone number for this Establishment'),
'telephoneNumber', FALSE
),
new StringAttribute(
_('Fax'), _('Fax number for this etablissement'),
_('Fax'), _('Fax number for this Establishment'),
'facsimileTelephoneNumber', FALSE
),
)
......@@ -90,29 +90,29 @@ class etablissement extends simplePlugin
'name' => _('SUPANN properties'),
'attrs' => array(
new StringAttribute(
_('Etablissement code'), _('The code of this etablissement (must have a prefix between {})'),
_('Establishment code'), _('The code of this Establishment (must have a prefix between {})'),
'supannEtablissement', TRUE,
'', '', '/^{[^}]+}.*$/'
),
new StringAttribute(
_('SUPANN code'), _('The SUPANN code for this etablissement'),
_('SUPANN code'), _('The SUPANN code for this Establishment'),
'supannCodeEntite', TRUE,
'', '', '/^[a-z0-9_-]*$/'.(strict_uid_mode()?'':'i')
),
new StringAttribute(
_('Legal name'), _('The legal name of this etablissement'),
_('Legal name'), _('The legal name of this Establishment'),
'eduOrgLegalName', TRUE
),
new StringAttribute(
_('Home page URI'), _('The URI of this etablissement website home page'),
_('Home page URI'), _('The URI of this Establishment website home page'),
'eduOrgHomePageURI', FALSE
),
new StringAttribute(
_('Institution URI'), _('The URI of this etablissement institution website'),
_('Institution URI'), _('The URI of this Establishment institution website'),
'eduOrgSuperiorURI', FALSE
),
new StringAttribute(
_('White pages URI'), _('The URI of this etablissement white pages'),
_('White pages URI'), _('The URI of this Establishment white pages'),
'eduOrgWhitePagesURI', FALSE
),
)
......@@ -213,7 +213,7 @@ class etablissement extends simplePlugin
$ldap->ls('(objectClass=supannOrg)');
if ($ldap->count() > 1) {
msg_dialog::display(_('LDAP error'), 'There are several etablissements at root!');
msg_dialog::display(_('LDAP error'), 'There are several Establishment at root!');
return FALSE;
} else if ($ldap->count() > 0) {
$attr = $ldap->fetch();
......
......@@ -272,7 +272,7 @@ class supannAccount extends simplePlugin
)
),
new BooleanAttribute(
_('Liste rouge'), _('supannListeRouge - Should this person be on the red list'),
_('red List'), _('supannListeRouge - Should this person be on the red list'),
'supannListeRouge', TRUE
)
)
......@@ -281,18 +281,18 @@ class supannAccount extends simplePlugin
'name' => _('Affectation'),
'attrs' => array(
new SelectAttribute(
_('Entite affectation principale'), _('supannEntiteAffectationPrincipale'),
_('Entity primary assignment'), _('supannEntiteAffectationPrincipale'),
'supannEntiteAffectationPrincipale', FALSE
),
new SetAttribute(
new SelectAttribute(
_('Entite affectation'), _('supannEntiteAffectation'),
_('Entity assignment'), _('supannEntiteAffectation'),
'supannEntiteAffectation', FALSE
)
),
new SetAttribute(
new SelectAttribute(
_('Type entite affectation'), _('supannTypeEntiteAffectation'),
_('Entity type assignment'), _('supannTypeEntiteAffectation'),
'supannTypeEntiteAffectation', FALSE
)
),
......@@ -313,7 +313,7 @@ class supannAccount extends simplePlugin
),
new SetAttribute(
new SelectAttribute(
_('Etablissement'), _('supannEtablissement'),
_('Establishment'), _('supannEtablissement'),
'supannEtablissement', FALSE
)
),
......@@ -352,7 +352,7 @@ class supannAccount extends simplePlugin
'supannEtuInscription',
array(
new SelectAttribute(
_('Etablissement'), _('supannEtablissement - Etablissement in which this subscription was done'),
_('Establishment'), _('supannEtablissement - Etablissement in which this subscription was done'),
'supannEtablissement_etab', TRUE
),
new IntAttribute(
......@@ -365,7 +365,7 @@ class supannAccount extends simplePlugin
'supannEtuRegimeInscription_regimeinsc', TRUE
),
new SelectAttribute(
_('Secteur Disciplinaire'), _('supannEtuSecteurDisciplinaire'),
_('Disciplinary Sector'), _('supannEtuSecteurDisciplinaire'),
'supannEtuSecteurDisciplinaire_sectdisc', TRUE
),
new SelectAttribute(
......@@ -373,11 +373,11 @@ class supannAccount extends simplePlugin
'supannEtuTypeDiplome_typedip', TRUE
),
new SupannCursusAnneeAttribute(
_('Cursus annee'), _('supannEtuCursusAnnee'),
_('Curriculum year '), _('supannEtuCursusAnnee'),
'supannEtuCursusAnnee_cursusann', TRUE
),
new SelectAttribute(
_('Entite affectation'), _('supannEntiteAffectation_affect'),
_('Entity assignment'), _('supannEntiteAffectation_affect'),
'supannEntiteAffectation_affect', FALSE
),
new SupannPrefixedSelectAttribute(
......@@ -401,7 +401,7 @@ class supannAccount extends simplePlugin
)
),
'personnal' => array(
'name' => _('Personnal profile'),
'name' => _('Personal profile'),
'attrs' => array(
new StringAttribute(
_('Personal ID'), _('supannEmpId'),
......@@ -413,7 +413,7 @@ class supannAccount extends simplePlugin
),
new SetAttribute(
new SupannPrefixedSelectAttribute(
_('Activite'), _('supannActivite'),
_('Activity'), _('supannActivite'),
'supannActivite', FALSE, 'activite'
)
)
......@@ -435,11 +435,11 @@ class supannAccount extends simplePlugin
'supannRoleGenerique_role', TRUE
),
new SelectAttribute(
_('Entite type'), _('supannTypeEntiteAffectation'),
_('Entity assignment type'), _('supannTypeEntiteAffectation'),
'supannTypeEntiteAffectation_type', TRUE
),
new SelectAttribute(
_('Entite'), _('supannEntiteAffectation'),
_('Entity assignment'), _('supannEntiteAffectation'),
'supannEntiteAffectation_code', FALSE
),
),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment