';
+}
+
+
+
+/*
+ * Form to add a new translation
+ */
+
+if ($action == 'add' && $user->rights->adherent->configurer)
+{
+ //WYSIWYG Editor
+ require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
+
+ print ' ';
+ print '';
+
+ print ' ';
+}
+
+// End of page
+llxFooter();
+$db->close();
diff --git a/htdocs/core/lib/member.lib.php b/htdocs/core/lib/member.lib.php
index 711844f0a14..93146738f66 100644
--- a/htdocs/core/lib/member.lib.php
+++ b/htdocs/core/lib/member.lib.php
@@ -127,6 +127,15 @@ function member_type_prepare_head(AdherentType $object)
$head[$h][1] = $langs->trans("Card");
$head[$h][2] = 'card';
$h++;
+
+ // Multilangs
+ if (! empty($conf->global->MAIN_MULTILANGS))
+ {
+ $head[$h][0] = DOL_URL_ROOT."/adherents/type_translation.php?rowid=".$object->id;
+ $head[$h][1] = $langs->trans("Translation");
+ $head[$h][2] = 'translation';
+ $h++;
+ }
if ((! empty($conf->ldap->enabled) && ! empty($conf->global->LDAP_MEMBER_TYPE_ACTIVE))
&& (empty($conf->global->MAIN_DISABLE_LDAP_TAB) || ! empty($user->admin)))
diff --git a/htdocs/install/mysql/migration/10.0.0-11.0.0.sql b/htdocs/install/mysql/migration/10.0.0-11.0.0.sql
index e4fdd2a52f7..39027d92e72 100644
--- a/htdocs/install/mysql/migration/10.0.0-11.0.0.sql
+++ b/htdocs/install/mysql/migration/10.0.0-11.0.0.sql
@@ -226,6 +226,17 @@ INSERT INTO llx_c_hrm_public_holiday (code, entity, fk_country, dayrule, year, m
INSERT INTO llx_c_hrm_public_holiday (code, entity, fk_country, dayrule, year, month, day, active) VALUES('IN-REPUBLICDAY', 0, 117, '', 0, 1, 26, 1);
INSERT INTO llx_c_hrm_public_holiday (code, entity, fk_country, dayrule, year, month, day, active) VALUES('IN-GANDI', 0, 117, '', 0, 10, 2, 1);
+create table llx_adherent_type_lang
+(
+ rowid integer AUTO_INCREMENT PRIMARY KEY,
+ fk_type integer DEFAULT 0 NOT NULL,
+ lang varchar(5) DEFAULT 0 NOT NULL,
+ label varchar(255) NOT NULL,
+ description text,
+ email text,
+ import_key varchar(14) DEFAULT NULL
+)ENGINE=innodb;
+
create table llx_fichinter_rec
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
diff --git a/htdocs/install/mysql/tables/llx_adherent_type_lang.sql b/htdocs/install/mysql/tables/llx_adherent_type_lang.sql
new file mode 100644
index 00000000000..179a9418790
--- /dev/null
+++ b/htdocs/install/mysql/tables/llx_adherent_type_lang.sql
@@ -0,0 +1,30 @@
+-- ============================================================================
+-- Copyright (C) 2002-2003 Rodolphe Quiedeville
+-- Copyright (C) 2005-2010 Regis Houssin
+-- Copyright (C) 2009 Laurent Destailleur
+--
+-- This program is free software; you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation; either version 3 of the License, or
+-- (at your option) any later version.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program. If not, see .
+--
+-- ============================================================================
+
+create table llx_adherent_type_lang
+(
+ rowid integer AUTO_INCREMENT PRIMARY KEY,
+ fk_type integer DEFAULT 0 NOT NULL,
+ lang varchar(5) DEFAULT 0 NOT NULL,
+ label varchar(255) NOT NULL,
+ description text,
+ email text,
+ import_key varchar(14) DEFAULT NULL
+)ENGINE=innodb;