You can not select more than 25 topics 
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 
		
		
		
		
		
			
	
		
			
				
					
						
							 
							wxiaoguang 
						
					
					
						a60e8be8d1 
						
							
						
					 
					
 
					
					Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 )  
						
							... 
							* remove unnecessary web context data fields, and unify the i18n/translation related functions to `Locale`
* in development, show an error if a translation key is missing
* remove the unnecessary loops `for _, lang := range translation.AllLangs()` for every request, which improves the performance slightly
* use `ctx.Locale.Language()` instead of `ctx.Data["Lang"].(string)`
* add more comments about how the Locale/LangType fields are used 
						
					 
				
			 
			4 years ago  
		 
	 
	
		
			
				..  
			 
		
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										branch
									
								 
							
						
					 
				 
				
					
						
							
							Propagate context and ensure git commands run in request context ( #17868 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										diff
									
								 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										editor
									
								 
							
						
					 
				 
				
					
						
							
							Add warning for BIDI characters in page renders and in diffs ( #17562 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										graph
									
								 
							
						
					 
				 
				
					
						
							
							Propagate context and ensure git commands run in request context ( #17868 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										issue
									
								 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										migrate
									
								 
							
						
					 
				 
				
					
						
							
							Use disable_form_autofill on Codebase and Gitbucket ( #17936 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										projects
									
								 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										pulls
									
								 
							
						
					 
				 
				
					
						
							
							Improvements to content history ( #17746 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										release
									
								 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										settings
									
								 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								
								
								 
								
									
										wiki
									
								 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								activity.tmpl 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								blame.tmpl 
							
						
					 
				 
				
					
						
							
							Add warning for BIDI characters in page renders and in diffs ( #17562 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								branch_dropdown.tmpl 
							
						
					 
				 
				
					
						
							
							Fixed commit count. ( #17698 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								clone_buttons.tmpl 
							
						
					 
				 
				
					
						
							
							Add new JS linter rules ( #17699 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								commit_page.tmpl 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								commit_status.tmpl 
							
						
					 
				 
				
					
						
							
							Show dropdown with all statuses for commit ( #13977 ) 
						
					 
				 
				5 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								commit_statuses.tmpl 
							
						
					 
				 
				
					
						
							
							Show dropdown with all statuses for commit ( #13977 ) 
						
					 
				 
				5 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								commits.tmpl 
							
						
					 
				 
				
					
						
							
							Add compare tag dropdown to releases page ( #15695 ) 
						
					 
				 
				5 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								commits_list.tmpl 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								commits_list_small.tmpl 
							
						
					 
				 
				
					
						
							
							fix commits_list_small.tmpl ( #18641 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								commits_table.tmpl 
							
						
					 
				 
				
					
						
							
							Cleanup and use global style on popups ( #17674 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								create.tmpl 
							
						
					 
				 
				
					
						
							
							Unify and simplify TrN for i18n ( #18141 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								empty.tmpl 
							
						
					 
				 
				
					
						
							
							More pleasantly handle broken or missing git repositories ( #17747 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								forks.tmpl 
							
						
					 
				 
				
					
						
							
							Add pagination to fork list ( #17639 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								graph.tmpl 
							
						
					 
				 
				
					
						
							
							Re-separate the color translation strings ( #17390 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								header.tmpl 
							
						
					 
				 
				
					
						
							
							Propagate context and ensure git commands run in request context ( #17868 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								home.tmpl 
							
						
					 
				 
				
					
						
							
							Automatically pause queue if index service is unavailable ( #15066 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								icon.tmpl 
							
						
					 
				 
				
					
						
							
							Do not display org avatar near icon for internal repos ( #13957 ) 
						
					 
				 
				5 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								search.tmpl 
							
						
					 
				 
				
					
						
							
							Automatically pause queue if index service is unavailable ( #15066 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								shabox_badge.tmpl 
							
						
					 
				 
				
					
						
							
							Fix avatar template error ( #13833 ) 
						
					 
				 
				5 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								sub_menu.tmpl 
							
						
					 
				 
				
					
						
							
							Unify and simplify TrN for i18n ( #18141 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								unicode_escape_prompt.tmpl 
							
						
					 
				 
				
					
						
							
							Left-Align text in Unicode warning boxes ( #18331 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								upload.tmpl 
							
						
					 
				 
				
					
						
							
							Add attachments for PR reviews ( #16075 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								user_cards.tmpl 
							
						
					 
				 
				
					
						
							
							Direct avatar rendering ( #13649 ) 
						
					 
				 
				5 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								view_file.tmpl 
							
						
					 
				 
				
					
						
							
							Add warning for BIDI characters in page renders and in diffs ( #17562 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								view_list.tmpl 
							
						
					 
				 
				
					
						
							
							Refactor i18n, use Locale to provide i18n/translation related functions ( #18648 ) 
						
					 
				 
				4 years ago  
			 
		
			
			
			
			
				
					
						
							
								 
								watchers.tmpl 
							
						
					 
				 
				
					
						
							
							Add class to page content to unify top margin ( #13766 ) 
						
					 
				 
				5 years ago