mirror of
				https://github.com/XRPLF/xrpl-dev-portal.git
				synced 2025-11-04 11:55:50 +00:00 
			
		
		
		
	Update locale files
This commit is contained in:
		@@ -81,10 +81,10 @@ $ pybabel extract -F ./locale/babel.cfg -o ./locale/messages.pot ./
 | 
			
		||||
Then, update _every_ language's `.po` files with the list of strings, as follows:
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
$ pybabel update -l en -d ./locale/ -i ./locale/messages.pot
 | 
			
		||||
$ pybabel update -l ja -d ./locale/ -i ./locale/messages.pot
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
The above example is for English (`-l en`). **Repeat for each language code.**
 | 
			
		||||
The above example is for English (`-l ja`). **Repeat for each language code.**
 | 
			
		||||
 | 
			
		||||
Now edit the PO files (for example, `locale/ja/LC_MESSAGES/messages.po`) to add translations for each newly-added string. Again, **repeat for each language.**
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1373
									
								
								locale/messages.pot
									
									
									
									
									
								
							
							
						
						
									
										1373
									
								
								locale/messages.pot
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -24,7 +24,7 @@
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="col-md-6 offset-md-1">
 | 
			
		||||
        <h2 class="mt-12 mb-10">{% trans %}XRP and the XRP Ledger are used to power innovative technology across the payments space.{% endtrans %}</h2>
 | 
			
		||||
        <p>{% trans %}Lorem ipsum dolor sit amet, consectetur adipiscing elit. In egestas maximus ligula, id tincidunt odio condimentum ac. Pellentesque vulputate felis lacus, id imperdiet elit tristique id. Ut sapien lorem, finibus id auctor eu, volutpat finibus nisi. {% endtrans %}</p>
 | 
			
		||||
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In egestas maximus ligula, id tincidunt odio condimentum ac. Pellentesque vulputate felis lacus, id imperdiet elit tristique id. Ut sapien lorem, finibus id auctor eu, volutpat finibus nisi.</p>
 | 
			
		||||
      </div>
 | 
			
		||||
    </section>
 | 
			
		||||
 | 
			
		||||
@@ -39,7 +39,7 @@
 | 
			
		||||
        <a href="#" class="btn btn-clear">{% trans %}Learn About On-Demand Liquidity{% endtrans %}</a>
 | 
			
		||||
      </div>
 | 
			
		||||
    </section>
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    <section class="row mb-50">
 | 
			
		||||
      <h6 class="section-marker">{% trans %}Micropayments{% endtrans %}</h6>
 | 
			
		||||
      <div class="col-md-4 offset-md-1 mb-10">
 | 
			
		||||
@@ -63,7 +63,7 @@
 | 
			
		||||
        <a href="#" class="btn btn-clear">{% trans %}Explore Wallets{% endtrans %}</a>
 | 
			
		||||
      </div>
 | 
			
		||||
    </section>
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    <section class="row mb-50">
 | 
			
		||||
      <h6 class="section-marker">{% trans %}Exchanges{% endtrans %}</h6>
 | 
			
		||||
      <div class="col-md-4 offset-md-1 mb-10">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user