Skip to content

Commit 7b4201f

Browse files
committed
Merge pull request #1325 from INOPIAE/translation
translation: added translation files VBEEditor, added one entry in EN…
2 parents 7a566b5 + 2463273 commit 7b4201f

File tree

8 files changed

+613
-2
lines changed

8 files changed

+613
-2
lines changed

Rubberduck.VBEEditor/Rubberduck.VBEditor.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@
103103
<Compile Include="Extensions\VBComponentExtensions.cs" />
104104
<Compile Include="Extensions\VBComponentsExtensions.cs" />
105105
<Compile Include="Extensions\VbeExtensions.cs" />
106+
<Compile Include="VBEEditorText.Designer.cs">
107+
<AutoGen>True</AutoGen>
108+
<DesignTime>True</DesignTime>
109+
<DependentUpon>VBEEditorText.resx</DependentUpon>
110+
</Compile>
106111
<Compile Include="VBEHost\AccessApp.cs" />
107112
<Compile Include="VBEHost\CorelDRAWApp.cs" />
108113
<Compile Include="VBEHost\ExcelApp.cs" />
@@ -122,6 +127,16 @@
122127
<Compile Include="VBEInterfaces\RubberduckCodePane\CodePaneWrapperFactory.cs" />
123128
<Compile Include="VBEInterfaces\RubberduckCodePane\CodePaneWrapper.cs" />
124129
</ItemGroup>
130+
<ItemGroup>
131+
<EmbeddedResource Include="VBEEditorText.de.resx" />
132+
<EmbeddedResource Include="VBEEditorText.fr.resx" />
133+
<EmbeddedResource Include="VBEEditorText.ja.resx" />
134+
<EmbeddedResource Include="VBEEditorText.resx">
135+
<Generator>ResXFileCodeGenerator</Generator>
136+
<LastGenOutput>VBEEditorText.Designer.cs</LastGenOutput>
137+
</EmbeddedResource>
138+
<EmbeddedResource Include="VBEEditorText.sv.resx" />
139+
</ItemGroup>
125140
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
126141
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
127142
Other similar extension points exist, see Microsoft.Common.targets.

Rubberduck.VBEEditor/Selection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ public bool Equals(Selection other)
7878
public override string ToString()
7979
{
8080
return (_startLine == _endLine && _startColumn == _endColumn)
81-
? string.Format("L{0}C{1}", _startLine, _startColumn)
82-
: string.Format("L{0}C{1} - L{2}C{3}", _startLine, _startColumn, _endLine, _endColumn);
81+
? string.Format(Rubberduck.VBEditor.VBEEditorText.SelectionLocationPosition, _startLine, _startColumn)
82+
: string.Format(Rubberduck.VBEditor.VBEEditorText.SelectionLocationRange, _startLine, _startColumn, _endLine, _endColumn);
8383
}
8484

8585
public override bool Equals(object obj)

