Support sv locale
This commit is contained in:
parent
68b04aa5a1
commit
b44e850fa1
|
@ -44,4 +44,4 @@ $ node dist/server.js
|
||||||
|
|
||||||
## Add locale
|
## Add locale
|
||||||
|
|
||||||
Add the locale in `src/main.js` and `Makefile`. Then update translations.
|
Add the locale in `client/src/main.ts` and `client/Makefile`. Then update translations.
|
||||||
|
|
|
@ -17,7 +17,7 @@ INPUT_FILES = ./src
|
||||||
OUTPUT_DIR = ./src
|
OUTPUT_DIR = ./src
|
||||||
|
|
||||||
# Available locales for the app.
|
# Available locales for the app.
|
||||||
LOCALES = en_US fr_FR de es gl ru oc ja
|
LOCALES = en_US fr_FR de es gl ru oc ja sv
|
||||||
|
|
||||||
# Name of the generated .po files for each available locale.
|
# Name of the generated .po files for each available locale.
|
||||||
LOCALE_FILES ?= $(patsubst %,$(OUTPUT_DIR)/locale/%/LC_MESSAGES/app.po,$(LOCALES))
|
LOCALE_FILES ?= $(patsubst %,$(OUTPUT_DIR)/locale/%/LC_MESSAGES/app.po,$(LOCALES))
|
||||||
|
|
|
@ -3,8 +3,8 @@ msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"PO-Revision-Date: 2020-12-04 06:52+0000\n"
|
"PO-Revision-Date: 2020-12-04 06:52+0000\n"
|
||||||
"Last-Translator: Joan Francés Blanc <joan.frances.blanc@jfblanc.eu>\n"
|
"Last-Translator: Joan Francés Blanc <joan.frances.blanc@jfblanc.eu>\n"
|
||||||
"Language-Team: Occitan <https://weblate.framasoft.org/projects/"
|
"Language-Team: Occitan <https://weblate.framasoft.org/projects/peertube-"
|
||||||
"peertube-search-index/client/oc/>\n"
|
"search-index/client/oc/>\n"
|
||||||
"Language: oc\n"
|
"Language: oc\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
@ -395,8 +395,8 @@ msgid ""
|
||||||
"\"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} PeerTube "
|
"\"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} PeerTube "
|
||||||
"websites</a> indexed by %{indexName}!"
|
"websites</a> indexed by %{indexName}!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Cercatz-vos las vidèos e cadenas preferidas sus las <a href=\""
|
"Cercatz-vos las vidèos e cadenas preferidas sus las <a href="
|
||||||
"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} instàncias de "
|
"\"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} instàncias de "
|
||||||
"PeerTube</a> indexadas per %{indexName}!"
|
"PeerTube</a> indexadas per %{indexName}!"
|
||||||
|
|
||||||
#: src/views/Search.vue
|
#: src/views/Search.vue
|
||||||
|
|
|
@ -3,8 +3,8 @@ msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"PO-Revision-Date: 2020-12-09 14:52+0000\n"
|
"PO-Revision-Date: 2020-12-09 14:52+0000\n"
|
||||||
"Last-Translator: Filip Bengtsson <filip@libreradio.org>\n"
|
"Last-Translator: Filip Bengtsson <filip@libreradio.org>\n"
|
||||||
"Language-Team: Swedish <https://weblate.framasoft.org/projects/"
|
"Language-Team: Swedish <https://weblate.framasoft.org/projects/peertube-"
|
||||||
"peertube-search-index/client/sv/>\n"
|
"search-index/client/sv/>\n"
|
||||||
"Language: sv\n"
|
"Language: sv\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
@ -30,7 +30,11 @@ msgstr[0] "%{resultsCount} resultat hittades för"
|
||||||
msgstr[1] "%{resultsCount} resultat hittades för"
|
msgstr[1] "%{resultsCount} resultat hittades för"
|
||||||
|
|
||||||
#: src/components/SearchWarning.vue:4
|
#: src/components/SearchWarning.vue:4
|
||||||
msgid "<strong>%{indexName}</strong> displays videos and channels that match your search but is not the publisher, nor the owner. If you notice any problems with a video, report it to the administrators on the PeerTube website where the video is published."
|
msgid ""
|
||||||
|
"<strong>%{indexName}</strong> displays videos and channels that match your "
|
||||||
|
"search but is not the publisher, nor the owner. If you notice any problems "
|
||||||
|
"with a video, report it to the administrators on the PeerTube website where "
|
||||||
|
"the video is published."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"<strong>%{indexName}</strong> visar videor och kanaler som matchar din "
|
"<strong>%{indexName}</strong> visar videor och kanaler som matchar din "
|
||||||
"sökning, men är inte publiciteten eller ägaren. Om du upptäcker problem med "
|
"sökning, men är inte publiciteten eller ägaren. Om du upptäcker problem med "
|
||||||
|
@ -42,10 +46,12 @@ msgid "A free software to take back control of your videos"
|
||||||
msgstr "Fri mjukvara för att ta tillbaka kontrollen över dina videor"
|
msgstr "Fri mjukvara för att ta tillbaka kontrollen över dina videor"
|
||||||
|
|
||||||
#: src/components/Header.vue:12
|
#: src/components/Header.vue:12
|
||||||
msgid "A search engine of <a href=\"https://joinpeertube.org\" target=\"_blank\">PeerTube</a> videos and channels"
|
msgid ""
|
||||||
|
"A search engine of <a href=\"https://joinpeertube.org\" target=\"_blank"
|
||||||
|
"\">PeerTube</a> videos and channels"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"En sökmotor för <a href=\"https://joinpeertube.org\" target=\"_blank\""
|
"En sökmotor för <a href=\"https://joinpeertube.org\" target=\"_blank"
|
||||||
">PeerTube</a>videor och -kanaler"
|
"\">PeerTube</a>videor och -kanaler"
|
||||||
|
|
||||||
#: src/views/Search.vue
|
#: src/views/Search.vue
|
||||||
msgid "Activism"
|
msgid "Activism"
|
||||||
|
@ -140,10 +146,12 @@ msgid "Deutsch"
|
||||||
msgstr "tyska"
|
msgstr "tyska"
|
||||||
|
|
||||||
#: src/components/Header.vue:14
|
#: src/components/Header.vue:14
|
||||||
msgid "Developed by <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</a>"
|
msgid ""
|
||||||
|
"Developed by <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</"
|
||||||
|
"a>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Utvecklad av <a href=\"https://framasoft.org\" target=\"_blank\""
|
"Utvecklad av <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</"
|
||||||
">Framasoft</a>"
|
"a>"
|
||||||
|
|
||||||
#: src/components/ChannelResult.vue
|
#: src/components/ChannelResult.vue
|
||||||
msgid "Discover this channel on %{host}"
|
msgid "Discover this channel on %{host}"
|
||||||
|
@ -382,7 +390,10 @@ msgid "Science & Technology"
|
||||||
msgstr "Vetenskap och teknik"
|
msgstr "Vetenskap och teknik"
|
||||||
|
|
||||||
#: src/views/Search.vue:21
|
#: src/views/Search.vue:21
|
||||||
msgid "Search for your favorite videos and channels on <a href=\"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} PeerTube websites</a> indexed by %{indexName}!"
|
msgid ""
|
||||||
|
"Search for your favorite videos and channels on <a href="
|
||||||
|
"\"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} PeerTube "
|
||||||
|
"websites</a> indexed by %{indexName}!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Sök efter videor och kanaler du gillar på <a href=\"%{indexedInstancesUrl}\" "
|
"Sök efter videor och kanaler du gillar på <a href=\"%{indexedInstancesUrl}\" "
|
||||||
"target=\"_blank\">%{instancesCount} PeerTube-webbplatser</a> som indexerats "
|
"target=\"_blank\">%{instancesCount} PeerTube-webbplatser</a> som indexerats "
|
||||||
|
|
|
@ -21,6 +21,7 @@ const availableLanguages = {
|
||||||
'gl': 'galego',
|
'gl': 'galego',
|
||||||
'ru': 'русский',
|
'ru': 'русский',
|
||||||
'ja': '日本語',
|
'ja': '日本語',
|
||||||
|
'sv': 'svenska',
|
||||||
'oc': 'Occitan'
|
'oc': 'Occitan'
|
||||||
}
|
}
|
||||||
const aliasesLanguages = {
|
const aliasesLanguages = {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue