Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add l10n support and provide german translation for related topics #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function __construct(\phpbb\config\config $config, \phpbb\auth\auth $auth
$this->pagination = $phpbb_container->get('pagination');
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;

$this->posts_per_page = $this->config['posts_per_page'];

// better to always check, since it's fast
Expand All @@ -126,6 +126,8 @@ public function core_viewtopic_modify_page_title($event)
{
global $topic_tracking_info;

$this->user->add_lang_ext("phpbbseo/related", "lang");

$topic_data = $event['topic_data'];
$forum_id = $event['forum_id'];

Expand Down
21 changes: 21 additions & 0 deletions language/de/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* German translation by everflux
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'RELATED_TOPICS' => 'Ähnliche Themen',
));
21 changes: 21 additions & 0 deletions language/en/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}

if (empty($lang) || !is_array($lang))
{
$lang = array();
}

$lang = array_merge($lang, array(
'RELATED_TOPICS' => 'Related Topics',
));