Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 49ef1b1

Browse files
committed
Update text for initialize repo view
1 parent 490f92b commit 49ef1b1

File tree

3 files changed

+47
-32
lines changed

3 files changed

+47
-32
lines changed

src/GitHub.Api/Localization.resx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<root>
3-
<!--
4-
Microsoft ResX Schema
5-
3+
<!--
4+
Microsoft ResX Schema
5+
66
Version 2.0
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
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
1111
associated with the data types.
12-
12+
1313
Example:
14-
14+
1515
... ado.net/XML headers & schema ...
1616
<resheader name="resmimetype">text/microsoft-resx</resheader>
1717
<resheader name="version">2.0</resheader>
@@ -26,36 +26,36 @@
2626
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
2727
<comment>This is a comment</comment>
2828
</data>
29-
30-
There are any number of "resheader" rows that contain simple
29+
30+
There are any number of "resheader" rows that contain simple
3131
name/value pairs.
32-
33-
Each data row contains a name, and value. The row also contains a
34-
type or mimetype. Type corresponds to a .NET class that support
35-
text/value conversion through the TypeConverter architecture.
36-
Classes that don't support this are serialized and stored with the
32+
33+
Each data row contains a name, and value. The row also contains a
34+
type or mimetype. Type corresponds to a .NET class that support
35+
text/value conversion through the TypeConverter architecture.
36+
Classes that don't support this are serialized and stored with the
3737
mimetype set.
38-
39-
The mimetype is used for serialized objects, and tells the
40-
ResXResourceReader how to depersist the object. This is currently not
38+
39+
The mimetype is used for serialized objects, and tells the
40+
ResXResourceReader how to depersist the object. This is currently not
4141
extensible. For a given mimetype the value must be set accordingly:
42-
43-
Note - application/x-microsoft.net.object.binary.base64 is the format
44-
that the ResXResourceWriter will generate, however the reader can
42+
43+
Note - application/x-microsoft.net.object.binary.base64 is the format
44+
that the ResXResourceWriter will generate, however the reader can
4545
read any of the formats listed below.
46-
46+
4747
mimetype: application/x-microsoft.net.object.binary.base64
48-
value : The object must be serialized with
48+
value : The object must be serialized with
4949
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
5050
: and then encoded with base64 encoding.
51-
51+
5252
mimetype: application/x-microsoft.net.object.soap.base64
53-
value : The object must be serialized with
53+
value : The object must be serialized with
5454
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
5555
: and then encoded with base64 encoding.
5656
5757
mimetype: application/x-microsoft.net.object.bytearray.base64
58-
value : The object must be serialized into a byte array
58+
value : The object must be serialized into a byte array
5959
: using a System.ComponentModel.TypeConverter
6060
: and then encoded with base64 encoding.
6161
-->
@@ -286,12 +286,12 @@
286286
<value>Branch pushed</value>
287287
</data>
288288
<data name="InitializeRepositoryButtonText" xml:space="preserve">
289-
<value>Initialize repository</value>
289+
<value>Initialize a git repository for this project</value>
290290
</data>
291291
<data name="SwitchBranchTitle" xml:space="preserve">
292292
<value>Switch branch</value>
293293
</data>
294294
<data name="SwitchBranchFailedDescription" xml:space="preserve">
295295
<value>Could not switch to branch {0}</value>
296296
</data>
297-
</root>
297+
</root>

src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/Styles.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class Styles
7070
commitFileAreaStyle,
7171
commitButtonStyle,
7272
textFieldStyle,
73+
boldCenteredLabel,
7374
centeredLabel,
7475
commitDescriptionFieldStyle,
7576
toggleMixedStyle,
@@ -543,6 +544,21 @@ public static GUIStyle CenteredLabel
543544
}
544545
}
545546

547+
public static GUIStyle BoldCenteredLabel
548+
{
549+
get
550+
{
551+
if (boldCenteredLabel == null)
552+
{
553+
boldCenteredLabel = new GUIStyle(EditorStyles.boldLabel);
554+
boldCenteredLabel.name = "BoldCenteredLabelStyle";
555+
boldCenteredLabel.alignment = TextAnchor.MiddleCenter;
556+
}
557+
return boldCenteredLabel;
558+
}
559+
}
560+
561+
546562
public static GUIStyle CommitDescriptionFieldStyle
547563
{
548564
get

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/InitProjectView.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace GitHub.Unity
1212
[Serializable]
1313
class InitProjectView : Subview
1414
{
15-
private const string NoRepoDescription = "Initialize a Git repository to track changes and collaborate with others.";
15+
private const string NoRepoTitle = "To begin using GitHub, initialize a git repository";
1616

1717
[SerializeField] private bool isBusy;
1818
[SerializeField] private bool isPublished;
@@ -35,7 +35,7 @@ public override void OnGUI()
3535
{
3636
GUILayout.FlexibleSpace();
3737

38-
GUILayout.Label(NoRepoDescription, Styles.CenteredLabel);
38+
GUILayout.Label(NoRepoTitle, Styles.BoldCenteredLabel);
3939

4040
GUILayout.BeginHorizontal();
4141
GUILayout.FlexibleSpace();
@@ -51,7 +51,6 @@ public override void OnGUI()
5151
}
5252
}
5353
EditorGUI.EndDisabledGroup();
54-
5554
GUILayout.FlexibleSpace();
5655
GUILayout.EndHorizontal();
5756

0 commit comments

Comments
 (0)