Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

wix: refactor i18n.wxs

Changeset a23e9c2b4829

Parent 1a7422e0766a

by Adrian Buehlmann

Changes to 2 files · Browse files at a23e9c2b4829 Showing diff from parent 1a7422e0766a Diff from another changeset...

 
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
 
78
 
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
6
7
 
8
9
10
11
12
13
14
15
16
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
19
@@ -1,78 +1,19 @@
 <?xml version="1.0" encoding="utf-8"?>  <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> - <Fragment> - <ComponentGroup Id="i18nFolder"> - <Component Id="cmp34947721B29BBB2D9942A0FC95D1F588" Directory="i18ndir" Guid="{1FDE8508-2E0F-4A63-AEFC-3F55EA7A4537}"> - <File Id="filF2E58DD4817D0D0AF53F4B8AB9836B47" KeyPath="yes" Source="$(var.SourceDir)\da.po" /> - </Component> - <Component Id="cmpDC59717569F92122A034EC7E35A4F80D" Directory="i18ndir" Guid="{20DA2D43-9E1E-47B7-B7C7-CC3B163923D0}"> - <File Id="fil39753E48327D06086C63EFA7711BB750" KeyPath="yes" Source="$(var.SourceDir)\de.po" /> - </Component> - <Component Id="cmp7E5E80C4438C32CF7A419FDC63FB002D" Directory="i18ndir" Guid="{239783A8-D672-47Cf-A0AA-3D6A7BC4AAD3}"> - <File Id="fil9B0C044DD27F2EE57B045B48BB697C0D" KeyPath="yes" Source="$(var.SourceDir)\el.po" /> - </Component> - <Component Id="cmpA9C546113FA1B46B0C9498FA69F29B13" Directory="i18ndir" Guid="{A8097676-3E1A-4196-9008-6FFCFF495E6B}"> - <File Id="fil6DF0C7BA972338067807AE385588F48A" KeyPath="yes" Source="$(var.SourceDir)\fr.po" /> - </Component> - <Component Id="cmp6046EB31B43E28CD554FDD8D8E8AD420" Directory="i18ndir" Guid="{7FA380C6-1583-4B96-BCB9-BEC48585833C}"> - <File Id="filE99CA9E94849D4956606F72FD0B5FC5E" KeyPath="yes" Source="$(var.SourceDir)\hggettext" /> - </Component> - <Component Id="cmp6133B01CC2B9B358CBF9327F700BD00A" Directory="i18ndir" Guid="{A19E16D0-4C79-4B76-BCBE-B8FF94683DC8}"> - <File Id="filC69EEB86E4ED9073F34871B19155FED5" KeyPath="yes" Source="$(var.SourceDir)\it.po" /> - </Component> - <Component Id="cmp97F2EE7A098F00025CB2FB889C5F6253" Directory="i18ndir" Guid="{4BA013AE-F4C4-49CF-969E-9AB7E3EA167A}"> - <File Id="filA39E9F30340253C998EC80AE177CE43C" KeyPath="yes" Source="$(var.SourceDir)\ja.po" /> - </Component> - <Component Id="cmpF3727AA82BA7F68310A26BB75A6647AD" Directory="i18ndir" Guid="{E5A09373-49DD-4042-A62A-F073D172EDCA}"> - <File Id="fil80CA8EF53276179809903975CB3979F3" KeyPath="yes" Source="$(var.SourceDir)\pt_BR.po" /> - </Component> - <Component Id="cmp939C74001F1FBEB147E5ADCED4770AC8" Directory="i18ndir" Guid="{05DEDB32-8739-49A2-9718-E5A9742883A7}"> - <File Id="fil8F5BDF00539EE96B5270F71C7923CDC6" KeyPath="yes" Source="$(var.SourceDir)\sv.po" /> - </Component> - <Component Id="cmpE23A15AD782608B1EDD835CF6B829378" Directory="i18ndir" Guid="{E8BFEB3B-8BC4-47C8-8FB6-83B7E89DF606}"> - <File Id="filC2CD3385CC6C9F85A582C8BEFF6A36FD" KeyPath="yes" Source="$(var.SourceDir)\zh_CN.po" /> - </Component> - <Component Id="cmp3C3523DBA0ED9315E204C24B28BBECB1" Directory="i18ndir" Guid="{03E299F4-57EC-45C5-A7BE-00DE329AA24A}"> - <File Id="fil717A0C3D62D332C48BAC66536FC1B6A0" KeyPath="yes" Source="$(var.SourceDir)\zh_TW.po" /> - </Component> - </ComponentGroup> - </Fragment> + + <?define hg_po_langs = da;de;el;fr;it;ja;pt_BR;sv;zh_CN;zh_TW ?> +   <Fragment>   <DirectoryRef Id="INSTALLDIR"> - <Directory Id="i18ndir" Name="i18n" /> + <Directory Id="i18ndir" Name="i18n"> + <Component Id="i18nFolder" Guid="{3115A038-CA56-4413-97C1-6F0070D6034C}"> + <File Source="$(var.SourceDir)\hggettext" KeyPath="yes" /> + <?foreach LANG in $(var.hg_po_langs) ?> + <File Id="hg.$(var.LANG).po" Source="$(var.SourceDir)\$(var.LANG).po" /> + <?endforeach?> + </Component> + </Directory>   </DirectoryRef>   </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> - <Fragment> - <DirectoryRef Id="i18ndir" /> - </Fragment> +  </Wix>
 
373
374
375
376
 
377
378
379
 
373
374
375
 
376
377
378
379
@@ -373,7 +373,7 @@
  Title='Translations'   Description='Mercurial and TortoiseHg Translations'>   <ComponentGroupRef Id='localeFolder' /> - <ComponentGroupRef Id='i18nFolder' /> + <ComponentRef Id='i18nFolder' />   <ComponentGroupRef Id='thgLocaleFolder' />   <ComponentRef Id='thgI18nFolder' />   </Feature>