Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
0d076d0b
Commit
0d076d0b
authored
Oct 23, 2016
by
LE GAC Renaud
Browse files
Update HistoryFilter for internationalization.
parent
68bdd60a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
13 deletions
+33
-13
languages/fr-fr.py
languages/fr-fr.py
+2
-0
models/common_settings.py
models/common_settings.py
+1
-1
models/ui_history.py
models/ui_history.py
+1
-1
static/track_events/locale/myapp-lang-fr.js
static/track_events/locale/myapp-lang-fr.js
+15
-5
static/track_events/src/grid/HistoryFilter.js
static/track_events/src/grid/HistoryFilter.js
+14
-6
No files found.
languages/fr-fr.py
View file @
0d076d0b
...
...
@@ -193,6 +193,7 @@
'is equal to'
:
'égal à'
,
'Is Over'
:
'Is Over'
,
'Javascript API'
:
'Javascript API'
,
'key'
:
'clé'
,
'Labels'
:
'Etiquettes'
,
'Last Name'
:
'Nom de famille'
,
'Last name'
:
'Nom de famille'
,
...
...
@@ -382,6 +383,7 @@
'User ID'
:
'User ID'
,
'users'
:
'users'
,
'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'
,
'Verify Password'
:
'Verify Password'
,
...
...
models/common_settings.py
View file @
0d076d0b
...
...
@@ -17,7 +17,7 @@ plugins = PluginManager()
plugins
.
dbui
.
app_css
=
'static/my.css'
plugins
.
dbui
.
app_debug
=
'static/src'
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_dir = None
...
...
models/ui_history.py
View file @
0d076d0b
...
...
@@ -87,7 +87,7 @@ gridModifier.append_filter(('end_date', '<=', T('less or equal to')))
gridModifier
.
append_filter
(
(
'data'
,
'like'
,
'key(s) is(are) equal to value(s). The jocker is %'
),
fieldLabel
=
T
(
'Data'
),
header
=
[
"key"
,
"value"
],
header
=
[
T
(
"key"
)
,
T
(
"value"
)
],
numColumns
=
2
,
numRows
=
3
,
xtype
=
'xtablefield'
)
...
...
static/track_events/locale/myapp-lang-fr.js
View file @
0d076d0b
...
...
@@ -3,7 +3,7 @@
*
*/
Ext
.
define
(
'
TrackEvents.locale.form.field.UserData
'
,
{
Ext
.
define
(
"
TrackEvents.locale.form.field.UserData
"
,
{
override
:
"
TrackEvents.form.field.UserData
"
,
textAddMenu
:
"
ajouter
"
,
textAddTitle
:
"
Entrer une nouvelle propriété
"
,
...
...
@@ -20,9 +20,19 @@ Ext.define('TrackEvents.locale.form.field.UserData', {
textValue
:
"
valeur
"
});
Ext
.
define
(
'
TrackEvents.locale.form.plugin.UserDataConsistency
'
,
{
override
:
"
TrackEvents.form.plugin.UserDataConsistency
"
,
textError
:
"
Erreur en mettant à jour l'historique...
"
,
textInfo
:
"
Information...
"
,
Ext
.
define
(
"
TrackEvents.locale.form.plugin.UserDataConsistency
"
,
{
override
:
"
TrackEvents.form.plugin.UserDataConsistency
"
,
textError
:
"
Erreur en mettant à jour l'historique...
"
,
textInfo
:
"
Information...
"
,
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
static/track_events/src/grid/HistoryFilter.js
View file @
0d076d0b
...
...
@@ -11,6 +11,14 @@ Ext.define('TrackEvents.grid.HistoryFilter', {
extend
:
'
Dbui.grid.Filter
'
,
alias
:
'
widget.xhistorygridfilter
'
,
// private properties for internationalization
textEventData
:
"
Event data
"
,
textFunding
:
"
Funding
"
,
textMetadata
:
"
Metadata
"
,
textObject
:
"
Object
"
,
textPeople
:
"
People
"
,
textPeriod
:
"
Period
"
,
// jshint strict: false
// private method requests by the component model of ExtJS
...
...
@@ -77,23 +85,23 @@ Ext.define('TrackEvents.grid.HistoryFilter', {
// create the new item structure by adding sub-panel
me
.
items
=
[{
title
:
"
Metadata
"
,
title
:
me
.
text
Metadata
,
items
:
metadata
},
{
title
:
"
People
"
,
title
:
me
.
text
People
,
items
:
people
},
{
title
:
"
Object
"
,
title
:
me
.
text
Object
,
items
:
object
},
{
title
:
"
Event
d
ata
"
,
title
:
me
.
text
Event
D
ata
,
items
:
eventdata
,
layout
:
'
fit
'
},
{
title
:
"
Period
"
,
title
:
me
.
text
Period
,
items
:
period
},
{
title
:
"
Funding
"
,
title
:
me
.
text
Funding
,
items
:
funding
,
layout
:
'
fit
'
}];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment