mirror of
https://github.com/friendica/friendica
synced 2025-04-19 08:30:11 +00:00
Issue 9743: Added translatable texts
This commit is contained in:
parent
f6873cc912
commit
972c9f7bc0
10 changed files with 148 additions and 124 deletions
|
@ -135,8 +135,10 @@ class ActivityPubConversion extends BaseModule
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('debug/activitypubconversion.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$source' => ['source', DI::l10n()->t('Source activity'), $_REQUEST['source'] ?? '', ''],
|
||||
'$results' => $results
|
||||
'$title' => DI::l10n()->t('ActivityPub Conversion'),
|
||||
'$source' => ['source', DI::l10n()->t('Source activity'), $_REQUEST['source'] ?? '', ''],
|
||||
'$results' => $results,
|
||||
'$submit' => DI::l10n()->t('Submit'),
|
||||
]);
|
||||
|
||||
return $o;
|
||||
|
|
|
@ -24,13 +24,10 @@ namespace Friendica\Module\Debug;
|
|||
use Friendica\BaseModule;
|
||||
use Friendica\Content\PageInfo;
|
||||
use Friendica\Content\Text;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Conversation;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Protocol\Activity;
|
||||
use Friendica\Model\Tag;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
/**
|
||||
|
@ -306,6 +303,7 @@ class Babel extends BaseModule
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('babel.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => DI::l10n()->t('Babel Diagnostic'),
|
||||
'$text' => ['text', DI::l10n()->t('Source text'), $_REQUEST['text'] ?? '', ''],
|
||||
'$type_bbcode' => ['type', DI::l10n()->t('BBCode'), 'bbcode', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'bbcode'],
|
||||
'$type_diaspora' => ['type', DI::l10n()->t('Diaspora'), 'diaspora', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'diaspora'],
|
||||
|
@ -313,7 +311,8 @@ class Babel extends BaseModule
|
|||
'$type_html' => ['type', DI::l10n()->t('HTML'), 'html', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'html'],
|
||||
'$flag_twitter' => file_exists('addon/twitter/twitter.php'),
|
||||
'$type_twitter' => ['type', DI::l10n()->t('Twitter Source / Tweet URL (requires API key)'), 'twitter', '', (($_REQUEST['type'] ?? '') ?: 'bbcode') == 'twitter'],
|
||||
'$results' => $results
|
||||
'$results' => $results,
|
||||
'$submit' => DI::l10n()->t('Submit'),
|
||||
]);
|
||||
|
||||
return $o;
|
||||
|
|
|
@ -50,13 +50,16 @@ class Probe extends BaseModule
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('probe.tpl');
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$addr' => ['addr',
|
||||
'$title' => DI::l10n()->t('Probe Diagnostic'),
|
||||
'$output' => DI::l10n()->t('Output'),
|
||||
'$submit' => DI::l10n()->t('Submit'),
|
||||
'$addr' => ['addr',
|
||||
DI::l10n()->t('Lookup address'),
|
||||
$addr,
|
||||
'',
|
||||
DI::l10n()->t('Required')
|
||||
],
|
||||
'$res' => $res,
|
||||
'$res' => $res,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,8 +49,11 @@ class WebFinger extends BaseModule
|
|||
|
||||
$tpl = Renderer::getMarkupTemplate('webfinger.tpl');
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$addr' => $addr,
|
||||
'$res' => $res,
|
||||
'$title' => DI::l10n()->t('Webfinger Diagnostic'),
|
||||
'$submit' => DI::l10n()->t('Submit'),
|
||||
'$lookup' => DI::l10n()->t('Lookup address:'),
|
||||
'$addr' => $addr,
|
||||
'$res' => $res,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue