File tree 7 files changed +28
-27
lines changed
7 files changed +28
-27
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ assembly: InternalsVisibleTo ( "GitExtensions" ) ]
4
4
[ assembly: InternalsVisibleTo ( "CommonTestUtils" ) ]
5
+ [ assembly: InternalsVisibleTo ( "TranslationApp" ) ]
Original file line number Diff line number Diff line change 1
- Write-Host " Copying latest english translation before update..."
2
- robocopy .\ ..\..\GitExtensions\bin\Release\Translation English* .xlf
1
+ Write-Host " Copying the latest English translation before the update..."
2
+ $translationsFolder = Resolve-Path .\
3
+ $releaseTranslationsFolder = Resolve-Path ..\..\GitExtensions\bin\Release\Translation
4
+ Write-Debug " > $translationsFolder `r`n > $releaseTranslationsFolder "
5
+ xcopy " $translationsFolder \English*.xlf" " $releaseTranslationsFolder " / Y
3
6
4
- pushd ..\..\GitExtensions\bin\Release
5
- Write-Host " Updating english translation..."
6
- Start-Process - FilePath " TranslationApp.exe" - ArgumentList " update" - Wait
7
+ $src = Resolve-Path ..\..\GitExtensions\bin\Release
8
+ pushd " $src "
9
+ Write-Host " Updating the English translation..."
10
+ Start-Process - FilePath " $src \TranslationApp.exe" - ArgumentList " update" - Wait
7
11
popd
8
12
9
- Write-Host " Copying updated english translation for commit..."
10
- robocopy ..\..\GitExtensions\bin\Release\Translation .\ English* .xlf
13
+ Write-Host " Copying the updated English translation to commit..."
14
+ Write-Debug " > $releaseTranslationsFolder `r`n > $translationsFolder "
15
+ xcopy " $releaseTranslationsFolder \English*.xlf" " $translationsFolder " / Y
Original file line number Diff line number Diff line change 6
6
using System . Threading . Tasks ;
7
7
using System . Windows . Forms ;
8
8
using GitUI ;
9
- using GitUIPluginInterfaces ;
10
9
using JetBrains . Annotations ;
11
10
using Microsoft . VisualStudio . Threading ;
12
11
using ResourceManager ;
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ private static bool IsTranslatableItemInComponent(PropertyInfo property)
271
271
"SMDiag" ,
272
272
"System" ,
273
273
"vshost" ,
274
+ "Atlassian" ,
274
275
} ;
275
276
276
277
/// <summary>true if the specified <see cref="Assembly"/> may be translatable.</summary>
Original file line number Diff line number Diff line change 5
5
using System . Windows . Forms ;
6
6
using GitCommands . Utils ;
7
7
using GitUI ;
8
+ using Microsoft . VisualStudio . Threading ;
8
9
using ResourceManager ;
9
10
10
11
namespace TranslationApp
@@ -30,12 +31,19 @@ private static void Main()
30
31
NBug . Settings . MaxQueuedReports = 10 ;
31
32
NBug . Settings . StopReportingAfter = 90 ;
32
33
NBug . Settings . SleepBeforeSend = 30 ;
33
- NBug . Settings . StoragePath = " WindowsTemp" ;
34
+ NBug . Settings . StoragePath = NBug . Enums . StoragePath . WindowsTemp ;
34
35
35
36
AppDomain . CurrentDomain . UnhandledException += NBug . Handler . UnhandledException ;
36
37
Application . ThreadException += NBug . Handler . ThreadException ;
37
38
}
38
39
40
+ // This form created for obtain UI synchronization context only
41
+ using ( new Form ( ) )
42
+ {
43
+ // Store the shared JoinableTaskContext
44
+ ThreadHelper . JoinableTaskContext = new JoinableTaskContext ( ) ;
45
+ }
46
+
39
47
// required for translation
40
48
PluginRegistry . Initialize ( ) ;
41
49
string [ ] args = Environment . GetCommandLineArgs ( ) ;
Original file line number Diff line number Diff line change 15
15
<ApplicationIcon >..\Logo\git-extensions-logo.ico</ApplicationIcon >
16
16
<TargetFrameworkProfile >
17
17
</TargetFrameworkProfile >
18
+ <AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
18
19
</PropertyGroup >
19
20
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
20
21
<DebugSymbols >true</DebugSymbols >
86
87
<Project >{BD6AA2A2-997D-4AFF-ACC7-B64F6E51D181}</Project >
87
88
<Name >GitCommands</Name >
88
89
</ProjectReference >
90
+ <ProjectReference Include =" ..\GitExtUtils\GitExtUtils.csproj" >
91
+ <Project >{0F1F1168-A4B2-4FA2-B17B-735140D17F39}</Project >
92
+ <Name >GitExtUtils</Name >
93
+ </ProjectReference >
89
94
<ProjectReference Include =" ..\GitUI\GitUI.csproj" >
90
95
<Project >{CF5B22E7-230F-4E50-BE88-C4F7023CED2C}</Project >
91
96
<Name >GitUI</Name >
Original file line number Diff line number Diff line change 6
6
<appSettings >
7
7
<add key =" EnableWindowsFormsHighDpiAutoResizing" value =" true" />
8
8
</appSettings >
9
- <runtime >
10
- <assemblyBinding xmlns =" urn:schemas-microsoft-com:asm.v1" >
11
- <probing privatePath =" plugins" />
12
- <dependentAssembly >
13
- <assemblyIdentity name =" System.Reactive.Core" publicKeyToken =" 94bc3704cddfc263" culture =" neutral" />
14
- <bindingRedirect oldVersion =" 0.0.0.0-3.0.3000.0" newVersion =" 3.0.3000.0" />
15
- </dependentAssembly >
16
- <dependentAssembly >
17
- <assemblyIdentity name =" System.ValueTuple" publicKeyToken =" cc7b13ffcd2ddd51" culture =" neutral" />
18
- <bindingRedirect oldVersion =" 0.0.0.0-4.0.3.0" newVersion =" 4.0.3.0" />
19
- </dependentAssembly >
20
- <dependentAssembly >
21
- <assemblyIdentity name =" Newtonsoft.Json" publicKeyToken =" 30ad4fe6b2a6aeed" culture =" neutral" />
22
- <bindingRedirect oldVersion =" 0.0.0.0-10.0.0.0" newVersion =" 10.0.0.0" />
23
- </dependentAssembly >
24
- </assemblyBinding >
25
- </runtime >
26
- <connectionStrings ></connectionStrings >
27
9
</configuration >
You can’t perform that action at this time.
0 commit comments