Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Base lexicale BaLex
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lex gaMe
Base lexicale BaLex
Commits
e5f8116e
Commit
e5f8116e
authored
2 years ago
by
Pierre Fleutot
Browse files
Options
Downloads
Patches
Plain Diff
Ajout lecture des sons des prononciations. Fix récupération accent suite changement wikstraktor
parent
34d37895
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Manager/WiktionaryManager.php
+2
-2
2 additions, 2 deletions
src/Manager/WiktionaryManager.php
templates/entry/_entryAttributes.html.twig
+7
-0
7 additions, 0 deletions
templates/entry/_entryAttributes.html.twig
with
9 additions
and
2 deletions
src/Manager/WiktionaryManager.php
+
2
−
2
View file @
e5f8116e
...
...
@@ -161,8 +161,8 @@ class WiktionaryManager
'id'
=>
$wikPronunciation
[
'id'
],
'api'
=>
$wikPronunciation
[
'transcript'
],
];
if
(
isset
(
$wikPronunciation
[
'accent'
]))
{
$pronunciation
[
'accent'
]
=
$wikPronunciation
[
'accent
'
];
if
(
isset
(
$wikPronunciation
[
'accent
s
'
]))
{
$pronunciation
[
'accent'
]
=
$wikPronunciation
[
'accent
s'
][
0
];
}
if
(
isset
(
$wikPronunciation
[
'sounds'
]))
{
$pronunciation
[
'sounds'
]
=
$wikPronunciation
[
'sounds'
];
...
...
This diff is collapsed.
Click to expand it.
templates/entry/_entryAttributes.html.twig
+
7
−
0
View file @
e5f8116e
...
...
@@ -43,6 +43,13 @@
{%
if
pronunciation.accent
is
defined
%}{{
pronunciation.accent
}}
:
{%
endif
%}
{{
pronunciation.api
}}
{%
for
sound
in
pronunciation.sounds
|
default
([])
%}
<audio
controls
>
<source
src=
"
{{
sound.url
}}
"
type=
"audio/ogg"
>
{# <source src="horse.mp3" type="audio/mpeg">#}
Your browser does not support the audio element.
</audio>
{%
endfor
%}
{{
_self.actions
(
entry
,
pronunciationKey
,
[
'comment'
],
""
,
'Comments'
)
}}
{{
_self.actions
(
entry
,
pronunciationKey
,
[
'edit'
,
'delete'
],
''
,
'Pronunciations'
)
}}
<br>
...
...
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