From ae90538a380217d09208ff81aa581f276dcd7994 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Fri, 6 Jan 2017 22:12:50 +0700 Subject: [PATCH] Fixed for languages --- docs/en/plugins/codeception.md | 2 +- public/assets/css/main.css | 4 ++ public/assets/js/build-plugins/phpunit.js | 12 +++-- src/PHPCensor/Languages/lang.da.php | 1 - src/PHPCensor/Languages/lang.de.php | 1 - src/PHPCensor/Languages/lang.el.php | 1 - src/PHPCensor/Languages/lang.en.php | 2 +- src/PHPCensor/Languages/lang.es.php | 1 - src/PHPCensor/Languages/lang.fr.php | 1 - src/PHPCensor/Languages/lang.it.php | 1 - src/PHPCensor/Languages/lang.nl.php | 1 - src/PHPCensor/Languages/lang.pl.php | 1 - src/PHPCensor/Languages/lang.pt-br.php | 65 +++++++++++------------ src/PHPCensor/Languages/lang.ru.php | 4 +- src/PHPCensor/Languages/lang.uk.php | 1 - src/PHPCensor/Languages/lang.zh.php | 65 +++++++++++------------ src/PHPCensor/View/Email/layout.phtml | 2 +- src/PHPCensor/View/Home/index.phtml | 2 +- src/PHPCensor/View/layout.phtml | 5 -- tests/PHPCensor/Plugin/EmailTest.php | 2 +- 20 files changed, 83 insertions(+), 91 deletions(-) diff --git a/docs/en/plugins/codeception.md b/docs/en/plugins/codeception.md index 1d493a6e..401950d3 100644 --- a/docs/en/plugins/codeception.md +++ b/docs/en/plugins/codeception.md @@ -10,7 +10,7 @@ Configuration * **config** - Required - Can be either a single string pointing to a Codeception configuration file, or an array of configuration file paths. By default this is called `codeception.yml` and will be in the root of your project. -* **args** - Optional - The string of arguments to be passed to the run command.**Important**, due to the assumption made on line [132](https://github.com/Block8/PHPCI/blob/master/PHPCI/Plugin/Codeception.php#L132) regarding the value of `--xml` being the next argument which will not be correct if the user provides arguments using this config param, you must specify `report.xml` before any user input arguments to satisfy the report processing on line [146](https://github.com/Block8/PHPCI/blob/master/PHPCI/Plugin/Codeception.php#L146) +* **args** - Optional - The string of arguments to be passed to the run command.**Important**, due to the assumption made on line 132 regarding the value of `--xml` being the next argument which will not be correct if the user provides arguments using this config param, you must specify `report.xml` before any user input arguments to satisfy the report processing on line 146. * **path** - Optional - The path from the root of your project to the root of the codeception _output directory diff --git a/public/assets/css/main.css b/public/assets/css/main.css index 889b46e6..f841185f 100644 --- a/public/assets/css/main.css +++ b/public/assets/css/main.css @@ -563,3 +563,7 @@ h6, #phpunit-data .error td { background: none; color: #f56954; } #phpunit-data .skipped td { background: none; color: #e08e0b; } #phpunit-data .todo td { background: none; color: #00c0ef; } + +.visible-line-breaks { + white-space: pre-wrap; +} diff --git a/public/assets/js/build-plugins/phpunit.js b/public/assets/js/build-plugins/phpunit.js index 3159d00c..9f7f61b1 100644 --- a/public/assets/js/build-plugins/phpunit.js +++ b/public/assets/js/build-plugins/phpunit.js @@ -8,7 +8,7 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({ rendered: false, statusMap: { success : 'ok', - fail: 'remove', + failed: 'remove', error: 'warning-sign', todo: 'info-sign', skipped: 'exclamation-sign' @@ -62,15 +62,19 @@ var phpunitPlugin = ActiveBuild.UiPlugin.extend({ return; } - var counts = { success: 0, fail: 0, error: 0, skipped: 0, todo: 0 }, total = 0; + var counts = { success: 0, failed: 0, error: 0, skipped: 0, todo: 0 }, total = 0; for (var i in tests) { - var severity = tests[i].severity || (tests[i].pass ? 'success' : 'fail'), + var severity = tests[i].severity || (tests[i].pass ? 'success' : 'failed'), label = ('success' == severity) ? 'success' : ( ('error' == severity) ? 'danger' : 'warning' ); + + if ('fail' === severity) { + severity = 'failed'; + } - var status = $('' + severity + ''), + var status = $(''+Lang.get(severity)+''), content = $(''), trace = $(''), message = $('
').appendTo(content), diff --git a/src/PHPCensor/Languages/lang.da.php b/src/PHPCensor/Languages/lang.da.php index fbe04ab9..9ddead7f 100644 --- a/src/PHPCensor/Languages/lang.da.php +++ b/src/PHPCensor/Languages/lang.da.php @@ -84,7 +84,6 @@ PHP Censor', 'pending' => 'Venter', 'running' => 'Kører', 'success' => 'Succes', - 'successful' => 'Lykkedes', 'failed' => 'Fejlede', 'manual_build' => 'Manuelt Build', diff --git a/src/PHPCensor/Languages/lang.de.php b/src/PHPCensor/Languages/lang.de.php index f08dc06a..a6bb9348 100644 --- a/src/PHPCensor/Languages/lang.de.php +++ b/src/PHPCensor/Languages/lang.de.php @@ -84,7 +84,6 @@ PHP Censor', 'pending' => 'Ausstehend', 'running' => 'Wird ausgeführt', 'success' => 'Erfolg', - 'successful' => 'Erfolgreich', 'failed' => 'Fehlgeschlagen', 'manual_build' => 'Manueller Build', diff --git a/src/PHPCensor/Languages/lang.el.php b/src/PHPCensor/Languages/lang.el.php index d77268a4..c4072695 100644 --- a/src/PHPCensor/Languages/lang.el.php +++ b/src/PHPCensor/Languages/lang.el.php @@ -84,7 +84,6 @@ PHP Censor', 'pending' => 'Σε εκκρεμότητα', 'running' => 'Τρέχοντα', 'success' => 'Επιτυχία', - 'successful' => 'Επιτυχής', 'failed' => 'Αποτυχία', 'manual_build' => 'Χειροκίνητη κατασκευή', diff --git a/src/PHPCensor/Languages/lang.en.php b/src/PHPCensor/Languages/lang.en.php index 22ade6c8..0f4906a6 100644 --- a/src/PHPCensor/Languages/lang.en.php +++ b/src/PHPCensor/Languages/lang.en.php @@ -87,8 +87,8 @@ PHP Censor', 'pending' => 'Pending', 'running' => 'Running', 'success' => 'Success', - 'successful' => 'Successful', 'failed' => 'Failed', + 'error' => 'Error', 'manual_build' => 'Manual Build', // Add/Edit Project: diff --git a/src/PHPCensor/Languages/lang.es.php b/src/PHPCensor/Languages/lang.es.php index b8716f78..4c4c33a6 100644 --- a/src/PHPCensor/Languages/lang.es.php +++ b/src/PHPCensor/Languages/lang.es.php @@ -83,7 +83,6 @@ PHP Censor', 'pending' => 'Pediente', 'running' => 'Ejecutando', 'success' => 'Éxito', - 'successful' => 'Exitoso', 'failed' => 'Falló', 'manual_build' => 'Build Manual', diff --git a/src/PHPCensor/Languages/lang.fr.php b/src/PHPCensor/Languages/lang.fr.php index 3ed42f22..386a2497 100644 --- a/src/PHPCensor/Languages/lang.fr.php +++ b/src/PHPCensor/Languages/lang.fr.php @@ -84,7 +84,6 @@ PHP Censor', 'pending' => 'En attente', 'running' => 'En cours', 'success' => 'Terminé', - 'successful' => 'Réussi', 'failed' => 'Échoué', 'manual_build' => 'Build manuel', diff --git a/src/PHPCensor/Languages/lang.it.php b/src/PHPCensor/Languages/lang.it.php index 675f1e39..419a419c 100644 --- a/src/PHPCensor/Languages/lang.it.php +++ b/src/PHPCensor/Languages/lang.it.php @@ -82,7 +82,6 @@ PHP Censor', 'pending' => 'In attesa', 'running' => 'In corso', 'success' => 'Successo', - 'successful' => 'Con successo', 'failed' => 'Fallita', 'manual_build' => 'Build Manuale', diff --git a/src/PHPCensor/Languages/lang.nl.php b/src/PHPCensor/Languages/lang.nl.php index 56a413e3..e5ecc72e 100644 --- a/src/PHPCensor/Languages/lang.nl.php +++ b/src/PHPCensor/Languages/lang.nl.php @@ -84,7 +84,6 @@ PHP Censor', 'pending' => 'In afwachting', 'running' => 'Lopende', 'success' => 'Succes', - 'successful' => 'Succesvol', 'failed' => 'Gefaald', 'manual_build' => 'Manuele build', diff --git a/src/PHPCensor/Languages/lang.pl.php b/src/PHPCensor/Languages/lang.pl.php index b80025ea..3c41326d 100644 --- a/src/PHPCensor/Languages/lang.pl.php +++ b/src/PHPCensor/Languages/lang.pl.php @@ -84,7 +84,6 @@ PHP Censor', 'pending' => 'Oczekujące', 'running' => 'W toku', 'success' => 'Sukces', - 'successful' => 'Zakończone sukcesem', 'failed' => 'Nieudane', 'manual_build' => 'Budowanie Manualne', diff --git a/src/PHPCensor/Languages/lang.pt-br.php b/src/PHPCensor/Languages/lang.pt-br.php index e2f3bde0..53f47d7f 100644 --- a/src/PHPCensor/Languages/lang.pt-br.php +++ b/src/PHPCensor/Languages/lang.pt-br.php @@ -12,7 +12,7 @@ $strings = array( 'language' => 'Idioma', // Log in: - 'log_in_to_phpci' => 'Acessar o PHPCI', + 'log_in_to_app' => 'Acessar o PHP Censor', 'login_error' => 'Email ou senha incorretos', 'forgotten_password_link' => 'Perdeu sua senha?', 'reset_emailed' => 'We\'ve emailed you a link to reset your password.', @@ -25,7 +25,7 @@ $strings = array( 'reset_no_user_exists' => 'No user exists with that email address, please try again.', 'reset_email_body' => 'Hi %s, -You have received this email because you, or someone else, has requested a password reset for PHPCI. +You have received this email because you, or someone else, has requested a password reset for PHP Censor. If this was you, please click the following link to reset your password: %ssession/reset-password/%d/%s @@ -33,9 +33,9 @@ Otherwise, please ignore this email and no action will be taken. Thank you, -PHPCI', +PHP Censor', - 'reset_email_title' => 'PHPCI Password Reset for %s', + 'reset_email_title' => 'PHP Censor Password Reset for %s', 'reset_invalid' => 'Invalid password reset request.', 'email_address' => 'Endereço de e-mail', 'login' => 'Login / Email Address', @@ -83,7 +83,6 @@ PHPCI', 'pending' => 'Pendente', 'running' => 'Correndo', 'success' => 'Sucesso', - 'successful' => 'Bem sucedido', 'failed' => 'Fracassado', 'manual_build' => 'Compilação manual', @@ -108,8 +107,8 @@ PHPCI', 'project_title' => 'Titulo do projeto', 'project_private_key' => 'Chave privada usada para acessar o repositório (Deixe em branco para controles remotos locais e/ou anônimos)', - 'build_config' => 'PHPCI construir configuração para este projeto - (if you cannot add a phpci.yml file in the project repository)', + 'build_config' => 'PHP Censor construir configuração para este projeto + (if you cannot add a .php-censor.yml (.phpci.yml|phpci.yml) file in the project repository)', 'default_branch' => 'Nome padrão do branch', 'allow_public_status' => 'Habilitar página de status pública e imagem para este projeto?', 'archived' => 'Arquivado', @@ -241,21 +240,21 @@ PHPCI', // Settings: 'settings_saved' => 'Your settings have been saved.', 'settings_check_perms' => 'Your settings could not be saved, check the permissions of your config.yml file.', - 'settings_cannot_write' => 'PHPCI cannot write to your config.yml file, settings may not be saved properly + 'settings_cannot_write' => 'PHP Censor cannot write to your config.yml file, settings may not be saved properly until this is rectified.', 'settings_github_linked' => 'Your GitHub account has been linked.', 'settings_github_not_linked' => 'Your GitHub account could not be linked.', 'build_settings' => 'Build Settings', 'github_application' => 'GitHub Application', 'github_sign_in' => 'Before you can start using GitHub, you need to sign in and grant - PHPCI access to your account.', - 'github_phpci_linked' => 'PHPCI is successfully linked to GitHub account.', + PHP Censor access to your account.', + 'github_linked' => 'PHP Censor is successfully linked to GitHub account.', 'github_where_to_find' => 'Where to find these...', 'github_where_help' => 'If you own the application you would like to use, you can find this information within your applications settings area.', 'email_settings' => 'Email Settings', - 'email_settings_help' => 'Before PHPCI can send build status emails, + 'email_settings_help' => 'Before PHP Censor can send build status emails, you need to configure your SMTP settings below.', 'application_id' => 'Application ID', @@ -280,7 +279,7 @@ PHPCI', '3_hours' => '3 Hours', // Plugins - 'cannot_update_composer' => 'PHPCI cannot update composer.json for you as it is not writable.', + 'cannot_update_composer' => 'PHP Censor cannot update composer.json for you as it is not writable.', 'x_has_been_removed' => '%s has been removed.', 'x_has_been_added' => '%s has been added to composer.json for you and will be installed next time you run composer update.', @@ -310,7 +309,7 @@ PHPCI', 'stage_fixed' => 'Fixed', // Installer - 'installation_url' => 'PHPCI Installation URL', + 'installation_url' => 'PHP Censor Installation URL', 'db_host' => 'Database Host', 'db_name' => 'Database Name', 'db_user' => 'Database Username', @@ -319,37 +318,37 @@ PHPCI', 'admin_pass' => 'Admin Password', 'admin_email' => 'Admin Email Address', 'config_path' => 'Config File Path', - 'install_phpci' => 'Install PHPCI', - 'welcome_to_phpci' => 'Welcome to PHPCI', + 'install_app' => 'Install PHP Censor', + 'welcome_to_app' => 'Welcome to PHP Censor', 'please_answer' => 'Please answer the following questions:', - 'phpci_php_req' => 'PHPCI requires at least PHP 5.3.8 to function.', + 'app_php_req' => 'PHP Censor requires at least PHP 5.3.8 to function.', 'extension_required' => 'Extension required: %s', - 'function_required' => 'PHPCI needs to be able to call the %s() function. Is it disabled in php.ini?', - 'requirements_not_met' => 'PHPCI cannot be installed, as not all requirements are met. + 'function_required' => 'PHP Censor needs to be able to call the %s() function. Is it disabled in php.ini?', + 'requirements_not_met' => 'PHP Censor cannot be installed, as not all requirements are met. Please review the errors above before continuing.', 'must_be_valid_email' => 'Must be a valid email address.', 'must_be_valid_url' => 'Must be a valid URL.', 'enter_name' => 'Admin Name: ', 'enter_email' => 'Admin Email: ', 'enter_password' => 'Admin Password: ', - 'enter_phpci_url' => 'Your PHPCI URL ("http://phpci.local" for example): ', + 'enter_app_url' => 'Your PHP Censor URL ("http://php-censor.local" for example): ', 'enter_db_host' => 'Please enter your MySQL host [localhost]: ', - 'enter_db_name' => 'Please enter your MySQL database name [phpci]: ', - 'enter_db_user' => 'Please enter your MySQL username [phpci]: ', + 'enter_db_name' => 'Please enter your MySQL database name [php-censor-db]: ', + 'enter_db_user' => 'Please enter your MySQL username [php-censor-user]: ', 'enter_db_pass' => 'Please enter your MySQL password: ', - 'could_not_connect' => 'PHPCI could not connect to MySQL with the details provided. Please try again.', + 'could_not_connect' => 'PHP Censor could not connect to MySQL with the details provided. Please try again.', 'setting_up_db' => 'Setting up your database... ', 'user_created' => 'User account created!', - 'failed_to_create' => 'PHPCI failed to create your admin account.', - 'config_exists' => 'The PHPCI config file exists and is not empty.', - 'update_instead' => 'If you were trying to update PHPCI, please use phpci:update instead.', + 'failed_to_create' => 'PHP Censor failed to create your admin account.', + 'config_exists' => 'The PHP Censor config file exists and is not empty.', + 'update_instead' => 'If you were trying to update PHP Censor, please use php-censor:update instead.', // Update - 'update_phpci' => 'Update the database to reflect modified models.', - 'updating_phpci' => 'Updating PHPCI database: ', - 'not_installed' => 'PHPCI does not appear to be installed.', - 'install_instead' => 'Please install PHPCI via phpci:install instead.', + 'update_app' => 'Update the database to reflect modified models.', + 'updating_app' => 'Updating PHP Censor database: ', + 'not_installed' => 'PHP Censor does not appear to be installed.', + 'install_instead' => 'Please install PHP Censor via php-censor:install instead.', // Poll Command 'poll_github' => 'Poll GitHub to check if we need to start a build.', @@ -370,18 +369,18 @@ PHPCI', 'commit_id_option' => 'Commit ID to build', 'branch_name_option' => 'Branch to build', 'add_to_queue_failed' => 'Build created successfully, but failed to add to build queue. This usually happens - when PHPCI is set to use a beanstalkd server that does not exist, + when PHP Censor is set to use a beanstalkd server that does not exist, or your beanstalkd server has stopped.', // Run Command - 'run_all_pending' => 'Run all pending PHPCI builds.', + 'run_all_pending' => 'Run all pending PHP Censor builds.', 'finding_builds' => 'Finding builds to process', 'found_n_builds' => 'Found %d builds', 'skipping_build' => 'Skipping Build %d - Project build already in progress.', 'marked_as_failed' => 'Build %d marked as failed due to timeout.', // Builder - 'missing_phpci_yml' => 'This project does not contain a phpci.yml file, or it is empty.', + 'missing_app_yml' => 'This project does not contain a .php-censor.yml (.phpci.yml|phpci.yml) file, or it is empty.', 'build_success' => 'BUILD SUCCESS', 'build_failed' => 'BUILD FAILED', 'removing_build' => 'Removing Build.', @@ -408,7 +407,7 @@ PHPCI', 'n_emails_sent' => '%d emails sent.', 'n_emails_failed' => '%d emails failed to send.', 'unable_to_set_env' => 'Unable to set environment variable', - 'tag_created' => 'Tag created by PHPCI: %s', + 'tag_created' => 'Tag created by PHP Censor: %s', 'x_built_at_x' => '%PROJECT_TITLE% built at %BUILD_URI%', 'hipchat_settings' => 'Please define room and authToken for hipchat_notify plugin', 'irc_settings' => 'You must configure a server, room and nick.', diff --git a/src/PHPCensor/Languages/lang.ru.php b/src/PHPCensor/Languages/lang.ru.php index 7b64e137..6974e02b 100644 --- a/src/PHPCensor/Languages/lang.ru.php +++ b/src/PHPCensor/Languages/lang.ru.php @@ -84,9 +84,9 @@ PHP Censor', 'latest_builds' => 'Последние сборки', 'pending' => 'Ожидает', 'running' => 'Запущена', - 'success' => 'Успех', - 'successful' => 'Успешно', + 'success' => 'Успешно', 'failed' => 'Провал', + 'error' => 'Ошибка', 'manual_build' => 'Запущена вручную', // Add/Edit Project: diff --git a/src/PHPCensor/Languages/lang.uk.php b/src/PHPCensor/Languages/lang.uk.php index 47b89706..f5aeab25 100644 --- a/src/PHPCensor/Languages/lang.uk.php +++ b/src/PHPCensor/Languages/lang.uk.php @@ -84,7 +84,6 @@ PHP Censor', 'pending' => 'Очікує', 'running' => 'Виконується', 'success' => 'Успіх', - 'successful' => 'Успішно', 'failed' => 'Провалена', 'manual_build' => 'Ручна збірка', diff --git a/src/PHPCensor/Languages/lang.zh.php b/src/PHPCensor/Languages/lang.zh.php index daa45859..830a9beb 100644 --- a/src/PHPCensor/Languages/lang.zh.php +++ b/src/PHPCensor/Languages/lang.zh.php @@ -12,7 +12,7 @@ $strings = array( 'language' => '语言选择', // Log in: - 'log_in_to_phpci' => '登录 PHPCI', + 'log_in_to_app' => '登录 PHP Censor', 'login_error' => '邮箱或密码错误', 'forgotten_password_link' => '忘记密码?', 'reset_emailed' => '已发送重置密码邮件.', @@ -25,7 +25,7 @@ $strings = array( 'reset_no_user_exists' => '不存该该邮箱用户,请检查后重试!', 'reset_email_body' => '您好 %s, -您收到这封邮件,是因为您或者别人发起了来自PHPCI的密码重置请求。 +您收到这封邮件,是因为您或者别人发起了来自PHP Censor的密码重置请求。 如果确实是您发起的,请点击链接去重置您的密码:%ssession/reset-password/%d/%s @@ -33,9 +33,9 @@ $strings = array( 多谢, -PHPCI', +PHP Censor', - 'reset_email_title' => '给 %s 来自 PHPCI 的密码重置邮件', + 'reset_email_title' => '给 %s 来自 PHP Censor 的密码重置邮件', 'reset_invalid' => '密码重置请求失败!', 'email_address' => '邮箱地址', 'password' => '密码', @@ -82,7 +82,6 @@ PHPCI', 'pending' => '等待中', 'running' => '构建中', 'success' => '成功', - 'successful' => '成功', 'failed' => '失败', 'manual_build' => 'Manual Build', @@ -108,8 +107,8 @@ PHPCI', 'project_title' => '项目标题', 'project_private_key' => '访问仓库私有秘钥 (本地或公共仓库可为空)', - 'build_config' => '该项目 PHPCI 构建配置文件 - (如果您无法在该项目仓库创建 phpci.yml 文件)', + 'build_config' => '该项目 PHP Censor 构建配置文件 + (如果您无法在该项目仓库创建 .php-censor.yml (.phpci.yml|phpci.yml) 文件)', 'default_branch' => '默认分支名称', 'allow_public_status' => '启用此项目的公共状态页和图像?', 'archived' => '归档', @@ -239,18 +238,18 @@ PHPCI', // Settings: 'settings_saved' => '您的设置已经保存。', 'settings_check_perms' => '权限不足,您的设置无法保存, 请检查 config.yml 文件.', - 'settings_cannot_write' => 'PHPCI 无法写入 config.yml 文件, 在这个问题解决前设置可能无法正常保存', + 'settings_cannot_write' => 'PHP Censor 无法写入 config.yml 文件, 在这个问题解决前设置可能无法正常保存', 'settings_github_linked' => '您的 GitHub 账户已经连接。', 'settings_github_not_linked' => '您的 GitHub 无法连接。', 'build_settings' => '构建设置', 'github_application' => 'GitHub Application', - 'github_sign_in' => '在使用您的 GitHub 账号之前, 您需要登录 GitHub , 并允许 PHPCI 访问您的账户。', - 'github_phpci_linked' => 'PHPCI 成功连接到您的 GitHub 账户。', + 'github_sign_in' => '在使用您的 GitHub 账号之前, 您需要登录 GitHub , 并允许 PHP Censor 访问您的账户。', + 'github_linked' => 'PHP Censor 成功连接到您的 GitHub 账户。', 'github_where_to_find' => '在哪里可以找到...', 'github_where_help' => '如果您想使用您自己的应用, 您可以在applications 的 setting 中 找到相关信息。', 'email_settings' => '邮箱设置', - 'email_settings_help' => 'PHPCI在发送构建状态的邮件之前,您需要配置您的SMTP设置如下。', + 'email_settings_help' => 'PHP Censor在发送构建状态的邮件之前,您需要配置您的SMTP设置如下。', 'application_id' => 'Application ID', 'application_secret' => 'Application Secret', @@ -274,7 +273,7 @@ PHPCI', '3_hours' => '3 小时', // Plugins - 'cannot_update_composer' => '由于 composer.json 文件不可写 PHPCI 无法为您更新该文件, ', + 'cannot_update_composer' => '由于 composer.json 文件不可写 PHP Censor 无法为您更新该文件, ', 'x_has_been_removed' => '%s 已经移除', 'x_has_been_added' => '%s 已经为您添加至 composer.json , 当您下次执行 composer update 时相关库将会安装', 'enabled_plugins' => '已启用插件', @@ -303,7 +302,7 @@ PHPCI', 'stage_fixed' => 'Fixed', // Installer - 'installation_url' => 'PHPCI Installation URL', + 'installation_url' => 'PHP Censor Installation URL', 'db_host' => 'Database Host', 'db_name' => 'Database Name', 'db_user' => 'Database Username', @@ -312,37 +311,37 @@ PHPCI', 'admin_pass' => 'Admin Password', 'admin_email' => 'Admin Email Address', 'config_path' => 'Config File Path', - 'install_phpci' => 'Install PHPCI', - 'welcome_to_phpci' => 'Welcome to PHPCI', + 'install_app' => 'Install PHP Censor', + 'welcome_to_app' => 'Welcome to PHP Censor', 'please_answer' => 'Please answer the following questions:', - 'phpci_php_req' => 'PHPCI requires at least PHP 5.3.8 to function.', + 'app_php_req' => 'PHP Censor requires at least PHP 5.3.8 to function.', 'extension_required' => 'Extension required: %s', - 'function_required' => 'PHPCI needs to be able to call the %s() function. Is it disabled in php.ini?', - 'requirements_not_met' => 'PHPCI cannot be installed, as not all requirements are met. + 'function_required' => 'PHP Censor needs to be able to call the %s() function. Is it disabled in php.ini?', + 'requirements_not_met' => 'PHP Censor cannot be installed, as not all requirements are met. Please review the errors above before continuing.', 'must_be_valid_email' => 'Must be a valid email address.', 'must_be_valid_url' => 'Must be a valid URL.', 'enter_name' => 'Admin Name: ', 'enter_email' => 'Admin Email: ', 'enter_password' => 'Admin Password: ', - 'enter_phpci_url' => 'Your PHPCI URL ("http://phpci.local" for example): ', + 'enter_app_url' => 'Your PHP Censor URL ("http://php-censor.local" for example): ', 'enter_db_host' => 'Please enter your MySQL host [localhost]: ', - 'enter_db_name' => 'Please enter your MySQL database name [phpci]: ', - 'enter_db_user' => 'Please enter your MySQL username [phpci]: ', + 'enter_db_name' => 'Please enter your MySQL database name [php-censor-db]: ', + 'enter_db_user' => 'Please enter your MySQL username [php-censor-user]: ', 'enter_db_pass' => 'Please enter your MySQL password: ', - 'could_not_connect' => 'PHPCI could not connect to MySQL with the details provided. Please try again.', + 'could_not_connect' => 'PHP Censor could not connect to MySQL with the details provided. Please try again.', 'setting_up_db' => 'Setting up your database... ', 'user_created' => 'User account created!', - 'failed_to_create' => 'PHPCI failed to create your admin account.', - 'config_exists' => 'The PHPCI config file exists and is not empty.', - 'update_instead' => 'If you were trying to update PHPCI, please use phpci:update instead.', + 'failed_to_create' => 'PHP Censor failed to create your admin account.', + 'config_exists' => 'The PHP Censor config file exists and is not empty.', + 'update_instead' => 'If you were trying to update PHP Censor, please use php-censor:update instead.', // Update - 'update_phpci' => 'Update the database to reflect modified models.', - 'updating_phpci' => 'Updating PHPCI database: ', - 'not_installed' => 'PHPCI does not appear to be installed.', - 'install_instead' => 'Please install PHPCI via phpci:install instead.', + 'update_app' => 'Update the database to reflect modified models.', + 'updating_app' => 'Updating PHP Censor database: ', + 'not_installed' => 'PHP Censor does not appear to be installed.', + 'install_instead' => 'Please install PHP Censor via php-censor:install instead.', // Poll Command 'poll_github' => 'Poll GitHub to check if we need to start a build.', @@ -363,18 +362,18 @@ PHPCI', 'commit_id_option' => 'Commit ID to build', 'branch_name_option' => 'Branch to build', 'add_to_queue_failed' => 'Build created successfully, but failed to add to build queue. This usually happens - when PHPCI is set to use a beanstalkd server that does not exist, + when PHP Censor is set to use a beanstalkd server that does not exist, or your beanstalkd server has stopped.', // Run Command - 'run_all_pending' => 'Run all pending PHPCI builds.', + 'run_all_pending' => 'Run all pending PHP Censor builds.', 'finding_builds' => 'Finding builds to process', 'found_n_builds' => 'Found %d builds', 'skipping_build' => 'Skipping Build %d - Project build already in progress.', 'marked_as_failed' => 'Build %d marked as failed due to timeout.', // Builder - 'missing_phpci_yml' => 'This project does not contain a phpci.yml file, or it is empty.', + 'missing_app_yml' => 'This project does not contain a .php-censor.yml (.phpci.yml|phpci.yml) file, or it is empty.', 'build_success' => 'BUILD SUCCESS', 'build_failed' => 'BUILD FAILED', 'removing_build' => 'Removing Build.', @@ -401,7 +400,7 @@ PHPCI', 'n_emails_sent' => '%d emails sent.', 'n_emails_failed' => '%d emails failed to send.', 'unable_to_set_env' => 'Unable to set environment variable', - 'tag_created' => 'Tag created by PHPCI: %s', + 'tag_created' => 'Tag created by PHP Censor: %s', 'x_built_at_x' => '%PROJECT_TITLE% built at %BUILD_URI%', 'hipchat_settings' => 'Please define room and authToken for hipchat_notify plugin', 'irc_settings' => 'You must configure a server, room and nick.', diff --git a/src/PHPCensor/View/Email/layout.phtml b/src/PHPCensor/View/Email/layout.phtml index c845d64c..a97ac991 100644 --- a/src/PHPCensor/View/Email/layout.phtml +++ b/src/PHPCensor/View/Email/layout.phtml @@ -13,7 +13,7 @@

Your commit getCommitId(); ?> generated a - isSuccessful() ? 'successful' : 'failed'; ?> build in project + isSuccessful() ? 'success' : 'failed'; ?> build in project getTitle(); ?>.

diff --git a/src/PHPCensor/View/Home/index.phtml b/src/PHPCensor/View/Home/index.phtml index 28ca5fcf..b504e319 100644 --- a/src/PHPCensor/View/Home/index.phtml +++ b/src/PHPCensor/View/Home/index.phtml @@ -42,7 +42,7 @@ case \PHPCensor\Model\Build::STATUS_SUCCESS: $updated = $build->getFinished(); - $label = Lang::get('successful'); + $label = Lang::get('success'); $color = 'green'; break; diff --git a/src/PHPCensor/View/layout.phtml b/src/PHPCensor/View/layout.phtml index 7250e8a4..254c1975 100644 --- a/src/PHPCensor/View/layout.phtml +++ b/src/PHPCensor/View/layout.phtml @@ -16,11 +16,6 @@ -