Projects
Infrastructure
phabricator
0014-Allow-the-title-to-be-overriden.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0014-Allow-the-title-to-be-overriden.patch of Package phabricator
From 5cb36291a97e44ae0768a8841c8c277eab5eaa5f Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Tue, 23 Aug 2016 11:58:19 +0200 Subject: [PATCH 14/15] Allow the title to be overriden Translate Phabricator in welcome emails --- src/applications/home/controller/PhabricatorHomeMainController.php | 2 +- src/applications/people/storage/PhabricatorUser.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/applications/home/controller/PhabricatorHomeMainController.php b/src/applications/home/controller/PhabricatorHomeMainController.php index 405959f..aebbfd9 100644 --- a/src/applications/home/controller/PhabricatorHomeMainController.php +++ b/src/applications/home/controller/PhabricatorHomeMainController.php @@ -45,7 +45,7 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController { } return $this->newPage() - ->setTitle('Phabricator') + ->setTitle(pht('Phabricator')) ->addClass('phabricator-home') ->appendChild($content); diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php index bc102b7..d0ff45c 100644 --- a/src/applications/people/storage/PhabricatorUser.php +++ b/src/applications/people/storage/PhabricatorUser.php @@ -704,17 +704,19 @@ final class PhabricatorUser PhabricatorAuthSessionEngine::ONETIME_WELCOME); $body = pht( - "Welcome to Phabricator!\n\n". + "Welcome to %s!\n\n". "%s (%s) has created an account for you.\n\n". " Username: %s\n\n". - "To login to Phabricator, follow this link and set a password:\n\n". + "To login to %s, follow this link and set a password:\n\n". " %s\n\n". "After you have set a password, you can login in the future by ". "going here:\n\n". " %s\n", + pht('Phabricator'), $admin_username, $admin_realname, $user_username, + pht('Phabricator'), $uri, $base_uri); -- 2.9.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.