mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +01:00 
			
		
		
		
	Standard language codes (#5218)
* Use standard language codes. Fallback for plugins. * Fix transifex config * Tab vs space here for some reason * Remove redundancies * config.relative_path instead of allcaps * added upgrade script for existing users' accounts
This commit is contained in:
		
				
					committed by
					
						 Julian Lam
						Julian Lam
					
				
			
			
				
	
			
			
			
						parent
						
							cafbdfd83e
						
					
				
				
					commit
					c5237443cd
				
			| @@ -351,7 +351,7 @@ Controllers.ping = function (req, res) { | ||||
|  | ||||
| Controllers.handle404 = function (req, res) { | ||||
| 	var relativePath = nconf.get('relative_path'); | ||||
| 	var isLanguage = new RegExp('^' + relativePath + '/language/.*/.*.json'); | ||||
| 	var isLanguage = new RegExp('^' + relativePath + '/api/language/.*/.*'); | ||||
| 	var isClientScript = new RegExp('^' + relativePath + '\\/src\\/.+\\.js'); | ||||
|  | ||||
| 	if (plugins.hasListeners('action:meta.override404')) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user