Fix lang variables - refs #7768

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 70910c7706
commit 65cf78cd06
  1. 121
      plugin/buycourses/lang/english.php
  2. 116
      plugin/buycourses/lang/french.php
  3. 123
      plugin/buycourses/lang/spanish.php
  4. 6
      plugin/buycourses/src/buy_course_plugin.class.php
  5. 2
      plugin/buycourses/src/function.php
  6. 7
      plugin/buycourses/src/index.buycourses.php
  7. 11
      plugin/buycourses/src/paymentsetup.php
  8. 3
      plugin/buycourses/src/process_confirm.php
  9. 11
      plugin/buycourses/src/success.php
  10. 2
      plugin/buycourses/view/catalog.tpl
  11. 2
      plugin/buycourses/view/index.tpl
  12. 9
      plugin/buycourses/view/message_transfer.tpl
  13. 2
      plugin/buycourses/view/paymentsetup.tpl
  14. 3
      plugin/buycourses/view/process_confirm.tpl
  15. 6
      plugin/buycourses/view/sales_report.tpl

@ -3,86 +3,83 @@ $strings['plugin_title'] = "Sell courses";
$strings['plugin_comment'] = "Sell courses directly through your Chamilo portal, using a PayPal account to receive funds. This plugin is in beta version. Neither the Chamilo association nor the developers involved could be considered responsible of any issue you might suffer using this plugin.";
$strings['show_main_menu_tab'] = "Show tab in main menu";
$strings['show_main_menu_tab_help'] = "In case of not wanting to show the tab, you can create this link in your Chamilo homepage : %s";
$strings['Visible'] = "Show list";
$strings['Options'] = "Options";
$strings['Price'] = "Price";
$strings['SyncCourseDatabase'] = "Synchronize courses from database";
$strings['Private'] = "Private - access authorized only for course members";
$strings['CourseVisibilityClosed'] = "Closed - no access to this course";
$strings['OpenToThePlatform'] = "Open - access authorized only for users registered on the platform";
$strings['OpenToTheWorld'] = "Public - access open to anybody";
$strings['CourseVisibilityHidden'] = "Hidden - Completely hidden to all users except the administrators";
$strings['Description'] = "Description";
$strings['Buy'] = "Buy";
$strings['Mostrar_disponibles'] = "Show available courses";
$strings['include_sessions'] = "Include sessions";
$strings['paypal_enable'] = "Enable PayPal";
$strings['transfer_enable'] = "Enable bank transfer";
$strings['unregistered_users_enable'] = "Allow anonymous users";
$strings['Cancelacionpedido'] = "The payment has been cancelled.";
$strings['AlreadyBuy'] = "You are already subscribed to this course.";
$strings['bc_subject'] = "Confirmation of course order";
$strings['paypal'] = 'PayPal';
$strings['confirmar_compra'] = 'Course purchase confirmation';
$strings['TheUserIsAlreadyRegistered'] = 'The user is already registered';
$strings['ProblemToSaveTheCurrencyType'] = 'Problem loading the currency type';
$strings['ProblemToSaveThePaypalParameters'] = 'Problem saving PayPal parameters';
$strings['ProblemToInsertANewAccount'] = 'Problem inserting the new account';
$strings['ProblemToDeleteTheAccount'] = 'Problem removing account';
$strings['ProblemToSaveTheMessage'] = 'Problem saving message';
$strings['ProblemToSubscribeTheUser'] = 'Problem subscribing the user';
$strings['TheSubscriptionAndActivationWereDoneSuccessfully'] = 'The subscription and activation were successful';
$strings['TheUserIsAlreadyRegisteredInTheCourse'] = 'You are already registered in the course.';
$strings['CourseListOnSale'] = 'List of courses on sale';
$strings['BuySessions'] = "Buy sessions";
$strings['BuyCourses'] = 'Buy courses';
$strings['ConfigurationOfCoursesAndPrices'] = 'Courses and prices configuration';
$strings['ConfigurationOfPayments'] = 'Payments configuration';
$strings['OrdersPendingOfPayment'] = 'Orders awaiting payment';
$strings['AvailableCoursesConfiguration'] = 'Available courses configuration';
$strings['PaymentsConfiguration'] = 'Payments configuration';
$strings['bc_message'] = "Dear {{name}}. <br />We are currently waiting for the payment confirmation. Once received, we will enable your user in course <strong>{{curso}}</strong>.<br><br><strong>Please do not forget to mention your order reference number in your transfer: <div style='display:inline;text-align:center; font-weight:bold; font-size:20px; color:#333'>{{reference}}</div></strong>";
$strings['Categories'] = "Categories";
$strings['BankTransfer'] = 'Bank transfer';
$strings['EnrollToCourseXSuccessful'] = "Your subscription to the course is complete";
$strings['SaleStatusPending'] = 'Sale pending';
$strings['SaleStatusCanceled'] = 'Sale canceled';
$strings['SaleStatusCompleted'] = 'Sale completed';
$strings['CourseListOnSale'] = 'List of courses on sale';
$strings['AvailableCourses'] = "Available Courses";
$strings['Price'] = "Price";
$strings['SearchFilter'] = "Search filter";
$strings['MinimumPrice'] = "Minimum price";
$strings['MaximumPrice'] = "Maximum price";
$strings['AvailableCourses'] = "Courses available";
$strings['PaymentConfiguration'] = "Payment configuration";
$strings['AvailableCoursesConfiguration'] = 'Available courses configuration';
$strings['PaymentsConfiguration'] = 'Payments configuration';
$strings['TheUserIsAlreadyRegisteredInTheCourse'] = 'You are already registered in the course.';
$strings['SeeDescription'] = "Description";
$strings['Buy'] = "Buy";
$strings['WaitingToReceiveThePayment'] = "Currently pending payment";
$strings['CurrencyType'] = "Currency type";
$strings['SelectACurrency'] = "Choose a currency";
$strings['Sandbox'] = "Test environment";
$strings['BankAccount'] = "Bank account";
$strings['SubscribeUser'] = "Subscribe user";
$strings['DeleteTheOrder'] = "Delete order";
$strings['ReferenceOrder'] = 'Order reference';
$strings['TheUserIsAlreadyRegisteredInTheSession'] = 'You are already registered in the session';
$strings['ItemNotSaved'] = 'Item not saved';
$strings['TitlePlugin'] = 'Everything you need to teach and sell courses online';
$strings['PluginPresentation'] = 'The BuyCourses Plugin gives you the means to sell your courses or sessions and teach online, through only a few simple steps and settings. What are you waiting for? Start selling courses through Chamilo LMS!';
$strings['Instructions'] = 'Instructions';
$strings['InstructionsStepOne'] = 'Create a course or session on the platform.';
$strings['InstructionsStepTwo'] = 'In the <strong>payment settings</strong>, set the currency with which you would like to sell your courses or sessions.';
$strings['InstructionsStepThree'] = 'Configure courses to sell in the <strong>Courses and prices</strong > settings.';
$strings['BuyCourses'] = 'Buy courses';
$strings['ConfigurationOfCoursesAndPrices'] = 'Courses and prices configuration';
$strings['SalesReport'] = 'Sales report';
$strings['UserInformation'] = "Buyer's details";
$strings['OnceItIsConfirmed,YouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'] = "Once confirmed, you will receive an e-mail with the bank details and an order reference.";
$strings['BankAccountInformation'] = 'Bank account details';
$strings['ConfirmOrder'] = 'Confirm order';
$strings['PaymentMethods'] = 'Payment methods';
$strings['ConfirmOrder'] = 'Confirm order';
$strings['PurchaseData'] = 'Purchasse data';
$strings['bc_subject'] = "Confirmation of course order";
$strings['PurchaseStatusX'] = "Purchase status: %s";
$strings['PendingReasonByTransfer'] = '<b>Pending</b>. Awaiting for transfer confirmation';
$strings['CancelOrder'] = 'Cancel order';
$strings['BankAccountInformation'] = 'Bank account details';
$strings['BankAccount'] = "Bank account";
$strings['OnceItIsConfirmedYouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'] = "Once confirmed, you will receive an e-mail with the bank details and an order reference.";
$strings['SubscriptionToCourseXSuccessful'] = "Your subscription to \"%s\" was completed successfully.";
$strings['OrderCanceled'] = "Order canceled";
$strings['OrderStatus'] = 'Order status';
$strings['SearchByStatus'] = 'Search by status';
$strings['OrderReference'] = 'Order reference';
$strings['OrderDate'] = 'Order date';
$strings['ProductType'] = 'Product type';
$strings['SubscribeUser'] = "Subscribe user";
$strings['DeleteOrder'] = "Delete order";
$strings['ErrorContactPlatformAdmin'] = "Unknown error. Please contact the platform administrator.";
$strings['PendingReasonByAddress'] = "<b>Pending</b>. You did not enter a confirmed shipping address.";
$strings['PendingReasonByAuthorization'] = "<b>Pending</b>. We have not yet captured funds.";
$strings['PendingReasonByEcheck'] = "<b>Pending</b>. The payment was made by an eCheck that has not yet cleared";
$strings['PendingReasonByIntl'] = "<b>Pending</b>. We have no a withdrawal mechanism for funds.";
$strings['PendingReasonByMulticurrency'] = "<b>Pending</b>. We have not balance in the currency sent.";
$strings['PendingReasonByOrder'] = "<b>Pending</b>. Order made. We have not yet captured funds.";
$strings['PendingReasonByPaymentReview'] = "<b>Pending</b>. The payment is being reviewed by PayPal for risk.";
$strings['PendingReasonByRegulatoryReview'] = "<b>Pending</b>. The payment is being reviewed for compliance with government regulations.";
$strings['PendingReasonByUnilateral'] = "<b>Pending</b>. The email address is not yet registered o confirmed.";
$strings['PendingReasonByUpgrade'] = "<b>Pending</b>. The payment was made via credit card.";
$strings['PendingReasonByVerify'] = "<b>Pending</b>. Sorry. We are not yet verified in PayPal.";
$strings['PendingReasonByOther'] = "<b>Pending</b>. Please contact with the platform admin.";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal reports the transaction is ready to be executed. To acknowledge that you are OK to proceed, please click the confirmation button below. Once clicked, you will be registered to the course and the funds will be transferred from your PayPal account to our shop. You can always access your courses through the 'My courses' tab. Thank you for your custom!";
$strings['Sandbox'] = "Test environment";
$strings['PayPalConfig'] = "PayPal configuration:";
$strings['TransfersConfig'] = "Bank transfers configuration:";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal reports the transaction is ready to be executed. To acknowledge that you are OK to proceed, please click the confirmation button below. Once clicked, you will be registered to the course and the funds will be transferred from your PayPal account to our shop. You can always access your courses through the 'My courses' tab. Thank you for your custom!";
$strings['EnrollToSessionXSuccessful'] = "Your subscription to the session is complete";
$strings['TheUserIsAlreadyRegisteredInTheSession'] = 'You are already registered in the session';
$strings['Instructions'] = 'Instructions';
$strings['InstructionsStepOne'] = 'Create a course or session on the platform.';
$strings['InstructionsStepTwo'] = 'In the <strong>payment settings</strong>, set the currency with which you would like to sell your courses or sessions.';
$strings['InstructionsStepThree'] = 'Configure courses to sell in the <strong>Courses and prices</strong > settings.';
$strings['PluginPresentation'] = 'The BuyCourses Plugin gives you the means to sell your courses or sessions and teach online, through only a few simple steps and settings. What are you waiting for? Start selling courses through Chamilo LMS!';
$strings['TitlePlugin'] = 'Everything you need to teach and sell courses online';
$strings['PluginInstruction'] = 'You can enable or disable the option to pay via PayPal or bank transfer settings in the configuration section of the plugin.';
$strings['ClickHere'] = 'Click here for more details';
$strings['ClickHere'] = '<i>Click here</i> for more details';
$strings['CurrencyType'] = "Currency type";
$strings['InfoCurrency'] = 'Sets the currency for the payment of your courses.';
$strings['ApiUsername'] = 'API Username';
$strings['ApiPassword'] = 'API Password';
$strings['ApiSignature'] = 'API Signature';
$strings['InfoApiCredentials'] = 'To generate your API credentials to integrate Chamilo with your PayPal account, you must follow the following steps';
$strings['InfoApiStepOne'] = 'Go to your PayPal account, <strong>Summary</strong>, then <front>Seller preferences</front> in the <front>Selling Tools</front> menu (if you do not have this menu entry, you might need to get the authorization to sell stuff through PayPal first).';
$strings['InfoApiStepTwo'] = 'In paragraph <strong>API access</strong>, click <strong>Update</strong>';
$strings['InfoApiStepThree'] = 'In Option 2 (Request API credentials to create your own API username and password), click the <strong>View API Signature</strong> link, and copy the credentials shown right into the BuyCourses plugin form';
$strings['ApiUsername'] = 'API Username';
$strings['ApiPassword'] = 'API Password';
$strings['ApiSignature'] = 'API Signature';

@ -3,82 +3,82 @@ $strings['plugin_title'] = "Vente de cours";
$strings['plugin_comment'] = "Vendez vos cours directement depuis votre portail Chamilo, au travers d'un compte PayPal. Plugin en version beta, à utiliser avec précaution. Ni l'association Chamilo ni les développeurs impliqués dans le développement de ce plugin ne sauraient être tenus responsables d'un quelconque inconvénient causé par celui-ci.";
$strings['show_main_menu_tab'] = "Montrer l'onglet dans le menu principal";
$strings['show_main_menu_tab_help'] = "Dans le cas où vous ne souhaitez pas montrer l'onglet, il est possible de rajouter le lien suivant à votre portail Chamilo: %s";
$strings['Visible'] = "Montrer dans la liste";
$strings['Options'] = "Options";
$strings['Price'] = "Prix";
$strings['SyncCourseDatabase'] = "Synchroniser les cours depuis la base de données";
$strings['Private'] = "Privé - Accès autorisé seulement aux inscrits au cours";
$strings['CourseVisibilityClosed'] = "Fermé - Pas d'accès au cours";
$strings['OpenToThePlatform'] = "Ouvert - Accès autorisé seulement pour les utilisateurs inscrits à la plateforme";
$strings['OpenToTheWorld'] = "Public - Accès autorisé à tous";
$strings['CourseVisibilityHidden'] = "Invisible - Complètement invisible et inaccessible pour tous les utilisateurs excepté les administrateurs";
$strings['Description'] = "Description";
$strings['Buy'] = "Acheter";
$strings['Mostrar_disponibles'] = "Montrer les cours disponibles";
$strings['include_sessions'] = "Inclure les sessions";
$strings['paypal_enable'] = "Activer PayPal";
$strings['transfer_enable'] = "Activer les transferts bancaires";
$strings['unregistered_users_enable'] = "Permettre l'accès aux utilisateurs non enregistrés sur la plateforme";
$strings['Cancelacionpedido'] = "La commande a été annulée.";
$strings['AlreadyBuy'] = "Vous êtes déjà inscrit au cours";
$strings['bc_subject'] = "Confirmation de commande de cours";
$strings['paypal'] = "PayPal";
$strings['confirmar_compra'] = "Confirmer achat de cours";
$strings['TheUserIsAlreadyRegistered'] = "L'utilisateur est déjà inscrit";
$strings['ProblemToSaveTheCurrencyType'] = "Problème de sauvegarde du type de devise";
$strings['ProblemToSaveThePaypalParameters'] = "Problème de sauvegarde des paramètres de Paypal";
$strings['ProblemToInsertANewAccount'] = "Problème à l'insertion du nouveau compte";
$strings['ProblemToDeleteTheAccount'] = "Problème de suppression du compte";
$strings['ProblemToSaveTheMessage'] = "Problème d'enregistrement du message";
$strings['ProblemToSubscribeTheUser'] = "Problème d'inscription de l'utilisateur";
$strings['TheSubscriptionAndActivationWereDoneSuccessfully'] = "L'inscription et l'activation se sont déroulés sans problème.";
$strings['TheUserIsAlreadyRegisteredInTheCourse'] = "L'utilisateur est déjà inscrit au cours";
$strings['CourseListOnSale'] = "Liste de cours en vente";
$strings['BuySessions'] = "Acheter des sessions";
$strings['BuyCourses'] = "Acheter des cours";
$strings['ConfigurationOfCoursesAndPrices'] = "Configuration des cours et prix";
$strings['ConfigurationOfPayments'] = "Configuration des paiements";
$strings['OrdersPendingOfPayment'] = "Commandes en attente de paiement";
$strings['AvailableCoursesConfiguration'] = "Configuration des cours disponibles";
$strings['PaymentsConfiguration'] = "Configuration des paiements";
$strings['bc_message'] = "Cher/Chère {{name}}. <br />À la réception de la confirmation de paiement, nous terminerons le processus d'inscrtipion au cours <strong>{{curso}}</strong>.<br><br><strong>N'oubliez pas d'indiquer le numéro de référence de la commande lors de votre transfert: <div style='display:inline;text-align:center; font-weight:bold; font-size:20px; color:#333'>{{reference}}</div></strong>";
$strings['Categories'] = "Catégories";
$strings['BankTransfer'] = 'Transfert bancaire';
$strings['EnrollToCourseXSuccessful'] = "Votre inscription au cours %s est terminée.";
$strings['SaleStatusPending'] = 'Sale pending';
$strings['SaleStatusCanceled'] = 'Sale canceled';
$strings['SaleStatusCompleted'] = 'Sale completed';
$strings['CourseListOnSale'] = "Liste de cours en vente";
$strings['AvailableCourses'] = "Cours disponibles";
$strings['Price'] = "Prix";
$strings['SearchFilter'] = "Filtre de recherche";
$strings['MinimumPrice'] = "Prix minimum";
$strings['MaximumPrice'] = "Prix maximum";
$strings['AvailableCourses'] = "Cours disponibles";
$strings['PaymentConfiguration'] = "Configuration des paiements";
$strings['AvailableCourses'] = "Configuration des cours disponibles";
$strings['PaymentsConfiguration'] = "Configuration des paiements";
$strings['TheUserIsAlreadyRegisteredInTheCourse'] = "L'utilisateur est déjà inscrit au cours";
$strings['SeeDescription'] = "Voir descripción";
$strings['Buy'] = "Acheter";
$strings['WaitingToReceiveThePayment'] = "En attente de réception du paiement";
$strings['CurrencyType'] = "Tipe de device";
$strings['SelectACurrency'] = "Sélectionnez une devise";
$strings['Sandbox'] = "Environnement de test";
$strings['BankAccount'] = "Compte bancaire";
$strings['SubscribeUser'] = "Inscrire utilisateur";
$strings['DeleteTheOrder'] = "Éliminer la commande";
$strings['ReferenceOrder'] = "Référence de la commande";
$strings['TheUserIsAlreadyRegisteredInTheSession'] = "Vous êtes déjà inscrit à cette session";
$strings['ItemNotSaved'] = 'Article non sauvé';
$strings['TitlePlugin'] = 'Tout le nécessaire pour enseigner et vendre des cours en ligne';
$strings['PluginPresentation'] = 'Le plugin BuyCourses vous donne les moyens nécessaires pour vendre vos cours ou vos sessions existants et d\'enseigner en ligne, en quelques étapes très simples. Qu\'attendez-vous? Commencez à vendre des cours grâce à Chamilo dès maintenant!';
$strings['Instructions'] = 'Instructions d\'utilisation';
$strings['InstructionsStepOne'] = 'Créer un cours ou une session de formation sur la plateforme.';
$strings['InstructionsStepTwo'] = 'Dans la section <strong>configuration de paiements</strong>, configurer le type de devise dans lequel vous souhaitez vendre vos cours et sessions';
$strings['InstructionsStepThree'] = 'Configurer les cours à vendre dans la section <strong>Configuration de cours et prix</strong>';
$strings['BuyCourses'] = "Acheter des cours";
$strings['ConfigurationOfCoursesAndPrices'] = "Configuration des cours et prix";
$strings['SalesReport'] = 'Rapport des ventes';
$strings['UserInformation'] = "Fiche acheteur";
$strings['OnceItIsConfirmed,YouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'] = "Une fois confirmée, vous recevrez un e-mail avec les données bancaires et la référence de la commande";
$strings['BankAccountInformation'] = "Détails du compte bancaire";
$strings['ConfirmOrder'] = "Confirmer commande";
$strings['PaymentMethods'] = "Méthodes de paiement";
$strings['ConfirmOrder'] = "Confirmer commande";
$strings['PurchaseData'] = 'Purchasse data';
$strings['bc_subject'] = "Confirmation de commande de cours";
$strings['PurchaseStatusX'] = "Purchase status: %s";
$strings['PendingReasonByTransfer'] = '<b>Pending</b>. Awaiting for transfer confirmation';
$strings['CancelOrder'] = "Annuler la commande";
$strings['BankAccountInformation'] = "Détails du compte bancaire";
$strings['BankAccount'] = "Compte bancaire";
$strings['OnceItIsConfirmedYouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'] = "Une fois confirmée, vous recevrez un e-mail avec les données bancaires et la référence de la commande";
$strings['SubscriptionToCourseXSuccessful'] = "Votre inscription au \"%s\" est terminée.";
$strings['OrderCanceled'] = "Order canceled";
$strings['OrderStatus'] = 'Order status';
$strings['SearchByStatus'] = 'Search by status';
$strings['OrderReference'] = "Référence de la commande";
$strings['OrderDate'] = 'Order date';
$strings['ProductType'] = 'Product type';
$strings['SubscribeUser'] = "Inscrire utilisateur";
$strings['DeleteOrder'] = "Éliminer la commande";
$strings['ErrorContactPlatformAdmin'] = "Une erreur inconnue s'est produite. Veuillez contacter l'administrateur de la plateforme.";
$strings['PendingReasonByAddress'] = "<b>Pending</b>. You did not enter a confirmed shipping address.";
$strings['PendingReasonByAuthorization'] = "<b>Pending</b>. We have not yet captured funds.";
$strings['PendingReasonByEcheck'] = "<b>Pending</b>. The payment was made by an eCheck that has not yet cleared";
$strings['PendingReasonByIntl'] = "<b>Pending</b>. We have no a withdrawal mechanism for funds.";
$strings['PendingReasonByMulticurrency'] = "<b>Pending</b>. We have not balance in the currency sent.";
$strings['PendingReasonByOrder'] = "<b>Pending</b>. Order made. We have not yet captured funds.";
$strings['PendingReasonByPaymentReview'] = "<b>Pending</b>. The payment is being reviewed by PayPal for risk.";
$strings['PendingReasonByRegulatoryReview'] = "<b>Pending</b>. The payment is being reviewed for compliance with government regulations.";
$strings['PendingReasonByUnilateral'] = "<b>Pending</b>. The email address is not yet registered o confirmed.";
$strings['PendingReasonByUpgrade'] = "<b>Pending</b>. The payment was made via credit card.";
$strings['PendingReasonByVerify'] = "<b>Pending</b>. Sorry. We are not yet verified in PayPal.";
$strings['PendingReasonByOther'] = "<b>Pending</b>. Please contact with the platform admin.";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal nous indique que la transaction est prête à être exécutée. Par mesure de sécurité, nous vous demandons de bien vouloir confirmer une dernière fois la transaction en cliquant sur le bouton de confirmation ci-dessous. Une fois cliqué, vous serez immédiatement enregistré au cours, et les fonds correspondants seront soustraits de votre compte PayPal. Vous pouvez accéder à vos cours à tout moment à partir de l'onglet 'Mes cours'. Merci de votre fidélité!";
$strings['Sandbox'] = "Environnement de test";
$strings['PayPalConfig'] = "Configuration PayPal:";
$strings['TransfersConfig'] = "Configuration des transfers bancaires:";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal nous indique que la transaction est prête à être exécutée. Par mesure de sécurité, nous vous demandons de bien vouloir confirmer une dernière fois la transaction en cliquant sur le bouton de confirmation ci-dessous. Une fois cliqué, vous serez immédiatement enregistré au cours, et les fonds correspondants seront soustraits de votre compte PayPal. Vous pouvez accéder à vos cours à tout moment à partir de l'onglet 'Mes cours'. Merci de votre fidélité!";
$strings['EnrollToSessionXSuccessful'] = "Votre inscription à la session %s est terminée.";
$strings['TheUserIsAlreadyRegisteredInTheSession'] = "Vous êtes déjà inscrit à cette session";
$strings['Instructions'] = 'Instructions d\'utilisation';
$strings['InstructionsStepOne'] = 'Créer un cours ou une session de formation sur la plateforme.';
$strings['InstructionsStepTwo'] = 'Dans la section <strong>configuration de paiements</strong>, configurer le type de devise dans lequel vous souhaitez vendre vos cours et sessions';
$strings['InstructionsStepThree'] = 'Configurer les cours à vendre dans la section <strong>Configuration de cours et prix</strong>';
$strings['PluginPresentation'] = 'Le plugin BuyCourses vous donne les moyens nécessaires pour vendre vos cours ou vos sessions existants et d\'enseigner en ligne, en quelques étapes très simples. Qu\'attendez-vous? Commencez à vendre des cours grâce à Chamilo dès maintenant!';
$strings['TitlePlugin'] = 'Tout le nécessaire pour enseigner et vendre des cours en ligne';
$strings['PluginInstruction'] = 'Vous pouvez activer ou désactiver l\'option de paiements via PayPal ou de transferts bancaires dans la section de configuration des plugins.';
$strings['ClickHere'] = 'Cliquez ici pour plus d\'infos';
$strings['CurrencyType'] = "Tipe de device";
$strings['InfoCurrency'] = 'Permet configurer le type de devise pour l\'achat des cours.';
$strings['ApiUsername'] = 'API Username';
$strings['ApiPassword'] = 'API Password';
$strings['ApiSignature'] = 'API Signature';
$strings['InfoApiCredentials'] = 'Pour générer vos données API pour intégrer votre compte PayPal à Chamilo, il vous faudra suivre les étapes suivantes';
$strings['InfoApiStepOne'] = 'Aller dans l\'option <strong>profil</strong> de PayPal, et ensuite dans <strong>Outils de vente</strong>';
$strings['InfoApiStepTwo'] = 'Dans la section <strong>API d\'accès</strong>, cloquer sur l\'option <strong>Mettre à jour</strong>';

