-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
169 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
# 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: | ||
# Alex <[email protected]>, 2024 | ||
# | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
|
@@ -25,3 +25,38 @@ msgstr "" | |
#: pkg/service/v0/spacetemplates.go:37 | ||
msgid "Here you can add a description for this Space." | ||
msgstr "Здесь вы можете добавить описание этого пространства." | ||
|
||
#: pkg/unifiedrole/unifiedrole.go:87 | ||
msgid "Can edit" | ||
msgstr "" | ||
|
||
#. UnifiedRole Viewer, Role DisplayName (resolves directly) | ||
#: pkg/unifiedrole/unifiedrole.go:79 | ||
msgid "Can view" | ||
msgstr "" | ||
|
||
#. default description for new spaces | ||
#: pkg/service/v0/spacetemplates.go:31 | ||
msgid "Here you can add a description for this Space." | ||
msgstr "" | ||
|
||
#. UnifiedRole Viewer, Role Description (resolves directly) | ||
#. UnifiedRole SpaceViewer, Role Description (resolves directly) | ||
#: pkg/unifiedrole/unifiedrole.go:77 pkg/unifiedrole/unifiedrole.go:82 | ||
msgid "View and download." | ||
msgstr "" | ||
|
||
#: pkg/unifiedrole/unifiedrole.go:91 | ||
msgid "View, download and edit." | ||
msgstr "" | ||
|
||
#: pkg/unifiedrole/unifiedrole.go:92 | ||
msgid "View, download and upload." | ||
msgstr "" | ||
|
||
#. canEdit := "Can edit" | ||
#. UnifiedRole Editor, Role Description (resolves directly) | ||
#. UnifiedRole SpaseEditor, Role Description (resolves directly) | ||
#: pkg/unifiedrole/unifiedrole.go:86 pkg/unifiedrole/unifiedrole.go:90 | ||
msgid "View, download, upload, edit, add and delete." | ||
msgstr "" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package l10n | ||
|
||
import ( | ||
"embed" | ||
|
||
l10npkg "github.com/owncloud/ocis/v2/ocis-pkg/l10n" | ||
) | ||
|
||
var ( | ||
//go:embed locale | ||
_localeFS embed.FS | ||
) | ||
|
||
const ( | ||
// subfolder where the translation files are stored | ||
_localeSubPath = "locale" | ||
|
||
// domain of the graph service (transifex) | ||
_domain = "graph" | ||
) | ||
|
||
func Translate(content, locale, defaultLocale string) string { | ||
t := l10npkg.NewTranslatorFromCommonConfig(defaultLocale, _domain, "", _localeFS, _localeSubPath) | ||
return t.Translate(content, locale) | ||
} | ||
|
||
func NewTranslateLocation(locale, defaultLocale string) func(string, ...any) string { | ||
t := l10npkg.NewTranslatorFromCommonConfig(defaultLocale, _domain, "", _localeFS, _localeSubPath) | ||
return t.Locale(locale).Get | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters