Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita16940d

Browse files
committed
localize console project template
1 parentfa6f83a commita16940d

File tree

33 files changed

+1413
-50
lines changed

33 files changed

+1413
-50
lines changed

‎packages.config‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@
6969
<packageid="StrawberryPerl64"version="5.22.2.1" />
7070

7171
<!-- Xliff localization-->
72-
<packageid="XliffTasks"version="0.2.0-beta-000072" />
72+
<packageid="XliffTasks"version="0.2.0-beta-000076" />
7373

7474
</packages>

‎src/FSharpSource.Settings.targets‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
<!-- Localization-->
5454
<UpdateXlfOnBuildCondition="'$(CI)' != '1'">true</UpdateXlfOnBuild>
55-
<XliffTasksVersion>0.2.0-beta-000072</XliffTasksVersion>
55+
<XliffTasksVersion>0.2.0-beta-000076</XliffTasksVersion>
5656
</PropertyGroup>
5757

5858
<PropertyGroupCondition="'$(MonoPackaging)' != 'true' AND '$(OS)' != 'Unix'">

‎vsintegration/ProjectTemplates/ConsoleProject/ConsoleProject.csproj‎

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,39 +30,16 @@
3030
<ImportProject="$(FSharpSourcesRoot)\..\vsintegration\src\FSharp.Common.props" />
3131

3232
<ItemGroup>
33-
<FilesToLocalizeInclude="$(OutDir)$(TemplateCategory)\$(AssemblyName)\AssemblyInfo.fs">
34-
<TranslationFile>$(FSharpSourcesRoot)\..\loc\lcl\{Lang}\$(TemplateCategory)\$(AssemblyName)\AssemblyInfo.fs.lcl</TranslationFile>
35-
<LciCommentFile>$(FSharpSourcesRoot)\..\loc\lci\$(TemplateCategory)\$(AssemblyName)\AssemblyInfo.fs.lci</LciCommentFile>
36-
<HasLceComments>false</HasLceComments>
37-
<InProject>false</InProject>
38-
</FilesToLocalize>
39-
<FilesToLocalizeInclude="$(OutDir)$(TemplateCategory)\$(AssemblyName)\Program.fs">
40-
<TranslationFile>$(FSharpSourcesRoot)\..\loc\lcl\{Lang}\$(TemplateCategory)\$(AssemblyName)\Program.fs.lcl</TranslationFile>
41-
<LciCommentFile>$(FSharpSourcesRoot)\..\loc\lci\$(TemplateCategory)\$(AssemblyName)\Program.fs.lci</LciCommentFile>
42-
<HasLceComments>false</HasLceComments>
43-
<InProject>false</InProject>
44-
</FilesToLocalize>
45-
</ItemGroup>
46-
47-
<ItemGroup>
48-
<VSTemplateInclude="Template\ConsoleApplication.vstemplate" />
49-
</ItemGroup>
50-
51-
<ItemGroup>
52-
<TemplateFilesInclude="Template\App.config" />
53-
<TemplateFilesInclude="Template\ConsoleApplication.fsproj" />
54-
<TemplateFilesInclude="Template\AssemblyInfo.fs" />
55-
<TemplateFilesInclude="Template\Program.fs" />
56-
57-
<TemplateFilesInclude="Template\ConsoleApplication.vstemplate" />
33+
<VSTemplateInclude="Template\ConsoleApplication.vstemplate">
34+
<TranslatableResources>
35+
Template\AssemblyInfo.fs;
36+
Template\Program.fs;
37+
</TranslatableResources>
38+
</VSTemplate>
5839
</ItemGroup>
5940

6041
<ImportProject="$(FSharpSourcesRoot)\..\vsintegration\src\FSharp.tools.targets" />
61-
<ImportProject="$(FSharpSourcesRoot)\Microbuild.Settings.targets" />
6242

6343
<TargetName="CoreCompile" />
6444

65-
<TargetName="CopyFilesToOutputDirectory"AfterTargets="CoreCompile">
66-
<CopySourceFiles="@(TemplateFiles)"DestinationFiles="@(TemplateFiles->'$(OutDir)$(TemplateCategory)\$(AssemblyName)\%(Filename)%(Extension)')" />
67-
</Target>
6845
</Project>

‎vsintegration/ProjectTemplates/ConsoleProject/Template/AssemblyInfo.fs‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ open System.Reflection
44
openSystem.Runtime.CompilerServices
55
openSystem.Runtime.InteropServices
66

