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

FRENCH translation for the User Statistics extension + Fixes inverted links #2

Merged
merged 2 commits into from Sep 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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',
));