More t()
Update more t() calls
This commit is contained in:
parent
3b0f69599e
commit
ead9d86236
25 changed files with 367 additions and 346 deletions
|
|
@ -1,14 +1,17 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file mod/filer.php
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
|
||||
require_once('include/security.php');
|
||||
require_once('include/bbcode.php');
|
||||
require_once('include/items.php');
|
||||
|
||||
function filer_content(App $a) {
|
||||
require_once 'include/security.php';
|
||||
require_once 'include/bbcode.php';
|
||||
require_once 'include/items.php';
|
||||
|
||||
function filer_content(App $a)
|
||||
{
|
||||
if (! local_user()) {
|
||||
killme();
|
||||
}
|
||||
|
|
@ -18,19 +21,19 @@ function filer_content(App $a) {
|
|||
|
||||
logger('filer: tag ' . $term . ' item ' . $item_id);
|
||||
|
||||
if($item_id && strlen($term)){
|
||||
if ($item_id && strlen($term)) {
|
||||
// file item
|
||||
file_tag_save_file(local_user(),$item_id,$term);
|
||||
file_tag_save_file(local_user(), $item_id, $term);
|
||||
} else {
|
||||
// return filer dialog
|
||||
$filetags = PConfig::get(local_user(),'system','filetags');
|
||||
$filetags = file_tag_file_to_list($filetags,'file');
|
||||
$filetags = explode(",", $filetags);
|
||||
$filetags = PConfig::get(local_user(), 'system', 'filetags');
|
||||
$filetags = file_tag_file_to_list($filetags, 'file');
|
||||
$filetags = explode(",", $filetags);
|
||||
|
||||
$tpl = get_markup_template("filer_dialog.tpl");
|
||||
$o = replace_macros($tpl, [
|
||||
'$field' => ['term', t("Save to Folder:"), '', '', $filetags, t('- select -')],
|
||||
'$submit' => t('Save'),
|
||||
'$field' => ['term', L10n::t("Save to Folder:"), '', '', $filetags, L10n::t('- select -')],
|
||||
'$submit' => L10n::t('Save'),
|
||||
]);
|
||||
|
||||
echo $o;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue