This commit is contained in:
Aram HARUTYUNYAN 2013-04-23 09:07:06 +00:00
parent 0ee113337b
commit 11c25eada2
16 changed files with 1060 additions and 5 deletions

View File

@ -42,6 +42,31 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
return $router;
}
protected function _initTranslate()
{
$registry = Zend_Registry::getInstance();
$translate = new Zend_Translate(
array(
'adapter' => 'gettext',
'content' => APPLICATION_PATH . '\\languages\fr.mo',
'locale' => 'fr',
'scan' => Zend_Translate::LOCALE_DIRECTORY
)
);
$translate->addTranslation(
array(
'content' => APPLICATION_PATH . '\\languages\en.mo',
'locale' => 'en',
'scan' => Zend_Translate::LOCALE_DIRECTORY
)
);
$registry->set('Zend_Translate', $translate);
return $registry;
}
protected function _initLogging()
{
//Firebug

View File

@ -10,6 +10,7 @@ class UserController extends Zend_Controller_Action
{
Zend_Registry::get('firebug')->info('updateProfil');
$ws = new WsScores();
$utilisateur = new Scores_Utilisateur();
$InfosLogin = $ws->getInfosLogin($login, $_SERVER['REMOTE_ADDR']);
$identity = new stdClass;
$identity->username = $login;
@ -33,16 +34,18 @@ class UserController extends Zend_Controller_Action
$InfosLogin->result->timeout : 1800;
$identity->time = time() + $identity->timeout;
$identity->modeEdition = false;
$identity->acceptationCGU = $InfosLogin->result->acceptationCGU;;
$identity->acceptationCGU = $InfosLogin->result->acceptationCGU;
$identity->lang = $utilisateur->getLang();
$identity->browser = $utilisateur->getBrowserInfo();
return $identity;
}
public function init()
/*public function init()
{
require_once 'Scores/WsScores.php';
$this->view->headLink()->appendStylesheet('/themes/default/styles/user.css', 'all');
}
}*/
/**
* Affiche le fomulaire d'edition des paramètres utilisateur
@ -108,6 +111,10 @@ class UserController extends Zend_Controller_Action
}
}
//récupération la valeur de la langue de la bdd
$reponse = $ws->getInfosLogin($login, $_SERVER['REMOTE_ADDR']);
$this->view->assign('lang', $reponse->result->lang);
//Liste des catégories des accès
$reponse = $ws->getCategory();
$wscategory = $reponse->item;

BIN
application/languages/en.mo Normal file

Binary file not shown.

413
application/languages/en.po Normal file
View File

@ -0,0 +1,413 @@
msgid ""
msgstr ""
"Project-Id-Version: Extranet2.4\n"
"POT-Creation-Date: 2013-04-09 17:15+0400\n"
"PO-Revision-Date: 2013-04-09 17:16+0400\n"
"Last-Translator: \n"
"Language-Team: SND-A\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-KeywordsList: _;gettext;gettext_noop;translate\n"
"X-Poedit-Basepath: /wamp/www/extranet2.4/\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: .\n"
#: application/languages/totranslate.php:3
msgid "RECHERCHES"
msgstr "SEARCHES"
#: application/languages/totranslate.php:4
msgid "Rechercher une entreprise"
msgstr "Search a company"
#: application/languages/totranslate.php:5
msgid "Rechercher par dirigeant"
msgstr "Search by manager"
#: application/languages/totranslate.php:6
msgid "Recherche Internationale"
msgstr "International search"
#: application/languages/totranslate.php:7
msgid "Rechercher une annonce"
msgstr "Search an advertisment"
#: application/languages/totranslate.php:8
msgid "Rechercher par actionnaire"
msgstr "Search by shareholder"
#: application/languages/totranslate.php:9
msgid "Dernière recherche"
msgstr "Recent Search"
#: application/languages/totranslate.php:10
msgid "Liste des dernières recherches"
msgstr "List of recent searches"
#: application/languages/totranslate.php:11
msgid "Centrale IparI"
msgstr "Central IparI"
#: application/languages/totranslate.php:12
msgid "IDENTITE"
msgstr "IDENTITY"
#: application/languages/totranslate.php:13
msgid "Fiche d'identité"
msgstr "Identity card"
#: application/languages/totranslate.php:14
msgid "Fiche Procédure Collective"
msgstr "Procedure Data Collective"
#: application/languages/totranslate.php:15
msgid "Liste des établissements"
msgstr "List of istitutions"
#: application/languages/totranslate.php:16
msgid "Liens inter-entreprises"
msgstr "Links between companies"
#: application/languages/totranslate.php:17
msgid "Informations Groupe"
msgstr "Informations Group"
#: application/languages/totranslate.php:18
msgid "Modifications Insee"
msgstr "Insee modifications"
#: application/languages/totranslate.php:19
msgid "DIRIGEANTS"
msgstr "MANAGERS"
#: application/languages/totranslate.php:20
msgid "Liste des dirigeants"
msgstr "List of managers"
#: application/languages/totranslate.php:21
msgid "Historique des dirigeants"
msgstr "History of Managers"
#: application/languages/totranslate.php:22
msgid "ELEMENTS FINANCIERS"
msgstr "FINANCIAL ELEMENTS"
#: application/languages/totranslate.php:23
msgid "Synthèse"
msgstr "Synthesis"
#: application/languages/totranslate.php:24
msgid "Bilans, Compte de résultat"
msgstr "Balances, Income statement"
#: application/languages/totranslate.php:25
msgid "Ratios"
msgstr "Ratios"
#: application/languages/totranslate.php:26
msgid "Flux de trésorerie"
msgstr "Cash flow"
#: application/languages/totranslate.php:27
msgid "Liasse fiscale"
msgstr "Tax return"
#: application/languages/totranslate.php:28
msgid "Bourse & Cotations"
msgstr "Purse & Quotes"
#: application/languages/totranslate.php:29
msgid "Relations bancaires"
msgstr "Banking relationships"
#: application/languages/totranslate.php:30
msgid "ELEMENTS JURIDIQUES"
msgstr "LEGAL ELEMENTS"
#: application/languages/totranslate.php:31
msgid "Annonces Légales"
msgstr "Legal Notices"
#: application/languages/totranslate.php:32
msgid "Information Réglementée"
msgstr "Regulated Information"
#: application/languages/totranslate.php:33
msgid "Compétences Territoriales"
msgstr "Territorial competences"
#: application/languages/totranslate.php:34
msgid "Conventions collectives"
msgstr "Collective agreements"
#: application/languages/totranslate.php:35
msgid "Marques déposées"
msgstr "Trademarks"
#: application/languages/totranslate.php:36
msgid "BANQUE DE FRANCE"
msgstr "BANK OF FRANCE"
#: application/languages/totranslate.php:37
msgid "27. Panorama"
msgstr "27. Panorama"
#: application/languages/totranslate.php:38
msgid "28. Concours Bancaires"
msgstr "28. Banking competition"
#: application/languages/totranslate.php:39
msgid "29. Impayés"
msgstr "29. Unpaid"
#: application/languages/totranslate.php:40
msgid "40. Relations Bancaires"
msgstr "40. Banking relations"
#: application/languages/totranslate.php:41
msgid "51. Dirigeants"
msgstr "51. Managers"
#: application/languages/totranslate.php:42
msgid "Autres"
msgstr "Others"
#: application/languages/totranslate.php:43
msgid "EVALUATION"
msgstr "EVALUATION"
#: application/languages/totranslate.php:44
msgid "IndiScore"
msgstr "IndiScore"
#: application/languages/totranslate.php:45
msgid "Rapport de synthèse"
msgstr "Synthesis Report"
#: application/languages/totranslate.php:46
msgid "Rapport complet"
msgstr "Full report"
#: application/languages/totranslate.php:47
msgid "Valorisation"
msgstr "Valuation"
#: application/languages/totranslate.php:48
msgid "Scoring Credit Safe"
msgstr "Scoring Credit Safe"
#: application/languages/totranslate.php:49
msgid "Enquête commerciale"
msgstr "Commercial survey"
#: application/languages/totranslate.php:50
msgid "PIECES OFFICIELLES"
msgstr "OFFICIAL DOCUMENTS"
#: application/languages/totranslate.php:51
msgid "Commande de Pièces"
msgstr "Parts ordering"
#: application/languages/totranslate.php:52
msgid "Comptes annuels"
msgstr "Annual accounts"
#: application/languages/totranslate.php:53
msgid "Actes & Statuts"
msgstr "Acts & Statutes"
#: application/languages/totranslate.php:54
msgid "Suivi Privilèges"
msgstr "Monitoring Privileges"
#: application/languages/totranslate.php:55
msgid "OPTIONS"
msgstr "OPTIONS"
#: application/languages/totranslate.php:56
msgid "Nouveautés"
msgstr "News"
#: application/languages/totranslate.php:57
msgid "Mes options"
msgstr "My options"
#: application/languages/totranslate.php:58
msgid "Mes surveillances"
msgstr "My supervisions"
#: application/languages/totranslate.php:59
msgid "Surveillances fichier"
msgstr "Monitoring file"
#: application/languages/totranslate.php:60
msgid "Mon portefeuille"
msgstr "My fortfolio"
#: application/languages/totranslate.php:61
msgid "Administration"
msgstr "Administration"
#: application/languages/totranslate.php:62
msgid "Surveillances"
msgstr "Monitoring"
#: application/languages/totranslate.php:63
msgid "Se déconnecter"
msgstr "Disconnect"
#: application/languages/totranslate.php:64
msgid "GESTION S&D"
msgstr "S&D MANAGEMENT"
#: application/languages/totranslate.php:65
msgid "Gestion"
msgstr "Management"
#: application/languages/totranslate.php:66
msgid "Saisie / Edition"
msgstr "Enter / Edit"
#: application/languages/totranslate.php:67
msgid "Saisie Fiche Etrangère"
msgstr "Entering Foreign Data"
#: application/languages/totranslate.php:70
#: application/views/default/scripts/footer.phtml:15
msgid "Mentions légales"
msgstr "Legal Notices"
#: application/languages/totranslate.php:71
#: application/views/default/scripts/footer.phtml:14
msgid "Scores & Decisions SAS - Tous droits réservés - "
msgstr "Scores & Decisions SAS - All rights reserved - "
#: application/languages/totranslate.php:74
msgid "Ordinateur"
msgstr "Computer"
#: application/languages/totranslate.php:75
msgid "Mobile"
msgstr "Mobile"
#: application/languages/totranslate.php:76
msgid "Navigateur"
msgstr "Browser"
#: application/languages/totranslate.php:77
msgid "Résolution d'écran"
msgstr "Display resolution"
#: application/languages/totranslate.php:78
msgid "Type d'appareil"
msgstr "Device type"
#: library/Form/RechercheEntreprise.php:48
msgid "siren"
msgstr "SIREN"
#: library/Form/RechercheEntreprise.php:60
msgid "raisonSocial"
msgstr "TRADE NAME / SIGN / ACRONYM"
#: library/Form/RechercheEntreprise.php:73
msgid "No"
msgstr "N°"
#: library/Form/RechercheEntreprise.php:85
msgid "Voie"
msgstr "Street"
#: library/Form/RechercheEntreprise.php:97
msgid "NandVois"
msgstr "N° and Street"
#: library/Form/RechercheEntreprise.php:122
msgid "ville"
msgstr "ZC OR DEP. / CITY"
#: library/Form/RechercheEntreprise.php:134
msgid "tel-fax"
msgstr "TEL / FAX"
#: library/Form/RechercheEntreprise.php:146
msgid "naf"
msgstr "NAF"
#: library/Form/RechercheEntreprise.php:159
msgid "pays"
msgstr "Country"
#: library/Form/RechercheEntreprise.php:164
msgid "France"
msgstr "France"
#: library/Form/RechercheEntreprise.php:165
msgid "Belgique"
msgstr "Belgium"
#: library/Form/RechercheEntreprise.php:166
msgid "Espagne"
msgstr "Spain"
#: library/Form/RechercheEntreprise.php:167
msgid "Royaume-Uni"
msgstr "United Kingdom"
#: library/Form/RechercheEntreprise.php:168
msgid "Pays-Bas"
msgstr "The Netherlands"
#: library/Form/RechercheEntreprise.php:174
#: application/views/default/scripts/recherche/entreprise.phtml:12
msgid "recherche"
msgstr "Search"
#: library/Form/RechercheEntreprise.php:182
msgid "effacer"
msgstr "Delete"
#: application/views/default/scripts/dashboard/stat.phtml:2
msgid "Toutes les statistiques"
msgstr "All statistics"
#: application/views/default/scripts/recherche/entreprise.phtml:12
msgid "entreprise"
msgstr "Company"
#: application/views/default/scripts/recherche/entreprise.phtml:21
msgid "Recherche par SIREN SIRET N° TVA intracommunautaire N° RC RNA ISIN"
msgstr "Search by SIREN, SIRET, N° VAT, N° RC, R.N.A., ISIN"
#: application/views/default/scripts/recherche/entreprise.phtml:22
msgid ""
"Accès direct à la fiche identité Racourci clavier Maintenir CTRL puis ENTREE"
msgstr ""
"Direct access to identity card (Keyboard shortcut: Hold CTRL and press ENTER)"
#~ msgid "Browser"
#~ msgstr "Browser"
#~ msgid "Display resolution"
#~ msgstr "Display resolution"
#~ msgid "Device type"
#~ msgstr "Device type"
#~ msgid "Computer"
#~ msgstr "Computer"
#~ msgid "All statistics"
#~ msgstr "All statistics"
#~ msgid "Hello"
#~ msgstr "Hello"
#~ msgid "Hello World!"
#~ msgstr "Hello World!"
#~ msgid "This is a Zend_Translate demonstration"
#~ msgstr "This is a Zend_Translate demonstration"

BIN
application/languages/fr.mo Normal file

Binary file not shown.

419
application/languages/fr.po Normal file
View File

@ -0,0 +1,419 @@
msgid ""
msgstr ""
"Project-Id-Version: Extranet2.4\n"
"POT-Creation-Date: 2013-04-09 17:16+0400\n"
"PO-Revision-Date: 2013-04-09 17:16+0400\n"
"Last-Translator: \n"
"Language-Team: SND-A\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.5\n"
"X-Poedit-KeywordsList: _;gettext;gettext_noop;translate\n"
"X-Poedit-Basepath: /wamp/www/extranet2.4/\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: .\n"
#: application/languages/totranslate.php:3
msgid "RECHERCHES"
msgstr "RECHERCHES"
#: application/languages/totranslate.php:4
msgid "Rechercher une entreprise"
msgstr "Rechercher une entreprise"
#: application/languages/totranslate.php:5
msgid "Rechercher par dirigeant"
msgstr "Rechercher par dirigeant"
#: application/languages/totranslate.php:6
msgid "Recherche Internationale"
msgstr "Recherche Internationale"
#: application/languages/totranslate.php:7
msgid "Rechercher une annonce"
msgstr "Rechercher une annonce"
#: application/languages/totranslate.php:8
msgid "Rechercher par actionnaire"
msgstr "Rechercher par actionnaire"
#: application/languages/totranslate.php:9
msgid "Dernière recherche"
msgstr "Dernière recherche"
#: application/languages/totranslate.php:10
msgid "Liste des dernières recherches"
msgstr "Liste des dernières recherches"
#: application/languages/totranslate.php:11
msgid "Centrale IparI"
msgstr "Centrale IparI"
#: application/languages/totranslate.php:12
msgid "IDENTITE"
msgstr "IDENTITE"
#: application/languages/totranslate.php:13
msgid "Fiche d'identité"
msgstr "Fiche d'identité"
#: application/languages/totranslate.php:14
msgid "Fiche Procédure Collective"
msgstr "Fiche Procédure Collective"
#: application/languages/totranslate.php:15
msgid "Liste des établissements"
msgstr "Liste des établissements"
#: application/languages/totranslate.php:16
msgid "Liens inter-entreprises"
msgstr "Liens inter-entreprises"
#: application/languages/totranslate.php:17
msgid "Informations Groupe"
msgstr "Informations Groupe"
#: application/languages/totranslate.php:18
msgid "Modifications Insee"
msgstr "Modifications Insee"
#: application/languages/totranslate.php:19
msgid "DIRIGEANTS"
msgstr "DIRIGEANTS"
#: application/languages/totranslate.php:20
msgid "Liste des dirigeants"
msgstr "Liste des dirigeants"
#: application/languages/totranslate.php:21
msgid "Historique des dirigeants"
msgstr "Historique des dirigeants"
#: application/languages/totranslate.php:22
msgid "ELEMENTS FINANCIERS"
msgstr "ELEMENTS FINANCIERS"
#: application/languages/totranslate.php:23
msgid "Synthèse"
msgstr "Synthèse"
#: application/languages/totranslate.php:24
msgid "Bilans, Compte de résultat"
msgstr "Bilans, Compte de résultat"
#: application/languages/totranslate.php:25
msgid "Ratios"
msgstr "Ratios"
#: application/languages/totranslate.php:26
msgid "Flux de trésorerie"
msgstr "Flux de trésorerie"
#: application/languages/totranslate.php:27
msgid "Liasse fiscale"
msgstr "Liasse fiscale"
#: application/languages/totranslate.php:28
msgid "Bourse & Cotations"
msgstr "Bourse & Cotations"
#: application/languages/totranslate.php:29
msgid "Relations bancaires"
msgstr "Relations bancaires"
#: application/languages/totranslate.php:30
msgid "ELEMENTS JURIDIQUES"
msgstr "ELEMENTS JURIDIQUES"
#: application/languages/totranslate.php:31
msgid "Annonces Légales"
msgstr "Annonces Légales"
#: application/languages/totranslate.php:32
msgid "Information Réglementée"
msgstr "Information Réglementée"
#: application/languages/totranslate.php:33
msgid "Compétences Territoriales"
msgstr "Compétences Territoriales"
#: application/languages/totranslate.php:34
msgid "Conventions collectives"
msgstr "Conventions collectives"
#: application/languages/totranslate.php:35
msgid "Marques déposées"
msgstr "Marques déposées"
#: application/languages/totranslate.php:36
msgid "BANQUE DE FRANCE"
msgstr "BANQUE DE FRANCE"
#: application/languages/totranslate.php:37
msgid "27. Panorama"
msgstr "27. Panorama"
#: application/languages/totranslate.php:38
msgid "28. Concours Bancaires"
msgstr "28. Concours Bancaires"
#: application/languages/totranslate.php:39
msgid "29. Impayés"
msgstr "29. Impayés"
#: application/languages/totranslate.php:40
msgid "40. Relations Bancaires"
msgstr "40. Relations Bancaires"
#: application/languages/totranslate.php:41
msgid "51. Dirigeants"
msgstr "51. Dirigeants"
#: application/languages/totranslate.php:42
msgid "Autres"
msgstr "Autres"
#: application/languages/totranslate.php:43
msgid "EVALUATION"
msgstr "EVALUATION"
#: application/languages/totranslate.php:44
msgid "IndiScore"
msgstr "IndiScore"
#: application/languages/totranslate.php:45
msgid "Rapport de synthèse"
msgstr "Rapport de synthèse"
#: application/languages/totranslate.php:46
msgid "Rapport complet"
msgstr "Rapport complet"
#: application/languages/totranslate.php:47
msgid "Valorisation"
msgstr "Valorisation"
#: application/languages/totranslate.php:48
msgid "Scoring Credit Safe"
msgstr "Scoring Credit Safe"
#: application/languages/totranslate.php:49
msgid "Enquête commerciale"
msgstr "Enquête commerciale"
#: application/languages/totranslate.php:50
msgid "PIECES OFFICIELLES"
msgstr "PIECES OFFICIELLES"
#: application/languages/totranslate.php:51
msgid "Commande de Pièces"
msgstr "Commande de Pièces"
#: application/languages/totranslate.php:52
msgid "Comptes annuels"
msgstr "Comptes annuels"
#: application/languages/totranslate.php:53
msgid "Actes & Statuts"
msgstr "Actes & Statuts"
#: application/languages/totranslate.php:54
msgid "Suivi Privilèges"
msgstr "Suivi Privilèges"
#: application/languages/totranslate.php:55
msgid "OPTIONS"
msgstr "OPTIONS"
#: application/languages/totranslate.php:56
msgid "Nouveautés"
msgstr "Nouveautés"
#: application/languages/totranslate.php:57
msgid "Mes options"
msgstr "Mes options"
#: application/languages/totranslate.php:58
msgid "Mes surveillances"
msgstr "Mes surveillances"
#: application/languages/totranslate.php:59
msgid "Surveillances fichier"
msgstr "Surveillances fichier"
#: application/languages/totranslate.php:60
msgid "Mon portefeuille"
msgstr "Mon portefeuille"
#: application/languages/totranslate.php:61
msgid "Administration"
msgstr "Administration"
#: application/languages/totranslate.php:62
msgid "Surveillances"
msgstr "Surveillances"
#: application/languages/totranslate.php:63
msgid "Se déconnecter"
msgstr "Se déconnecter"
#: application/languages/totranslate.php:64
msgid "GESTION S&D"
msgstr "GESTION S&D"
#: application/languages/totranslate.php:65
msgid "Gestion"
msgstr "Gestion"
#: application/languages/totranslate.php:66
msgid "Saisie / Edition"
msgstr "Saisie / Edition"
#: application/languages/totranslate.php:67
msgid "Saisie Fiche Etrangère"
msgstr "Saisie Fiche Etrangère"
#: application/languages/totranslate.php:70
#: application/views/default/scripts/footer.phtml:15
msgid "Mentions légales"
msgstr "Mentions légales"
#: application/languages/totranslate.php:71
#: application/views/default/scripts/footer.phtml:14
msgid "Scores & Decisions SAS - Tous droits réservés - "
msgstr "Scores & Decisions SAS - Tous droits réservés - "
#: application/languages/totranslate.php:74
msgid "Ordinateur"
msgstr "Ordinateur"
#: application/languages/totranslate.php:75
msgid "Mobile"
msgstr "Mobile"
#: application/languages/totranslate.php:76
msgid "Navigateur"
msgstr "Navigateur"
#: application/languages/totranslate.php:77
msgid "Résolution d'écran"
msgstr "Résolution d'écran"
#: application/languages/totranslate.php:78
msgid "Type d'appareil"
msgstr "Type d'appareil"
#: library/Form/RechercheEntreprise.php:48
msgid "siren"
msgstr "SIREN"
#: library/Form/RechercheEntreprise.php:60
msgid "raisonSocial"
msgstr "RAISON SOCIALE / ENSEIGNE / SIGLE"
#: library/Form/RechercheEntreprise.php:73
msgid "No"
msgstr "N°"
#: library/Form/RechercheEntreprise.php:85
msgid "Voie"
msgstr "Voie"
#: library/Form/RechercheEntreprise.php:97
msgid "NandVois"
msgstr "N° & Voie"
#: library/Form/RechercheEntreprise.php:122
msgid "ville"
msgstr "CP OU DÉP. / VILLE"
#: library/Form/RechercheEntreprise.php:134
msgid "tel-fax"
msgstr "TÉL / FAX"
#: library/Form/RechercheEntreprise.php:146
msgid "naf"
msgstr "NAF"
#: library/Form/RechercheEntreprise.php:159
msgid "pays"
msgstr "Pays"
#: library/Form/RechercheEntreprise.php:164
msgid "France"
msgstr "France"
#: library/Form/RechercheEntreprise.php:165
msgid "Belgique"
msgstr "Belgique"
#: library/Form/RechercheEntreprise.php:166
msgid "Espagne"
msgstr "Espagne"
#: library/Form/RechercheEntreprise.php:167
msgid "Royaume-Uni"
msgstr "Royaume-Uni"
#: library/Form/RechercheEntreprise.php:168
msgid "Pays-Bas"
msgstr "Pays-Bas"
#: library/Form/RechercheEntreprise.php:174
#: application/views/default/scripts/recherche/entreprise.phtml:12
msgid "recherche"
msgstr "Recherche"
#: library/Form/RechercheEntreprise.php:182
msgid "effacer"
msgstr "Effacer"
#: application/views/default/scripts/dashboard/stat.phtml:2
msgid "Toutes les statistiques"
msgstr "Toutes les statistiques"
#: application/views/default/scripts/recherche/entreprise.phtml:12
msgid "entreprise"
msgstr "Entreprise"
#: application/views/default/scripts/recherche/entreprise.phtml:21
msgid "Recherche par SIREN SIRET N° TVA intracommunautaire N° RC RNA ISIN"
msgstr ""
"Recherche par SIREN, SIRET, N° TVA intracommunautaire, N° RC, R.N.A., ISIN"
#: application/views/default/scripts/recherche/entreprise.phtml:22
msgid ""
"Accès direct à la fiche identité Racourci clavier Maintenir CTRL puis ENTREE"
msgstr ""
"Accès direct à la fiche identité (Racourci clavier : Maintenir CTRL puis "
"ENTREE)"
#, fuzzy
#~ msgid "Recherche"
#~ msgstr "Recherche"
#~ msgid "Browser"
#~ msgstr "Navigateur"
#~ msgid "Display resolution"
#~ msgstr "Résolution d'écran"
#~ msgid "Device type"
#~ msgstr "Type d'appareil"
#~ msgid "Computer"
#~ msgstr "Ordinateur"
#~ msgid "All statistics"
#~ msgstr "Toutes les statistiques"
#~ msgid "Hello"
#~ msgstr "Bonjour"
#~ msgid "Hello World!"
#~ msgstr "Bonjour Monde!"
#~ msgid "This is a Zend_Translate demonstration"
#~ msgstr "C'est une demonstration de Zend Translate"

View File

@ -0,0 +1,79 @@
<?php
//menu
$this->translate('RECHERCHES');
$this->translate('Rechercher une entreprise');
$this->translate('Rechercher par dirigeant');
$this->translate('Recherche Internationale');
$this->translate('Rechercher une annonce');
$this->translate('Rechercher par actionnaire');
$this->translate('Dernière recherche');
$this->translate('Liste des dernières recherches');
$this->translate('Centrale IparI');
$this->translate('IDENTITE');
$this->translate('Fiche d\'identité');
$this->translate('Fiche Procédure Collective');
$this->translate('Liste des établissements');
$this->translate('Liens inter-entreprises');
$this->translate('Informations Groupe');
$this->translate('Modifications Insee');
$this->translate('DIRIGEANTS');
$this->translate('Liste des dirigeants');
$this->translate('Historique des dirigeants');
$this->translate('ELEMENTS FINANCIERS');
$this->translate('Synthèse');
$this->translate('Bilans, Compte de résultat');
$this->translate('Ratios');
$this->translate('Flux de trésorerie');
$this->translate('Liasse fiscale');
$this->translate('Bourse & Cotations');
$this->translate('Relations bancaires');
$this->translate('ELEMENTS JURIDIQUES');
$this->translate('Annonces Légales');
$this->translate('Information Réglementée');
$this->translate('Compétences Territoriales');
$this->translate('Conventions collectives');
$this->translate('Marques déposées');
$this->translate('BANQUE DE FRANCE');
$this->translate('27. Panorama');
$this->translate('28. Concours Bancaires');
$this->translate('29. Impayés');
$this->translate('40. Relations Bancaires');
$this->translate('51. Dirigeants');
$this->translate('Autres');
$this->translate('EVALUATION');
$this->translate('IndiScore');
$this->translate('Rapport de synthèse');
$this->translate('Rapport complet');
$this->translate('Valorisation');
$this->translate('Scoring Credit Safe');
$this->translate('Enquête commerciale');
$this->translate('PIECES OFFICIELLES');
$this->translate('Commande de Pièces');
$this->translate('Comptes annuels');
$this->translate('Actes & Statuts');
$this->translate('Suivi Privilèges');
$this->translate('OPTIONS');
$this->translate('Nouveautés');
$this->translate('Mes options');
$this->translate('Mes surveillances');
$this->translate('Surveillances fichier');
$this->translate('Mon portefeuille');
$this->translate('Administration');
$this->translate('Surveillances');
$this->translate('Se déconnecter');
$this->translate('GESTION S&D');
$this->translate('Gestion');
$this->translate('Saisie / Edition');
$this->translate('Saisie Fiche Etrangère');
//footer
$this->translate('Mentions légales');
$this->translate('Scores & Decisions SAS - Tous droits réservés - ');
//dashboard controller
$this->translate('Ordinateur');
$this->translate('Mobile');
$this->translate('Navigateur');
$this->translate('Résolution d\'écran');
$this->translate('Type d\'appareil');
?>

View File

@ -1,4 +1,8 @@
<?php if ($this->navigation()->menu()->hasPages()) { ?>
<div style='float:right; height:20px' >
<a href=<?=$this->url(array('lang' => 'fr'));?>><img src="/themes/default/images/drapeaux/fr.png"/></a>
<a href=<?=$this->url(array('lang' => 'en'));?>><img src="/themes/default/images/drapeaux/en.png"/></a>
</div>
<div id="menu">
<div id="logo">
<img src="/themes/default/images/logos/logo_sd.gif" width="200" height="65" />

View File

@ -10,8 +10,9 @@
<div class="paragraph">
<?php $referer = isset($_REQUEST['referer'])?$_REQUEST['referer']:''; ?>
<form id="moncompte" name="moncompte" action="/user" method="post">
<input type="hidden" name="referer" value="<?=$_REQUEST['referer']?>"/>
<input type="hidden" name="referer" value="<?=$referer; ?>"/>
<input type="hidden" name="login" value="<?=$this->loginVu?>"/>
<input type="hidden" name="frmOptions[idClient]" value="<?=$this->options->idClient?>"/>
<input type="hidden" name="frmOptions[action]" value="<?=$this->action?>"/>
@ -86,6 +87,21 @@ if ($this->isAdmin || $this->isSuperAdmin){
);
}
?>
<div class="infoTitle StyleInfoLib">Langue de l'interface par défaut</div>
<div class="infoData">
<select name="frmOptions[lang]">
<?php
$lngOpts = array('fr' => 'Français', 'en' => 'English');
foreach($lngOpts as $lngKey => $lngVal)
{
$selected = '';
if($lngKey == $this->lang) $selected = 'selected';
?><option value="<?=$lngKey?>" <?=$selected?>><?=$lngVal?></option><?php
}
?>
</select>
</div>
</div>
<h2>Informations</h2>

View File

@ -0,0 +1,49 @@
<?php
class Application_Controller_Plugin_Language extends Zend_Controller_Plugin_Abstract
{
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$registry = Zend_Registry::getInstance();
$translate = $registry->get('Zend_Translate');
$currLocale = $translate->getLocale();
$user = new Scores_Utilisateur();
$lang = $request->getParam('lang', '');
switch ($lang) {
case "fr":
$langLocale = 'fr';
break;
case "en":
$langLocale = 'en';
break;
default:
$langLocale = $user->getLang();
}
$newLocale = new Zend_Locale();
$newLocale->setLocale($langLocale);
$registry->set('Zend_Locale', $newLocale);
$translate->setLocale($langLocale);
$this->setSessionLang($langLocale);
$registry->set('Zend_Translate', $translate);
}
/**
* Save new lang value into session
* @param string $lang
*/
protected function setSessionLang($lang)
{
$authStorage = Zend_Auth::getInstance()->getStorage();
$authData = $authStorage->read();
if($authData)
{
$authData->lang = $lang;
$authStorage->write($authData);
}
}
}

