Skip to content

Commit

Permalink
Merge pull request #475 from softwaremagico/474-clean-up-translations
Browse files Browse the repository at this point in the history
Removed well-known unused translations
  • Loading branch information
softwaremagico authored Jun 19, 2024
2 parents c56d624 + 8e4e21f commit 6631bbb
Show file tree
Hide file tree
Showing 8 changed files with 3,487 additions and 4,604 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager)
[![GitHub last commit](https://img.shields.io/github/last-commit/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager)
[![CircleCI](https://circleci.com/gh/softwaremagico/KendoTournamentManager.svg?style=shield)](https://circleci.com/gh/softwaremagico/KendoTournamentManager)
[![Time](https://img.shields.io/badge/development-625h-blueviolet.svg)]()
[![Time](https://img.shields.io/badge/development-625.5h-blueviolet.svg)]()

[![Powered by](https://img.shields.io/badge/powered%20by%20java-orange.svg?logo=OpenJDK&logoColor=white)]()
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=kendo-tournament-backend&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=kendo-tournament-backend)
Expand Down
1,602 changes: 706 additions & 896 deletions frontend/src/assets/i18n/ca.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions frontend/src/assets/i18n/clean-up-json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

if [ $# -eq 0 ]
then
echo "Suppliy the json file as an argument"
echo "Example ./chean-up-json.sh en.json"
exit;
fi

file=./$1
file_tmp=${file}_tmp

echo "Inspecting file $file"

for i in `sed -n '/^\s*.[[:upper:]]/p' ${file} | sed -e 's/.*"\(.*\)"\:.*/\1/'`;
do
echo "Removing.... "$i;
jq 'del(.'"${i}"')' ${file} > "${file_tmp}"
mv $file_tmp $file
done
1,557 changes: 684 additions & 873 deletions frontend/src/assets/i18n/de.json

Large diffs are not rendered by default.

190 changes: 0 additions & 190 deletions frontend/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"titleNewCompetitor": "Add new competitor into the database",
"titleFightPanel": "Score panel",
"titleStatistics": "Graphical statistics",
"TitleHits": "Percentage of hits",
"titleListTeams": "Generate the list of teams",
"titleListReferee": "Generate the list of referees",
"diplomasHint": "Generate all Diplomas of the league",
Expand All @@ -33,108 +32,29 @@
"titleWonStatistics": "Generate won matches statistics",
"titleMonitorTournament": "Select the league",
"titleShortFight": "Select teams",
"TopTenTitle": "Top ten",
"titleLeagueDesigner": "Design a new league",
"titleDesignGroupWindow": "Change options of the pool",
"titleOrderTeam": "Change the order of the members of a team",
"ConnectButton": "Connect",
"SearchButton": "Search",
"UpButton": "Up",
"DownButton": "Down",
"AddButton": "Add",
"random": "Random",
"sorted": "Sorted",
"ExploreButton": "Explore",
"selectButton": "Select",
"ServerLabel": "Server",
"TreeButton": "Tree",
"PreviousButton": "Previous Match",
"NextButton": "Next Match",
"finishFight": "Finish Match",
"reopenFight": "Reopen Match",
"DeleteFightButton": "Delete Match",
"AddFightButton": "Add Match",
"GenerateButton": "Generate List",
"saveButton": "Save",
"saveImageButton": "Save as PNG",
"clean": "Clean",
"cleanTeams": "Clean Teams",
"CleanAllButton": "Delete All",
"GenerateMatchButton": "Generate Match",
"AddGroupButton": "Add Pool",
"DeleteGroupButton": "Delete Pool",
"ButtonLoadTournament": "Load Previous Design",
"ButtonMonitorTournament": "Load Score",
"ButtonMonitorTreeTournament": "Ranking",
"RefreshButton": "Refresh",
"participants": "Participants",
"PasswordLabel": "Password",
"DatabaseLabel": "Database",
"TournamentLabel": "League",
"CompetitorMenu": "Competitor",
"accreditation": "Accreditation",
"FileMenu": "File",
"language": "Language",
"OptionsMenu": "Options",
"StatisticsMenu": "Graphics",
"InsertMenu": "Insert",
"TournamentMenu": "League",
"TournamentPanelMenuItem": "League panel",
"HelpMenu": "Help",
"AboutMenu": "About ...",
"ImportMenu": "Import",
"ExportMenu": "Export",
"CvsMenuItem": "CSV",
"CompetitorMenuItem": "Add new participant",
"RoleMenuItem": "Define a participant's role",
"TournamentMenuItem": "Add new league",
"ClubMenuItem": "Add new club",
"DatabaseMenu": "Database",
"DatabaseConnectMenuItem": "Connect",
"DatabaseDisconnectMenuItem": "Disconnect",
"DatabaseUpdateMenuItem": "Update",
"InstallDatabaseMenuItem": "Install",
"statistics": "Statistics",
"ListMenu": "Lists",
"fightList": "List of matches",
"RefereeListMenuItem": "List of referees",
"TeamListMenuItem": "List of teams",
"diplomas": "Diplomas",
"SummaryMenuItem": "Matches summary",
"ClubListMenuItem": "List of clubs",
"tournamentHitsStatistics": "Percentage of Hits",
"TeamStatisticsMenu": "By team",
"CompetitorStatisticsMenu": "By competitor",
"PerformedHitsStatisticsMenuItem": "Percentage of performed hits",
"ReceivedHitsStatisticsMenuItem": "Percentage of received hits",
"WonLostMenuItem": "Won matches (Total)",
"TournamentStatisticsMenu": "By tournament",
"TeamTopTenMenuItem": "Ranking",
"DefineFightsMenu": "Define league as",
"FightMenuItem": "Simple league",
"LeagueTreeMenuItem": "League tree",
"ProgramMenu": "Program",
"ExitMenuItem": "Exit",
"LeagueMenuItem": "League",
"ManualFightsMenuItem": "Customized",
"DesignerMenuItem": "Designer",
"RingMenuItem": "Ring League",
"MonitorMenuItem": "Monitor",
"ScoreMonitorMenuItem": "Score",
"TreeMonitorMenuItem": "Ranking",
"AccreditationMenuItem": "Accreditation cards",
"HelpMenuItem": "Help",
"shiaijo": "Shiaijo",
"deleteFights": "Do you want to remove the previous generated matches?",
"Team1Label": "Team 1st",
"Team2Label": "Team 2nd",
"NameTeamLabel": "Name",
"IndividualTeamsCheckBox": "Use competitor's name as name of team",
"NameTournamentLabel": "Name",
"NumberLabel": "Num Competitors",
"banner": "Banner",
"photo": "Photo",
"DrawGame": "There is a draw match.",
"fightsWon": "Won matches",
"fightsDraw": "Draw matches",
"fightsLost": "Lost matches",
Expand All @@ -144,117 +64,15 @@
"histsWon": "Hits",
"totalFights": "Total matches",
"all": "All",
"PerformedHitStatistics": "Performed hits",
"ReceivedHitStatistics": "Received hits",
"WonStatistics": "Won/lost matches",
"NumberOfWonTopTen": "Score",
"PlayerTopTen": "Players",
"WonFights": "Won matches",
"DrawFights": "Draw matches",
"WonMatches": "Won matches",
"DrawMatches": "Draw matches",
"LostFights": "Lost matches",
"winnerNumber": "Number of winners",
"nextLevel": "All round's matches are over. Do you want to continue in the next phase of the league?",
"ToolTipEditable": "Double click for more options.",
"ToolTipNotEditable": "Teams will be inserted while the combats are solved.",
"noTeams": "There is not teams inserted on this pool!",
"Round": "Round",
"DrawTitle": "Draw Result",
"DrawText": "Some teams has the same score. Who will pass to the next round?",
"LeagueTag": "League",
"ChampionshipLabel": "Championship",
"TreeRadioButton": "Tree",
"SimpleRadioButton": "league",
"ArenaString": "Shiaijo",
"CleanLinks": "Clean winners",
"StatisticsCheckBox": "Add statistics",
"DiplomaProgressBarLabel": "Generating",
"DiplomaProgressBarTitle": "Creating diplomas",
"AccreditationProgressBarLabel": "Generating",
"AccreditationProgressBarTitle": "Creating accreditations",
"titleDiplomaEditor": "Names insertion",
"InformationDiplomaLabel": "Position of the name",
"TopTenCompetitorTitle": "Competitor Ranking",
"TopTenCompetitorNumber": "Ranking",
"swapTeams": "Inverse Teams",
"swapColors": "Inverse Colours",
"RefereeTitle": "List of referees",
"DeleteLevelLabel": "Delete Round",
"WinTag": "Win",
"DrawTag": "Draw",
"ExportPNG": "Export to PNG",
"ExportPDF": "Export to PDF",
"ExportTxt": "Export to TXT",
"ExportSQL": "Export to SQL",
"PrintAll": "Print all",
"ShowTeam": "Show Team",
"FinalLabel": "Final",
"SemiFinalLabel": "Semifinal",
"InternationalUntieLabel": "Only for Untie",
"Export": "Export to...",
"Import": "Import from...",
"ImportSQL": "Import from SQL",
"teams": "Teams",
"NumberTeamsLabel": "Number of teams",
"NumberCompetitorsLabel": "Number of competitors",
"membersOrder": "Change the order of a team",
"AvailableTeam": "Teams still in the League",
"LogOption": "Activity log",
"DebugOption": "Debug mode",
"TitleOrderTeam": "Change a team.",
"PointListMenuItem": "Score list",
"ExportDatabaseProgressBarTitle": "Exporting database.",
"ImportDatabaseProgressBarTitle": "Importing database.",
"DeleteDatabaseProgressBarLabel": "Deleting old database",
"ExportDatabaseProgressBarLabelClub": "Exporting clubs",
"ImportDatabaseProgressBarLabelClub": "Importing clubs",
"ExportDatabaseProgressBarLabelCompetitor": "Exporting competitors",
"ImportDatabaseProgressBarLabelCompetitor": "Importing competitors",
"ExportDatabaseProgressBarLabelTournament": "Exporting leagues",
"ImportDatabaseProgressBarLabelTournament": "Importing leagues",
"ConvertPhotosProgressBarLabel": "Converting competitors photos",
"ConvertBannersProgressBarLabel": "Converting tournaments banners",
"ConvertAccreditationsProgressBarLabel": "Converting accreditations",
"ConvertDiplomasProgressBarLabel": "Converting diplomas",
"ExportDatabaseProgressBarLabelTeam": "Exporting teams",
"ImportDatabaseProgressBarLabelTeam": "Importing teams",
"ExportDatabaseProgressBarLabelFight": "Exporting matches",
"ImportDatabaseProgressBarLabelFight": "Importing matches",
"ExportDatabaseProgressBarLabelRole": "Exporting roles",
"ImportDatabaseProgressBarLabelRole": "Importing roles",
"WriteFile": "Writing to a file",
"ReadFile": "Reading the file",
"AvoidRepetitions": "Avoid repetitions",
"DatabaseEngineLabel": "Engine",
"DiplomaRole": "Print the diplomas of",
"ConvertDatabase": "Convert database to...",
"FromDatabaseLabel": "Source database",
"ToDatabaseLabel": "Address database",
"ConvertButton": "Convert",
"WritingToDisk": "Writing to disk...",
"FightsCard": "Matches card",
"ShowEndFights": "Add ended matches",
"Page": "Page",
"Of": "of",
"DataExchange": "Import/Export",
"StrictStore": "Lazy database update",
"SaveMenuItem": "Save",
"AutosaveMenuItem": "Autosave",
"ShowMenuItem": "Show",
"WindowMenuItem": "Window",
"PointListMenuItemGlobal": "Score list (global)",
"PointListMenuItemGroup": "Score list (group)",
"FinishGroupButton": "Finish Championship",
"UsingMultipleComputersTag": "Using one computer per shiaijo.",
"addFight": "Add a new match",
"HierarchicalDrawTag": "More than lost",
"WinOverDrawsRadioButton": "Win over draws",
"LoadMenuItem": "Reload",
"DisabledRadioButton": "Disabled",
"ByTimeRadioButton": "By Time",
"ByActionRadioButton": "By Action",
"ClearCacheLabel": "Clear Cache",
"bloggerStatistics": "Blogger code",
"maxFightsCheckBox": "Create all possible matches.",
"redTeamButton": "Red Team",
Expand Down Expand Up @@ -334,14 +152,10 @@
"teamsListOK": "The list of teams has been created correctly.",
"scoreListOK": "The list of scores has been created correctly.",
"fightsListOK": "The list of matches has been created correctly.",
"SummaryListOK": "The list of matches has been created correctly.",
"ClubListOK": "The list of clubs has been created correctly.",
"refereeListOK": "The list of referees has been created correctly.",
"teamsListBad": "A problem has been found when generating the list of teams file. There is any other program accessing to this file?",
"scoreListBad": "A problem has been found when generating the list of score file. There is any other program accessing to this file?",
"fightsListBad": "A problem has been found when generating the list of matches file. There is any other program accessing to this file?",
"SummaryListBad": "A problem has been found when generating the summary list file. There is any other program accessing to this file?",
"ClubListBad": "A problem has been found when generating the list of clubs file. There is any other program accessing to this file?",
"refereeListBad": "A problem has been found when generating the list of referees file. There is any other program accessing to this file?",
"diplomaOK": "Diplomas have been created in a PDF file.",
"diplomaBad": "A problem has been found when generating the tournament's diplomas. There is any other program accessing to this file?",
Expand All @@ -366,7 +180,6 @@
"csvImported": "The CSV file has been imported correctly!",
"csvExported": "The CSV file has been exported correctly!",
"clubNotStored": "Error when trying to add a new club!",
"RefreshedData": "Data have been successfully refreshed!",
"storeSeminarBad": "Error when trying to store a seminar into the database.",
"notEnoughCompetitors": "There are not enough competitors on the team.",
"exportDatabase": "The database has been exported to the desired file.",
Expand All @@ -379,7 +192,6 @@
"databaseImported": "The database has been imported correctly!",
"waitNewLevel": "The team order can not be changed until all current matches are finished.",
"existFile": "The file already exists. Do you want to overwrite it?",
"ConversionCompleted": "The database has been exported successfully!",
"imageNotFound": "Background image not found!",
"teamsStored": "The new teams have been stored into the database.",
"noTournament": "There is not any tournament created.",
Expand All @@ -397,7 +209,6 @@
"manualChampionshipHelp": "Select a source teams group and the address teams group for creating the winners cross.",
"storeDataError": "Error when trying to store some data in the database.",
"deleteDataError": "Error when trying to remove some data in the database.",
"NameTeamError": "An unknown error has occurred when accessing to the database.",
"genericError": "An unknown error has occurred when trying to do the operation.",
"emptyPdfError": "The generated document is empty. Please, review the selected options.",
"importSuccess": "Data has been imported successfully.",
Expand Down Expand Up @@ -892,4 +703,3 @@
},
"daysFrom": "Apply only these days"
}

Loading

0 comments on commit 6631bbb

Please sign in to comment.