From df7bdbfc66566a5063fa754fdcc83ec9230f9b6e Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Wed, 24 Jan 2018 10:19:58 -0500 Subject: [PATCH] More missed calls missed t() calls --- include/datetime.php | 2 +- mod/dfrn_request.php | 2 +- mod/install.php | 2 +- util/extract.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/datetime.php b/include/datetime.php index 53455d4557..df53c01aa4 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -193,7 +193,7 @@ function dob($dob) $o = replace_macros(get_markup_template("field_input.tpl"), [ '$field' => [ 'dob', - t('Birthday:'), + L10n::t('Birthday:'), $value, (((intval($age)) > 0 ) ? L10n::t('Age: ') . $age : ""), '', diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 5c9a0693b1..57bba3595e 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -639,7 +639,7 @@ function dfrn_request_content(App $a) $page_desc = L10n::t("Please enter your 'Identity Address' from one of the following supported communications networks:"); $invite_desc = sprintf( - t('If you are not yet a member of the free social web, follow this link to find a public Friendica site and join us today.'), + L10n::t('If you are not yet a member of the free social web, follow this link to find a public Friendica site and join us today.'), get_server() . '/servers' ); diff --git a/mod/install.php b/mod/install.php index 3255bc6d0e..76ecdfd9b9 100644 --- a/mod/install.php +++ b/mod/install.php @@ -545,7 +545,7 @@ function load_database() { function what_next() { $baseurl = System::baseUrl(); return - t('

What next

') + L10n::t('

What next

') ."

".L10n::t('IMPORTANT: You will need to [manually] setup a scheduled task for the worker.') .L10n::t('Please see the file "INSTALL.txt".') ."

" diff --git a/util/extract.php b/util/extract.php index b3aa12ebf0..13151bc96f 100644 --- a/util/extract.php +++ b/util/extract.php @@ -9,8 +9,8 @@ foreach($files as $file) { $str = file_get_contents($file); - $pat = '| t\(([^\)]*)\)|'; - $patt = '| tt\(([^\)]*)\)|'; + $pat = '| L10n::t\(([^\)]*)\)|'; + $patt = '| L10n::tt\(([^\)]*)\)|'; preg_match_all($pat,$str,$matches); preg_match_all($patt, $str, $matchestt);