7-
// General Information about an assembly is controlled through the following
8-
// set of attributes. Change these attribute values to modify the information
9-
// associated with an assembly.
7+
//@@@GeneralInfo-Line1|General Information about an assembly is controlled through the following@@@
8+
//@@@GeneralInfo-Line2|set of attributes. Change these attribute values to modify the information@@@
9+
//@@@GeneralInfo-Line3|associated with an assembly.@@@
1010
[<assembly: AssemblyTitle("$projectname$")>]
1111
[<assembly: AssemblyDescription("")>]
1212
[<assembly: AssemblyConfiguration("")>]
@@ -16,23 +16,23 @@ open System.Runtime.InteropServices
1616
[<assembly: AssemblyTrademark("")>]
1717
[<assembly: AssemblyCulture("")>]
1818

19-
// Setting ComVisible to false makes the types in this assembly not visible
20-
// to COM components. If you need to access a type in this assembly from
21-
// COM, set the ComVisible attribute to true on that type.
19+
//@@@ComVisible-Line1|Setting ComVisible to false makes the types in this assembly not visible@@@
20+
//@@@ComVisible-Line2|to COM components. If you need to access a type in this assembly from@@@
21+
//@@@ComVisible-Line3|COM, set the ComVisible attribute to true on that type.@@@
2222
[<assembly: ComVisible(false)>]
2323

24-
// The following GUID is for the ID of the typelib if this project is exposed to COM
24+
//@@@Guid-Line1|The following GUID is for the ID of the typelib if this project is exposed to COM@@@
2525
[<assembly: Guid("$guid1$")>]
2626

27-
// Version information for an assembly consists of the following four values:
28-
//
29-
// Major Version
30-
// Minor Version
31-
// Build Number
32-
// Revision
33-
//
34-
// You can specify all the values or you can default the Build and Revision Numbers
35-
// by using the '*' as shown below:
27+
//@@@VersionInfo-Line1|Version information for an assembly consists of the following four values:@@@
28+
//
29+
//@@@MajorVersion|Major Version@@@
30+
//@@@MinorVersion|Minor Version@@@
31+
//@@@BuildNumber|Build Number@@@
32+
//@@@Revision|Revision@@@
33+
//
34+
//@@@VersionInfo-Line2|You can specify all the values or you can default the Build and Revision Numbers@@@
35+
//@@@VersionInfo-Line3|by using the '*' as shown below:@@@
3636
// [<assembly: AssemblyVersion("1.0.*")>]
3737
[<assembly: AssemblyVersion("1.0.0.0")>]
3838
[<assembly: AssemblyFileVersion("1.0.0.0")>]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// Learn more about F# at http://fsharp.org
2-
// See the 'F# Tutorial' project for more help.
1+
//@@@LearnMore|Learn more about F# at http://fsharp.org@@@
2+
//@@@SeeTutorial|See the 'F# Tutorial' project for more help.@@@
33

