@@ -13,6 +13,10 @@ class PublishView : Subview
13
13
private const string PrivateRepoMessage = "You choose who can see and commit to this repository" ;
14
14
private const string PublicRepoMessage = "Anyone can see this repository. You choose who can commit" ;
15
15
private const string PublishViewCreateButton = "Create" ;
16
+ private const string SelectedOwnerLabel = "Owner" ;
17
+ private const string RepositoryNameLabel = "Repository Name" ;
18
+ private const string DescriptionLabel = "Description" ;
19
+ private const string CreatePrivateRepositoryLabel = "Create as a private repository" ;
16
20
17
21
[ SerializeField ] private string username ;
18
22
[ SerializeField ] private string [ ] owners = { } ;
@@ -138,7 +142,7 @@ public override void OnGUI()
138
142
{
139
143
GUILayout . BeginVertical ( ) ;
140
144
{
141
- GUILayout . Label ( "Owner" ) ;
145
+ GUILayout . Label ( SelectedOwnerLabel ) ;
142
146
143
147
selectedOwner = EditorGUILayout . Popup ( 0 , owners ) ;
144
148
}
@@ -153,22 +157,22 @@ public override void OnGUI()
153
157
154
158
GUILayout . BeginVertical ( ) ;
155
159
{
156
- GUILayout . Label ( "Repository Name" ) ;
160
+ GUILayout . Label ( RepositoryNameLabel ) ;
157
161
repoName = EditorGUILayout . TextField ( repoName ) ;
158
162
}
159
163
GUILayout . EndVertical ( ) ;
160
164
}
161
165
GUILayout . EndHorizontal ( ) ;
162
166
163
- GUILayout . Label ( "Description" ) ;
167
+ GUILayout . Label ( DescriptionLabel ) ;
164
168
repoDescription = EditorGUILayout . TextField ( repoDescription ) ;
165
169
GUILayout . Space ( Styles . PublishViewSpacingHeight ) ;
166
170
167
171
GUILayout . BeginVertical ( ) ;
168
172
{
169
173
GUILayout . BeginHorizontal ( ) ;
170
174
{
171
- togglePrivate = GUILayout . Toggle ( togglePrivate , "Create as a private repository" ) ;
175
+ togglePrivate = GUILayout . Toggle ( togglePrivate , CreatePrivateRepositoryLabel ) ;
172
176
}
173
177
GUILayout . EndHorizontal ( ) ;
174
178
0 commit comments