mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									7a22d9f751
								
							
						
					
					
						commit
						c3437f734d
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -138,6 +138,13 @@ instead of positional interpolation (e.g., ``%s`` or ``%d``) whenever you
 | 
				
			||||||
have more than a single parameter. If you used positional interpolation,
 | 
					have more than a single parameter. If you used positional interpolation,
 | 
				
			||||||
translations wouldn't be able to reorder placeholder text.
 | 
					translations wouldn't be able to reorder placeholder text.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Since string extraction is done by the ``xgettext`` command, only syntaxes
 | 
				
			||||||
 | 
					supported by ``gettext`` are supported by Django. Python f-strings_ and
 | 
				
			||||||
 | 
					`JavaScript template strings`_ are not yet supported by ``xgettext``.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. _f-strings: https://docs.python.org/3/reference/lexical_analysis.html#f-strings
 | 
				
			||||||
 | 
					.. _JavaScript template strings: https://savannah.gnu.org/bugs/?50920
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. _translator-comments:
 | 
					.. _translator-comments:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Comments for translators
 | 
					Comments for translators
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue