Skip to content

Commit 9c2f461

Browse files
committed
#94: Added missing localization values and fixed AngularJs language change problem
1 parent 32b7a00 commit 9c2f461

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

src/AbpCompanyName.AbpProjectName.Core/Localization/Source/AbpProjectName-tr.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,15 @@
6666
<text name="Back">Geri</text>
6767
<text name="SuccessfullyRegistered">Başarıyla kayıt olundu</text>
6868
<text name="WaitingForEmailActivation">E-posta adresiniz etkinleştirilmeli.</text>
69+
<text name="Roles">Roller</text>
70+
71+
<text name="Actions">İşlemler</text>
72+
<text name="RoleName">Rol Adı</text>
73+
<text name="DisplayName">Görünen Ad</text>
74+
<text name="CreateNewRole">Yeni Rol Oluştur</text>
75+
<text name="EditRole">Rolü Düzenle</text>
76+
<text name="EditUser">Kullanıcı Düenle</text>
77+
<text name="Edit">Düzenle</text>
78+
<text name="Delete">Sil</text>
6979
</texts>
7080
</localizationDictionary>

src/AbpCompanyName.AbpProjectName.Core/Localization/Source/AbpProjectName.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,16 @@
6767
<text name="SuccessfullyRegistered">Successfully registered</text>
6868
<text name="WaitingForEmailActivation">Your email address should be activated</text>
6969
<text name="Roles">Roles</text>
70+
71+
<text name="Actions">Actions</text>
72+
<text name="RoleName">Role Name</text>
73+
<text name="DisplayName">Display Name</text>
74+
<text name="CreateNewRole">Create New Role</text>
75+
<text name="EditRole">Edit Role</text>
76+
<text name="EditUser">Edit User</text>
77+
<text name="Edit">Edit</text>
78+
<text name="Delete">Delete</text>
79+
80+
7081
</texts>
7182
</localizationDictionary>

src/AbpCompanyName.AbpProjectName.WebMpa/App_Start/AbpProjectNameNavigationProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public override void SetNavigation(INavigationProviderContext context)
6868
new MenuItemDefinition(
6969
"AspNetBoilerplateHome",
7070
new FixedLocalizableString("Home"),
71-
url: "https://aspnetboilerplate.com/ref=abptmpl"
71+
url: "https://aspnetboilerplate.com?ref=abptmpl"
7272
)
7373
).AddItem(
7474
new MenuItemDefinition(

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/layout/topbar.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@
1313
}
1414

1515
vm.changeLanguage = function (languageName) {
16-
abp.utils.setCookieValue(
17-
"Abp.Localization.CultureName",
18-
languageName,
19-
new Date(new Date().getTime() + 5 * 365 * 86400000), //5 year
20-
abp.appPath
21-
);
22-
23-
location.reload();
16+
location.href = abp.appPath + 'AbpLocalization/ChangeCulture?cultureName=' + languageName + '&returnUrl=' + window.location.pathname + window.location.hash;
2417
}
2518

2619
init();

0 commit comments

Comments
 (0)