Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.1.0 #75

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Enupal Translate Changelog

## 4.1.0 - 2025.01.07

### Fixed
- Fixed `Variable "elementInstance" does not exist` error introduced on Craft CMS v5.5.4 ([#74])

[#74]: https://github.com/enupal/translate/issues/74

## 4.0.3 - 2024.08.26

### Fixed
- Fixed the issue where the source column was not shown on the index page ([#71])

- [#71]: https://github.com/enupal/translate/issues/71
[#71]: https://github.com/enupal/translate/issues/71

## 4.0.2 - 2024.06.22

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "enupal/translate",
"description": "Translate your website templates and plugins into multiple languages. Bulk translation with Google Translate or Yandex.",
"version": "4.0.3",
"version": "4.1.0",
"type": "craft-plugin",
"autoload": {
"psr-4": {
"enupal\\translate\\": "src/"
}
},
"require": {
"craftcms/cms": "^5.0.0",
"craftcms/cms": "^5.5.4",
"enupal/yandex-translate": "1.0.0",
"stichoza/google-translate-php": "4.1.5",
"viniciusgava/google-translate-api": "3.1.0"
Expand Down
6 changes: 3 additions & 3 deletions src/templates/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<a id="donwload-button" class="formsubmit translations-download-button"
data-process="download"
data-action="enupal-translate/translate/download"
data-siteId="{{ elementInstance.siteId }}">
data-siteId="{{ selectedSite.id }}">
{{ "Download"|t('enupal-translate') }}
</a>
</li>
Expand All @@ -61,7 +61,7 @@
{{ csrfInput() }}
<input type="hidden" name="action" value="enupal-translate/translate/upload">
{{ redirectInput('enupal-translate') }}
<input type="hidden" id="importSiteId" name="importSiteId" value="{{ elementInstance.siteId }}">
<input type="hidden" id="importSiteId" name="importSiteId" value="{{ selectedSite.id }}">
<input type="file" accept=".csv" name="translations-upload" style="display: none" />
</form>
<div class="btn submit translations-upload-button" data-icon="upload" style="position: relative; overflow: hidden;" role="button">{{ "Import file"|t('enupal-translate') }}</div>
Expand All @@ -80,7 +80,7 @@
<form method="post" id="translate-ajax" accept-charset="utf-8">
{{ csrfInput() }}
<input type="hidden" name="action" value="enupal-translate/translate/save">
<input type="hidden" name="siteId" value="{{ elementInstance.siteId }}">
<input type="hidden" name="siteId" value="{{ selectedSite.id }}">

{{ parent() }}
</form>
Expand Down