Localization
28 Jun 20176 minutes to read
Localization
All text in Kanban can be localized using ej.Kanban.Locale
object. Please find the table with list of properties and its value in locale object.
Locale key words | Text |
---|---|
EmptyCard | No cards to display |
SaveButton | Save |
CancelButton | Cancel |
EditFormTitle | Details of |
AddFormTitle | Add New Card |
SwimlaneCaptionFormat | "- 8 item items " |
FilterSettings | Filters: |
Min | Min |
Max | Max |
FilterOfText | Of |
Cards | Cards |
ItemsCount | Items Count : |
Unassigned | Unassigned |
AddCard | Add Card |
EditCard | Edit Card |
DeleteCard | Delete Card |
TopofRow | Top of Row |
BottomofRow | Bottom of Row |
MoveUp | Move Up |
MoveDown | Move Down |
MoveLeft | Move Left |
MoveRight | Move Right |
MovetoSwimlane | Move to Swimlane |
HideColumn | Hide Column |
VisibleColumns | Visible Columns |
PrintCard | Print Card |
Search | Search |
The following code example describes the above behavior.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" ng-app="KanbanApp">
<head>
<title>Essential Studio for AngularJS: Kanban</title>
</head>
<body ng-controller="KanbanCtrl">
<div id="Kanban" ej-kanban e-datasource="data" e-keyfield="Status" e-fields-content="Summary" e-fields-primarykey="Id" e-fields-swimlanekey="Assignee" e-locale="de-DE">
<div e-columns>
<div e-column e-headertext="Backlog" e-key="Open"></div>
<div e-column e-headertext="In Progress" e-key="InProgress"></div>
<div e-column e-headertext="Testing" e-key="Testing"></div>
</div>
</div>
<script>
ej.Kanban.Locale["de-DE"] = {
EmptyCard: "Keine Karten angezeigt werden",
SaveButton: "Speichern",
CancelButton: "stornieren",
EditFormTitle: "Details von ",
AddFormTitle: "Neue Karte hinzufügen",
SwimlaneCaptionFormat: "- 8 Artikel Artikel ",
FilterSettings: "Filter:",
FilterOfText: "Von",
Max: "Max.",
Min: "Min.",
Cards: "Karten",
ItemsCount: "Artikel Graf :",
Unassigned: "Nicht zugewiesen",
};
angular.module('KanbanApp', ['ejangular'])
.controller('KanbanCtrl', function ($scope) {
$scope.data = new ej.DataManager(window.kanbanData).executeLocal(ej.Query().take(30));
});
</script>
</body>
</html>
The following output is displayed as a result of the above code example.
Right to Left (RTL)
By default, Kanban render its text and layout from left to right. To customize Kanban’s direction, you can change direction from LTR to RTL by using enableRTL
as true.
The following code example describes the above behavior.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" ng-app="KanbanApp">
<head>
<title>Essential Studio for AngularJS: Kanban</title>
</head>
<body ng-controller="KanbanCtrl">
<div id="Kanban" ej-kanban e-datasource="data" e-keyfield="Status" e-fields-content="Summary" e-fields-imageurl="ImgUrl" e-fields-primarykey="Id" e-fields-swimlanekey="Assignee" e-locale="ar-AE" e-enablertl="true">
<div e-columns>
<div e-column e-headertext="تراكم الأعمال غير المنجزة" e-key="Open"></div>
<div e-column e-headertext="في تَقَدم" e-key="InProgress"></div>
<div e-column e-headertext="فعله" e-key="Testing"></div>
</div>
</div>
<script>
ej.Kanban.Locale["ar-AE"] = {
EmptyCard: "لا بطاقات لعرض",
SaveButton: "حفظ",
CancelButton: "إلغاء",
EditFormTitle: "تفاصيل ",
AddFormTitle: "إضافة بطاقة جديدة",
SwimlaneCaptionFormat: "- 8 بند العناصر ",
FilterSettings: "مرشحات:",
FilterOfText: "من",
Max: "ماكس",
Min: "دقيقة",
Cards: " بطاقات",
ItemsCount: "عد العناصر:",
Unassigned: "غير معين",
};
angular.module('KanbanApp', ['ejangular'])
.controller('KanbanCtrl', function ($scope) {
$scope.data = new ej.DataManager(window.kanbanData).executeLocal(ej.Query().take(30));
});
</script>
</body>
</html>
The following output is displayed as a result of the above code example.