Skip to content

Commit

Permalink
Merge pull request #2 from Galixte/master
Browse files Browse the repository at this point in the history
FRENCH translation for the User Statistics extension + Fixes inverted links
  • Loading branch information
senky committed Sep 4, 2018
2 parents dab3ade + 1bd0ad0 commit 1c5c125
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
4 changes: 2 additions & 2 deletions event/listener.php
Expand Up @@ -114,10 +114,10 @@ public function set_template_variables($event)
'US_REGDATE' => $this->user->format_date($this->user->data['user_regdate']),
'US_ID' => $this->user->data['user_id'],
'US_POSTS' => $this->user->data['user_posts'],
'U_US_POSTS' => append_sid("{$this->root_path}search.{$this->php_ext}", 'search_id=egosearch'),
'U_US_POSTS' => append_sid("{$this->root_path}search.{$this->php_ext}", 'search_id=egosearch&sr=posts'),
'US_RTITLE' => ($user_rank['title'] != '') ? $user_rank['title'] : $this->user->lang('US_NO_RANK'),
'US_TOPICS' => $user_topics,
'U_US_TOPICS' => append_sid("{$this->root_path}search.{$this->php_ext}", 'search_id=egosearch&sr=posts'),
'U_US_TOPICS' => append_sid("{$this->root_path}search.{$this->php_ext}", 'search_id=egosearch'),
));
}
}
Expand Down
49 changes: 49 additions & 0 deletions language/fr/user_statistics.php
@@ -0,0 +1,49 @@
<?php
/**
*
* User Statistics. An extension for the phpBB Forum Software package.
* French translation by Galixte (http://www.galixte.com)
*
* @copyright (c) 2018 Jakub Senko <jakubsenko@gmail.com>
* @license GNU General Public License, version 2 (GPL-2.0-only)
*
*/

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

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

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ « » “ ” …
//

$lang = array_merge($lang, array(
'US_USER_IP' => 'Mon adresse IP',
'US_USER_REGDATE' => 'Ma date d’enregistrement',
'US_USER_ID' => 'ID de mon compte',
'US_USER_POSTS' => 'Mon nombre de messages',
'US_USER_TOPICS' => 'Mon nombre de sujets',
'US_USER_RTITLE' => 'Nom de mon rang',
'US_NO_RANK' => 'Aucun rang',
));

0 comments on commit 1c5c125

Please sign in to comment.