Skip to content

Commit

Permalink
Added new class and mechanism to pluralize strings; started pluraliza…
Browse files Browse the repository at this point in the history
…tion of English and Spanish
  • Loading branch information
rafa8626 committed Oct 4, 2016
1 parent bf4a7bf commit 546511a
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 178 deletions.
6 changes: 3 additions & 3 deletions src/js/me-i18n-locale-en.js
Expand Up @@ -33,7 +33,7 @@
'mejs.fullscreen' : 'Fullscreen',

// mep-feature-jumpforward
'mejs.time-jump-forward': 'Jump forward %1 seconds',
'mejs.time-jump-forward': 'Jump forward {0} {0|plural:second:seconds}',

// mep-feature-playpause
'mejs.play': 'Play',
Expand All @@ -47,7 +47,7 @@
'mejs.time-help-text': 'Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.',

// mep-feature-skipback
'mejs.time-skip-back': 'Skip back %1 seconds',
'mejs.time-skip-back': 'Skip back {0} {0|plural:second:seconds}',

// mep-feature-tracks
'mejs.captions-subtitles' : 'Captions/Subtitles',
Expand All @@ -66,7 +66,7 @@

// mep-feature-ads
'mejs.ad-skip': 'Skip ad',
'mejs.ad-skip-info': 'Skip in %1 seconds',
'mejs.ad-skip-info': 'Skip in {0} {0|plural:second:seconds}',

'mejs.source-chooser': 'Source Chooser'
};
Expand Down
6 changes: 3 additions & 3 deletions src/js/me-i18n-locale-es.js
Expand Up @@ -19,8 +19,8 @@
if (typeof exports.es === 'undefined') {
exports.es = {

'mejs.ad-skip': "Salta publicidad",
'mejs.ad-skip-info': "Salta en %1 segundos",
'mejs.ad-skip': "Saltar publicidad",
'mejs.ad-skip-info': "Saltar {0} {0|plural:segundo:segundos}",
'mejs.audio-player' : "Reproductor de audio",
'mejs.captions-subtitles' : "Leyendas/Subtítulos",
'mejs.close' : "Cerrar",
Expand All @@ -35,7 +35,7 @@
'mejs.pause' : "Pausa",
'mejs.play' : "Reproducción",
'mejs.time-help-text' : "Use las flechas Izquierda/Derecha para avanzar un segundo y las flechas Arriba/Abajo para avanzar diez segundos.",
'mejs.time-skip-back' : "Saltar atrás %1 segundos",
'mejs.time-skip-back' : "Rebobinar {0} {0|plural:segundo:segundos}",
'mejs.time-slider' : "Control deslizante de tiempo",
'mejs.unmute' : "Reactivar silencio",
'mejs.video-player' : "Reproductor de video",
Expand Down

0 comments on commit 546511a

Please sign in to comment.