summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-05-29 01:21:54 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-06-28 13:29:24 +0200
commitae68a773c04028288f539120d6f41e900c1b8436 (patch)
tree1bca3155c77a0f23089c351c279474edbee35a43 /lib/base.php
parentd5462fdb50bc9f1d4726369b8922d34f33405d14 (diff)
downloadnextcloud-server-ae68a773c04028288f539120d6f41e900c1b8436.tar.gz
nextcloud-server-ae68a773c04028288f539120d6f41e900c1b8436.zip
more strings to translate in utils also some fixes in defaults
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/base.php b/lib/base.php
index eef094737b6..d9fe94f1ccc 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -179,20 +179,22 @@ class OC {
}
public static function checkConfig() {
+ $l = OC_L10N::get('lib');
if (file_exists(self::$configDir . "/config.php")
and !is_writable(self::$configDir . "/config.php")
) {
if (self::$CLI) {
- echo "Can't write into config directory!\n";
- echo "This can usually be fixed by giving the webserver write access to the config directory\n";
+ echo $l->t('Cannot write into "config" directory!')."\n";
+ echo $l->t('This can usually be fixed by giving the webserver write access to the config directory')."\n";
echo "\n";
- echo "See " . \OC_Helper::linkToDocs('admin-dir_permissions') . "\n";
+ echo $l->t('See %s', array(\OC_Helper::linkToDocs('admin-dir_permissions')))."\n";
exit;
} else {
OC_Template::printErrorPage(
- "Can't write into config directory!",
- 'This can usually be fixed by '
- . '<a href="' . \OC_Helper::linkToDocs('admin-dir_permissions') . '" target="_blank">giving the webserver write access to the config directory</a>.'
+ $l->t('Cannot write into "config" directory!'),
+ $l->t('This can usually be fixed by '
+ . '%sgiving the webserver write access to the config directory%s.',
+ array('<a href="'.\OC_Helper::linkToDocs('admin-dir_permissions').'" target="_blank">', '</a>'))
);
}
}