@ -3,86 +3,83 @@ $strings['plugin_title'] = "Venta de cursos";
$strings['plugin_comment'] = "Vender cursos a través de PayPal directamente desde su portal Chamilo. Plugin en versión Beta, a usar con mucha precaución. La asociación Chamilo y los desarrolladores involucrados no pueden ser considerados responsables de cualquier inconveniente que se presente.";
$strings['show_main_menu_tab'] = "Mostrar pestaña en el menu principal";
$strings['show_main_menu_tab_help'] = "En caso de no querer mostrar la pestaña, puede agregar el siguiente enlace a su portal Chamilo: %s";
$strings['Visible'] = "Mostrar en el listado";
$strings['Options'] = "Opciones";
$strings['Price'] = "Precio";
$strings['SyncCourseDatabase'] = "Sincronizar cursos de la base de datos";
$strings['Private'] = "Privado - acceso autorizado s&oacute;lo para los miembros del curso";
$strings['CourseVisibilityClosed'] = "Cerrado - no hay acceso a este curso";
$strings['OpenToThePlatform'] = "Abierto - acceso autorizado s&oacute;lo para los usuarios registrados en la plataforma";
$strings['OpenToTheWorld'] = "P&uacute;blico - acceso autorizado a cualquier persona";
$strings['CourseVisibilityHidden'] = "Invisible - Totalmente invisible para todos los usuarios a parte de los administradores";
$strings['Description'] = "Descripci&oacute;n";
$strings['Buy'] = "Comprar";
$strings['Mostrar_disponibles'] = "Mostrar cursos disponibles";
$strings['include_sessions'] = "Incluir sesiones";
$strings['paypal_enable'] = "Habilitar PayPal";
$strings['transfer_enable'] = "Habilitar transferencia";
$strings['unregistered_users_enable'] = "Permitir usuarios sin registro en la plataforma";
$strings['Cancelacionpedido'] = "El pedido se ha cancelado.";
$strings['AlreadyBuy'] = "Ya está matriculado en el curso";
$strings['bc_subject'] = "Confirmación pedido de cursos";
$strings['paypal'] = 'PayPal';
$strings['confirmar_compra'] = 'Confirmar compra de curso';
$strings['TheUserIsAlreadyRegistered'] = 'El usuario ya está registrado';
$strings['ProblemToSaveTheCurrencyType'] = 'Problema al guardar el tipo de moneda';
$strings['ProblemToSaveThePaypalParameters'] = 'Problema para guardar los parametros de Paypal';
$strings['ProblemToInsertANewAccount'] = 'Problemas para insertar una nueva cuenta';
$strings['ProblemToDeleteTheAccount'] = 'Problema para eliminar la cuenta';
$strings['ProblemToSaveTheMessage'] = 'Problema para guardar el mensaje';
$strings['ProblemToSubscribeTheUser'] = 'Problema para suscribir el usuario';
$strings['TheSubscriptionAndActivationWereDoneSuccessfully'] = 'La suscripción y la activación se realizaron con éxito.';
$strings['TheUserIsAlreadyRegisteredInTheCourse'] = 'El usuario ya está registrado en el curso.';
$strings['CourseListOnSale'] = 'Lista de cursos a la venta';
$strings['BuySessions'] = "Comprar sesiones";
$strings['BuyCourses'] = 'Comprar cursos';
$strings['ConfigurationOfCoursesAndPrices'] = 'Configuración de cursos y precios';
$strings['ConfigurationOfPayments'] = 'Configuración de pagos';
$strings['OrdersPendingOfPayment'] = 'Pedidos pendientes de pago';
$strings['AvailableCoursesConfiguration'] = 'Configuración de cursos disponibles';
$strings['PaymentsConfiguration'] = 'Configuración de Pagos';
$strings['bc_message'] = "Estimado {{name}}. <br />En cuanto recibamos confirmaci&oacute;n de pago procederemos a dar de alta su usuario en el curso <strong>{{curso}}</strong>.<br><br><strong>No olvide indicar en el concepto de la transferencia el n&uacute;mero de referencia del pedido: <div style='display:inline;text-align:center; font-weight:bold; font-size:20px; color:#333'>{{reference}}</div></strong>";
$strings['Categories'] = "Categorias";
$strings['BankTransfer'] = 'Transferencia Bancaria';
$strings['EnrollToCourseXSuccessful'] = "Su inscripción en el curso %s se ha completado.";
$strings['SaleStatusPending'] = 'Venta pendiente';
$strings['SaleStatusCanceled'] = 'Venta cancelada';
$strings['SaleStatusCompleted'] = 'Venta completada';
$strings['CourseListOnSale'] = 'Lista de cursos a la venta';
$strings['AvailableCourses'] = "Cursos disponibles";
$strings['Price'] = "Precio";
$strings['SearchFilter'] = "Filtro de búsqueda";
$strings['MinimumPrice'] = "Precio mínimo";
$strings['MaximumPrice'] = "Precio máximo";
$strings['AvailableCourses'] = "Cursos disponibles";
$strings['PaymentConfiguration'] = "Configuración de Pagos";
$strings['AvailableCoursesConfiguration'] = 'Configuración de cursos disponibles';
$strings['PaymentsConfiguration'] = 'Configuración de Pagos';
$strings['TheUserIsAlreadyRegisteredInTheCourse'] = 'Usted ya está registrado en el curso.';
$strings['SeeDescription'] = "Ver descripción";
$strings['Buy'] = "Comprar";
$strings['WaitingToReceiveThePayment'] = "Se encuentra a la espera de recibir el pago";
$strings['CurrencyType'] = "Tipo de moneda";
$strings['SelectACurrency'] = "Seleccione una moneda";
$strings['Sandbox'] = "Entorno de Pruebas";
$strings['BankAccount'] = "Cuenta Bancaria";
$strings['SubscribeUser'] = "Suscribir Usuario";
$strings['DeleteTheOrder'] = "Eliminar el Pedido";
$strings['ReferenceOrder'] = 'Referencia del pedido';
$strings['TheUserIsAlreadyRegisteredInTheSession'] = 'Usted ya está registrado en la sesión';
$strings['ItemNotSaved'] = 'Elemento no guardado';
$strings['TitlePlugin'] = 'Todo lo que necesita para enseñar y vender cursos en línea';
$strings['PluginPresentation'] = 'El Plugin BuyCourses le da los recursos para vender sus cursos o sus sesiones ya creados y enseñar en línea, todo en unos simples pasos y configuraciones. ¿Qué espera? Empiece a vender cursos a través de Chamilo ahora!';
$strings['Instructions'] = 'Instrucciones de uso';
$strings['InstructionsStepOne'] = 'Crea un curso o una sesión de formación en la plataforma.';
$strings['InstructionsStepTwo'] = 'En la sección <strong>configuración de pagos</strong>, configure el tipo de moneda con el que venderá sus cursos o sesiones.';
$strings['InstructionsStepThree'] = 'Configure los cursos a vender en la sección <strong>Configuración de cursos y precios</strong>';
$strings['BuyCourses'] = 'Comprar cursos';
$strings['ConfigurationOfCoursesAndPrices'] = 'Configuración de cursos y precios';
$strings['SalesReport'] = 'Reporte de ventas';
$strings['UserInformation'] = 'Ficha del comprador';
$strings['OnceItIsConfirmed,YouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'] = "Una vez confirmado, recibira un e-mail con los datos bancarios y una referencia del pedido.";
$strings['BankAccountInformation'] = 'Información de la Cuenta Bancaria';
$strings['ConfirmOrder'] = 'Confirmar Orden';
$strings['PaymentMethods'] = 'Métodos de pago';
$strings['ConfirmOrder'] = 'Confirmar Orden';
$strings['PurchaseData'] = 'Datos de la compra';
$strings['bc_subject'] = "Confirmación pedido de cursos";
$strings['PurchaseStatusX'] = "Estado de la compra: %s";
$strings['PendingReasonByTransfer'] = '<b>Pendiente</b>. Esperando la confirmación de la transferencia';
$strings['CancelOrder'] = 'Cancelar Orden';
$strings['BankAccountInformation'] = 'Información de la Cuenta Bancaria';
$strings['BankAccount'] = "Cuenta Bancaria";
$strings['OnceItIsConfirmedYouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'] = "Una vez confirmado, recibira un e-mail con los datos bancarios y una referencia del pedido.";
$strings['SubscriptionToCourseXSuccessful'] = "Tu subscripción a \"%s\" se realizó correctamente.";
$strings['OrderCanceled'] = "Pedido cancelado";
$strings['OrderStatus'] = 'Estado del pedido';
$strings['SearchByStatus'] = 'Buscar por estado';
$strings['OrderReference'] = 'Referencia del pedido';
$strings['OrderDate'] = 'Fecha del pedido';
$strings['ProductType'] = 'Tipo de producto';
$strings['SubscribeUser'] = "Inscribir usuario";
$strings['DeleteOrder'] = "Eliminar pedido";
$strings['ErrorContactPlatformAdmin'] = "Se ha producido un error desconocido. Por favor, póngase en contacto con el administrador de la plataforma.";
$strings['PayPalConfig'] = "Configuraci&oacute;n PayPal:";
$strings['PendingReasonByAddress'] = "<b>Pendiente</b>. No has ingresado una dirección de correo confirmada.";
$strings['PendingReasonByAuthorization'] = "<b>Pendiente</b>. No hemos recibido los fondos.";
$strings['PendingReasonByEcheck'] = "<b>Pendiente</b>. El pago fue hecho a través de un eCheck que aún no está declarado";
$strings['PendingReasonByIntl'] = "<b>Pendiente</b>. No tenemos un mecanismo de retiro de fondos.";
$strings['PendingReasonByMulticurrency'] = "<b>Pending</b>. No podemos realizar el cambio de moneda.";
$strings['PendingReasonByOrder'] = "<b>Pendiente</b>. Pedido realizado. No hemos recibido los fondos.";
$strings['PendingReasonByPaymentReview'] = "<b>Pendiente</b>. El pago está siendo revisado por PayPal por riesgo.";
$strings['PendingReasonByRegulatoryReview'] = "<b>Pendiente</b>. El pago está siendo revisado por cumplimiento con regulaciones gubernamentales.";
$strings['PendingReasonByUnilateral'] = "<b>Pendiente</b>. La dirección de correo electrónico aún no está registrada o confirmada.";
$strings['PendingReasonByUpgrade'] = "<b>Pendiente</b>. El pago fue realizado a través de una tarjeta de crédito.";
$strings['PendingReasonByVerify'] = "<b>Pendiente</b>. Lo sentimos. Todavía no estamos verificados en PayPal.";
$strings['PendingReasonByOther'] = "<b>Pendiente</b>. Por favor contacta al administrador de la plataforma.";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal reports the transaction is ready to be executed. To acknowledge that you are OK to proceed, please click the confirmation button below. Once clicked, you will be registered to the course and the funds will be transferred from your PayPal account to our shop. You can always access your courses through the 'My courses' tab. Thank you for your custom!";
$strings['Sandbox'] = "Entorno de Pruebas";
$strings['PayPalConfig'] = "Configuración PayPal:";
$strings['TransfersConfig'] = "Configuraci&oacute;n de transferencias:";
$strings['PayPalPaymentOKPleaseConfirm'] = "PayPal nos indicó que todo estaba listo para ejecutar el pago. Por seguridad, le pedimos confirme una última vez su pedido dando clic en el botón de confirmación a bajo. Una vez le haya dado clic, será registrado al curso y el monto correspondiente será retirado de su cuenta PayPal. Siempre puede acceder a sus cursos a partir de la pestaña 'Mis cursos'. Gracias por su compra!";
$strings['EnrollToSessionXSuccessful'] = "Su inscripción en la sesión %s se ha completado.";
$strings['TheUserIsAlreadyRegisteredInTheSession'] = 'El usuario ya está registrado en la sesión.';
$strings['Instructions'] = 'Instrucciones de uso';
$strings['InstructionsStepOne'] = 'Crea un curso o una sesión de formación en la plataforma.';
$strings['InstructionsStepTwo'] = 'En la sección <strong>configuración de pagos</strong>, configure el tipo de moneda con el que venderá sus cursos o sesiones.';
$strings['InstructionsStepThree'] = 'Configure los cursos a vender en la sección <strong>Configuración de cursos y precios</strong>';
$strings['PluginPresentation'] = 'El Plugin BuyCourses le da los recursos para vender sus cursos o sus sesiones ya creados y enseñar en línea, todo en unos simples pasos y configuraciones. ¿Qué espera? Empiece a vender cursos a través de Chamilo ahora!';
$strings['TitlePlugin'] = 'Todo lo que necesita para enseñar y vender cursos en línea';
$strings['PluginInstruction'] = 'Puede activar o desactivar la opción de pagos vía PayPal o configuración de transferencias bancarias, en la sección del configuración del plugin.';
$strings['ClickHere'] = 'Clic Aquí';
$strings['ClickHere'] = '<i>Clic aquí</i> para más detalles';
$strings['CurrencyType'] = "Tipo de moneda";
$strings['InfoCurrency'] = 'Permite configurar el tipo de moneda (de pago) para sus cursos.';
$strings['ApiUsername'] = 'Nombre de usuario de API';
$strings['ApiPassword'] = 'Contraseña de API';
$strings['ApiSignature'] = 'Firma';
$strings['InfoApiCredentials'] = 'Para generar tu credenciales API para integrar su cuenta PayPal con Chamilo LMS, deberá seguir los siguientes pasos';
$strings['InfoApiStepOne'] = 'Ir a la opción de <strong>Perfil de PayPal</strong>, luego en <strong>Mis herramientas de venta</strong>';
$strings['InfoApiStepTwo'] = 'En el apartado <strong>Acceso API</strong>, dar clic en la opción <strong>Actualizar</strong>';
$strings['InfoApiStepThree'] = 'En la opción 2, de Configuración de credenciales y permisos de API, dar clic en <strong>Ver firma de API</strong>. Copiar los datos de las credenciales en el formulario de configuración de este plugin';
$strings['ApiUsername'] = 'Nombre de usuario de API';
$strings['ApiPassword'] = 'Contraseña de API';
$strings['ApiSignature'] = 'Firma';

