Skip to content

Commit d94f673

Browse files
committed
Initial commit
0 parents  commit d94f673

File tree

5 files changed

+324
-0
lines changed

5 files changed

+324
-0
lines changed

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.gitignore

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# Build results
11+
[Dd]ebug/
12+
[Dd]ebugPublic/
13+
[Rr]elease/
14+
[Rr]eleases/
15+
x64/
16+
x86/
17+
build/
18+
bld/
19+
[Bb]in/
20+
[Oo]bj/
21+
22+
# Roslyn cache directories
23+
*.ide/
24+
25+
# MSTest test Results
26+
[Tt]est[Rr]esult*/
27+
[Bb]uild[Ll]og.*
28+
29+
#NUNIT
30+
*.VisualState.xml
31+
TestResult.xml
32+
33+
# Build Results of an ATL Project
34+
[Dd]ebugPS/
35+
[Rr]eleasePS/
36+
dlldata.c
37+
38+
*_i.c
39+
*_p.c
40+
*_i.h
41+
*.ilk
42+
*.meta
43+
*.obj
44+
*.pch
45+
*.pdb
46+
*.pgc
47+
*.pgd
48+
*.rsp
49+
*.sbr
50+
*.tlb
51+
*.tli
52+
*.tlh
53+
*.tmp
54+
*.tmp_proj
55+
*.log
56+
*.vspscc
57+
*.vssscc
58+
.builds
59+
*.pidb
60+
*.svclog
61+
*.scc
62+
63+
# Chutzpah Test files
64+
_Chutzpah*
65+
66+
# Visual C++ cache files
67+
ipch/
68+
*.aps
69+
*.ncb
70+
*.opensdf
71+
*.sdf
72+
*.cachefile
73+
74+
# Visual Studio profiler
75+
*.psess
76+
*.vsp
77+
*.vspx
78+
79+
# TFS 2012 Local Workspace
80+
$tf/
81+
82+
# Guidance Automation Toolkit
83+
*.gpState
84+
85+
# ReSharper is a .NET coding add-in
86+
_ReSharper*/
87+
*.[Rr]e[Ss]harper
88+
*.DotSettings.user
89+
90+
# JustCode is a .NET coding addin-in
91+
.JustCode
92+
93+
# TeamCity is a build add-in
94+
_TeamCity*
95+
96+
# DotCover is a Code Coverage Tool
97+
*.dotCover
98+
99+
# NCrunch
100+
_NCrunch_*
101+
.*crunch*.local.xml
102+
103+
# MightyMoose
104+
*.mm.*
105+
AutoTest.Net/
106+
107+
# Web workbench (sass)
108+
.sass-cache/
109+
110+
# Installshield output folder
111+
[Ee]xpress/
112+
113+
# DocProject is a documentation generator add-in
114+
DocProject/buildhelp/
115+
DocProject/Help/*.HxT
116+
DocProject/Help/*.HxC
117+
DocProject/Help/*.hhc
118+
DocProject/Help/*.hhk
119+
DocProject/Help/*.hhp
120+
DocProject/Help/Html2
121+
DocProject/Help/html
122+
123+
# Click-Once directory
124+
publish/
125+
126+
# Publish Web Output
127+
*.[Pp]ublish.xml
128+
*.azurePubxml
129+
# TODO: Comment the next line if you want to checkin your web deploy settings
130+
# but database connection strings (with potential passwords) will be unencrypted
131+
*.pubxml
132+
*.publishproj
133+
134+
# NuGet Packages
135+
*.nupkg
136+
# The packages folder can be ignored because of Package Restore
137+
**/packages/*
138+
# except build/, which is used as an MSBuild target.
139+
!**/packages/build/
140+
# If using the old MSBuild-Integrated Package Restore, uncomment this:
141+
#!**/packages/repositories.config
142+
143+
# Windows Azure Build Output
144+
csx/
145+
*.build.csdef
146+
147+
# Windows Store app package directory
148+
AppPackages/
149+
150+
# Others
151+
sql/
152+
*.Cache
153+
ClientBin/
154+
[Ss]tyle[Cc]op.*
155+
~$*
156+
*~
157+
*.dbmdl
158+
*.dbproj.schemaview
159+
*.pfx
160+
*.publishsettings
161+
node_modules/
162+
163+
# RIA/Silverlight projects
164+
Generated_Code/
165+
166+
# Backup & report files from converting an old project file
167+
# to a newer Visual Studio version. Backup files are not needed,
168+
# because we have git ;-)
169+
_UpgradeReport_Files/
170+
Backup*/
171+
UpgradeLog*.XML
172+
UpgradeLog*.htm
173+
174+
# SQL Server files
175+
*.mdf
176+
*.ldf
177+
178+
# Business Intelligence projects
179+
*.rdl.data
180+
*.bim.layout
181+
*.bim_*.settings
182+
183+
# Microsoft Fakes
184+
FakesAssemblies/

GlobalizationExtras.csproj

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{3EB1F0D0-E05D-4A06-A374-97B9FEE1F890}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>GlobalizationExtras</RootNamespace>
11+
<AssemblyName>GlobalizationExtras</AssemblyName>
12+
<TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<DebugType>pdbonly</DebugType>
27+
<Optimize>true</Optimize>
28+
<OutputPath>bin\Release\</OutputPath>
29+
<DefineConstants>TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<PropertyGroup>
34+
<StartupObject />
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="sysglobl" />
38+
<Reference Include="System" />
39+
</ItemGroup>
40+
<ItemGroup>
41+
<Compile Include="Register.cs" />
42+
<Compile Include="Properties\AssemblyInfo.cs" />
43+
</ItemGroup>
44+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
45+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
46+
Other similar extension points exist, see Microsoft.Common.targets.
47+
<Target Name="BeforeBuild">
48+
</Target>
49+
<Target Name="AfterBuild">
50+
</Target>
51+
-->
52+
</Project>

Properties/AssemblyInfo.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("Globalization Extras")]
9+
[assembly: AssemblyDescription("Adds extra Globalizations to your system")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("nixx quality")]
12+
[assembly: AssemblyProduct("Globalization Extras")]
13+
[assembly: AssemblyCopyright("Copyright © nixx quality 2015")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("cc0aa430-79a3-4585-9e5f-0eca1a463e0b")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

Register.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Globalization;
3+
4+
namespace GlobalizationExtras
5+
{
6+
public static class Program
7+
{
8+
public static void Main()
9+
{
10+
Console.WriteLine("Registering ja-JP-Latn...");
11+
try
12+
{
13+
var builder = new CultureAndRegionInfoBuilder("ja-JP-Latn", CultureAndRegionModifiers.None);
14+
builder.LoadDataFromCultureInfo(new CultureInfo("ja-JP"));
15+
builder.LoadDataFromRegionInfo(new RegionInfo("JP"));
16+
17+
builder.CultureEnglishName = "Japanese (Romaji)";
18+
builder.CultureNativeName = "日本語 (ローマ字)";
19+
20+
builder.Register();
21+
Console.WriteLine("Done!");
22+
}
23+
catch (InvalidOperationException)
24+
{
25+
Console.WriteLine("Already registered.");
26+
}
27+
catch (UnauthorizedAccessException)
28+
{
29+
Console.WriteLine("Not authorized! Run the program as administrator.");
30+
}
31+
Console.WriteLine("Press enter to exit...");
32+
Console.ReadLine();
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)