×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: url-variable 'language' conflicts (ctransifex)

url-variable 'language' conflicts (ctransifex) 12 years 2 weeks ago #18655

  • George Papadakis
  • George Papadakis's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Please consider changing variable name 'language' for frontend ctransifex download links as it conflicts with some language related code or extensions !!

What happens is that the download controller of ctransifex component gets a value of ZERO for 'language' URL variable because the variable is set by other extension to e.g en-GB and then converted to int

the final result in frontend is an exception with "Something went wrong"

Also maybe replace the exception "Something went wrong" with :
JError::raiseWarning(500, 'Language pack for language with is: '.$langpack_id.' was not found');

Regards

url-variable 'language' conflicts (ctransifex) 12 years 2 weeks ago #18659

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Care to submit a pull request? github.com/compojoom/ctransifex
Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.093 seconds