mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 07:47:10 +01:00 
			
		
		
		
	Add basic Dutch translations by jelle619 and translation scripts
This commit is contained in:
		
							
								
								
									
										8
									
								
								webapp/bin/tr_compile.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								webapp/bin/tr_compile.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
#!flask/bin/python
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
if sys.platform == 'win32':
 | 
			
		||||
    pybabel = 'flask\\Scripts\\pybabel'
 | 
			
		||||
else:
 | 
			
		||||
    pybabel = 'pybabel'
 | 
			
		||||
os.system(pybabel + ' compile -d titanembeds/translations')
 | 
			
		||||
							
								
								
									
										13
									
								
								webapp/bin/tr_init.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								webapp/bin/tr_init.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
#!flask/bin/python
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
if sys.platform == 'win32':
 | 
			
		||||
    pybabel = 'flask\\Scripts\\pybabel'
 | 
			
		||||
else:
 | 
			
		||||
    pybabel = 'pybabel'
 | 
			
		||||
if len(sys.argv) != 2:
 | 
			
		||||
    print("usage: tr_init <language-code>")
 | 
			
		||||
    sys.exit(1)
 | 
			
		||||
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o messages.pot titanembeds')
 | 
			
		||||
os.system(pybabel + ' init -i messages.pot -d titanembeds/translations -l ' + sys.argv[1])
 | 
			
		||||
os.unlink('messages.pot')
 | 
			
		||||
							
								
								
									
										10
									
								
								webapp/bin/tr_update.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								webapp/bin/tr_update.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
#!flask/bin/python
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
if sys.platform == 'win32':
 | 
			
		||||
    pybabel = 'flask\\Scripts\\pybabel'
 | 
			
		||||
else:
 | 
			
		||||
    pybabel = 'pybabel'
 | 
			
		||||
os.system(pybabel + ' extract -F babel.cfg -k lazy_gettext -o messages.pot titanembeds')
 | 
			
		||||
os.system(pybabel + ' update -i messages.pot -d titanembeds/translations')
 | 
			
		||||
os.unlink('messages.pot')
 | 
			
		||||
		Reference in New Issue
	
	Block a user