Support sv locale
This commit is contained in:
parent
68b04aa5a1
commit
b44e850fa1
|
@ -44,4 +44,4 @@ $ node dist/server.js
|
|||
|
||||
## 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
|
||||
|
||||
# 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.
|
||||
LOCALE_FILES ?= $(patsubst %,$(OUTPUT_DIR)/locale/%/LC_MESSAGES/app.po,$(LOCALES))
|
||||
|
|
|
@ -3,8 +3,8 @@ msgstr ""
|
|||
"Project-Id-Version: \n"
|
||||
"PO-Revision-Date: 2020-12-04 06:52+0000\n"
|
||||
"Last-Translator: Joan Francés Blanc <joan.frances.blanc@jfblanc.eu>\n"
|
||||
"Language-Team: Occitan <https://weblate.framasoft.org/projects/"
|
||||
"peertube-search-index/client/oc/>\n"
|
||||
"Language-Team: Occitan <https://weblate.framasoft.org/projects/peertube-"
|
||||
"search-index/client/oc/>\n"
|
||||
"Language: oc\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
|
@ -395,8 +395,8 @@ msgid ""
|
|||
"\"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} PeerTube "
|
||||
"websites</a> indexed by %{indexName}!"
|
||||
msgstr ""
|
||||
"Cercatz-vos las vidèos e cadenas preferidas sus las <a href=\""
|
||||
"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} instàncias de "
|
||||
"Cercatz-vos las vidèos e cadenas preferidas sus las <a href="
|
||||
"\"%{indexedInstancesUrl}\" target=\"_blank\">%{instancesCount} instàncias de "
|
||||
"PeerTube</a> indexadas per %{indexName}!"
|
||||
|
||||
#: src/views/Search.vue
|
||||
|
|
|
@ -3,8 +3,8 @@ msgstr ""
|
|||
"Project-Id-Version: \n"
|
||||
"PO-Revision-Date: 2020-12-09 14:52+0000\n"
|
||||
"Last-Translator: Filip Bengtsson <filip@libreradio.org>\n"
|
||||
"Language-Team: Swedish <https://weblate.framasoft.org/projects/"
|
||||
"peertube-search-index/client/sv/>\n"
|
||||
"Language-Team: Swedish <https://weblate.framasoft.org/projects/peertube-"
|
||||
"search-index/client/sv/>\n"
|
||||
"Language: sv\n"
|
||||
"MIME-Version: 1.0\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"
|
||||
|
||||
#: 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 ""
|
||||
"<strong>%{indexName}</strong> visar videor och kanaler som matchar din "
|
||||
"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"
|
||||
|
||||
#: 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 ""
|
||||
"En sökmotor för <a href=\"https://joinpeertube.org\" target=\"_blank\""
|
||||
">PeerTube</a>videor och -kanaler"
|
||||
"En sökmotor för <a href=\"https://joinpeertube.org\" target=\"_blank"
|
||||
"\">PeerTube</a>videor och -kanaler"
|
||||
|
||||
#: src/views/Search.vue
|
||||
msgid "Activism"
|
||||
|
@ -140,10 +146,12 @@ msgid "Deutsch"
|
|||
msgstr "tyska"
|
||||
|
||||
#: 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 ""
|
||||
"Utvecklad av <a href=\"https://framasoft.org\" target=\"_blank\""
|
||||
">Framasoft</a>"
|
||||
"Utvecklad av <a href=\"https://framasoft.org\" target=\"_blank\">Framasoft</"
|
||||
"a>"
|
||||
|
||||
#: src/components/ChannelResult.vue
|
||||
msgid "Discover this channel on %{host}"
|
||||
|
@ -382,7 +390,10 @@ msgid "Science & Technology"
|
|||
msgstr "Vetenskap och teknik"
|
||||
|
||||
#: 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 ""
|
||||
"Sök efter videor och kanaler du gillar på <a href=\"%{indexedInstancesUrl}\" "
|
||||
"target=\"_blank\">%{instancesCount} PeerTube-webbplatser</a> som indexerats "
|
||||
|
|
|
@ -21,6 +21,7 @@ const availableLanguages = {
|
|||
'gl': 'galego',
|
||||
'ru': 'русский',
|
||||
'ja': '日本語',
|
||||
'sv': 'svenska',
|
||||
'oc': 'Occitan'
|
||||
}
|
||||
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