@ -943,9 +943,9 @@ class BuyCoursesPlugin extends Plugin
public function getSaleStatuses()
{
return [
self::SALE_STATUS_CANCELED => $this->get_lang('SaleCanceled'),
self::SALE_STATUS_PENDING => $this->get_lang('SalePending'),
self::SALE_STATUS_COMPLETED => $this->get_lang('SaleCompleted')
self::SALE_STATUS_CANCELED => $this->get_lang('SaleStatusCanceled'),
self::SALE_STATUS_PENDING => $this->get_lang('SaleStatusPending'),
self::SALE_STATUS_COMPLETED => $this->get_lang('SaleStatusCompleted')
];
}

@ -76,7 +76,7 @@ if ($_REQUEST['tab'] == 'save_mod') {
} else {
$jsonResult = [
"status" => false,
"content" => $plugin->get_lang('ProblemToSaveTheMessage')
"content" => $plugin->get_lang('ItemNotSaved')
];
}

@ -17,14 +17,11 @@ if ($guess_enable == "true" || isset($_SESSION['_user'])) {
exit;
}
$title = $plugin->get_lang('CourseListOnSale');
$templateName = $plugin->get_lang('BuyCourses');
$tpl = new Template($templateName);
$tpl->assign('title', $title);
$tpl = new Template();
$content = $tpl->fetch('buycourses/view/index.tpl');
$tpl->assign('header', $plugin->get_lang('plugin_title'));
$tpl->assign('content', $content);
$tpl->display_one_col_template();

