Fix documentation: translate doc not translated:
The example of livechatnotranslation usage in the page was triggering the doc-translate script... So the page was marked as "don't translate".
This commit is contained in:
parent
c9bf187299
commit
f5b3b68c4f
@ -90,13 +90,13 @@ Saying you want to display the name of the button "open_chat_new_window", you ca
|
||||
You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:
|
||||
|
||||
```yaml
|
||||
---
|
||||
title: "Third party"
|
||||
description: "Displaying the livechat with 3rd party software."
|
||||
weight: 20
|
||||
chapter: false
|
||||
livechatnotranslation: true
|
||||
---
|
||||
---
|
||||
title: "Third party"
|
||||
description: "Displaying the livechat with 3rd party software."
|
||||
weight: 20
|
||||
chapter: false
|
||||
livechatnotranslation: true
|
||||
---
|
||||
```
|
||||
|
||||
Never translate a string in the `livechat.en.pot` file, it would be ignored.
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Arabic <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/ar/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Catalan <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/ca/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Czech <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/cs/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 14:21+0000\n"
|
||||
"Last-Translator: John Livingston <git@john-livingston.fr>\n"
|
||||
"Language-Team: German <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/de/>\n"
|
||||
@ -599,6 +599,233 @@ msgstr "Beitragen"
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr "Interessiert beizutragen? Super!"
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr "Übersätzungen"
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr "Übersätzungen"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr "Eine neue Sprache hinzufügen"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "If you think there is a missing locale, please check first if it is handled in Peertube.\n"
|
||||
#| "If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it.\n"
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr "Wenn Sie neue Funktionswünsche, Fehler (Bugs) oder Schwierigkeiten bei der Einrichtung des Plugins haben, können Sie den [Github issue tracker](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) verwenden.\n"
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr "Dokumentation"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
@ -1878,25 +2105,3 @@ msgstr "Wenn Sie ein Webdesigner oder ein ConverseJS/Prosody/XMPP-Experte sind u
|
||||
#~ msgstr ""
|
||||
#~ "Führen Sie dann das Skript `doc-generate-missing-translations.sh` aus.\n"
|
||||
#~ "Es wird alle fehlenden Dateien erstellen.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Translate the plugin"
|
||||
#~ msgstr "Übersätzungen"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Translate"
|
||||
#~ msgstr "Übersätzungen"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Documentation translation"
|
||||
#~ msgstr "Dokumentation"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Adding a new locale"
|
||||
#~ msgstr "Eine neue Sprache hinzufügen"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "If you think there is a missing locale, please check first if it is handled in Peertube.\n"
|
||||
#~ "If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it.\n"
|
||||
#~ msgstr "Wenn Sie neue Funktionswünsche, Fehler (Bugs) oder Schwierigkeiten bei der Einrichtung des Plugins haben, können Sie den [Github issue tracker](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) verwenden.\n"
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Greek <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/el/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -641,6 +641,259 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, markdown-text
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Esperanto <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/eo/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 14:21+0000\n"
|
||||
"Last-Translator: John Livingston <git@john-livingston.fr>\n"
|
||||
"Language-Team: Spanish <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/es/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Basque <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/eu/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Persian <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/fa/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Finnish <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/fi/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 14:55+0000\n"
|
||||
"Last-Translator: John Livingston <git@john-livingston.fr>\n"
|
||||
"Language-Team: French <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/fr/>\n"
|
||||
@ -612,6 +612,330 @@ msgstr "Contribuer"
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr "Intéressé⋅e pour contribuer ? Super !"
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr "Traduire le plugin"
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr "Traduction"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "You can contribute to this plugin translation.\n"
|
||||
#| "Translations are handled using the [Weblate](https://weblate.org/) software,\n"
|
||||
#| "using [Framasoft Weblate instance](https://weblate.framasoft.org/).\n"
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
"Vous pouvez contribuer à la traduction de ce plugin Peertube.\n"
|
||||
"Les traductions sont gérées par le logiciel [Weblate](https://weblate.org/),\n"
|
||||
"via [l'instance Weblate de Framasoft](https://weblate.framasoft.org/).\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Never modify directly files in the `languages` folder, this could lead to conflicts.\n"
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
"Ne modifiez jamais directement les fichiers dans le dossier `languages` du plugin,\n"
|
||||
"vous risqueriez de créer des conflits.\n"
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr "Comment faire"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Create an account: https://weblate.framasoft.org/accounts/register/\n"
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr "Créez-vous un compte: https://weblate.framasoft.org/accounts/register/\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Validate your email and follow the link sent\n"
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr "Validez votre email en cliquant sur le lien reçu\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Create your password and setup your account\n"
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr "Choisissez votre mot de passe, et configurez votre compte\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/\n"
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr "Allez sur le projet du plugin de tchat: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Choose the locale you want to translate\n"
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr "Choisissez la langue que vous voulez traduire\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Just translate missing sentences, or correct the ones that seems incorrect to you.\n"
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr "Il ne vous reste plus qu'à ajouter les traductions manquantes, ou corriger celles qui vous semblent erronées.\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "There might be some «very technical» strings. If you are not 100% sure of\n"
|
||||
#| "the meaning, or of your translation, you better not translate it,\n"
|
||||
#| "so it will display in english.\n"
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
"Il peut y avoir des chaînes «assez techniques».\n"
|
||||
"Si vous n'êtes pas sûr⋅e à 100% du sens, ou de la traduction,\n"
|
||||
"il vaut mieux ne pas la traduire du tout ;\n"
|
||||
"ainsi la version anglaise s'affichera.\n"
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr "Ajout d'une nouvelle langue"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "If you think there is a missing locale, please check first if it is handled in Peertube.\n"
|
||||
#| "If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it.\n"
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
"Si la langue qui vous intéresse n'est pas présente, assurez-vous d'abord qu'elle est bien supportée par Peertube.\n"
|
||||
"Si c'est le cas, vous pouvez [ouvrir un ticket](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues)\n"
|
||||
"pour en demander l'ajout.\n"
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr "Ajout de nouveau segment / utilisation dans le code"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "If you are working on new features, and need new strings, you can create them directly in Weblate.\n"
|
||||
#| "The english version is mandatory. Start with it.\n"
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
"Si vous travaillez sur une nouvelle fonctionnalité, et que vous avez besoin de nouveaux segments,\n"
|
||||
"créez les directement dans Weblate.\n"
|
||||
"La version anglaise est obligatoire, commencez par celle-ci.\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "Each string is linked to a key (for example `use_chat`).\n"
|
||||
#| "Choose an explicit key in english, lower case.\n"
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
"Chaque segment est lié à une clé (par exemple `use_chat`).\n"
|
||||
"Choisissez une clé en anglais, suffisamment explicite, et en minuscule.\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files,\n"
|
||||
#| "but avoid to commit these changes (to minimize conflict risks).\n"
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
"Si vous avez besoin de tester vos localisations sans attendre la fusion venant de Weblate,\n"
|
||||
"vous pouvez modifier les fichiers `languages/*.yml`, mais évitez de les commit\n"
|
||||
"(pour minimiser le risque de conflits).\n"
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr "Utiliser un segment dans le code front-end"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`.\n"
|
||||
#| "The constant name must:\n"
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
"Avant d'utiliser une chaîne en front-end, il faut déclarer une nouvelle constante dans `client/@types/global.d.ts`.\n"
|
||||
"La constante doit :\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "start with the prefix \"LOC_\"\n"
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr "commencer par le préfixe \"LOC_\"\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "use the string key, upper cased\n"
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr "utiliser la clé de la chaîne, en majuscule\n"
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "you just have to declare its type, not its value\n"
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr "vous ne devez déclarer que son type, pas sa valeur\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "For example, to use \"use_chat\", you have to declare:\n"
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
"Par exemple, pour utiliser \"use_chat\", vous devez déclarer :\n"
|
||||
"e, to use \"use_chat\", you have to declare:\n"
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr "declare const LOC_USE_CHAT: string\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "The `build-client.js` script will read the `client/@types/global.d.ts`,\n"
|
||||
#| "search for such constants, and load their values from the languages files.\n"
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr "Le script `build-client.js` va lire ce fichier `client/@types/global.d.ts`, chercher pour de telles constantes, et charger leurs valeurs depuis le fichier de langue.\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code.\n"
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr "Vous pouvez maintenant utiliser `peertubeHelpers.translate(LOC_USE_CHAT)` dans votre code.\n"
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr "Utiliser un segment dans le code back-end"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "In theory, the only parts of the backend code where you need localization is the\n"
|
||||
#| "settings declaration and standardized data (ActivityPub, RSS, ...).\n"
|
||||
#| "Here we need to get english strings from the translation key.\n"
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
"En théorie, les seules parties du code qui ont besoin de traductions sont les déclarations de paramètres et la génération de données standardisées (ActivityPub, RSS, ...).\n"
|
||||
"Ici on a besoin de récupérer les chaînes anglaises à partir des clés de traduction.\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "Note: you should never need another language translation from backend code.\n"
|
||||
#| "Localization must be done on front-end.\n"
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
"Note: vous ne devriez jamais avoir besoin d'autres langues que l'anglais pour le code backend.\n"
|
||||
"Les traductions doivent se faire coté front-end.\n"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
#| msgid ""
|
||||
#| "There is a `lib/loc.ts` module providing a `loc()` function.\n"
|
||||
#| "Just pass it the key to have the english string: `loc('diagnostic')`'.\n"
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
"Il y a un module `lib/loc.ts` qui fourni une function `loc()`.\n"
|
||||
"Passez juste la clé pour récupérer la phrase anglaise: `loc('diagnostic')`.\n"
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr "Traduction de la documentation"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
@ -1953,73 +2277,6 @@ msgstr "Si vous êtes webdesigner ou avez une expertise en ConverseJS/Prosody/XM
|
||||
#~ "Ensuite, lancez le script `doc-generate-missing-translations.sh` à la racine du dépot.\n"
|
||||
#~ "Celui-ci crééra tous les fichiers manquants pour la nouvelle langue.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Translate the plugin"
|
||||
#~ msgstr "Traduire le plugin"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Translate"
|
||||
#~ msgstr "Traduction"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "You can contribute to this plugin translation.\n"
|
||||
#~ "Translations are handled using the [Weblate](https://weblate.org/) software,\n"
|
||||
#~ "using [Framasoft Weblate instance](https://weblate.framasoft.org/).\n"
|
||||
#~ msgstr ""
|
||||
#~ "Vous pouvez contribuer à la traduction de ce plugin Peertube.\n"
|
||||
#~ "Les traductions sont gérées par le logiciel [Weblate](https://weblate.org/),\n"
|
||||
#~ "via [l'instance Weblate de Framasoft](https://weblate.framasoft.org/).\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Never modify directly files in the `languages` folder, this could lead to conflicts.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Ne modifiez jamais directement les fichiers dans le dossier `languages` du plugin,\n"
|
||||
#~ "vous risqueriez de créer des conflits.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "How to"
|
||||
#~ msgstr "Comment faire"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Create an account: https://weblate.framasoft.org/accounts/register/\n"
|
||||
#~ msgstr "Créez-vous un compte: https://weblate.framasoft.org/accounts/register/\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Validate your email and follow the link sent\n"
|
||||
#~ msgstr "Validez votre email en cliquant sur le lien reçu\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Create your password and setup your account\n"
|
||||
#~ msgstr "Choisissez votre mot de passe, et configurez votre compte\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/\n"
|
||||
#~ msgstr "Allez sur le projet du plugin de tchat: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Choose the locale you want to translate\n"
|
||||
#~ msgstr "Choisissez la langue que vous voulez traduire\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Just translate missing sentences, or correct the ones that seems incorrect to you.\n"
|
||||
#~ msgstr "Il ne vous reste plus qu'à ajouter les traductions manquantes, ou corriger celles qui vous semblent erronées.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "There might be some «very technical» strings. If you are not 100% sure of\n"
|
||||
#~ "the meaning, or of your translation, you better not translate it,\n"
|
||||
#~ "so it will display in english.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Il peut y avoir des chaînes «assez techniques».\n"
|
||||
#~ "Si vous n'êtes pas sûr⋅e à 100% du sens, ou de la traduction,\n"
|
||||
#~ "il vaut mieux ne pas la traduire du tout ;\n"
|
||||
#~ "ainsi la version anglaise s'affichera.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Documentation translation"
|
||||
#~ msgstr "Traduction de la documentation"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Fow now, this is not done on Weblate. I am still looking for the good technical solution.\n"
|
||||
#~ msgstr ""
|
||||
@ -2029,119 +2286,3 @@ msgstr "Si vous êtes webdesigner ou avez une expertise en ConverseJS/Prosody/XM
|
||||
#, no-wrap
|
||||
#~ msgid "Please refer to the \"documentation\" documentation page.\n"
|
||||
#~ msgstr "Voir la page de documentation dédiée à la documentation.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Adding a new locale"
|
||||
#~ msgstr "Ajout d'une nouvelle langue"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "If you think there is a missing locale, please check first if it is handled in Peertube.\n"
|
||||
#~ "If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Si la langue qui vous intéresse n'est pas présente, assurez-vous d'abord qu'elle est bien supportée par Peertube.\n"
|
||||
#~ "Si c'est le cas, vous pouvez [ouvrir un ticket](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues)\n"
|
||||
#~ "pour en demander l'ajout.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Adding new strings / use translations in the code"
|
||||
#~ msgstr "Ajout de nouveau segment / utilisation dans le code"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "If you are working on new features, and need new strings, you can create them directly in Weblate.\n"
|
||||
#~ "The english version is mandatory. Start with it.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Si vous travaillez sur une nouvelle fonctionnalité, et que vous avez besoin de nouveaux segments,\n"
|
||||
#~ "créez les directement dans Weblate.\n"
|
||||
#~ "La version anglaise est obligatoire, commencez par celle-ci.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "Each string is linked to a key (for example `use_chat`).\n"
|
||||
#~ "Choose an explicit key in english, lower case.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Chaque segment est lié à une clé (par exemple `use_chat`).\n"
|
||||
#~ "Choisissez une clé en anglais, suffisamment explicite, et en minuscule.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files,\n"
|
||||
#~ "but avoid to commit these changes (to minimize conflict risks).\n"
|
||||
#~ msgstr ""
|
||||
#~ "Si vous avez besoin de tester vos localisations sans attendre la fusion venant de Weblate,\n"
|
||||
#~ "vous pouvez modifier les fichiers `languages/*.yml`, mais évitez de les commit\n"
|
||||
#~ "(pour minimiser le risque de conflits).\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Use translations in front-end code"
|
||||
#~ msgstr "Utiliser un segment dans le code front-end"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`.\n"
|
||||
#~ "The constant name must:\n"
|
||||
#~ msgstr ""
|
||||
#~ "Avant d'utiliser une chaîne en front-end, il faut déclarer une nouvelle constante dans `client/@types/global.d.ts`.\n"
|
||||
#~ "La constante doit :\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "start with the prefix \"LOC_\"\n"
|
||||
#~ msgstr "commencer par le préfixe \"LOC_\"\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "use the string key, upper cased\n"
|
||||
#~ msgstr "utiliser la clé de la chaîne, en majuscule\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "you just have to declare its type, not its value\n"
|
||||
#~ msgstr "vous ne devez déclarer que son type, pas sa valeur\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "For example, to use \"use_chat\", you have to declare:\n"
|
||||
#~ msgstr ""
|
||||
#~ "Par exemple, pour utiliser \"use_chat\", vous devez déclarer :\n"
|
||||
#~ "e, to use \"use_chat\", you have to declare:\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "declare const LOC_USE_CHAT: string\n"
|
||||
#~ msgstr "declare const LOC_USE_CHAT: string\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "The `build-client.js` script will read the `client/@types/global.d.ts`,\n"
|
||||
#~ "search for such constants, and load their values from the languages files.\n"
|
||||
#~ msgstr "Le script `build-client.js` va lire ce fichier `client/@types/global.d.ts`, chercher pour de telles constantes, et charger leurs valeurs depuis le fichier de langue.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code.\n"
|
||||
#~ msgstr "Vous pouvez maintenant utiliser `peertubeHelpers.translate(LOC_USE_CHAT)` dans votre code.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid "Use translations in back-end code"
|
||||
#~ msgstr "Utiliser un segment dans le code back-end"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "In theory, the only parts of the backend code where you need localization is the\n"
|
||||
#~ "settings declaration and standardized data (ActivityPub, RSS, ...).\n"
|
||||
#~ "Here we need to get english strings from the translation key.\n"
|
||||
#~ msgstr ""
|
||||
#~ "En théorie, les seules parties du code qui ont besoin de traductions sont les déclarations de paramètres et la génération de données standardisées (ActivityPub, RSS, ...).\n"
|
||||
#~ "Ici on a besoin de récupérer les chaînes anglaises à partir des clés de traduction.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "Note: you should never need another language translation from backend code.\n"
|
||||
#~ "Localization must be done on front-end.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Note: vous ne devriez jamais avoir besoin d'autres langues que l'anglais pour le code backend.\n"
|
||||
#~ "Les traductions doivent se faire coté front-end.\n"
|
||||
|
||||
#, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "There is a `lib/loc.ts` module providing a `loc()` function.\n"
|
||||
#~ "Just pass it the key to have the english string: `loc('diagnostic')`'.\n"
|
||||
#~ msgstr ""
|
||||
#~ "Il y a un module `lib/loc.ts` qui fourni une function `loc()`.\n"
|
||||
#~ "Passez juste la clé pour récupérer la phrase anglaise: `loc('diagnostic')`.\n"
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Gaelic <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/gd/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Galician <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/gl/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Croatian <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/hr/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Hungarian <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/hu/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Icelandic <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/is/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 14:21+0000\n"
|
||||
"Last-Translator: John Livingston <git@john-livingston.fr>\n"
|
||||
"Language-Team: Italian <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/it/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 14:21+0000\n"
|
||||
"Last-Translator: John Livingston <git@john-livingston.fr>\n"
|
||||
"Language-Team: Japanese <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/ja/>\n"
|
||||
@ -572,6 +572,230 @@ msgstr "はじめに"
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr "新しい機能のリクエスト、バグ、プラグインのセットアップ時に問題が発生した場合は、[Github issue tracker](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues)から報告してください。\n"
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, fuzzy, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr "ドキュメンテーション"
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, fuzzy, no-wrap
|
||||
@ -1769,13 +1993,3 @@ msgstr ""
|
||||
#: support/documentation/content/en/issues/_index.md
|
||||
msgid "If you are a webdesigner or a ConverseJS/Prosody/XMPP expert, and want to help improve this plugin, you are welcome."
|
||||
msgstr "あなたがWebデザイナーの方または、ConverseJS/Prosody/XMPP上級者の方の場合は、このプラグインをより良くする為に力を貸してください、歓迎致します。"
|
||||
|
||||
#, fuzzy, no-wrap
|
||||
#~ msgid "Documentation translation"
|
||||
#~ msgstr "ドキュメンテーション"
|
||||
|
||||
#, fuzzy, no-wrap
|
||||
#~ msgid ""
|
||||
#~ "If you think there is a missing locale, please check first if it is handled in Peertube.\n"
|
||||
#~ "If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it.\n"
|
||||
#~ msgstr "新しい機能のリクエスト、バグ、プラグインのセットアップ時に問題が発生した場合は、[Github issue tracker](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues)から報告してください。\n"
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Kabyle <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/kab/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Norwegian Bokmål <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/nb_NO/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Dutch <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/nl/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Norwegian Nynorsk <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/nn/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Occitan <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/oc/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Polish <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/pl/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Portuguese <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/pt/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Russian <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/ru/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Albanian <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/sq/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Swedish <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/sv/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:52+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Thai <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/th/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:53+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Toki Pona <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/tok/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:53+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Ukrainian <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/uk/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:53+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Vietnamese <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/vi/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:53+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Chinese (Simplified) <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/zh_Hans/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
@ -6,7 +6,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: peertube-plugin-livechat-documentation VERSION\n"
|
||||
"POT-Creation-Date: 2023-07-17 16:56+0200\n"
|
||||
"POT-Creation-Date: 2023-07-17 17:09+0200\n"
|
||||
"PO-Revision-Date: 2023-07-17 10:53+0000\n"
|
||||
"Last-Translator: Anonymous <noreply@weblate.org>\n"
|
||||
"Language-Team: Chinese (Traditional) <https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat-documentation/zh_Hant/>\n"
|
||||
@ -571,6 +571,229 @@ msgstr ""
|
||||
msgid "Interested in contributing? Awesome!"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate the plugin"
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: title
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can contribute to this plugin translation. Translations are handled using the [Weblate](https://weblate.org/) software, using [Framasoft Weblate instance](https://weblate.framasoft.org/)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never modify directly files in the `languages` folder, this could lead to conflicts."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "How to"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create an account: https://weblate.framasoft.org/accounts/register/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Validate your email and follow the link sent"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Create your password and setup your account"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Go to the plugin project page: https://weblate.framasoft.org/projects/peertube-livechat/peertube-plugin-livechat/"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Choose the locale you want to translate"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Just translate missing sentences, or correct the ones that seems incorrect to you."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There might be some «very technical» strings. If you are not 100% sure of the meaning, or of your translation, you better not translate it, so it will display in english."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding a new locale"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you think there is a missing locale, please check first if it is handled in Peertube. If so, you can [open an issue](https://github.com/JohnXLivingston/peertube-plugin-livechat/issues) to ask for it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Adding new strings / use translations in the code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are working on new features, and need new strings, you can create them directly in Weblate. The english version is mandatory. Start with it."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Each string is linked to a key (for example `use_chat`). Choose an explicit key in english, lower case."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you have to test new strings without waiting for a Weblate merge, you can modify `languages/*.yml` files, but avoid to commit these changes (to minimize conflict risks)."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in front-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Before using a string in front-end, you need to declare a new constant in `client/@types/global.d.ts`. The constant name must:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "start with the prefix \"LOC_\""
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "use the string key, upper cased"
|
||||
msgstr ""
|
||||
|
||||
#. type: Bullet: '* '
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "you just have to declare its type, not its value"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "For example, to use \"use_chat\", you have to declare:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (typescript)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "declare const LOC_USE_CHAT: string\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The `build-client.js` script will read the `client/@types/global.d.ts`, search for such constants, and load their values from the languages files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Now, you can simply call `peertubeHelpers.translate(LOC_USE_CHAT)` in your code."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ###
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Use translations in back-end code"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "In theory, the only parts of the backend code where you need localization is the settings declaration and standardized data (ActivityPub, RSS, ...). Here we need to get english strings from the translation key."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Note: you should never need another language translation from backend code. Localization must be done on front-end."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a `lib/loc.ts` module providing a `loc()` function. Just pass it the key to have the english string: `loc('diagnostic')`'."
|
||||
msgstr ""
|
||||
|
||||
#. type: Title ##
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "Documentation translation"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "The documentation translation is done using the corresponding Weblate component."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "There is a specific \"Hugo shortcodes\" you can use to display an application string. Saying you want to display the name of the button \"open_chat_new_window\", you can use this in the documentation markdown file:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (hugo)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid "{{%/* livechat_label open_chat_new_window */%}}\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "You can also prevent a whole page from being translating by adding `livechatnotranslation: true` in the Yaml Font Matter section:"
|
||||
msgstr ""
|
||||
|
||||
#. type: Fenced code block (yaml)
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
#, no-wrap
|
||||
msgid ""
|
||||
" ---\n"
|
||||
" title: \"Third party\"\n"
|
||||
" description: \"Displaying the livechat with 3rd party software.\"\n"
|
||||
" weight: 20\n"
|
||||
" chapter: false\n"
|
||||
" livechatnotranslation: true\n"
|
||||
" ---\n"
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Never translate a string in the `livechat.en.pot` file, it would be ignored. Instead, edit directly the markdown files."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If a string contains a link, you can change it for the correct link in the translated language. For example, for a link to this documentation, you can add the language code in the url."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "Some strings are block of code. Don't translate code. But you can translate comments, or parameters if relevant."
|
||||
msgstr ""
|
||||
|
||||
#. type: Plain text
|
||||
#: support/documentation/content/en/contributing/translate/_index.md
|
||||
msgid "If you are not sure, just don't translate, and ask what to do."
|
||||
msgstr ""
|
||||
|
||||
#. type: Yaml Front Matter Hash Value: description
|
||||
#: support/documentation/content/en/credits/_index.md
|
||||
#, no-wrap
|
||||
|
Loading…
x
Reference in New Issue
Block a user