View File

@ -0,0 +1,22 @@
<?php
class SelectLang
{
protected $curLang = 'fr';
public function __construct()
{
$utilisateur = new Scores_Utilisateur();
$this->curLang = $utilisateur->getLang();
}
/**
* Retourne le titre de la colonne de la table selon la langue choisie
* @param string Column Name
* @return string New Column Name
*/
public function langSetDB($colName)
{
$newColName = ($this->curLang == 'fr') ? $colName : $colName.ucfirst($this->curLang);
return $newColName;
}
}

View File

@ -196,6 +196,23 @@ class Scores_Utilisateur
return $hasPref;
}
/**
* Retourne la langue par défaut du client
*/
public function getLang()
{
return $this->identity->lang;
}
/**
* Sets language new value
* @param $lang
*/
public function setLang($lang)
{
$this->identity->lang = $lang;
}
/**
* Get browser information
*/

View File

@ -16,6 +16,7 @@ resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.plugins.Language = "Application_Controller_Plugin_Language"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "main"
resources.layout.layoutPath = APPLICATION_PATH "/views/default"

View File

@ -16,6 +16,7 @@ resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.plugins.Language = "Application_Controller_Plugin_Language"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "main"
resources.layout.layoutPath = APPLICATION_PATH "/views/default"

View File

@ -16,6 +16,7 @@ resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.plugins.Language = "Application_Controller_Plugin_Language"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "main"
resources.layout.layoutPath = APPLICATION_PATH "/views/default"

View File

@ -16,6 +16,7 @@ resources.frontController.plugins.Menu = "Application_Controller_Plugin_Menu"
resources.frontController.plugins.Pdf = "Application_Controller_Plugin_Pdf"
resources.frontController.plugins.Xml = "Application_Controller_Plugin_Xml"
resources.frontController.plugins.Cgu = "Application_Controller_Plugin_Cgu"
resources.frontController.plugins.Language = "Application_Controller_Plugin_Language"
resources.frontController.params.displayExceptions = 0
resources.layout.layout = "main"
resources.layout.layoutPath = APPLICATION_PATH "/views/default"