@ -160,14 +160,9 @@ $interbreadcrumb[] = [
'name' => $plugin->get_lang('AvailableCoursesConfiguration')
];
$tpl = new Template(
$plugin->get_lang('PaymentConfiguration')
);
$tpl->assign(
'header',
$plugin->get_lang('PaymentConfiguration')
);
$tpl->assign('server', $_configuration['root_web']);
$templateName = $plugin->get_lang('PaymentsConfiguration');
$tpl = new Template($templateName);
$tpl->assign('header', $templateName);
$tpl->assign('curency_form', $currencyForm->returnForm());
$tpl->assign('paypal_form', $paypalForm->returnForm());
$tpl->assign('transfer_form', $transferForm->returnForm());

@ -121,7 +121,8 @@ switch ($sale['payment_type']) {
$plugin->get_lang('PurchaseStatusX'),
$plugin->get_lang('PendingReasonByTransfer')
),
'success'
'success',
false
)
);

@ -80,20 +80,20 @@ if ($form->validate()) {
case 'Completed':
$saleIsCompleted = $plugin->completeSale($sale['id']);
if ($saleIsCompleted && $buyingCourse) {
if ($saleIsCompleted && $buyingSession) {
Display::addFlash(
Display::return_message(
sprintf($plugin->get_lang('EnrollToCourseXSuccessful'), $session['name']),
sprintf($plugin->get_lang('SubscriptionToCourseXSuccessful'), $session['name']),
'success'
)
);
break;
}
if ($saleIsCompleted && $buyingSession) {
if ($saleIsCompleted && $buyingCourse) {
Display::addFlash(
Display::return_message(
sprintf($plugin->get_lang('EnrollToSessionXSuccessful'), $course['name']),
sprintf($plugin->get_lang('SubscriptionToCourseXSuccessful'), $course['title']),
'success'
)
);
@ -149,7 +149,8 @@ if ($form->validate()) {
Display::addFlash(
Display::return_message(
sprintf($plugin->get_lang('PurchaseStatusX'), $purchaseStatus),
'warning'
'warning',
false
)
);
break;

@ -43,7 +43,7 @@
{% elseif course.enrolled == "NO" %}
<div class="text-center">
<a class="ajax btn btn-primary" title="" href="{{ course_description_url }}" data-title="{{ course.title }}">
<i class="fa fa-file-text"></i> {{ 'Description'|get_lang }}
<i class="fa fa-file-text"></i> {{ 'SeeDescription'|get_plugin_lang('BuyCoursesPlugin') }}
</a>
<a class="btn btn-success" title="" href="{{ _p.web_plugin ~ 'buycourses/src/process.php?' ~ {'i': course.id, 't': 1}|url_encode() }}">
<i class="fa fa-shopping-cart"></i> {{ 'Buy'|get_plugin_lang('BuyCoursesPlugin') }}

@ -60,7 +60,7 @@
<img src="resources/img/128/paymentsettings.png">
</a>
<div class="caption">
<a class="btn btn-default btn-sm" href="src/paymentsetup.php">{{ 'ConfigurationOfPayments'|get_plugin_lang('BuyCoursesPlugin') }} </a>
<a class="btn btn-default btn-sm" href="src/paymentsetup.php">{{ 'PaymentsConfiguration'|get_plugin_lang('BuyCoursesPlugin') }} </a>
</div>
</div>
</div>

@ -2,15 +2,15 @@
<p>{{ 'DearUser'|get_lang }}</p>
<p>{{ 'PurchaseDetailsIntro'|get_plugin_lang('BuyCoursesPlugin') }}</p>
<dl>
<dt>Fecha</dt>
<dt>{{ 'OrderDate'|get_plugin_lang('BuyCoursesPlugin') }}</dt>
<dd>{{ sale.date }}</dd>
<dt>{{ 'OrderReference'|get_plugin_lang('BuyCoursesPlugin') }}</dt>
<dd>sale.reference</dd>
<dt>Usuario</dt>
<dt>{{ 'UserName'|get_lang }}</dt>
<dd>{{ user.complete_name }}</dd>
<dt>Curso</dt>
<dt>{{ 'Course'|get_lang }}</dt>
<dd>{{ sale.product }}</dd>
<dt>Precio</dt>
<dt>{{ 'ProductName'|get_plugin_lang('BuyCoursesPlugin') }}</dt>
<dd>{{ sale.currency ~ ' ' ~ sale.price }}</dd>
</dl>
<p>{{ 'BankAccountIntro'|get_plugin_lang('BuyCoursesPlugin')|format(sale.product) }}</p>
@ -32,4 +32,5 @@
{% endfor %}
</tbody>
</table>
<p>{{ 'PurchaseDetailsEnd'|get_plugin_lang('BuyCoursesPlugin') }}</p>
</div>

@ -6,7 +6,7 @@
<p class="alert alert-info">
{{ 'PluginInstruction'|get_plugin_lang('BuyCoursesPlugin') }}
<a href="{{ server }}main/admin/configure_plugin.php?name=buycourses">{{ 'ClickHere'|get_plugin_lang('BuyCoursesPlugin') }}</a>
<a href="{{ _p.web_main }}admin/configure_plugin.php?name=buycourses">{{ 'ClickHere'|get_plugin_lang('BuyCoursesPlugin') }}</a>
</p>
{% if paypal_enable == "true" %}

@ -80,7 +80,8 @@
</tbody>
</table>
</div>
<p>{{ 'OnceItIsConfirmedYouWillReceiveAnEmailWithTheBankInformationAndAnOrderReference'|get_plugin_lang('BuyCoursesPlugin') }}</p>
</div>
</div>
{{ form }}

@ -22,11 +22,11 @@
<td class="text-center">{{ sale.reference }}</td>
<td class="text-center">
{% if sale.status == sale_status_canceled %}
{{ 'SaleCanceled'|get_plugin_lang('BuyCoursesPlugin') }}
{{ 'SaleStatusCanceled'|get_plugin_lang('BuyCoursesPlugin') }}
{% elseif sale.status == sale_status_pending %}
{{ 'SalePending'|get_plugin_lang('BuyCoursesPlugin') }}
{{ 'SaleStatusPending'|get_plugin_lang('BuyCoursesPlugin') }}
{% elseif sale.status == sale_status_completed %}
{{ 'SaleCompleted'|get_plugin_lang('BuyCoursesPlugin') }}
{{ 'SaleStatusCompleted'|get_plugin_lang('BuyCoursesPlugin') }}
{% endif %}
</td>
<td class="text-center">{{ sale.date }}</td>

Loading…
Cancel
Save