Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cassiopée
nghyd
Commits
352db95f
Commit
352db95f
authored
5 years ago
by
mathias.chouet
Browse files
Options
Downloads
Patches
Plain Diff
Update childrenType translations; improve lined param display
parent
aac32b5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!69
Resolve "Module y = a.x + b"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/app/components/param-link/param-link.component.ts
+9
-9
9 additions, 9 deletions
src/app/components/param-link/param-link.component.ts
src/locale/messages.en.json
+6
-6
6 additions, 6 deletions
src/locale/messages.en.json
src/locale/messages.fr.json
+6
-6
6 additions, 6 deletions
src/locale/messages.fr.json
with
21 additions
and
21 deletions
src/app/components/param-link/param-link.component.ts
+
9
−
9
View file @
352db95f
import
{
Component
,
Input
,
Output
,
EventEmitter
,
OnChanges
,
OnDestroy
}
from
"
@angular/core
"
;
import
{
NgParameter
}
from
"
../../formulaire/ngparam
"
;
import
{
LinkedValue
,
ParamValueMode
,
Observer
,
Structure
,
acSection
,
ParamDefinition
}
from
"
jalhyd
"
;
import
{
LinkedValue
,
ParamValueMode
,
Observer
,
Structure
,
acSection
,
ParamDefinition
,
ChildNub
}
from
"
jalhyd
"
;
import
{
FormulaireService
}
from
"
../../services/formulaire.service
"
;
import
{
I18nService
}
from
"
../../services/internationalisation.service
"
;
import
{
FormulaireDefinition
}
from
"
../../formulaire/definition/form-definition
"
;
...
...
@@ -168,21 +168,21 @@ export class ParamLinkComponent implements OnChanges, Observer, OnDestroy {
preview
=
NgParameter
.
preview
(
i
.
element
as
ParamDefinition
,
true
);
}
// 1. Paramètre / résultat d'un
ouvrage dans un Nub de type ParallelStructure
if
(
i
.
nub
instanceof
Structure
)
{
// 1. Paramètre / résultat d'un
Nub enfant au sein d'un Nub parent
if
(
i
.
nub
instanceof
ChildNub
)
{
let
pos
:
number
;
pos
=
i
.
nub
.
findPositionInParent
();
if
(
i
.
isResult
())
{
// résultat d'
ouvrage
// résultat d'
enfant
return
`
${
preview
}
- `
+
sprintf
(
this
.
intlService
.
localizeText
(
"
INFO_LINKED_VALUE_
DEVICE
_RESULT
"
),
s
,
c
,
(
pos
+
1
)
this
.
intlService
.
localizeText
(
"
INFO_LINKED_VALUE_
CHILD
_RESULT
"
),
s
,
c
,
i
.
nub
.
parent
.
childrenType
,
(
pos
+
1
)
);
}
else
{
// paramètre d'
ouvrage
// paramètre d'
enfant
return
`
${
preview
}
- `
+
sprintf
(
this
.
intlService
.
localizeText
(
"
INFO_LINKED_VALUE_
DEVICE
"
),
s
,
c
,
(
pos
+
1
)
this
.
intlService
.
localizeText
(
"
INFO_LINKED_VALUE_
CHILD
"
),
s
,
c
,
i
.
nub
.
parent
.
childrenType
,
(
pos
+
1
)
);
}
}
else
...
...
This diff is collapsed.
Click to expand it.
src/locale/messages.en.json
+
6
−
6
View file @
352db95f
...
...
@@ -153,12 +153,12 @@
"INFO_STUFF_MOVED"
:
"%s #%s moved"
,
"INFO_STUFF_REMOVED"
:
"%s #%s removed"
,
"INFO_STUFF_N"
:
"%s #"
,
"INFO_CHILD_TYPE_
STRUCTUR
E"
:
"device"
,
"INFO_CHILD_TYPE_
STRUCTUR
E_PLUR"
:
"devices"
,
"INFO_CHILD_TYPE_
OUVRAG
E"
:
"device"
,
"INFO_CHILD_TYPE_
OUVRAG
E_PLUR"
:
"devices"
,
"INFO_CHILD_TYPE_MACRORUGO"
:
"apron"
,
"INFO_CHILD_TYPE_MACRORUGO_PLUR"
:
"aprons"
,
"INFO_CHILD_TYPE_
YAXN
"
:
"power"
,
"INFO_CHILD_TYPE_
YAXN
_PLUR"
:
"powers"
,
"INFO_CHILD_TYPE_
PUISSANCE
"
:
"power"
,
"INFO_CHILD_TYPE_
PUISSANCE
_PLUR"
:
"powers"
,
"INFO_FIELDSET_ADD"
:
"Add"
,
"INFO_FIELDSET_COPY"
:
"Copy"
,
"INFO_FIELDSET_REMOVE"
:
"Remove"
,
...
...
@@ -285,8 +285,8 @@
"INFO_LIB_ZRAM"
:
"Upstream apron elevation"
,
"INFO_LIB_ZRMB"
:
"Downstream basin bottom elevation"
,
"INFO_LIB_ZT"
:
"Triangle top elevation"
,
"INFO_LINKED_VALUE_
DEVICE
_RESULT"
:
"%s (%s,
device
%s)"
,
"INFO_LINKED_VALUE_
DEVICE
"
:
"%s (%s,
device
%s)"
,
"INFO_LINKED_VALUE_
CHILD
_RESULT"
:
"%s (%s,
%s
%s)"
,
"INFO_LINKED_VALUE_
CHILD
"
:
"%s (%s,
%s
%s)"
,
"INFO_LINKED_VALUE_EXTRA_RESULT_OF"
:
"%s (%s)"
,
"INFO_LINKED_VALUE_EXTRA_RESULT"
:
"%s (%s)"
,
"INFO_LINKED_VALUE_RESULT"
:
"%s (%s)"
,
...
...
This diff is collapsed.
Click to expand it.
src/locale/messages.fr.json
+
6
−
6
View file @
352db95f
...
...
@@ -153,12 +153,12 @@
"INFO_STUFF_MOVED"
:
"%s n°%s déplacé(e)"
,
"INFO_STUFF_REMOVED"
:
"%s n°%s supprimé(e)"
,
"INFO_STUFF_N"
:
"%s n°"
,
"INFO_CHILD_TYPE_
STRUCTUR
E"
:
"ouvrage"
,
"INFO_CHILD_TYPE_
STRUCTUR
E_PLUR"
:
"ouvrages"
,
"INFO_CHILD_TYPE_
OUVRAG
E"
:
"ouvrage"
,
"INFO_CHILD_TYPE_
OUVRAG
E_PLUR"
:
"ouvrages"
,
"INFO_CHILD_TYPE_MACRORUGO"
:
"radier"
,
"INFO_CHILD_TYPE_MACRORUGO_PLUR"
:
"radiers"
,
"INFO_CHILD_TYPE_
YAXN
"
:
"puissance"
,
"INFO_CHILD_TYPE_
YAXN
_PLUR"
:
"puissances"
,
"INFO_CHILD_TYPE_
PUISSANCE
"
:
"puissance"
,
"INFO_CHILD_TYPE_
PUISSANCE
_PLUR"
:
"puissances"
,
"INFO_FIELDSET_ADD"
:
"Ajouter"
,
"INFO_FIELDSET_COPY"
:
"Copier"
,
"INFO_FIELDSET_REMOVE"
:
"Supprimer"
,
...
...
@@ -284,8 +284,8 @@
"INFO_LIB_ZRAM"
:
"Cote du radier amont"
,
"INFO_LIB_ZRMB"
:
"Cote de radier mi-bassin"
,
"INFO_LIB_ZT"
:
"Cote haute du triangle"
,
"INFO_LINKED_VALUE_
DEVICE
_RESULT"
:
"%s (%s,
ouvrage
%s)"
,
"INFO_LINKED_VALUE_
DEVICE
"
:
"%s (%s,
ouvrage
%s)"
,
"INFO_LINKED_VALUE_
CHILD
_RESULT"
:
"%s (%s,
%s
%s)"
,
"INFO_LINKED_VALUE_
CHILD
"
:
"%s (%s,
%s
%s)"
,
"INFO_LINKED_VALUE_EXTRA_RESULT_OF"
:
"%s (%s)"
,
"INFO_LINKED_VALUE_EXTRA_RESULT"
:
"%s (%s)"
,
"INFO_LINKED_VALUE_RESULT"
:
"%s (%s)"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment