mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	function create_translation_source
This commit is contained in:
		
							parent
							
								
									fc73efe0ca
								
							
						
					
					
						commit
						a47294ed7a
					
				
					 1 changed files with 28 additions and 0 deletions
				
			
		
							
								
								
									
										28
									
								
								dh
									
										
									
									
									
								
							
							
						
						
									
										28
									
								
								dh
									
										
									
									
									
								
							|  | @ -406,6 +406,34 @@ function localization() { | |||
| } | ||||
| 
 | ||||
| # run | ||||
| function create_translation_source() { | ||||
|     cat > header.tmp <<EOF | ||||
| msgid "" | ||||
| msgstr "" | ||||
| "Project-Id-Version: DistroHopper $version\n" | ||||
| "POT-Creation-Date: $(date +%Y-%m-%d\ %H:%M%z)\n" | ||||
| "PO-Revision-Date: $(date +%Y-%m-%d\ %H:%M%z)\n" | ||||
| "Last-Translator: \n" | ||||
| "Language-Team: \n" | ||||
| "Language: cs\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: 8bit\n" | ||||
| "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n" | ||||
| "X-Generator: Poedit 3.2.2\n" | ||||
| "X-Poedit-Basepath: ../..\n" | ||||
| "X-Poedit-SearchPath-0: .\n" | ||||
| 
 | ||||
| EOF | ||||
| 	#cat ./dh | grep '$(gettext "' | cut -d'(' -f2 | cut -d'"' -f2 | cut -d')' -f1 > po.tmp | ||||
| 	#sed -i 's/$/msgstr""\n\nmsgid "/g' po.tmp | ||||
| 	#cat header.tmp po.tmp > locale/translation_source.po | ||||
| 	#rm header.tmp po.tmp | ||||
| 	#LANGUAGE="cs" | ||||
| 	#export "LANGUAGE" | ||||
| 	#echo "language: $LANGUAGE" | ||||
| 	bash --dump-po-strings dh > locale/strings_dump-$version.po | ||||
| } | ||||
| 
 | ||||
| set_variables | ||||
| localization | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue