Commit 0d076d0b authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update HistoryFilter for internationalization.

parent 68bdd60a
...@@ -193,6 +193,7 @@ ...@@ -193,6 +193,7 @@
'is equal to': 'égal à', 'is equal to': 'égal à',
'Is Over': 'Is Over', 'Is Over': 'Is Over',
'Javascript API': 'Javascript API', 'Javascript API': 'Javascript API',
'key': 'clé',
'Labels': 'Etiquettes', 'Labels': 'Etiquettes',
'Last Name': 'Nom de famille', 'Last Name': 'Nom de famille',
'Last name': 'Nom de famille', 'Last name': 'Nom de famille',
...@@ -382,6 +383,7 @@ ...@@ -382,6 +383,7 @@
'User ID': 'User ID', 'User ID': 'User ID',
'users': 'users', 'users': 'users',
'Usual': 'Habituel', 'Usual': 'Habituel',
'value': 'valeur',
'Value already in database or empty': 'Value already in database or empty', 'Value already in database or empty': 'Value already in database or empty',
'value already in database or empty': 'value already in database or empty', 'value already in database or empty': 'value already in database or empty',
'Verify Password': 'Verify Password', 'Verify Password': 'Verify Password',
......
...@@ -17,7 +17,7 @@ plugins = PluginManager() ...@@ -17,7 +17,7 @@ plugins = PluginManager()
plugins.dbui.app_css = 'static/my.css' plugins.dbui.app_css = 'static/my.css'
plugins.dbui.app_debug = 'static/src' plugins.dbui.app_debug = 'static/src'
plugins.dbui.app_libmin = 'static/track_events-min.js' plugins.dbui.app_libmin = 'static/track_events-min.js'
plugins.dbui.app_lg = 'static/locale/myapp-lang-fr.js' plugins.dbui.app_lg = 'static/track_events/locale/myapp-lang-fr.js'
plugins.dbui.app_script = 'static/app.js' plugins.dbui.app_script = 'static/app.js'
# plugins.dbui.app_script_dir = None # plugins.dbui.app_script_dir = None
......
...@@ -87,7 +87,7 @@ gridModifier.append_filter(('end_date', '<=', T('less or equal to'))) ...@@ -87,7 +87,7 @@ gridModifier.append_filter(('end_date', '<=', T('less or equal to')))
gridModifier.append_filter( gridModifier.append_filter(
('data', 'like', 'key(s) is(are) equal to value(s). The jocker is %'), ('data', 'like', 'key(s) is(are) equal to value(s). The jocker is %'),
fieldLabel=T('Data'), fieldLabel=T('Data'),
header=["key", "value"], header=[T("key"), T("value")],
numColumns=2, numColumns=2,
numRows=3, numRows=3,
xtype='xtablefield') xtype='xtablefield')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
*/ */
Ext.define('TrackEvents.locale.form.field.UserData', { Ext.define("TrackEvents.locale.form.field.UserData", {
override : "TrackEvents.form.field.UserData", override : "TrackEvents.form.field.UserData",
textAddMenu: "ajouter", textAddMenu: "ajouter",
textAddTitle: "Entrer une nouvelle propriété", textAddTitle: "Entrer une nouvelle propriété",
...@@ -20,9 +20,19 @@ Ext.define('TrackEvents.locale.form.field.UserData', { ...@@ -20,9 +20,19 @@ Ext.define('TrackEvents.locale.form.field.UserData', {
textValue: "valeur" textValue: "valeur"
}); });
Ext.define('TrackEvents.locale.form.plugin.UserDataConsistency', { Ext.define("TrackEvents.locale.form.plugin.UserDataConsistency", {
override : "TrackEvents.form.plugin.UserDataConsistency", override: "TrackEvents.form.plugin.UserDataConsistency",
textError : "Erreur en mettant à jour l'historique...", textError: "Erreur en mettant à jour l'historique...",
textInfo : "Information...", textInfo: "Information...",
textUpdate: "Mise à jour de l'historique..." textUpdate: "Mise à jour de l'historique..."
}); });
Ext.define("TrackEvents.locale.grid.HistoryFilter", {
override: "TrackEvents.grid.HistoryFilter",
textEventData: "Donnée d'un évènement",
textFunding: "Financement" ,
textMetadata: "Métadonnée",
textObject: "Objet",
textPeople: "Personne",
textPeriod: "Période"
});
\ No newline at end of file
...@@ -11,6 +11,14 @@ Ext.define('TrackEvents.grid.HistoryFilter', { ...@@ -11,6 +11,14 @@ Ext.define('TrackEvents.grid.HistoryFilter', {
extend: 'Dbui.grid.Filter', extend: 'Dbui.grid.Filter',
alias: 'widget.xhistorygridfilter', alias: 'widget.xhistorygridfilter',
// private properties for internationalization
textEventData: "Event data",
textFunding: "Funding" ,
textMetadata: "Metadata",
textObject: "Object",
textPeople: "People",
textPeriod: "Period",
// jshint strict: false // jshint strict: false
// private method requests by the component model of ExtJS // private method requests by the component model of ExtJS
...@@ -77,23 +85,23 @@ Ext.define('TrackEvents.grid.HistoryFilter', { ...@@ -77,23 +85,23 @@ Ext.define('TrackEvents.grid.HistoryFilter', {
// create the new item structure by adding sub-panel // create the new item structure by adding sub-panel
me.items = [{ me.items = [{
title: "Metadata", title: me.textMetadata,
items: metadata items: metadata
}, { }, {
title: "People", title: me.textPeople,
items: people items: people
}, { }, {
title: "Object", title: me.textObject,
items: object items: object
}, { }, {
title: "Event data", title: me.textEventData,
items: eventdata, items: eventdata,
layout: 'fit' layout: 'fit'
}, { }, {
title: "Period", title: me.textPeriod,
items: period items: period
}, { }, {
title: "Funding", title: me.textFunding,
items: funding, items: funding,
layout: 'fit' layout: 'fit'
}]; }];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment