Skip to content

Commit

Permalink
add custom translation
Browse files Browse the repository at this point in the history
  • Loading branch information
PrajwolAmatya committed Sep 25, 2024
1 parent d4ec147 commit 8c8fec7
Show file tree
Hide file tree
Showing 6 changed files with 146 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,18 @@ config = {
"apiSharingNgShareInvitation",
"apiSharingNgLinkSharePermission",
"apiSharingNgLinkShareRoot",
"apiActivities",
],
"skip": False,
},
"apiActivities": {
"skip": False,
"suites": [
"apiActivities",
],
"extraServerEnvironment": {
"OCIS_TRANSLATION_PATH": "tests/config/translations/",
},
},
"apiAccountsHashDifficulty": {
"skip": False,
"suites": [
Expand Down Expand Up @@ -133,6 +141,7 @@ config = {
"POSTPROCESSING_STEPS": "virusscan",
"OCIS_ASYNC_UPLOADS": True,
"OCIS_ADD_RUN_SERVICES": "antivirus",
"OCIS_TRANSLATION_PATH": "tests/config/translations/",
},
},
"apiSearchContent": {
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/features/apiActivities/activities.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ Feature: check activities
}
"""

@issue-9856 @issue-10127 @skip
@issue-9856 @issue-10127
Scenario: check activity message with different language
Given user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt"
And user "Alice" has switched the system language to "de" using the Graph API
Expand Down Expand Up @@ -1302,7 +1302,7 @@ Feature: check activities
"pattern": "%user_id_pattern%"
},
"displayName": {
"const": "Alice"
"const": "Alice Hansen"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ Feature: Notification
}
"""
Examples:
| language | subject | message |
| de | Space freigegeben | Alice Hansen hat Sie zu Space notification checking hinzugefügt |
| es | Space compartido | Alice Hansen te añadió al Space notification checking |
| language | subject | message |
| de | Space freigegeben | Alice Hansen hat Sie zu Space notification checking |
| es | Space compartido | Alice Hansen te añadió al Space notification checking |


Scenario: all notification related to space get deleted when the sharer deletes that resource
Expand Down
26 changes: 26 additions & 0 deletions tests/config/translations/de/LC_MESSAGES/activitylog.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Martin <[email protected]>, 2024
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2024-09-21 00:44+0000\n"
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
"Last-Translator: Martin <[email protected]>, 2024\n"
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

# Activities
msgid "{user} added {resource} to {folder}"
msgstr "{user} hat {resource} zu {folder} hinzugefügt"
54 changes: 54 additions & 0 deletions tests/config/translations/de/LC_MESSAGES/userlog.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Florian Lenz <[email protected]>, 2023
# Edith Parzefall, 2023
# Martin <[email protected]>, 2023
# Michael Barz <[email protected]>, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2024-09-10 00:39+0000\n"
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
"Last-Translator: Michael Barz <[email protected]>, 2023\n"
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

# Antivirus
msgid "Virus found"
msgstr "Virus gefunden"

msgid "Virus found in {resource}. Upload not possible. Virus: {virus}"
msgstr "In {resource} wurde potenziell schädlicher Code gefunden. Das Hochladen wurde abgebrochen. Grund: {virus}"

# Notifications
msgid "Space shared"
msgstr "Space freigegeben"

msgid "{SpaceSharer} added you to Space notification checking"
msgstr "{SpaceSharer} hat Sie zu Space notification checking"

msgid "{user} added you to Space {space}"
msgstr "{user} hat Sie zu Space {space}"

msgid "Instance will be shut down and deprovisioned"
msgstr "Instanz wird heruntergefahren und außer Betrieb genommen werden."

msgid "Attention! The instance will be shut down and deprovisioned on {date}. Download all your data before that date as no access past that date is possible."
msgstr "Achtung! Diese Instanz wird am {date} heruntergefahren und außer Betrieb genommen werden. Laden Sie Ihre Daten vor diesem Tag herunter, da Sie danach nicht mehr darauf zugreifen können."

msgid "Resource shared"
msgstr "Neue Freigabe"

msgid "{user} shared {resource} with you"
msgstr "{user} hat {resource} mit Ihnen geteilt"
51 changes: 51 additions & 0 deletions tests/config/translations/es/LC_MESSAGES/userlog.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Juan Carlos Garrote, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2024-09-10 00:39+0000\n"
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
"Last-Translator: Juan Carlos Garrote, 2023\n"
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"

# Antivirus
msgid "Virus found"
msgstr "Virus encontrado"

msgid "Virus found in {resource}. Upload not possible. Virus: {virus}"
msgstr "Virus encontrado en {resource}. La subida no ha sido posible. Virus: {virus}"

# Notifications
msgid "Space shared"
msgstr "Space compartido"

msgid "{SpaceSharer} added you to Space notification checking"
msgstr "{SpaceSharer} te añadió al Space notification checking"

msgid "{user} added you to Space {space}"
msgstr "{user} te añadió al Space {space}"

msgid "Instance will be shut down and deprovisioned"
msgstr "La instancia se cerrará y se desaprovisionará"

msgid "Attention! The instance will be shut down and deprovisioned on {date}. Download all your data before that date as no access past that date is possible."
msgstr "¡Atención! La instancia se cerrará y se desaprovisionará el {date}. Descarga todos tus datos antes de esa fecha, puesto que el acceso pasada la fecha no será posible."

msgid "Resource shared"
msgstr "Recurso compartido"

msgid "{user} shared {resource} with you"
msgstr "{user} compartió {resource} contigo"

0 comments on commit 8c8fec7

Please sign in to comment.