mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	language changes
This commit is contained in:
		
							parent
							
								
									6d6f21896e
								
							
						
					
					
						commit
						e94ee28b81
					
				
					 5 changed files with 11 additions and 11 deletions
				
			
		
							
								
								
									
										14
									
								
								dh
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								dh
									
										
									
									
									
								
							|  | @ -34,8 +34,8 @@ function show_help() { | ||||||
| 	printf $"\ts\tsupported\t\tUpdate supported VMs\n" | 	printf $"\ts\tsupported\t\tUpdate supported VMs\n" | ||||||
| 	printf $"\tr\tready\t\t\tUpdate ready to run VMs\n" | 	printf $"\tr\tready\t\t\tUpdate ready to run VMs\n" | ||||||
| 	echo "---------------------------------------------------------" | 	echo "---------------------------------------------------------" | ||||||
| 	printf $"\tt\ttui\t\t\tRun TUI\n" | 	printf $"\tt\ttui\t\t\tRun terminal user interface (TUI)\n" | ||||||
| 	printf $"\tg\tgui\t\t\tRun GUI\n" | 	printf $"\tg\tgui\t\t\tRun graphical user interface (GUI)\n" | ||||||
| 	echo "---------------------------------------------------------" | 	echo "---------------------------------------------------------" | ||||||
| 	printf $"\ta\tadd\t\t\tAdd new distro to quickget\n" | 	printf $"\ta\tadd\t\t\tAdd new distro to quickget\n" | ||||||
| 	printf $"\tf\tfunctions\t\tSort functions in quickget\n" | 	printf $"\tf\tfunctions\t\tSort functions in quickget\n" | ||||||
|  | @ -417,9 +417,9 @@ function sort_functions() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function translate() { | function translate() { | ||||||
| 	echo $"Which language change? [en,cs]" | 	echo $"Which language change? (en/cs)" | ||||||
| 	echo $"If you want create new one, insert two digit language code..." | 	echo $"If you want create new one, insert two digit language code..." | ||||||
| 	read -rn 2 -s lang | 	read lang | ||||||
| 	echo $"Choosed language is: $lang" | 	echo $"Choosed language is: $lang" | ||||||
| 	echo $"Dumping language source..." | 	echo $"Dumping language source..." | ||||||
| 	bash --dump-po-strings dh > "$DH_CONFIG_DIR"/locale/dh-source.pot | 	bash --dump-po-strings dh > "$DH_CONFIG_DIR"/locale/dh-source.pot | ||||||
|  | @ -427,9 +427,9 @@ function translate() { | ||||||
| 	meld "$DH_CONFIG_DIR"/locale/dh-source.pot "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".pot | 	meld "$DH_CONFIG_DIR"/locale/dh-source.pot "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".pot | ||||||
| 	echo $"Generating .mo file..." | 	echo $"Generating .mo file..." | ||||||
| 	msgfmt -o "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".pot | 	msgfmt -o "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".pot | ||||||
| 	echo $"Do you want copy $lang translation to '/usr/share/local' as ROOT? (y/n)" | 	echo $"Do you want copy $lang translation to '/usr/share/local' as root? (y/n)" | ||||||
| 	read response | 	read response | ||||||
| 	if [[ "$response" =~ ^[Yy]$ ]]; then | 	if [[ "$response" =~ ^[YyAa]$ ]]; then | ||||||
| 		echo $"Copying translation to '/usr/share/local'..." | 		echo $"Copying translation to '/usr/share/local'..." | ||||||
| 		sudo cp "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo /usr/share/locale/"$lang"/LC_MESSAGES/distrohopper.mo | 		sudo cp "$DH_CONFIG_DIR"/locale/distrohopper-"$lang".mo /usr/share/locale/"$lang"/LC_MESSAGES/distrohopper.mo | ||||||
| 	fi | 	fi | ||||||
|  | @ -476,7 +476,7 @@ do | ||||||
| 			shift | 			shift | ||||||
| 			;; | 			;; | ||||||
| 		t|tui) | 		t|tui) | ||||||
| 			echo $"Running TUI..." | 			echo $"Running DistroHopper TUI..." | ||||||
| 			run_tui | 			run_tui | ||||||
| 			shift | 			shift | ||||||
| 			;; | 			;; | ||||||
|  |  | ||||||
							
								
								
									
										
											BIN
										
									
								
								locale/cs.mo
									
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								locale/cs.mo
									
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -2,7 +2,7 @@ msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: 0.77b\n" | "Project-Id-Version: 0.77b\n" | ||||||
| "POT-Creation-Date: 2023-03-29\n" | "POT-Creation-Date: 2023-03-29\n" | ||||||
| "PO-Revision-Date: 2023-03-30 02:52+0200\n" | "PO-Revision-Date: 2023-03-30 04:44+0200\n" | ||||||
| "Last-Translator: zenobit <zen@osowoso.xyz>\n" | "Last-Translator: zenobit <zen@osowoso.xyz>\n" | ||||||
| "Language-Team: Czech\n" | "Language-Team: Czech\n" | ||||||
| "Language: cs\n" | "Language: cs\n" | ||||||
|  | @ -156,7 +156,7 @@ msgstr "Instaluji potřebné..." | ||||||
| msgid "Installing DistroHopper to bin..." | msgid "Installing DistroHopper to bin..." | ||||||
| msgstr "Instaluji DistroHopper do bin..." | msgstr "Instaluji DistroHopper do bin..." | ||||||
| 
 | 
 | ||||||
| #: dh:220 | #: dh:219 | ||||||
| msgid "Creating desktop file for $vm_desktop..." | msgid "Creating desktop file for $vm_desktop..." | ||||||
| msgstr "Vytvářím soubor desktop pro $vm_desktop..." | msgstr "Vytvářím soubor desktop pro $vm_desktop..." | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -103,7 +103,7 @@ msgstr "" | ||||||
| #: dh:165 | #: dh:165 | ||||||
| msgid "Installing DistroHopper to bin..." | msgid "Installing DistroHopper to bin..." | ||||||
| msgstr "" | msgstr "" | ||||||
| #: dh:220 | #: dh:219 | ||||||
| msgid "Creating desktop file for $vm_desktop..." | msgid "Creating desktop file for $vm_desktop..." | ||||||
| msgstr "" | msgstr "" | ||||||
| #: dh:264 | #: dh:264 | ||||||
|  |  | ||||||
|  | @ -153,7 +153,7 @@ msgstr "Instaluji potřebné..." | ||||||
| msgid "Installing DistroHopper to bin..." | msgid "Installing DistroHopper to bin..." | ||||||
| msgstr "Instaluji DistroHopper do bin..." | msgstr "Instaluji DistroHopper do bin..." | ||||||
| 
 | 
 | ||||||
| #: dh:220 | #: dh:219 | ||||||
| msgid "Creating desktop file for $vm_desktop..." | msgid "Creating desktop file for $vm_desktop..." | ||||||
| msgstr "Vytvářím soubor desktop pro $vm_desktop..." | msgstr "Vytvářím soubor desktop pro $vm_desktop..." | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue