@@ -92,12 +92,12 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
9292 }
9393 catch ( Exception )
9494 {
95- AddNewTab ( typeof ( ModernShellPage ) , "New tab" ) ;
95+ AddNewTab ( typeof ( ModernShellPage ) , ResourceController . GetTranslation ( "NewTab" ) ) ;
9696 }
9797 }
9898 else if ( string . IsNullOrEmpty ( navArgs ) )
9999 {
100- AddNewTab ( typeof ( ModernShellPage ) , "New tab" ) ;
100+ AddNewTab ( typeof ( ModernShellPage ) , ResourceController . GetTranslation ( "NewTab" ) ) ;
101101 }
102102 else
103103 {
@@ -168,7 +168,7 @@ public async void AddNewTab(Type t, string path)
168168 tabLocationHeader = "OneDrive" ;
169169 fontIconSource . Glyph = "\xE753 " ;
170170 }
171- else if ( path == "New tab" )
171+ else if ( path == ResourceController . GetTranslation ( "NewTab" ) )
172172 {
173173 tabLocationHeader = ResourceController . GetTranslation ( "NewTab" ) ;
174174 fontIconSource . Glyph = "\xE737 " ;
@@ -213,7 +213,7 @@ public async void AddNewTab(Type t, string path)
213213 // Invalid path, open new tab instead (explorer opens Documents when it fails)
214214 Debug . WriteLine ( $ "Invalid path \" { path } \" in InstanceTabsView.xaml.cs\\ AddNewTab") ;
215215
216- path = "New tab" ;
216+ path = ResourceController . GetTranslation ( "NewTab" ) ;
217217 tabLocationHeader = ResourceController . GetTranslation ( "NewTab" ) ;
218218 fontIconSource . Glyph = "\xE737 " ;
219219 }
@@ -259,7 +259,7 @@ public async void SetSelectedTabInfo(string text, string currentPathForTabIcon =
259259 tabLocationHeader = ResourceController . GetTranslation ( "SidebarSettings/Text" ) ;
260260 fontIconSource . Glyph = "\xE713 " ;
261261 }
262- else if ( currentPathForTabIcon == null && text == "New tab" )
262+ else if ( currentPathForTabIcon == null && text == ResourceController . GetTranslation ( "NewTab" ) )
263263 {
264264 tabLocationHeader = ResourceController . GetTranslation ( "NewTab" ) ;
265265 fontIconSource . Glyph = "\xE737 " ;
@@ -516,7 +516,7 @@ private async void TabStrip_TabCloseRequested(Microsoft.UI.Xaml.Controls.TabView
516516
517517 private void AddTabButton_Click ( object sender , RoutedEventArgs e )
518518 {
519- AddNewTab ( typeof ( ModernShellPage ) , "New tab" ) ;
519+ AddNewTab ( typeof ( ModernShellPage ) , ResourceController . GetTranslation ( "NewTab" ) ) ;
520520 }
521521
522522 public static T GetCurrentSelectedTabInstance < T > ( )
0 commit comments