44
[<EntryPoint>]
55
letmain argv=
66
printfn"%A" argv
7-
0// return an integer exit code
7+
0//@@@Return|return an integer exit code@@@
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliffxmlns="urn:oasis:names:tc:xliff:document:1.2"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="1.2"xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
3+
<filedatatype="xml"source-language="en"target-language="cs"original="../AssemblyInfo.fs">
4+
<body>
5+
<trans-unitid="GeneralInfo-Line1">
6+
<source>General Information about an assembly is controlled through the following</source>
7+
<targetstate="new">General Information about an assembly is controlled through the following</target>
8+
<note />
9+
</trans-unit>
10+
<trans-unitid="GeneralInfo-Line2">
11+
<source>set of attributes. Change these attribute values to modify the information</source>
12+
<targetstate="new">set of attributes. Change these attribute values to modify the information</target>
13+
<note />
14+
</trans-unit>
15+
<trans-unitid="GeneralInfo-Line3">
16+
<source>associated with an assembly.</source>
17+
<targetstate="new">associated with an assembly.</target>
18+
<note />
19+
</trans-unit>
20+
<trans-unitid="ComVisible-Line1">
21+
<source>Setting ComVisible to false makes the types in this assembly not visible</source>
22+
<targetstate="new">Setting ComVisible to false makes the types in this assembly not visible</target>
23+
<note />
24+
</trans-unit>
25+
<trans-unitid="ComVisible-Line2">
26+
<source>to COM components. If you need to access a type in this assembly from</source>
27+
<targetstate="new">to COM components. If you need to access a type in this assembly from</target>
28+
<note />
29+
</trans-unit>
30+
<trans-unitid="ComVisible-Line3">
31+
<source>COM, set the ComVisible attribute to true on that type.</source>
32+
<targetstate="new">COM, set the ComVisible attribute to true on that type.</target>
33+
<note />
34+
</trans-unit>
35+
<trans-unitid="Guid-Line1">
36+
<source>The following GUID is for the ID of the typelib if this project is exposed to COM</source>
37+
<targetstate="new">The following GUID is for the ID of the typelib if this project is exposed to COM</target>
38+
<note />
39+
</trans-unit>
40+
<trans-unitid="VersionInfo-Line1">
41+
<source>Version information for an assembly consists of the following four values:</source>
42+
<targetstate="new">Version information for an assembly consists of the following four values:</target>
43+
<note />
44+
</trans-unit>
45+
<trans-unitid="MajorVersion">
46+
<source>Major Version</source>
47+
<targetstate="new">Major Version</target>
48+
<note />
49+
</trans-unit>
50+
<trans-unitid="MinorVersion">
51+
<source>Minor Version</source>
52+
<targetstate="new">Minor Version</target>
53+
<note />
54+
</trans-unit>
55+
<trans-unitid="BuildNumber">
56+
<source>Build Number</source>
57+
<targetstate="new">Build Number</target>
58+
<note />
59+
</trans-unit>
60+
<trans-unitid="Revision">
61+
<source>Revision</source>
62+
<targetstate="new">Revision</target>
63+
<note />
64+
</trans-unit>
65+
<trans-unitid="VersionInfo-Line2">
66+
<source>You can specify all the values or you can default the Build and Revision Numbers</source>
67+
<targetstate="new">You can specify all the values or you can default the Build and Revision Numbers</target>
68+
<note />
69+
</trans-unit>
70+
<trans-unitid="VersionInfo-Line3">
71+
<source>by using the '*' as shown below:</source>
72+
<targetstate="new">by using the '*' as shown below:</target>
73+
<note />
74+
</trans-unit>
75+
</body>
76+
</file>
77+
</xliff>
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliffxmlns="urn:oasis:names:tc:xliff:document:1.2"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="1.2"xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
3+
<filedatatype="xml"source-language="en"target-language="de"original="../AssemblyInfo.fs">
4+
<body>
5+
<trans-unitid="GeneralInfo-Line1">
6+
<source>General Information about an assembly is controlled through the following</source>
7+
<targetstate="new">General Information about an assembly is controlled through the following</target>
8+
<note />
9+
</trans-unit>
10+
<trans-unitid="GeneralInfo-Line2">
11+
<source>set of attributes. Change these attribute values to modify the information</source>
12+
<targetstate="new">set of attributes. Change these attribute values to modify the information</target>
13+
<note />
14+
</trans-unit>
15+
<trans-unitid="GeneralInfo-Line3">
16+
<source>associated with an assembly.</source>
17+
<targetstate="new">associated with an assembly.</target>
18+
<note />
19+
</trans-unit>
20+
<trans-unitid="ComVisible-Line1">
21+
<source>Setting ComVisible to false makes the types in this assembly not visible</source>
22+
<targetstate="new">Setting ComVisible to false makes the types in this assembly not visible</target>
23+
<note />
24+
</trans-unit>
25+
<trans-unitid="ComVisible-Line2">
26+
<source>to COM components. If you need to access a type in this assembly from</source>
27+
<targetstate="new">to COM components. If you need to access a type in this assembly from</target>
28+
<note />
29+
</trans-unit>
30+
<trans-unitid="ComVisible-Line3">
31+
<source>COM, set the ComVisible attribute to true on that type.</source>
32+
<targetstate="new">COM, set the ComVisible attribute to true on that type.</target>
33+
<note />
34+
</trans-unit>
35+
<trans-unitid="Guid-Line1">
36+
<source>The following GUID is for the ID of the typelib if this project is exposed to COM</source>
37+
<targetstate="new">The following GUID is for the ID of the typelib if this project is exposed to COM</target>
38+
<note />
39+
</trans-unit>
40+
<trans-unitid="VersionInfo-Line1">
41+
<source>Version information for an assembly consists of the following four values:</source>
42+
<targetstate="new">Version information for an assembly consists of the following four values:</target>
43+
<note />
44+
</trans-unit>
45+
<trans-unitid="MajorVersion">
46+
<source>Major Version</source>
47+
<targetstate="new">Major Version</target>
48+
<note />
49+
</trans-unit>
50+
<trans-unitid="MinorVersion">
51+
<source>Minor Version</source>
52+
<targetstate="new">Minor Version</target>
53+
<note />
54+
</trans-unit>
55+
<trans-unitid="BuildNumber">
56+
<source>Build Number</source>
57+
<targetstate="new">Build Number</target>
58+
<note />
59+
</trans-unit>
60+
<trans-unitid="Revision">
61+
<source>Revision</source>
62+
<targetstate="new">Revision</target>
63+
<note />
64+
</trans-unit>
65+
<trans-unitid="VersionInfo-Line2">
66+
<source>You can specify all the values or you can default the Build and Revision Numbers</source>
67+
<targetstate="new">You can specify all the values or you can default the Build and Revision Numbers</target>
68+
<note />
69+
</trans-unit>
70+
<trans-unitid="VersionInfo-Line3">
71+
<source>by using the '*' as shown below:</source>
72+
<targetstate="new">by using the '*' as shown below:</target>
73+
<note />
74+
</trans-unit>
75+
</body>
76+
</file>
77+
</xliff>
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xliffxmlns="urn:oasis:names:tc:xliff:document:1.2"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"version="1.2"xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
3+
<filedatatype="xml"source-language="en"target-language="en"original="../AssemblyInfo.fs">
4+
<body>
5+
<trans-unitid="GeneralInfo-Line1">
6+
<source>General Information about an assembly is controlled through the following</source>
7+
<targetstate="new">General Information about an assembly is controlled through the following</target>
8+
<note />
9+
</trans-unit>
10+
<trans-unitid="GeneralInfo-Line2">
11+
<source>set of attributes. Change these attribute values to modify the information</source>
12+
<targetstate="new">set of attributes. Change these attribute values to modify the information</target>
13+
<note />
14+
</trans-unit>
15+
<trans-unitid="GeneralInfo-Line3">
16+
<source>associated with an assembly.</source>
17+
<targetstate="new">associated with an assembly.</target>
18+
<note />
19+
</trans-unit>
20+
<trans-unitid="ComVisible-Line1">
21+
<source>Setting ComVisible to false makes the types in this assembly not visible</source>
22+
<targetstate="new">Setting ComVisible to false makes the types in this assembly not visible</target>
23+
<note />
24+
</trans-unit>
25+
<trans-unitid="ComVisible-Line2">
26+
<source>to COM components. If you need to access a type in this assembly from</source>
27+
<targetstate="new">to COM components. If you need to access a type in this assembly from</target>
28+
<note />
29+
</trans-unit>
30+
<trans-unitid="ComVisible-Line3">
31+
<source>COM, set the ComVisible attribute to true on that type.</source>
32+
<targetstate="new">COM, set the ComVisible attribute to true on that type.</target>
33+
<note />
34+
</trans-unit>
35+
<trans-unitid="Guid-Line1">
36+
<source>The following GUID is for the ID of the typelib if this project is exposed to COM</source>
37+
<targetstate="new">The following GUID is for the ID of the typelib if this project is exposed to COM</target>
38+
<note />
39+
</trans-unit>
40+
<trans-unitid="VersionInfo-Line1">
41+
<source>Version information for an assembly consists of the following four values:</source>
42+
<targetstate="new">Version information for an assembly consists of the following four values:</target>
43+
<note />
44+
</trans-unit>
45+
<trans-unitid="MajorVersion">
46+
<source>Major Version</source>
47+
<targetstate="new">Major Version</target>
48+
<note />
49+
</trans-unit>
50+
<trans-unitid="MinorVersion">
51+
<source>Minor Version</source>
52+
<targetstate="new">Minor Version</target>
53+
<note />
54+
</trans-unit>
55+
<trans-unitid="BuildNumber">
56+
<source>Build Number</source>
57+
<targetstate="new">Build Number</target>
58+
<note />
59+
</trans-unit>
60+
<trans-unitid="Revision">
61+
<source>Revision</source>
62+
<targetstate="new">Revision</target>
63+
<note />
64+
</trans-unit>
65+
<trans-unitid="VersionInfo-Line2">
66+
<source>You can specify all the values or you can default the Build and Revision Numbers</source>
67+
<targetstate="new">You can specify all the values or you can default the Build and Revision Numbers</target>
68+
<note />
69+
</trans-unit>
70+
<trans-unitid="VersionInfo-Line3">
71+
<source>by using the '*' as shown below:</source>
72+
<targetstate="new">by using the '*' as shown below:</target>
73+
<note />
74+
</trans-unit>
75+
</body>
76+
</file>
77+
</xliff>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp