Skip to content

Commit c989c6b

Browse files
committed
Update outdated translation instructions
1 parent 0a5c6ed commit c989c6b

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

languages/languages.txt

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,22 @@ Text within the <source> tag is the text that is to be translated. The translate
151151
WARNING: Do not change the text in the <source> tag. Even adding an extra line will break the
152152
translation.
153153

154-
II.b Converting QT .qm files
154+
II.b Converting .ts files from official Virtualbox
155+
156+
You will need a copy of VirtualBox installed and to navigate to your VirtualBox installation folder on your computer, then to the "nls" folder.
157+
Otherwise, you can navigate to the URL: "https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Frontends/VirtualBox/nls".
158+
You should see files which have the naming convention VirtualBox_xx.ts - where xx is the language code described above.
159+
If you can't find the needed language, you won't be able to add or update it in phpVirtualbox.
155160

156-
To convert these files, you will need a copy of Qt Linguist. A google search should yield a download
157-
link. You will also need a copy of VirtualBox installed.
161+
Copy the "VirtualBox_xx.ts" file corresponding to the needed language.
158162

159-
Open Qt Linguist. From the file menu, select Open and select All Files in the Open File dialog.
160-
Navigate to your VirtualBox folder on your computer, then to the nls folder. You should see files
161-
which have the naming convention VirtualBox_xx.qm - where xx is the language code described above.
162-
Select the file and click Open. Just click OK on the subsequent dialog box. Click on Save as... in
163-
the File menu. Save the file as a "Qt translation source" (*.ts) file.
163+
The script languages/source/parse_vbox_lang.php provided with phpVirtualbox can then be used to parse this ".ts" file into a ".dat" file consumable by phpVirtualBox.
164164

165-
The script languages/source/parse_vbox_lang.php can then be used to parse a .ts file into a .dat file
166-
consumable by phpVirtualBox. E.g.
165+
Navigate to you phpVirtualbox installation folder and then to languages/source. Put the previously copied "VirtualBox_xx.ts" file there, then run the following command (you will need a working php setup) :
167166

168-
php languages/source/pasre_vbox_lang.php VirtualBox_es.ts >es.dat
169-
170-
The es.dat file can then be placed in the languages/source/ folder for use by phpVirtualBox.
167+
php parse_vbox_lang.php VirtualBox_xx.ts > xx.dat (replace xx with the language code)
171168

169+
This will create a "xx.dat" file that should be readable by phpVirtualBox.
172170

173171
II.c Updating language selection
174172

0 commit comments

Comments
 (0)