Skip to content

Commit f47e69c

Browse files
committedJun 9, 2015
Mark some strings for translation
Summary: Add some more `pht`izations. Test Plan: Eyeball it. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D13200
1 parent 5397779 commit f47e69c

File tree

78 files changed

+181
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+181
-151
lines changed
 

‎conf/__init_conf__.php

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
22

33
function phabricator_read_config_file($original_config) {
4-
54
$root = dirname(dirname(__FILE__));
65

76
// Accept either "myconfig" (preferred) or "myconfig.conf.php".
87
$config = preg_replace('/\.conf\.php$/', '', $original_config);
98
$full_config_path = $root.'/conf/'.$config.'.conf.php';
109

1110
if (!Filesystem::pathExists($full_config_path)) {
12-
1311
// These are very old configuration files which we used to ship with
1412
// by default. File based configuration was de-emphasized once web-based
1513
// configuration was built. The actual files were removed to reduce
@@ -37,12 +35,14 @@ function phabricator_read_config_file($original_config) {
3735
$file = trim($file, './');
3836
$files[$key] = preg_replace('/\.conf\.php$/', '', $file);
3937
}
40-
$files = " ".implode("\n ", $files);
38+
$files = ' '.implode("\n ", $files);
4139

4240
throw new Exception(
43-
"CONFIGURATION ERROR\n".
44-
"Config file '{$original_config}' does not exist. Valid config files ".
45-
"are:\n\n".$files);
41+
pht(
42+
"CONFIGURATION ERROR\n".
43+
"Config file '%s' does not exist. Valid config files are:\n\n%s",
44+
$original_config,
45+
$files));
4646
}
4747

4848
// Make sure config file errors are reported.
@@ -58,7 +58,11 @@ function phabricator_read_config_file($original_config) {
5858
ini_set('display_errors', $old_display_errors);
5959

6060
if ($conf === false) {
61-
throw new Exception("Failed to read config file '{$config}': {$errors}");
61+
throw new Exception(
62+
pht(
63+
"Failed to read config file '%s': %s",
64+
$config,
65+
$errors));
6266
}
6367

6468
return $conf;

‎resources/sql/patches/20130508.releephtransactionsmig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
// already migrated, so this was cleaned up when ReleephRequestEvent was
66
// removed.
77

8-
echo "(This migration is obsolete.)\n";
8+
echo pht('(This migration is obsolete.)')."\n";

0 commit comments

Comments
 (0)
Failed to load comments.