Rubberduck.VBEEditor/VBEEditorText.Designer.cs

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 1.3
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
15+
... ado.net/XML headers & schema ...
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">1.3</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1">this is my long string</data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
[base64 mime encoded serialized .NET Framework object]
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
[base64 mime encoded string representing a byte array form of the .NET Framework object]
27+
</data>
28+
29+
There are any number of "resheader" rows that contain simple
30+
name/value pairs.
31+
32+
Each data row contains a name, and value. The row also contains a
33+
type or mimetype. Type corresponds to a .NET class that support
34+
text/value conversion through the TypeConverter architecture.
35+
Classes that don't support this are serialized and stored with the
36+
mimetype set.
37+
38+
The mimetype is used for serialized objects, and tells the
39+
ResXResourceReader how to depersist the object. This is currently not
40+
extensible. For a given mimetype the value must be set accordingly:
41+
42+
Note - application/x-microsoft.net.object.binary.base64 is the format
43+
that the ResXResourceWriter will generate, however the reader can
44+
read any of the formats listed below.
45+
46+
mimetype: application/x-microsoft.net.object.binary.base64
47+
value : The object must be serialized with
48+
: System.Serialization.Formatters.Binary.BinaryFormatter
49+
: and then encoded with base64 encoding.
50+
51+
mimetype: application/x-microsoft.net.object.soap.base64
52+
value : The object must be serialized with
53+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
54+
: and then encoded with base64 encoding.
55+
56+
mimetype: application/x-microsoft.net.object.bytearray.base64
57+
value : The object must be serialized into a byte array
58+
: using a System.ComponentModel.TypeConverter
59+
: and then encoded with base64 encoding.
60+
-->
61+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
62+
<xsd:element name="root" msdata:IsDataSet="true">
63+
<xsd:complexType>
64+
<xsd:choice maxOccurs="unbounded">
65+
<xsd:element name="data">
66+
<xsd:complexType>
67+
<xsd:sequence>
68+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
69+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
70+
</xsd:sequence>
71+
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
72+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
73+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
74+
</xsd:complexType>
75+
</xsd:element>
76+
<xsd:element name="resheader">
77+
<xsd:complexType>
78+
<xsd:sequence>
79+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
80+
</xsd:sequence>
81+
<xsd:attribute name="name" type="xsd:string" use="required" />
82+
</xsd:complexType>
83+
</xsd:element>
84+
</xsd:choice>
85+
</xsd:complexType>
86+
</xsd:element>
87+
</xsd:schema>
88+
<resheader name="resmimetype">
89+
<value>text/microsoft-resx</value>
90+
</resheader>
91+
<resheader name="version">
92+
<value>1.3</value>
93+
</resheader>
94+
<resheader name="reader">
95+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
96+
</resheader>
97+
<resheader name="writer">
98+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
99+
</resheader>
100+
<data name="SelectionLocationRange" xml:space="preserve">
101+
<value>Z{0}S{1} - Z{2}S{3}</value>
102+
</data>
103+
<data name="SelectionLocationPosition" xml:space="preserve">
104+
<value>Z{0}S{1}</value>
105+
</data>
106+
</root>
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 1.3
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
15+
... ado.net/XML headers & schema ...
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">1.3</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1">this is my long string</data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
[base64 mime encoded serialized .NET Framework object]
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
[base64 mime encoded string representing a byte array form of the .NET Framework object]
27+
</data>
28+
29+
There are any number of "resheader" rows that contain simple
30+
name/value pairs.
31+
32+
Each data row contains a name, and value. The row also contains a
33+
type or mimetype. Type corresponds to a .NET class that support
34+
text/value conversion through the TypeConverter architecture.
35+
Classes that don't support this are serialized and stored with the
36+
mimetype set.
37+
38+
The mimetype is used for serialized objects, and tells the
39+
ResXResourceReader how to depersist the object. This is currently not
40+
extensible. For a given mimetype the value must be set accordingly:
41+
42+
Note - application/x-microsoft.net.object.binary.base64 is the format
43+
that the ResXResourceWriter will generate, however the reader can
44+
read any of the formats listed below.
45+
46+
mimetype: application/x-microsoft.net.object.binary.base64
47+
value : The object must be serialized with
48+
: System.Serialization.Formatters.Binary.BinaryFormatter
49+
: and then encoded with base64 encoding.
50+
51+
mimetype: application/x-microsoft.net.object.soap.base64
52+
value : The object must be serialized with
53+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
54+
: and then encoded with base64 encoding.
55+
56+
mimetype: application/x-microsoft.net.object.bytearray.base64
57+
value : The object must be serialized into a byte array
58+
: using a System.ComponentModel.TypeConverter
59+
: and then encoded with base64 encoding.
60+
-->
61+
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:element name="root" msdata:IsDataSet="true">
64+
<xsd:complexType>
65+
<xsd:choice maxOccurs="unbounded">
66+
<xsd:element name="data">
67+
<xsd:complexType>
68+
<xsd:sequence>
69+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
70+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
71+
</xsd:sequence>
72+
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
73+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
74+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
75+
</xsd:complexType>
76+
</xsd:element>
77+
<xsd:element name="resheader">
78+
<xsd:complexType>
79+
<xsd:sequence>
80+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
81+
</xsd:sequence>
82+
<xsd:attribute name="name" type="xsd:string" use="required" />
83+
</xsd:complexType>
84+
</xsd:element>
85+
</xsd:choice>
86+
</xsd:complexType>
87+
</xsd:element>
88+
</xsd:schema>
89+
<resheader name="resmimetype">
90+
<value>text/microsoft-resx</value>
91+
</resheader>
92+
<resheader name="version">
93+
<value>1.3</value>
94+
</resheader>
95+
<resheader name="reader">
96+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
97+
</resheader>
98+
<resheader name="writer">
99+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
100+
</resheader>
101+
</root>

0 commit comments

Comments
 (0)