Commit Graph

40 Commits

Author SHA1 Message Date
Ingo Schommer
da30096d65 Set current locale on POST requests (fixes #156) 2015-06-01 20:54:38 +12:00
Ingo Schommer
a0a6ec2f91 Consistently use uppercase "Locale" GET param
Causes inconsistent behaviour between form field name ("Locale")
and view state in GET parameters ("Locale" and "locale").

Related to #156.
2015-06-01 20:54:04 +12:00
Ingo Schommer
36c4125fbc Merge pull request #153 from Zauberfisch/master
Use lowercase L for ?locale= in TranslatableCMSMainExtension->updateLinkPageAdd()
2013-11-22 12:06:14 -08:00
Ingo Schommer
06ab7c9084 Fixed template entity namespace messing up Transifex 2013-11-14 14:37:24 +01:00
Zauberfisch
d194b50b94 Use lowercase L for ?locale= in TranslatableCMSMainExtension->updateLinkPageAdd() 2013-10-28 00:26:59 +00:00
Ingo Schommer
6336632713 Fall back to global locale state for link updates (#139) 2013-09-05 16:06:58 +02:00
Mark-M
6394f887de Set default field value to current locale 2013-07-17 15:06:42 +01:00
Ingo Schommer
ae27c5adc1 Merge remote-tracking branch 'origin/1.0' 2013-04-26 00:14:22 +02:00
Ingo Schommer
a8e0782900 Don't redirect CMS POST requests (fixes #107) 2013-04-26 00:13:46 +02:00
Ingo Schommer
ba31412fa8 Merge pull request #101 from tractorcow/master-querystring-fixes
BUG Cleaner handling of querystring arguments when selecting locale
2013-04-11 00:56:46 -07:00
Ingo Schommer
5c7682013c Misc 3.1 compat changes
Removed nested_urls check, its the only supported mode now
2013-03-26 13:55:21 +01:00
Damian Mooyman
ad791ca5d8 BUG Cleaner handling of querystring arguments when selecting locale 2013-03-21 16:01:03 +13:00
Ingo Schommer
17195d4e86 3.0 compatibibility (Object::has_extension)
SiteTree::has_extension() is only available in 3.1,
split off 3.0 compat branch to avoid deprecation warnings.

See https://github.com/silverstripe/silverstripe-translatable/issues/98#issuecomment-14020318
2013-02-27 10:48:57 +01:00
Josua2012
ffecb6553d Fix Object::has_extension deprecated('xx','xx') 2013-02-01 18:42:32 +01:00
Ingo Schommer
9454eb31e5 BUGFIX Include URL action when redirecting in CMS
This broke the CMSMain->publishall() action
2013-01-08 19:52:56 +01:00
Ingo Schommer
6413eca05d Merge pull request #70 from lrc/create-member-bugfix
BUGFIX Ensure members can be created with individual locale setting.
2012-11-15 03:38:31 -08:00
Simon Elvery
a4df078f9a BUGFIX Ensure members can be created with individual locale setting. 2012-11-13 16:39:36 +10:00
Niklas Forsdahl
846398d128 Correct translation for language dropdown field in link form 2012-11-12 15:59:06 +02:00
Niklas Forsdahl
616a123ddc ENHANCEMENT: Add language dropdown for link form
Adds a language dropdown to the link form in the html editor, so that linking
to pages in different locales is possible.
2012-11-12 15:48:06 +02:00
Ingo Schommer
51c7d9e2ef Coding conventions fixes (mostly line length) 2012-10-02 22:34:16 +02:00
Ingo Schommer
670575c18a Merge pull request #49 from creamarketing/pages-overview-redirect
BUG: redirect to pages overview not working from page edit view
2012-09-06 13:37:14 -07:00
Niklas Forsdahl
451576f36d BUG: redirect to pages overview not working from page edit view
The redirect to pages overview was not working because the pages overview and page edit views
share the same session namespace, and therefore the checks to see if we need to redirect to
pages overview (i.e. if there is a translated record for the current page) matched also for
the redirected request.

Fixed by checking if we already are on the CMSPagesController before redirecting to it.
2012-09-03 14:40:46 +03:00
Niklas Forsdahl
1c40751d51 BUG: double ajax request for page editing in default locale
When editing a page in the default locale, a double ajax request was done for the editing page.
This was caused by no locale-parameter being set in this case, which caused the default locale
parameter to be added and a new ajax request was made due to this. The extra ajax request caused
the loading-animation to appear after the edit page was loaded, which looks weird.
Fixed by doing a redirect immediately the CMSPagesController is loaded and no locale is set, so
that the default locale parameter gets set at this stage.
2012-09-03 11:10:54 +03:00
Ingo Schommer
c3c9f1f83f BUG Correct GET param name on context menu page add (fixes #45) 2012-08-23 23:06:06 +02:00
Ingo Schommer
1eb107bbaf BUG Setting locale on new pages form
Previously creating a new page in non-default locale wasn't
allowed due to this bug.
2012-08-16 09:30:59 +02:00
Ingo Schommer
6d7700f8f6 BUG Fix admin/myprofile saving
Ignore the extension's init() method being called on
LeftAndMain base class,
which is the case when requests are first routed through
AdminRootController
as an intermediary rather than the endpoint controller
2012-08-14 11:22:42 +02:00
Ingo Schommer
4f433155f1 BUG Check for extensions on record in CMS (fixes #41) 2012-08-13 10:06:12 +02:00
Roland Lehmann
06bb08b594 Added translations for en, en_GB and german 2012-08-11 06:44:33 +02:00
Ingo Schommer
c80f366dd6 BUG Avoid redirecting with duplicate ?locale param 2012-08-07 23:01:39 +02:00
Ingo Schommer
13002cef9f Merge pull request #38 from creamarketing/create-translation-redirect
BUG: Site tree sidebar not updated when creating a new translation
2012-08-07 13:58:40 -07:00
Ruud Arentsen
5b38cc31b8 Translation of SiteConfig
Fixed editing of translated configs, and added a link for the 'add
translation' not working for siteconfigs
2012-08-06 09:39:46 +02:00
Niklas Forsdahl
eaa5555dfc BUG: Site tree sidebar not updated when creating a new translation
The site tree sidebar was not updated when creating a new translation,
due to only CurrentForm and Breadcrumbs fragments being updated by default.

Fixed by explicitly setting the X-Pjax response header to Content on
translation creation.
2012-08-03 13:31:47 +03:00
Ingo Schommer
7e1b7a6240 BUG Redirect on mixed locale/record URLs
Avoids e.g. the pages tree showing two languages at once.
2012-07-16 23:35:28 +02:00
Ingo Schommer
1a4b284b32 Fixed deprecated function usage (#33) 2012-07-04 18:00:45 +02:00
BLU42 Media
01a61f48a4 fixed typo in function call 2012-07-02 16:03:36 -07:00
pasinter
2662571607 bugfix - use $form->getName() instead of deprecated $form->Name() 2012-06-14 22:54:25 +12:00
Ingo Schommer
610874755c BUGFIX 3.0 compatibility: Query manipulation, CMS links, separation of settings fields, new place for language selector on tree 2012-05-15 23:04:57 +02:00
Ingo Schommer
181bb07f4c BUGFIX Fixed createtranslation action (broken after moving to extension) 2011-03-23 10:15:49 +13:00
Ingo Schommer
e40b5f909b MINOR Fixed @package 2011-03-23 10:15:23 +13:00
Ingo Schommer
2a3cc650dc MINOR Initial commit, moved files from 'sapphire' and 'cms' modules 2011-03-22 22:18:48 +13:00