Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Added French language
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianP26 committed Aug 18, 2022
1 parent f82ca08 commit a39162c
Show file tree
Hide file tree
Showing 7 changed files with 168 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Translations
* Slovak Translation by @KristianP26
* Portuguese Translation by @shipyy
* German Translation by @Bara
* French Translation by @Sarrus1

CSS & JS
* [Bootstrap](https://getbootstrap.com/) (Front-end toolkit)
Expand Down
2 changes: 1 addition & 1 deletion inc/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
*/

$settings_language_enable = TRUE; // Default: TRUE - To disable language selector change to FALSE.
$settings_language_default = "English"; // Czech, English, German, Portuguese, Slovak
$settings_language_default = "English"; // Czech, English, French, German, Portuguese, Slovak
$settings_player_flags = TRUE; // Default: TRUE - To disable player flags change to FALSE
$settings_maps_download_url = ''; // To disable remain empty EXAMPLE: http://example.com/maps/

Expand Down
2 changes: 2 additions & 0 deletions inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ function LanguageFlag(){
return 'sk';
elseif($_SESSION['language'] == 'Portuguese')
return 'pt';
elseif($_SESSION['language'] == 'French')
return 'fr';
};

function LanguageURL($language){
Expand Down
2 changes: 2 additions & 0 deletions inc/languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
$_SESSION['language'] = "Portuguese";
elseif($_GET['language'] == 'Slovak')
$_SESSION['language'] = "Slovak";
elseif($_GET['language'] == 'French')
$_SESSION['language'] = "French";
}

require_once(__ROOT__.'/inc/languages/'.$_SESSION['language'].'.php');
Expand Down
140 changes: 140 additions & 0 deletions inc/languages/English copy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<?php
/*
English language for Surftimer-Web-Stats v2.06
Translation by: KristiánP
*/

define('NAVBAR_DASHBOARD', 'Dashboard');
define('NAVBAR_HOME', 'Home');
define('NAVBAR_TOP_PLAYERS', 'Top Players');
define('NAVBAR_MAPS', 'Maps');
define('NAVBAR_MOST_ACTIVE', 'Most Active');
define('NAVBAR_RECENT_RECORDS', 'Recent Records');
define('NAVBAR_SEARCH_PLAYER', 'Search Player');

define('SEARCH_SEARCH_PLAYERS', 'Search Players');
define('SEARCH_CLOSE', 'Close');
define('SEARCH_INPUT', 'Search players by Username, SteamID or SteamID64');
define('SEARCH_NO_RESULTS', 'No Results');

define('HOME_TOTAL_PLAYERS', 'Total Players');
define('HOME_TOTAL_MAPS', 'Total Maps');
define('HOME_TOTAL_BONUSES', 'Total Bonuses');
define('HOME_TOTAL_COMPLETIONS', 'Total Completions');
define('HOME_HOURS_PLAYED', 'Hours Played');
define('HOME_RECENT', 'Recent 10 Map Records');
define('HOME_TOP_PLAYERS', 'Top 10 Players');
define('HOME_TOP_WR', 'Top 10 WR holders');
define('HOME_TOP_BONUS_WR', 'Top 10 bonus WR Holders');
define('HOME_TOP_STAGE_WR', 'Top 10 stage WR holders');
define('HOME_RECENT_MAPS', 'Recently added maps');
define('HOME_BUTTON_SHOW_MORE', 'Show More');

define('TABLE_USERNAME', 'Username');
define('TABLE_MAP', 'Map');
define('TABLE_MAPS', 'Maps');
define('TABLE_MAP_NAME', 'Map Name');
define('TABLE_TIME', 'Time');
define('TABLE_DATE', 'Date');
define('TABLE_POINTS', 'Points');
define('TABLE_BONUS', 'Bonus');
define('TABLE_BONUSES', 'Bonuses');
define('TABLE_NO_BONUS', 'No Bonus');
define('TABLE_STAGE', 'Stage');
define('TABLE_STAGES', 'Stages');
define('TABLE_COMPLETIONS', 'Completions');
define('TABLE_WRS', 'WRs');
define('TABLE_FINISHED_MAPS', 'Finished Maps');
define('TABLE_FINISHED_BONUSES', 'Finished Bonuses');
define('TABLE_FINISHED_STAGES', 'Finished Stages');
define('TABLE_TIER', 'Tier');
define('TABLE_TYPE', 'Type');
define('TABLE_ADDED', 'Added');
define('TABLE_JOINED', 'Joined');
define('TABLE_HOURS', 'Hours');
define('TABLE_RANK', 'Rank');
define('TABLE_BONUS_RANK', 'Bonus Rank');
define('TABLE_STAGE_RANK', 'Stage Rank');
define('TABLE_RUNTIME', 'Runtime');
define('TABLE_CONNECTIONS', 'Connections');
define('TABLE_LAST_SEEN', 'Last Seen');
define('TABLE_LINEAR', 'Linear');
define('TABLE_STAGED', 'Staged');
define('TABLE_NULL', 'Null');
define('TABLE_TODAY', 'Today');
define('TABLE_YESTERDAY', 'Yesterday');
define('TABLE_DAYS_AGO', 'days ago');
define('TABLE_TOP_PLAYER_NAME', 'Top Player Name');
define('TABLE_TOP_TIME', 'Top Time');
define('TABLE_TOTAL_STAGE_COMPLETIONS', 'Total Stage Completions');

define('MAPS_MAP_COLLECTION', 'Map Collection');
define('MAPS_MAX_VELOCITY', 'Max Velocity');
define('MAPS_TOTAL_COMPLETIONS', 'Total Completions');
define('MAPS_MAP_COMPLETIONS', 'Map Completions');
define('MAPS_STAGE_COMPLETIONS', 'Stage Completions');
define('MAPS_BONUSES_COMPLETIONS', 'Stage Completions');

define('PROFILE_PLAYER_PROFILE', 'Player Profile');
define('PROFILE_TOP', 'TOP');
define('PROFILE_USER_TOTAL_COMPLETION_PROGRESS', 'User Total Completion Progress');
define('PROFILE_OVERALL_RANK', 'Overall Rank');
define('PROFILE_TOTAL_PLAYTIME', 'Total Playtime');
define('PROFILE_SURF_TIME', 'Surfing Time');
define('PROFILE_MAP_COMPLETIONS', 'Map Completions');
define('PROFILE_BONUS_COMPLETIONS', 'Bonus Completions');
define('PROFILE_STAGES_COMPLETIONS', 'Stage Completions');
define('PROFILE_MAP_TOP_10S', 'Map Top 10s');
define('PROFILE_BONUS_WR_POINTS', 'Bonus WR Points');
define('PROFILE_MAP_TOP_10S_POINTS', 'Map Top 10s Points');
define('PROFILE_MAP_POINTS', 'Map Points');
define('PROFILE_TOTAL_POINTS', 'Total Points');
define('PROFILE_TOTAL_CONNECTIONS', 'Total Connections');
define('PROFILE_SPEC_TIME', 'Spectate Time');
define('PROFILE_MAP_RECORDS', 'Map Records');
define('PROFILE_BONUS_RECORDS', 'Bonus Records');
define('PROFILE_STAGE_RECORDS', 'Stage Records');
define('PROFILE_MAP_WR_POINTS', 'Map WR Points');
define('PROFILE_STAGE_WR_POINTS', 'Stage WR Points');
define('PROFILE_GROUP_POINTS', 'Group Points');
define('PROFILE_BONUS_POINTS', 'Bonus Points');
define('PROFILE_HRS', 'hrs');
define('PROFILE_TIER', 'Tier');
define('PROFILE_PLAYER_COMPLETIONS_BY_MAP_TIER', 'Player Completions by Map Tier');
define('PROFILE_PLAYER_FINISHED_MAPS', 'Player Finished Maps');
define('PROFILE_PLAYER_FINISHED_BONUSES', 'Player Finished Bonuses');
define('PROFILE_PLAYER_FINISHED_STAGES', 'Player Finished Stages');

define('TOP_1000_PLAYERS', 'Top 1,000 Players');
define('MAP_COLLECTION', 'Map Collection');
define('MOST_ACTIVE', 'Most Active');
define('RECENT_100_MAP_RECORDS', 'Recent 100 Map Records');

define('LOADING_MAP', 'Loading Map:');
define('DETAILS', 'Details');
define('PLEASE_WAIT', 'Please Wait');
define('LOADING', 'Loading');
define('LOADING_MAP_COLLECTION', 'Loading Map Collection');
define('LOADING_MOST_ACTIVE_LIST', 'Loading Most Active List');
define('LOADING_PLAYER_PROFILE', 'Loading Player Profile');
define('LOADING_RECENT_MAP_RECORDS_LIST', 'Loading Recent Map Records List');
define('LOADING_TOP_PLAYERS_LIST', 'Loading Top Players List');
define('MAP_NOT_ADDED_PROPERLY', 'were not added properly to server please contact server Administrator');
define('NOT_FOUND_IN_DB', 'were not found in our database');
define('ALL_TIMES_ARE_IN', 'All times are in');

define('DATATABLES_processing', 'Processing...');
define('DATATABLES_search', 'Search:');
define('DATATABLES_lengthMenu', 'Show _MENU_ entries');
define('DATATABLES_info', 'Showing _START_ to _END_ of _TOTAL_ entries');
define('DATATABLES_infoEmpty', 'Showing 0 to 0 of 0 entries');
define('DATATABLES_infoFiltered', '(filtered from _MAX_ total entries)');
define('DATATABLES_loadingRecords', 'Loading...');
define('DATATABLES_zeroRecords', 'No matching records found');
define('DATATABLES_emptyTable', 'No data available in table');
define('DATATABLES_first', 'First');
define('DATATABLES_previous', 'Previous');
define('DATATABLES_next', 'Next');
define('DATATABLES_last', 'Last');
define('DATATABLES_sortAscending', ': activate to sort column ascending');
define('DATATABLES_sortDescending', ': activate to sort column descending');
24 changes: 21 additions & 3 deletions inc/languages/French.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
English language for Surftimer-Web-Stats v2.05
English language for Surftimer-Web-Stats v2.06
Translation by: Sarrus
*/

Expand Down Expand Up @@ -40,6 +40,7 @@
define('TABLE_BONUS', 'Bonus');
define('TABLE_BONUSES', 'Bonus');
define('TABLE_NO_BONUS', 'Pas de bonus');
define('TABLE_STAGE', 'Stage');
define('TABLE_STAGES', 'Stages');
define('TABLE_COMPLETIONS', 'Completions');
define('TABLE_WRS', 'Records');
Expand Down Expand Up @@ -111,12 +112,29 @@

define('LOADING_MAP', 'Chargement de la map:');
define('DETAILS', 'Détails');
define('PLESE_WAIT', 'Merci de patienter');
define('PLEASE_WAIT', 'Merci de patienter');
define('LOADING', 'Chargement');
define('LOADING_MAP_COLLECTION', 'Chargement de la collection de map');
define('LOADING_MOST_ACTIVE_LIST', 'Chargement de la liste Most Active');
define('LOADING_PLAYER_PROFILE', 'Chargement du profile du joueur');
define('LOADING_RECENT_MAP_RECORDS_LIST', 'Chargement de la liste des records récents');
define('LOADING_TOP_PLAYERS_LIST', 'Chargement de la liste des meilleurs joueurs');
define('MAP_NOT_ADDED_PROPERLY', 'n\'ont pas été ajouté correctement au serveur, merci de contacter un admin');
define('NOT_FOUND_IN_DB', 'n\'ont pas été trouvé dans la base de données');
define('NOT_FOUND_IN_DB', 'n\'ont pas été trouvé dans la base de données');
define('ALL_TIMES_ARE_IN', 'All times are in');

define('DATATABLES_processing', 'Traitement en cours...');
define('DATATABLES_search', 'Rechercher:');
define('DATATABLES_lengthMenu', 'Afficher _MENU_ &eacute;l&eacute;ments');
define('DATATABLES_info', 'Affichage de _START_ à _END_ entrées sur _TOTAL_');
define('DATATABLES_infoEmpty', 'Affichage de 0 à 0 sur 0 entrées');
define('DATATABLES_infoFiltered', '(filtr&eacute; de _MAX_ &eacute;l&eacute;ments au total)');
define('DATATABLES_loadingRecords', 'Chargement en cours...');
define('DATATABLES_zeroRecords', 'Aucun &eacute;l&eacute;ment &agrave; afficher');
define('DATATABLES_emptyTable', 'Aucune donnée disponible dans le tableau');
define('DATATABLES_first', 'Premier');
define('DATATABLES_previous', 'Pr&eacute;c&eacute;dent');
define('DATATABLES_next', 'Suivant');
define('DATATABLES_last', 'Dernier');
define('DATATABLES_sortAscending', ': activer pour trier la colonne par ordre croissant');
define('DATATABLES_sortDescending', ': activer pour trier la colonne par ordre décroissant');
1 change: 1 addition & 0 deletions navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<ul class="dropdown-menu">
<li><a class="dropdown-item <?php echo LanguageActive('Czech'); ?>" href="<?php echo LanguageURL('Czech');?>"><img src="./images/flags/cz.svg" width="20" class="border align-middle"> Czech</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('English'); ?>" href="<?php echo LanguageURL('English');?>"><img src="./images/flags/gb.svg" width="20" class="border align-middle"> English</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('French'); ?>" href="<?php echo LanguageURL('French');?>"><img src="./images/flags/fr.svg" width="20" class="border align-middle"> French</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('German'); ?>" href="<?php echo LanguageURL('German');?>"><img src="./images/flags/de.svg" width="20" class="border align-middle"> German</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Portuguese'); ?>" href="<?php echo LanguageURL('Portuguese');?>"><img src="./images/flags/pt.svg" width="20" class="border align-middle"> Portuguese</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Slovak'); ?>" href="<?php echo LanguageURL('Slovak');?>"><img src="./images/flags/sk.svg" width="20" class="border align-middle"> Slovak</a></li>
Expand Down

2 comments on commit a39162c

@KristianP26
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sarrus1 can you take a look on this: inc/languages/French.php

@Sarrus1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #45.

Please sign in to comment.