From bf430206c8a957d2f6640e87b7b7a0bc28fc9657 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 6 Nov 2016 11:14:40 -0800 Subject: [PATCH] Fix a minor i18n issue in libphutil Summary: Ref T5267. Fixes a missing `%s`. Also ignores the `src/.cache/` directory, used for the i18n cache. Test Plan: Extracted strings more cleanly. Reviewers: chad Reviewed By: chad Maniphest Tasks: T5267 Differential Revision: https://secure.phabricator.com/D16809 --- .gitignore | 1 + src/aphront/writeguard/AphrontWriteGuard.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 20a73eafd..292de41ef 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ # libphutil /src/.phutil_module_cache +/src/.cache /support/phutiltestlib/.phutil_module_cache # This file overrides "default.pem" if present. diff --git a/src/aphront/writeguard/AphrontWriteGuard.php b/src/aphront/writeguard/AphrontWriteGuard.php index 41f248546..589a0db37 100644 --- a/src/aphront/writeguard/AphrontWriteGuard.php +++ b/src/aphront/writeguard/AphrontWriteGuard.php @@ -98,7 +98,7 @@ public function dispose() { if ($this->allowDepth > 0) { throw new Exception( pht( - 'Imbalanced %s: more % calls than %s calls.', + 'Imbalanced %s: more %s calls than %s calls.', __CLASS__, 'beginUnguardedWrites()', 'endUnguardedWrites()'));