Commit Graph

274 Commits

Author SHA1 Message Date
Ingo Schommer
a8e0782900 Don't redirect CMS POST requests (fixes #107) 2013-04-26 00:13:46 +02:00
Ingo Schommer
bc7c0436c0 Merge pull request #106 from g4b0/VIEW_LANGS_permission
BUG: added VIEW_LANGS permission in Translatable::providePermissions()
2013-04-14 14:12:52 -07:00
g4b0
0dc7b41539 BUG: added VIEW_LANGS permission in Translatable::providePermissions() 2013-04-12 09:30:57 +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
Sean Harvey
537c864526 Updating code example in docs for 3.1 compatibility 2013-04-10 11:30:31 +12:00
Ingo Schommer
e2c1a7111e Merge branch '1.0'
Conflicts:
	.travis.yml
	composer.json
2013-04-07 14:26:00 +02:00
Steffen Maaß
9579748e13 FIX: getTranslations should not change the locale-filter-state
If the locale-filter was disabled before calling the method, it would be
enabled after calling getTranslations, this commit now only re-enabled
the locale-filter if it was enabled before calling the method...
2013-04-07 14:23:38 +02:00
Ingo Schommer
7f9dd3e17e Simplified travis builds (using external script) 2013-03-29 09:18:44 +01:00
Ingo Schommer
fb15dae253 Simplified travis builds (using external script) 2013-03-29 09:16:56 +01:00
Ingo Schommer
06762814d6 More versatile travis script 2013-03-28 16:02:06 +01:00
Ingo Schommer
ec213efe76 More versatile travis script 2013-03-28 15:28:21 +01:00
cam-findlay
232c187850 merged $allCodes returns items with nested array
items from the common_locales in line 1493 return nested array of "name"=>LangName,"native"=>NativeName.
need to make sure to pull the "name" parameter from the array for the $returnMap.
Otherwise was returning:

[Notice] Undefined offset: 0
2013-03-28 15:26:42 +01:00
Sean Harvey
ba32a53c79 3.1 fixes 2013-03-28 15:17:16 +13: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
Ingo Schommer
a3ff187938 Using Config API to retrieve core values (fixes #103)
Required for 3.1 compat
2013-03-26 00:49:58 +01:00
Damian Mooyman
ad791ca5d8 BUG Cleaner handling of querystring arguments when selecting locale 2013-03-21 16:01:03 +13:00
Ingo Schommer
2dff101b45 Removed 3.0 tests from master, since it only supports 3.1+ 2013-03-19 13:09:31 +01:00
Ingo Schommer
a9d9dae824 Fixed <% control %> usage in docs 2013-03-19 11:33:03 +01:00
Ingo Schommer
20c2e9a190 Fixed add_extension() and add_to_class() usage 2013-03-19 09:59:08 +01:00
Ingo Schommer
2f0a629df1 Fixed extraStatics usage 2013-03-19 09:44:15 +01:00
Simon Elvery
68188a3ae8 FIX Retrieve list of translatable fields not database fields 2013-03-06 11:46:20 +10:00
Ingo Schommer
21707de1ee Readded _config.php 2013-02-28 00:58:53 +01:00
Simon Elvery
6460c089ca NEW Better transformation of form fields (specifically CheckboxField) 2013-02-28 00:53:28 +01:00
Simon Elvery
53a7b6a633 BUG Make original field label translatable 2013-02-28 00:52:52 +01:00
Ingo Schommer
3c5ed2e866 Raised min requirements to 3.1
Mainly due to SiteTree::has_extension() usage
2013-02-27 12:05:37 +01: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
Ingo Schommer
02fb7b6772 Merge pull request #95 from lrc/config
MINOR Move config to yaml
2013-02-19 01:00:01 -08:00
Simon Elvery
a34bc10a50 MINOR Move config to yaml 2013-02-19 12:19:59 +10:00
Will Rossiter
0f2f463677 Merge pull request #92 from Josua2012/master
FIX: Update has_extension calls.
2013-02-01 14:03:43 -08:00
Josua2012
ffecb6553d Fix Object::has_extension deprecated('xx','xx') 2013-02-01 18:42:32 +01:00
Ingo Schommer
d92c71d1d3 Merge pull request #89 from ARNHOE/patch-1
Dutch language
2013-01-22 11:59:46 -08:00
ARNHOE
55eb0d12da Dutch language
Surprised me is wasn't there yet, but here it is!
2013-01-22 10:40:11 -08:00
Ingo Schommer
2e240cfa28 Merge pull request #88 from marcinkonys/master
Lithuanian translation
2013-01-21 23:50:14 -08:00
marcinkonys
f64301dcf5 Lithuanian translation 2013-01-21 18:59:48 -08:00
Ingo Schommer
16429a1f9b Merge pull request #83 from priithansen/master
Estonian translation file
2013-01-21 01:13:28 -08:00
priithansen
24657474a7 Allcreated key added 2013-01-21 00:30:14 +02:00
Priit Hansen
1e1e050e6b Estonian translation 2013-01-19 16:46:57 +02:00
Ingo Schommer
cad776c2f8 BUG Refactored updateCMSFields() logic (can be called repeatedly)
This builds on 44f8180110, but reverts most of it.
The changeset had a logical flaw where it stored state
on the Translatable extension where it was specific to a FieldList.
This meant side effects when getCMSFields() was called more than once,
such as in the CMSSettingsController template.

Note: We shouldn't need to call getCMSFields() more than once
because its an expensive call, but that's a missing feature
in the template caching layer rather than a problem with the
Translatable extension.
2013-01-17 12:19:59 +01:00
drzax
1289b76482 Correct example for adding a new locale. 2013-01-10 00:41:54 +01:00
Simon Elvery
27208655b9 ENHANCEMENT Don't show translations dropdown if all translations have been created. 2013-01-10 00:39:45 +01:00
Simon Elvery
44f8180110 NEW Make it easier to show original values for custom fields. 2013-01-10 00:35:59 +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
Roman
061057ca04 Added a callback hook "onTranslatableCreate" that can be used to create translations of dependent objects 2012-12-17 17:24:24 +01:00
Ingo Schommer
084b22a414 Added some installation pointers 2012-12-03 10:11:45 +01:00
Ingo Schommer
f925a4102e BUG dev/build fails to add extra fields to SiteConfig (fixes #65)
Caused by Translatable->populateSiteConfigDefaults()
triggering before newly created fields are available in the
"SiteConfig" database table.
2012-11-15 13:08:14 +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
Ingo Schommer
9032711ea0 Merge pull request #69 from lrc/hasones-translatable
BUGFIX Allow has_one relationships to be translated.
2012-11-15 03:37:12 -08:00
Ingo Schommer
8b33120c8c Merge pull request #68 from lrc/visual-enhancements
ENHANCEMENT Better visual hierarchy in CMS for translated objects.
2012-11-15 03:36:27 -08:00
Ingo Schommer
5270364efc Merge pull request #67 from creamarketing/languagedropdown-in-linkform
ENHANCEMENT: Add language dropdown for link form
2012-11-15 03:34:21 -08:00
Simon Elvery
a4df078f9a BUGFIX Ensure members can be created with individual locale setting. 2012-11-13 16:39:36 +10:00