jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Author Topic: Translations for items without id, like component/users  (Read 16672 times)

Finarfin

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Translations for items without id, like component/users
« on: January 13, 2013, 09:06:55 pm »

Accesing:

http://localhost/joomla/index.php/es/component/users/?view=login

Give me this:


Call stack
#   Function   Location
1   JSite->render()   C:\xampp\htdocs\joomla\index.php:48
2   JDocumentHTML->render()   C:\xampp\htdocs\joomla\includes\application.php:271
3   JDocumentHTML->_renderTemplate()   C:\xampp\htdocs\joomla\libraries\joomla\document\html\html.php:433
4   JDocumentHTML->getBuffer()   C:\xampp\htdocs\joomla\libraries\joomla\document\html\html.php:655
5   JDocumentRendererModules->render()   C:\xampp\htdocs\joomla\libraries\joomla\document\html\html.php:371
6   JDocumentRendererModule->render()   C:\xampp\htdocs\joomla\libraries\joomla\document\html\renderer\modules.php:39
7   JModuleHelper::renderModule()   C:\xampp\htdocs\joomla\libraries\joomla\document\html\renderer\module.php:107
8   include()   C:\xampp\htdocs\joomla\libraries\joomla\application\module\helper.php:175
9   modJdLanguageHelper::getLink()   C:\xampp\htdocs\joomla\modules\mod_jdlanguage\mod_jdlanguage.php:22
10   JdDatabase->loadObject()   C:\xampp\htdocs\joomla\modules\mod_jdlanguage\helper.php:43
11   JdDatabase->loadTranslation()   C:\xampp\htdocs\joomla\libraries\jdiction\database\jddatabase.php:232
12   JDatabase->loadRow()   C:\xampp\htdocs\joomla\libraries\jdiction\database\jddatabase.php:366
13   JdDatabase->execute()   C:\xampp\htdocs\joomla\libraries\joomla\database\database.php:1170
14   JdDatabaseAdapter->execute()   C:\xampp\htdocs\joomla\libraries\jdiction\database\jddatabase.php:423
15   JDatabaseMySQLi->execute()   C:\xampp\htdocs\joomla\libraries\jdiction\database\database\mysqli.php:98
16   JError::raiseError()   C:\xampp\htdocs\joomla\libraries\joomla\database\database\mysqli.php:396
17   JError::raise()   C:\xampp\htdocs\joomla\libraries\joomla\error\error.php:251
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Translations for items without id, like component/users
« Reply #1 on: January 13, 2013, 10:30:49 pm »

There is no query ;-)

Anyway jdiction does not translation such sites. It does not touch any query which has not a table in it it knows. And com_users is unknown for jdiction so the error should not be the fault of jdiction.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Finarfin

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Translations for items without id, like component/users
« Reply #2 on: January 13, 2013, 10:36:33 pm »

Why it try to translate it? I mean, if jdiction don´t know how to handle that link, maybe he needs to resort to the default behaviour:P
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Translations for items without id, like component/users
« Reply #3 on: January 13, 2013, 10:38:09 pm »

jdiction checks the sql query if in this query is a table it knows it tries to translate it.

thats because there could be a module on the page that show a article or the menu ;-)
Logged
Joomla! 5.0 Release Manager
Vote at JED

Finarfin

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Translations for items without id, like component/users
« Reply #4 on: January 14, 2013, 12:08:06 pm »

mmm I think I understand. Anyway, any chance to have a "if this link is not jdiction valid, dont translate it"?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Translations for items without id, like component/users
« Reply #5 on: January 14, 2013, 12:28:54 pm »

No there is no blacklists and there maybe a problem because jdiction replaces the database driver.

But this should not change anything, if it does not find any tables that needed translation.

Could you post the query where the problem occur? Normally the query is not correct.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Finarfin

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Translations for items without id, like component/users
« Reply #6 on: January 14, 2013, 01:14:28 pm »

I was trying to add a menu entry which menutype was a "Login form"
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Translations for items without id, like component/users
« Reply #7 on: January 14, 2013, 01:29:51 pm »

Could you give me the url??
Logged
Joomla! 5.0 Release Manager
Vote at JED

Finarfin

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Translations for items without id, like component/users
« Reply #8 on: January 14, 2013, 02:54:39 pm »

I told you already ;)

When you create a menu entry which menutype was a "Login form", when you click on it you go to something like:
http://localhost/joomla/index.php/es/component/users/?view=login

I can´t give you access, is local for now.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: Translations for items without id, like component/users
« Reply #9 on: January 14, 2013, 02:59:02 pm »

Works fine for me:
http://jdiction.org/en/test
Logged
Joomla! 5.0 Release Manager
Vote at JED