- Localization in PivotGrid
- Localization and globalization of cube info (client mode)
- Localization and globalization of cube (server mode)
- Localization and globalization of relational info (client mode)
- Localization and globalization of relational info (server mode)
- RTL
Contact Support
Localization and Globalization
13 Feb 201911 minutes to read
Localization in PivotGrid
You can localize the PivotGrid controls text with a collection of localized strings by using ej.PivotGrid.Locale
for different cultures. By default, the PivotGrid control is localized in the “en-US” culture.
<html>
//...
<body>
<!--Create a tag which acts as a container for PivotGrid-->
<div id="PivotGrid1" style="width: 55%; height: 670px; overflow: scroll; float: left;"></div>
<!--Create a tag which acts as a container for PivotTable Field List-->
<div id="PivotSchemaDesigner1" style="height:650px;width:40%;">
</div>
<!--Create a tag which acts as a container for Pager. -->
<div id="Pager1" style="margin-top: 10px; overflow: auto"></div>
<script type="text/javascript">
$(function() {
$("#PivotGrid1").ejPivotGrid({
//...
locale: "fr-FR",
afterServiceInvoke: "onServiceInvoke",
});
$("#Pager1").ejPivotPager({
mode: ej.PivotPager.Mode.Both,
locale: "fr-FR",
targetControlID: "PivotGrid1"
});
});
function onServiceInvoke(args) {
if (args.action == "initialize")
$("#PivotSchemaDesigner1").ejPivotSchemaDesigner({
pivotControl: this,
layout: ej.PivotSchemaDesigner.Layouts.Excel,
locale: "fr-FR"
});
}
ej.PivotSchemaDesigner.Locale["fr-FR"] = {
ClearFilter: "Effacer le filtre",
SelectField:"sélectionnez Champ",
Measures: "Mesures",
Warning: "Avertissement",
AlertMsg:"Le champ que vous déplacez ne peut pas être placé dans cette zone du rapport",
Goal: "Goal",
Status:"Status",
Trend:"Trend",
...
...
};
ej.PivotGrid.Locale["fr-FR"] = {
Sort:"Tri",
SelectField: "sélectionnez Champ",
LabelFilterLabel:"Afficher les éléments pour lesquels l'étiquette",
ValueFilterLabel:"Afficher les éléments pour lesquels",
...
...
};
ej.PivotPager.Locale["fr-FR"] = {
SeriesPage: "Série Page",
CategoricalPage: "Catégorique Page"
};
</script>
</body>
</html>
The following table lists the default keywords in French culture for the PivotGrid.
Keyword | Values |
---|---|
Sort | Tri |
SelectField | sélectionnez Champ |
LabelFilterLabel | Afficher les éléments pour lesquels l'étiquette |
ValueFilterLabel | Afficher les éléments pour lesquels |
LabelFilters | Filtres d'étiquetage |
BeginsWith | Commence par |
NotBeginsWith | Non Commence pa |
EndsWith | se termine par |
NotEndsWith | Non termine avec |
Contains | Contient |
NotContains | Ne contient pas |
ValueFilters | Filtres de valeur |
ClearFilter | Clear Filter |
Equals | Equals |
NotEquals | Not Equals |
GreaterThan | Supérieur |
GreaterThanOrEqualTo | supérieur ou égal à |
LessThan | Less Than |
LessThanOrEqualTo | Moins ou égal à |
Between | Entre |
NotBetween | Non Entre |
AddToFilter | Ajouter à filtre |
AddToRow | Ajouter à la rangée |
AddToColumn | Ajouter à la colonne |
AddToValues | Ajouter aux valeurs |
Warning | Avertissement |
Error | Error |
GroupingBarAlertMsg | Le champ que vous déplacez ne peut pas être placé dans cette zone du rapport |
Measures | Mesures |
Expand | Développer |
Collapse | Réduire |
ToolTipRow | Row |
ToolTipColumn | Colonne |
ToolTipValue | Value |
NoValue | Pas de valeu |
SeriesPage | Series Page |
CategoricalPage | Catégorique page |
DragFieldHere | champ de glisser ic |
ColumnArea | Drop colonne ici |
RowArea | Drop ligne ic |
ValueArea | Lâche valeurs ici |
Close | Fermer |
OK | OK |
Cancel | Annuler |
Remove | Supprimer |
Goal | Goal |
Status | Status |
Trend | Trend |
Value | value |
ConditionalFormattingErrorMsg | La valeur donnée ne correspond pas |
ConditionalFormattingConformMsg | Etes-vous sûr de vouloir supprimer le format sélectionné? |
EnterOperand1 | Entrez Opérande1 |
EnterOperand2 | Entrez Opérande2 |
ConditionalFormatting | Mise en forme conditionnelle |
Condition | Type conditionnel |
Value1 | Value1 |
Value2 | Value2 |
Editcondition | Modifier Condition |
AddNew | Ajouter |
Format | Format |
Backcolor | Back Color |
Borderrange | Border Range |
Borderstyle | Border Style |
Fontsize | Font Size |
Fontstyle | aille de la police |
Bordercolor | Couleur Bordure |
AliceBlue | AliceBlue |
Black | Noir |
Blue | Bleu |
Brown | Brown |
Gold | Gold |
Green | Green |
Lime | Lime |
Maroon | Bordeaux |
Orange | Orange |
Pink | Pink |
Red | rouge |
Violet | Violet |
White | Blanc |
Yellow | Jaune |
Solid | Solid |
Dashed | pointillée |
Dotted | Dotted |
Double | Double |
Groove | Groove |
Inset | Encart |
Outset | Outset |
Ridge | Ridge |
None | Aucun |
Algerian | Algérie |
Arial | Arial |
BodoniMT | Bodoni MT |
BritannicBold | Britannic Bold |
Cambria | Cambria |
Calibri | Calibri |
CourierNew | Courier New |
DejaVuSans | DejaVu Sans |
Forte | Forte |
Gerogia | Gerogia |
Impact | Impact |
SegoeUI | Segoe UI |
Tahoma | Tahoma |
TimesNewRoman | Times New Roman |
Verdana | Verdana |
CubeDimensionBrowser | Navigateur Dimension Cube |
SelectHierarchy | Sélectionnez Hiérarchie |
CalculatedField | Champ calculé |
Name | nom |
Add: | Ajouter: |
Formula | Formule: |
Delete | Supprimer |
Fields | Champs |
CalculatedFieldNameNotFound | Prénom CalculatedField est introuvable |
InsertField | Insérer un champ |
EmptyField | S'il vous plaît entrez le nom de champ calculé ou la formule |
NotValid | formule donnée est pas valide |
NotPresent | champ Valeur utilisée dans toute la formule de champ calculé est pas présent dans le PivotGrid |
Confirm | champ calculé avec le même nom existe déjà en raison de vouloir remplacer.? |
CalcValue | Champ calculé peut être inséré que dans le champ de la zone de valeur |
Total | Total |
GrandTotal | GrandTotal |
DoesNotBeginsWith | N'a pas commence par |
DoesNotEndsWith | Ne se termine par |
DoesNotContains | Ne contient |
DoesNotEquals | N'est pas égaux |
IsGreaterThan | Est supérieure à |
IsGreaterThanOrEqualTo | Est supérieure ou égale à |
IsLessThan | Est inférieure à |
IsLessThanOrEqualTo | Est inférieure ou égale à |
NumberFormatting | Formatage des chiffres |
FrozenHeaders | En-têtes congelé |
CellSelection | Sélection de cellules |
CellContext | Contexte cellulaire |
ColumnResize | Redimensionner la colonne |
ExcelLikeLayout | Comme la mise en page d'Excel |
FrozenHeader | En-tête congelée |
AdvancedFiltering | Filtrage avancé |
Amount | Quantité |
Quantity | Quantity |
Measures | Mesures visant |
NumberFormats | Les formats de nombre |
Exporting | L'exportation |
FileName | Nom de fichier |
ToolTip | Extrémité de l'outil |
RTL | RTL |
CollapseByDefault | Par défaut l'effondrement |
EnableDisablePaging | Enalbe / Désactiver la pagination |
PagingOptions | Options d'appel |
CategoricalPageSize | Taille de page catégorique |
SeriesPageSize | Taille de page série |
HyperLink | Hyper Link |
CellEditing | Montage de cellules |
GroupingBar | Bar de groupement |
SummaryCustomization | Personnalisation Sommaire |
SummaryTypes | Types Sommaire |
SummaryType | Type de statistique |
EnableRowHeaderHyperlink | Activer l'en-tête de ligne HyperLink |
EnableColumnHeaderHyperlink | Activer l'en-tête de colonne HyperLink |
EnableValueCellHyperlink | Activer la cellule Valeur HyperLink |
EnableSummaryCellHyperlink | Activer la cellule de synthèse HyperLink |
HideGrandTotal | Masquer Grand Total |
HideSubTotal | Masquer Sous-total |
Both | Les deux |
Sum | Somme |
Average | La moyenne |
Count | Count |
Min | Min |
Max | Max |
Excel | Excel |
Word | Mot |
CSV | CSV |
MultipleItems | Plusieurs éléments |
All | Tous les |
Search | Recherchez |
The following table lists the default keywords in French culture for the PivotTable field list.
Keywords | Values |
---|---|
PivotTableFieldList | Liste de champs de tableau croisé dynamique |
ChooseFieldsToAddToReport | Choisissez champs à ajouter à Signaler" |
DragFieldBetweenAreasBelow | Faites glisser terrain entre les zones ci-dessous |
ReportFilter | Rapport Filtre |
ColumnLabel | colonne Étiquette |
RowLabel | Label Row |
Values | Valeurs |
ClearFilter | Effacer le filtre |
SelectField | sélectionnez Champ |
Measures | Mesures |
Warning | Avertissement |
AlertMsg | Le champ que vous déplacez ne peut pas être placé dans cette zone du rapport |
Goal | Goal |
Status | Status |
Trend | Trend |
AddToFilter | Ajouter à filtrer |
AddToRow | Ajouter à la rangée |
AddToColumn | Ajouter à la colonne |
AddToValues | Ajouter à la valeur |
DeferLayoutUpdate | Différer Mise à jour |
Update | Mettre à jour |
OK | OK |
Cancel | Annuler |
Close | Fermer |
DoesNotBeginsWith | N'a pas commence par |
DoesNotEndsWith | Ne se termine par |
DoesNotContains | Ne contient |
DoesNotEquals | N'est pas égaux |
IsGreaterThan | Est supérieure à |
IsGreaterThanOrEqualTo | Est supérieure ou égale à |
IsLessThan | Est inférieure à |
IsLessThanOrEqualTo | Est inférieure ou égale à |
Sort | Trier |
LabelFilterLabel | Afficher les éléments pour lesquels l'étiquette |
ValueFilterLabel | Afficher les éléments pour lesquels |
LabelFilters | Les filtres de l'étiquette |
BeginsWith | Commence par |
NotBeginsWith | Commence pas avec |
EndsWith | Se termine par |
NotEndsWith | Pas une fin avec |
Contains | Contient |
NotContains | Contient pas |
ValueFilters | Les filtres de valeur |
ClearFilter | Clear Filter |
Equals | Est égal à |
NotEquals | Pas égaux |
GreaterThan | Plus de |
GreaterThanOrEqualTo | Supérieure ou égale à |
LessThan | Moins de |
LessThanOrEqualTo | Inférieure ou égale à |
Between | Entre |
NotBetween | Pas entre |
Search | Recherchez |
The following table lists the default keywords in French culture for the pivot pager.
Keywords | Values |
---|---|
SeriesPage | Série Page |
CategoricalPage | Catégorique Page |
Error | Error |
OK | OK |
Close | Fermer |
PageCountErrorMsg | Entrez le numéro de page valide |
Localization and globalization of cube info (client mode)
Content displayed within the PivotGrid control are obtained from the OLAP cube. So, following are the steps that need to be done to get the localized and globalized cube content.
- To get the localized data from OLAP cube, you need to set the “Locale Identifier” in the connection string to a specific culture in the “data” property present in the “dataSource”.
- To bind the globalized content in the PivotGrid control, you can set the “locale” property to a specific culture and refer the specific culture file in the sample.
NOTE
Culture files are present under “[installed drive]:\Users\ [user name]\AppData\Local\Syncfusion\EssentialStudio\X.X.X.X\JavaScript\samples\web\scripts\cultures”.
//1036 refers to “fr-FR” culture.
$("#PivotGrid1").ejPivotGrid({
dataSource: {
data: "https://bi.syncfusion.com/olap/msmdpump.dll; Locale Identifier=1036;",
......
},
locale: "fr-FR",
.....
});
Localization and globalization of cube (server mode)
Content displayed within the PivotGrid control are obtained from the OLAP cube. So, following are the steps that need to be done to get the localized and globalized cube content.
- To get the localized string based on different cultures, from the OLAP cube, you need to set “Locale Identifier” in the connection string to a specific culture.
- To bind the globalized content in the PivotGrid control, you need to set “Culture” and
OverrideDefaultFormatStrings
properties in the OlapDataManager class to a specific culture.
//1036 refers to "fr-FR" culture.
string connectionString = "Data Source=localhost; Initial Catalog=Adventure Works DW; Locale Identifier=1036;";
DataManager = new OlapDataManager(connectionString);
DataManager.Culture = new System.Globalization.CultureInfo(1036);
DataManager.OverrideDefaultFormatStrings = true;
Localization and globalization of relational info (client mode)
Content displayed within the PivotGrid control are obtained from the relational datasource. So, following are the steps that need to done to get localized as well as globalized content.
- To get the localized content, the relational datasource should have localized headers in them which will be directly applied to the PivotGrid.
- To globalize the values appear in the PivotGrid, you can set the “format” and “locale” property to a specific culture and refer the specific culture file in the sample.
NOTE
Culture files are present under “[installed drive]:\Users\ [user name]\AppData\Local\Syncfusion\EssentialStudio\X.X.X.X\JavaScript\samples\web\scripts\cultures”.
$("#PivotGrid1").ejPivotGrid({
dataSource: {
....
values: [{
fieldName: "Amount",
fieldCaption: "Amount",
format: "currency"
}]
},
locale:"fr-FR"
});
Localization and globalization of relational info (server mode)
Content displayed within the PivotGrid control are obtained from the relational datasource. So, following are the steps that need to done to get localized as well as globalized content.
- To get the localized content, the relational datasource should have localized headers in them which will be directly applied to the PivotGrid.
- “Format” settings in the PivotComputationInfo class will globalize the values appear in the PivotGrid.
PivotReport pivotSetting = new PivotReport();
//...
pivotSetting.PivotCalculations.Add(new PivotComputationInfo {
CalculationName = "Amount", Description = "Amount", FieldHeader = "Amount", FieldName = "Amount", Format = "E", SummaryType = Syncfusion.PivotAnalysis.Base.SummaryType.DoubleTotalSum
});
//...
RTL
RTL in PivotGrid
You can render the PivotGrid control from right to left by setting the enableRTL
property to true.
$(function() {
$("#PivotGrid1").ejPivotGrid({
url: "/OLAPService",
enableRTL: true
});
});
RTL in PivotSchemaDesigner
You can render the pivot schema designer control from right to left by setting the enableRTL
property to true.
$(function() {
$("#PivotSchemaDesigner1").ejPivotSchemaDesigner({
enableRTL : true
});
});