blob: b0b78a12d97fe8fc2c0825e4f7ed5c6c80448638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!/bin/bash -e
LANG=$1
for doc in acceptLicense addUser ask_mntpoint_s installer selectInstallClass \
selectKeyboard configureServices selectLanguage takeOverHdChoose takeOverHdConfirm \
doPartitionDisks chooseDesktop choosePackageGroups choosePackagesTree diskdrake exitInstall formatPartitions \
installUpdates misc-params configureTimezoneUTC resizeFATChoose setupBootloaderBeginner \
setupSCSI setupX selectMouse setupBootloaderExpert setupBootloader DrakX \
configureX_card_list configureX_monitor configureX_chooser \
setupBootloaderAddEntry minimal-install securityLevel selectCountry media_selection add_supplemental_media; do
sed -i -n '1h;1!H;${;g;s/<othercredit.*<\/othercredit>//g;p;}' $LANG/${doc}.xml
perl -i -p -e "s/version=\"5\.0\" xml:lang=\"en\"/version=\"5\.0\"/;" en/${doc}.xml
perl -i -p -e "s/xml:lang=\"$LANG\"//;" $LANG/${doc}.xml
done
po4a-gettextize --format docbook --master-charset utf-8 --localized-charset utf-8 \
--master en/acceptLicense.xml --master en/addUser.xml --master en/ask_mntpoint_s.xml \
--master en/installer.xml --master en/selectInstallClass.xml --master en/selectKeyboard.xml \
--master en/configureServices.xml --master en/selectLanguage.xml \
--master en/takeOverHdChoose.xml --master en/takeOverHdConfirm.xml --master en/doPartitionDisks.xml \
--master en/chooseDesktop.xml --master en/choosePackageGroups.xml \
--master en/choosePackagesTree.xml --master en/diskdrake.xml --master en/exitInstall.xml \
--master en/formatPartitions.xml --master en/installUpdates.xml --master en/misc-params.xml \
--master en/configureTimezoneUTC.xml --master en/resizeFATChoose.xml \
--master en/setupBootloaderBeginner.xml --master en/setupSCSI.xml --master en/setupX.xml \
--master en/selectMouse.xml --master en/setupBootloaderExpert.xml --master en/setupBootloader.xml \
--master en/DrakX.xml --master en/configureX_card_list.xml --master en/configureX_monitor.xml \
--master en/configureX_chooser.xml --master en/setupBootloaderAddEntry.xml \
--master en/minimal-install.xml --master en/securityLevel.xml --master en/selectCountry.xml \
--master en/media_selection.xml --master en/add_supplemental_media.xml \
--localized $LANG/acceptLicense.xml --localized $LANG/addUser.xml --localized $LANG/ask_mntpoint_s.xml \
--localized $LANG/installer.xml --localized $LANG/selectInstallClass.xml --localized $LANG/selectKeyboard.xml \
--localized $LANG/configureServices.xml --localized $LANG/selectLanguage.xml \
--localized $LANG/takeOverHdChoose.xml --localized $LANG/takeOverHdConfirm.xml \
--localized $LANG/doPartitionDisks.xml --localized $LANG/chooseDesktop.xml \
--localized $LANG/choosePackageGroups.xml --localized $LANG/choosePackagesTree.xml \
--localized $LANG/diskdrake.xml --localized $LANG/exitInstall.xml --localized $LANG/formatPartitions.xml \
--localized $LANG/installUpdates.xml --localized $LANG/misc-params.xml \
--localized $LANG/configureTimezoneUTC.xml --localized $LANG/resizeFATChoose.xml \
--localized $LANG/setupBootloaderBeginner.xml --localized $LANG/setupSCSI.xml \
--localized $LANG/setupX.xml --localized $LANG/selectMouse.xml \
--localized $LANG/setupBootloaderExpert.xml --localized $LANG/setupBootloader.xml \
--localized $LANG/DrakX.xml --localized $LANG/configureX_card_list.xml \
--localized $LANG/configureX_monitor.xml --localized $LANG/configureX_chooser.xml \
--localized $LANG/setupBootloaderAddEntry.xml --localized $LANG/minimal-install.xml \
--localized $LANG/securityLevel.xml --localized $LANG/selectCountry.xml \
--localized $LANG/media_selection.xml --localized $LANG/add_supplemental_media.xml | \
msgattrib --clear-fuzzy > $LANG.po
|