mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 00:02:59 -04:00 
			
		
		
		
	Add make command update-translations for update translations from crodwin (#2097)
* add make command update-translations for update translations from crowdin to options/locale * use curl & resolve double quote on make file
This commit is contained in:
		
							parent
							
								
									f189ccd2d6
								
							
						
					
					
						commit
						dde9a8648e
					
				
							
								
								
									
										10
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Makefile
									
									
									
									
									
								
							| @ -278,3 +278,13 @@ swagger-ui: | ||||
| 
 | ||||
| .PHONY: assets | ||||
| assets: javascripts stylesheets | ||||
| 
 | ||||
| .PHONY: update-translations | ||||
| update-translations: | ||||
| 	mkdir -p ./translations | ||||
| 	cd ./translations && curl -L https://crowdin.com/download/project/gitea.zip > gitea.zip && unzip gitea.zip | ||||
| 	rm ./translations/gitea.zip | ||||
| 	$(SED_INPLACE) -e 's/="/=/g' -e 's/"$$//g' ./translations/*.ini | ||||
| 	$(SED_INPLACE) -e 's/\\"/"/g' ./translations/*.ini | ||||
| 	mv ./translations/*.ini ./options/locale/ | ||||
| 	rmdir ./translations | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user