Skip to content

Commit

Permalink
Update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 27, 2024
1 parent cbe4266 commit 49531b8
Show file tree
Hide file tree
Showing 188 changed files with 5,468 additions and 7,324 deletions.
13 changes: 8 additions & 5 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[main]
host = https://www.transifex.com

[djangocms-link.djangocms_link]
file_filter = djangocms_link/locale/<lang>/LC_MESSAGES/django.po
source_file = djangocms_link/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
[o:divio:p:djangocms-link:r:djangocms_link]
file_filter = djangocms_link/locale/<lang>/LC_MESSAGES/django.po
source_file = djangocms_link/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
replace_edited_strings = false
keep_translations = false

7 changes: 5 additions & 2 deletions djangocms_link/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ class Media:
js = ("djangocms_link/link-widget.js",)
css = {"all": ("djangocms_link/link-widget.css",)}

def __init__(self, sites_selector=True):
def __init__(self, site_selector=None):

if site_selector is None:
site_selector = getattr(settings, "DJANGOCMS_LINK_SITE_SELECTOR", False)

widgets = [
Select(
Expand Down Expand Up @@ -204,7 +207,7 @@ def __init__(self, sites_selector=True):
},
),
)
if sites_selector:
if site_selector:
widgets.insert(2, SiteAutocompleteSelect(

Check warning on line 211 in djangocms_link/fields.py

View check run for this annotation

Codecov / codecov/patch

djangocms_link/fields.py#L211

Added line #L211 was not covered by tests
attrs={
"class": "js-link-site-widget",
Expand Down
Binary file removed djangocms_link/locale/af/LC_MESSAGES/django.mo
Binary file not shown.
146 changes: 93 additions & 53 deletions djangocms_link/locale/af/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,119 +8,159 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-03 10:56+0200\n"
"POT-Creation-Date: 2024-10-27 13:38+0100\n"
"PO-Revision-Date: 2016-09-15 09:08+0000\n"
"Language-Team: Afrikaans (https://www.transifex.com/divio/teams/58664/af/)\n"
"Language-Team: Afrikaans (https://app.transifex.com/divio/teams/58664/af/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: af\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: cms_plugins.py:15
msgid "Link"
#: apps.py:7
msgid "django CMS Link"
msgstr ""

#: cms_plugins.py:26
msgid "Link settings"
#: cms_plugins.py:15 models.py:73
msgid "Link"
msgstr ""

#: cms_plugins.py:34
#: cms_plugins.py:27
msgid "Advanced settings"
msgstr ""

#: forms.py:15 models.py:85
#: fields.py:26 forms.py:15
msgid "Internal link"
msgstr ""

#: models.py:27
msgid "Default"
#: fields.py:27
msgid "External link/anchor"
msgstr ""

#: models.py:44
msgid "Open in new window"
#: fields.py:30
msgid "File link"
msgstr ""

#: models.py:45
msgid "Open in same window"
#: fields.py:169
msgid "No destination selected. Use the dropdown to select a destination."
msgstr ""

#: models.py:46
msgid "Delegate to parent"
#: fields.py:175
msgid "https://example.com or #anchor"
msgstr ""

#: models.py:47
msgid "Delegate to top"
#: fields.py:177
msgid ""
"Provide a link to an external URL, including the schema such as 'https://', "
"'tel:', or 'mailto:'. Optionally, add an #anchor (including the #) to scroll"
" to."
msgstr ""

#: models.py:65
msgid "Template"
#: fields.py:186
msgid ""
"Select from available internal destinations. Optionally, add an anchor to "
"scroll to."
msgstr ""

#: models.py:71
msgid "Display name"
#: fields.py:188
msgid "Select internal destination"
msgstr ""

#: models.py:77
msgid "External link"
#: fields.py:194
msgid "#anchor"
msgstr ""

#: models.py:89
msgid "If provided, overrides the external link."
#: fields.py:195
msgid "Provide an anchor to scroll to."
msgstr ""

#: models.py:93
msgid "File link"
#: fields.py:206
msgid "Select a file as destination."
msgstr ""

#: models.py:97
msgid "If provided links a file from the filer app."
#: fields.py:215
msgid "Select site"
msgstr ""

#: models.py:102
msgid "Anchor"
#: fields.py:249
msgid "Select a link type and provide a link."
msgstr ""

#: models.py:105
msgid ""
"Appends the value only after the internal or external link. Do <em>not</em> "
"include a preceding \"#\" symbol."
#: models.py:24
msgid "Default"
msgstr ""

#: models.py:109
msgid "Email address"
#: models.py:41
msgid "Open in new window"
msgstr ""

#: models.py:42
msgid "Open in same window"
msgstr ""

#: models.py:43
msgid "Delegate to parent"
msgstr ""

#: models.py:114
msgid "Phone"
#: models.py:44
msgid "Delegate to top"
msgstr ""

#: models.py:120
#: models.py:61
msgid "Template"
msgstr ""

#: models.py:67
msgid "Display name"
msgstr ""

#: models.py:77
msgid "Target"
msgstr ""

#: models.py:126
#: models.py:83
msgid "Attributes"
msgstr ""

#: models.py:151
#: models.py:109
msgid "<link is missing>"
msgstr ""

#: models.py:246
#, python-brace-format
msgid "Only one of {0} or {1} may be given."
#: models.py:118
msgid "Link is required."
msgstr ""

#: models.py:258
msgid "Please provide a link."
#: validators.py:50
msgid "Enter a valid anchor."
msgstr ""

#: models.py:264
#, python-format
msgid ""
"%(anchor_field_verbose_name)s is not allowed together with %(field_name)s"
#: validators.py:84
msgid "Enter a valid phone number"
msgstr ""

#~ msgid "At least one link is required."
#~ msgid "Link settings"
#~ msgstr ""

#~ msgid "If provided, overrides the external link."
#~ msgstr ""

#~ msgid "If provided links a file from the filer app."
#~ msgstr ""

#~ msgid ""
#~ "Appends the value only after the internal or external link. Do <em>not</em> "
#~ "include a preceding \"#\" symbol."
#~ msgstr ""

#~ msgid "Email address"
#~ msgstr ""

#~ msgid "Phone"
#~ msgstr ""

#~ msgid "Only one of {0} or {1} may be given."
#~ msgstr ""

#~ msgid ""
#~ "%(anchor_field_verbose_name)s is not allowed together with %(field_name)s"
#~ msgstr ""
Binary file removed djangocms_link/locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 49531b8

Please sign in to comment.