forked from zaclys/searxng
		
	Merge pull request #191 from searxng/dependabot/pip/master/transifex-client-0.14.3
Bump transifex-client from 0.14.2 to 0.14.3
This commit is contained in:
		
						commit
						72a55f68c8
					
				
					 3 changed files with 15 additions and 7 deletions
				
			
		
							
								
								
									
										7
									
								
								.tx/config
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.tx/config
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| [main] | ||||
| host = https://www.transifex.com | ||||
| [searx.messagespo] | ||||
| file_filter = searx/translations/<lang>/LC_MESSAGES/messages.po | ||||
| source_file = messages.pot | ||||
| source_lang = en | ||||
| type = PO | ||||
|  | @ -12,7 +12,6 @@ Requirements | |||
| ============ | ||||
| 
 | ||||
| * Transifex account | ||||
| * Installed CLI tool of Transifex | ||||
| 
 | ||||
| Init Transifex project | ||||
| ====================== | ||||
|  | @ -22,7 +21,7 @@ initialize the project. | |||
| 
 | ||||
| .. code:: sh | ||||
| 
 | ||||
|    tx init # Transifex instance: https://www.transifex.com/asciimoo/searx/ | ||||
|    ./manage pyenv.cmd tx init # Transifex instance: https://www.transifex.com/asciimoo/searx/ | ||||
| 
 | ||||
| 
 | ||||
| After ``$HOME/.transifexrc`` is created, get a Transifex API key and insert it | ||||
|  | @ -45,7 +44,8 @@ Then run ``tx set``: | |||
| 
 | ||||
| .. code:: shell | ||||
| 
 | ||||
|     tx set --auto-local -r searx.messagespo 'searx/translations/<lang>/LC_MESSAGES/messages.po' \ | ||||
|     ./manage pyenv.cmd tx set --auto-local \ | ||||
|         -r searx.messagespo 'searx/translations/<lang>/LC_MESSAGES/messages.po' \ | ||||
|         --source-lang en --type PO --source-file messages.pot --execute | ||||
| 
 | ||||
| 
 | ||||
|  | @ -56,7 +56,8 @@ To retrieve the latest translations, pull it from Transifex. | |||
| 
 | ||||
| .. code:: sh | ||||
| 
 | ||||
|    tx pull -a | ||||
|    ./manage pyenv.cmd tx pull -a | ||||
|    [?] Enter your api token: .... | ||||
| 
 | ||||
| Then check the new languages.  If strings translated are not enough, delete those | ||||
| folders, because those should not be compiled.  Call the command below to compile | ||||
|  | @ -64,7 +65,7 @@ the ``.po`` files. | |||
| 
 | ||||
| .. code:: shell | ||||
| 
 | ||||
|    pybabel compile -d searx/translations | ||||
|    ./manage pyenv.cmd pybabel compile -d searx/translations | ||||
| 
 | ||||
| 
 | ||||
| After the compilation is finished commit the ``.po`` and ``.mo`` files and | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ cov-core==1.15.0 | |||
| pycodestyle==2.7.0 | ||||
| pylint==2.9.3 | ||||
| splinter==0.15.0 | ||||
| transifex-client==0.14.2 | ||||
| transifex-client==0.14.3 | ||||
| selenium==3.141.0 | ||||
| twine==3.4.1 | ||||
| Pallets-Sphinx-Themes==2.0.1 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser