-
-
Couldn't load subscription status.
- Fork 3.1k
Add support for central translation repository #1269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
filips123
wants to merge
10
commits into
sampotts:develop
Choose a base branch
from
filips123:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ed4af25
Add support for translations (fix sampotts/plyr#1261)
filips123 58feff7
Add support for building translations
filips123 946ff37
Add documentation for translations
filips123 ac219be
Add Slovenian translation
filips123 78721fb
Coding style fixes
filips123 c37c5b8
Change language code standard
filips123 9d63b62
Add more details about language tag
filips123 921cb9c
Merge branch 'develop' into develop
filips123 7a2825d
Merge branch 'develop' of https://github.com/sampotts/plyr into develop
filips123 eefdb8d
Fix merge
filips123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // ========================================================================== | ||
| // Plyr English translation | ||
| // ========================================================================== | ||
|
|
||
| const i18n = { | ||
| restart: 'Restart', | ||
| rewind: 'Rewind {seektime}s', | ||
| play: 'Play', | ||
| pause: 'Pause', | ||
| fastForward: 'Forward {seektime}s', | ||
| seek: 'Seek', | ||
| seekLabel: '{currentTime} of {duration}', | ||
| played: 'Played', | ||
| buffered: 'Buffered', | ||
| currentTime: 'Current time', | ||
| duration: 'Duration', | ||
| volume: 'Volume', | ||
| mute: 'Mute', | ||
| unmute: 'Unmute', | ||
| enableCaptions: 'Enable captions', | ||
| disableCaptions: 'Disable captions', | ||
| download: 'Download', | ||
| enterFullscreen: 'Enter fullscreen', | ||
| exitFullscreen: 'Exit fullscreen', | ||
| frameTitle: 'Player for {title}', | ||
| captions: 'Captions', | ||
| settings: 'Settings', | ||
| pip: 'PIP', | ||
| menuBack: 'Go back to previous menu', | ||
| speed: 'Speed', | ||
| normal: 'Normal', | ||
| quality: 'Quality', | ||
| loop: 'Loop', | ||
| start: 'Start', | ||
| end: 'End', | ||
| all: 'All', | ||
| reset: 'Reset', | ||
| disabled: 'Disabled', | ||
| enabled: 'Enabled', | ||
| advertisement: 'Ad', | ||
| qualityBadge: { | ||
| 2160: '4K', | ||
| 1440: 'HD', | ||
| 1080: 'HD', | ||
| 720: 'HD', | ||
| 576: 'SD', | ||
| 480: 'SD', | ||
| }, | ||
| }; | ||
|
|
||
| export default i18n; | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // ========================================================================== | ||
| // Plyr supported languages | ||
| // ========================================================================== | ||
|
|
||
| import en from './en'; | ||
| import sl from './sl'; | ||
|
|
||
| const languages = [ | ||
| { code: 'en', name: 'English', i18n: en }, | ||
| { code: 'sl', name: 'Slovenščina', i18n: sl }, | ||
| ]; | ||
|
|
||
| export default languages; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // ========================================================================== | ||
| // Plyr Slovenian translation | ||
| // ========================================================================== | ||
|
|
||
| const i18n = { | ||
| restart: 'Ponovno predvajaj', | ||
| rewind: 'Nazaj za {seektime} sekund', | ||
| play: 'Predvajaj', | ||
| pause: 'Zaustavi', | ||
| fastForward: 'Naprej za {seektime} sekund', | ||
| seek: 'Pojdi', | ||
| seekLabel: '{currentTime} od {duration}', | ||
| played: 'Predvajano', | ||
| buffered: 'Predpomnjeno', | ||
| currentTime: 'Čas', | ||
| duration: 'Dolžina', | ||
| volume: 'Glasnost', | ||
| mute: 'Izklopi zvok', | ||
| unmute: 'Vklopi zvok', | ||
| enableCaptions: 'Omogoči podnapise', | ||
| disableCaptions: 'Onemogoči podnapise', | ||
| download: 'Prenesi', | ||
| enterFullscreen: 'Odpri celozaslonski način', | ||
| exitFullscreen: 'Zapri celozaslonski način', | ||
| frameTitle: 'Predvajalnik za {title}', | ||
| captions: 'Podnapisi', | ||
| settings: 'Nastavitve', | ||
| pip: 'PIP', | ||
| menuBack: 'Pojdi nazaj v prejšnji meni', | ||
| speed: 'Hitrost', | ||
| normal: 'Običajna', | ||
| quality: 'Kakovost', | ||
| loop: 'Zanka', | ||
| start: 'Začetek', | ||
| end: 'Konec', | ||
| all: 'Vse', | ||
| reset: 'Ponastavi', | ||
| disabled: 'Onemogočeni', | ||
| enabled: 'Omogočeni', | ||
| advertisement: 'Oglas', | ||
| qualityBadge: { | ||
| 2160: '4K', | ||
| 1440: 'HD', | ||
| 1080: 'HD', | ||
| 720: 'HD', | ||
| 576: 'SD', | ||
| 480: 'SD', | ||
| }, | ||
| }; | ||
|
|
||
| export default i18n; | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From #1269 (review):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default language should be
enbecause it is only for times, when translation doesn't have some translated strings, so like fallback language.But maybe there could be support to change fallback language.