Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 3de33062 authored by Davis Ragels's avatar Davis Ragels
Browse files

WEB-T version 1.0.2

parent f158a982
No related branches found
No related tags found
No related merge requests found
WEB-T Joomla extension
version: 1.0.1
version: 1.0.x
========================================================================================
Copyright (C) 2023 European Union
......
......@@ -2,12 +2,12 @@
<extension type="component" method="upgrade">
<name>com_webt</name>
<creationDate>September 2023</creationDate>
<author>Tilde</author>
<authorEmail>tilde@tilde.lv</authorEmail>
<authorUrl>https://tilde.com</authorUrl>
<author>European Commission</author>
<authorEmail>helpdesk@web-t.eu</authorEmail>
<authorUrl>https://commission.europa.eu</authorUrl>
<copyright>European Commission</copyright>
<license>GPL v2 or later</license>
<version>1.0.1</version>
<version>1.0.2</version>
<description>Component that allows you to manage WEB-T configuration and pre-translate articles.</description>
<namespace path="src/">Component\Webt</namespace>
......
......@@ -253,15 +253,23 @@ class ArticleModel extends BaseDatabaseModel {
$subQuery = $this->_db->getQuery( true )
->select( 'oa.key' )
->from( $this->_db->quoteName( '#__content', 'oc' ) )
->join( 'INNER', $this->_db->quoteName( '#__associations', 'oa' ) . ' ON ' . $this->_db->quoteName( 'oc.id' ) . ' = ' . $this->_db->quoteName( 'oa.id' ) )
->where( $this->_db->quoteName( 'oc.id' ) . " = $sourceArticleId" );
->join( 'INNER', $this->_db->quoteName( '#__associations', 'oa' ) . ' ON ' .
$this->_db->quoteName( 'oc.id' ) . ' = ' . $this->_db->quoteName( 'oa.id' ) . ' AND ' .
$this->_db->quoteName( 'oa.context' ) . ' = ' . $this->_db->quote( 'com_content.item' )
)
->where( $this->_db->quoteName( 'oc.id' ) . " = $sourceArticleId" )
->setLimit(1);
$query = $this->_db->getQuery( true )
->select( 'tc.*' )
->from( $this->_db->quoteName( '#__content', 'tc' ) )
->join( 'INNER', $this->_db->quoteName( '#__associations', 'ta' ) . ' ON ' . $this->_db->quoteName( 'tc.id' ) . ' = ' . $this->_db->quoteName( 'ta.id' ) )
->join( 'INNER', $this->_db->quoteName( '#__associations', 'ta' ) . ' ON ' .
$this->_db->quoteName( 'tc.id' ) . ' = ' . $this->_db->quoteName( 'ta.id' ) . ' AND ' .
$this->_db->quoteName( 'ta.context' ) . ' = ' . $this->_db->quote( 'com_content.item' )
)
->where( $this->_db->quoteName( 'tc.language' ) . ' = ' . $this->_db->quote( $translationLangcode ) )
->where( $this->_db->quoteName( 'ta.key' ) . ' = (' . $subQuery . ')' );
->where( $this->_db->quoteName( 'ta.key' ) . ' = (' . $subQuery . ')' )
->setLimit(1);
$this->_db->setQuery( $query );
......
......@@ -3,12 +3,12 @@
<name>WEB-T Library</name>
<libraryname>Webt</libraryname>
<creationDate>September 2023</creationDate>
<author>Tilde</author>
<authorEmail>tilde@tilde.lv</authorEmail>
<authorUrl>https://tilde.com</authorUrl>
<author>European Commission</author>
<authorEmail>helpdesk@web-t.eu</authorEmail>
<authorUrl>https://commission.europa.eu</authorUrl>
<copyright>European Commission</copyright>
<license>GPL v2 or later</license>
<version>1.0.1</version>
<version>1.0.2</version>
<description>Library with WEB-T functions.</description>
<files>
......
......@@ -2,12 +2,12 @@
<extension type="plugin" group="content" method="upgrade">
<name>WEB-T Auto Translator</name>
<creationDate>September 2023</creationDate>
<author>Tilde</author>
<authorEmail>tilde@tilde.lv</authorEmail>
<authorUrl>https://tilde.com</authorUrl>
<author>European Commission</author>
<authorEmail>helpdesk@web-t.eu</authorEmail>
<authorUrl>https://commission.europa.eu</authorUrl>
<copyright>European Commission</copyright>
<license>GPL v2 or later</license>
<version>1.0.1</version>
<version>1.0.2</version>
<description>This plugin automatically translates source language articles to other content languages installed in Joomla after the article is saved.</description>
<files>
<filename plugin="webt">webt.php</filename>
......
......@@ -2,12 +2,12 @@
<extension type="plugin" group="webservices" method="upgrade">
<name>WEB-T ETranslation</name>
<creationDate>September 2023</creationDate>
<author>Tilde</author>
<authorEmail>tilde@tilde.lv</authorEmail>
<authorUrl>https://tilde.com</authorUrl>
<author>European Commission</author>
<authorEmail>helpdesk@web-t.eu</authorEmail>
<authorUrl>https://commission.europa.eu</authorUrl>
<copyright>European Commission</copyright>
<license>GPL v2 or later</license>
<version>1.0.1</version>
<version>1.0.2</version>
<description>This plugin creates an endpoint for etranslation receiving.</description>
<files>
<filename plugin="webt_etranslation">webt_etranslation.php</filename>
......
......@@ -3,14 +3,14 @@
<name>WEB-T</name>
<packagename>webt</packagename>
<creationDate>September 2023</creationDate>
<version>1.0.1</version>
<version>1.0.2</version>
<license>GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html</license>
<url>https://website-translation.language-tools.ec.europa.eu/index_en</url>
<author>Tilde</author>
<author>European Commission</author>
<packager>Tilde</packager>
<packagerurl>https://tilde.com</packagerurl>
<authorEmail>tilde@tilde.lv</authorEmail>
<authorUrl>https://tilde.com</authorUrl>
<authorEmail>helpdesk@web-t.eu</authorEmail>
<authorUrl>https://commission.europa.eu</authorUrl>
<description>Package that translates articles to content languages both manually and automatically.</description>
<copyright>2023 European Union</copyright>
<scriptfile>script.php</scriptfile>
......
......@@ -5,7 +5,7 @@
<description>WEB-T package update</description>
<element>pkg_webt</element>
<type>package</type>
<version>1.0.1</version>
<version>1.0.2</version>
<downloads>
<downloadurl type="full" format="zip">https://website-translation.language-tools.ec.europa.eu/document/download/6fdcf055-e067-477f-9a29-aa4e8d77d6b0_en?filename=web-t_joomla.zip</downloadurl>
</downloads>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment