Commit Graph

199 Commits

Author SHA1 Message Date
Ingo Schommer
34a171b9dc Fixed coding conventions 2013-07-15 12:12:09 +02:00
Ingo Schommer
8518d1cf20 Merge pull request #121 from jthomerson/pulls/cms_fields_performance_improvement
ENHANCEMENT: significant speed improvement for many locales
2013-07-15 03:10:53 -07:00
Jeremy Thomerson
9771d97e1f ENHANCEMENT: significant speed improvement for many locales
Iterating over an array of locales and querying for each one causes tons
of unnecessary queries. This is especially evident when you get up to
hundreds of translations of a page. It makes the CMS admin UI insufferably
slow.  This is a little tweak to query for all of them at once instead of
individually.
2013-07-14 21:08:53 +00:00
Ingo Schommer
42f048f34a Merge pull request #120 from silverstripe-rebelalliance/esr
BUG: with the enforcement of allowed_actions in 3.2 getLocaleForObject is blocked
2013-07-12 01:32:31 -07:00
kmayo-ss
5bfc37748b Update LanguageDropdownField.php
BUG: Corrected allowed_actions to be private not public
2013-07-12 16:59:19 +12:00
Kirk Mayo
0d9bee0a64 BUG: with the enforcement of allowed_actions in 3.2 getLocaleForObject was being blocked 2013-07-12 16:08:20 +12:00
Ingo Schommer
f4a7488fcc Transifex translation support 2013-07-08 12:30:07 +02:00
Ingo Schommer
5109f80ed9 Merge branch 'pull-117' 2013-06-28 10:18:34 +02:00
Ingo Schommer
c551915745 Merge remote-tracking branch 'origin/1.0' 2013-06-28 10:12:58 +02:00
Jeremy Thomerson
403e6d21a3 FIX: TranslatableSearchFormTest used wrong param for getResults 2013-06-18 18:32:30 +00:00
Ingo Schommer
9d3f2e28db Merge pull request #115 from jthomerson/fix_gettranslations_when_one_is_subclass
FIX: make getTranslations work even when translation classes differ
2013-06-07 08:26:26 -07:00
Jeremy Thomerson
f75a5fd5e3 TEST: adds test for changing class name of default locale translation
Adds test case for silverstripe/silverstripe-translatable#97
2013-06-06 02:59:51 +00:00
Jeremy Thomerson
f4e5137392 FIX: make getTranslations work even when translation classes differ
Even though it is an edge-case, some sites may allow translation groups to be
composed of different classes.  In that case, Translatable->getTranslations()
should still work.

Also, this commit adds a helper function for testing two array for equality
where you don't care about the order of the elements.  This cleaned up a lot
of copy and paste boilerplate code that was sorting arrays to test.
2013-06-06 02:59:51 +00:00
Ingo Schommer
51cd0146df Merge branch '1.0'
Conflicts:
	.travis.yml
	code/model/Translatable.php
2013-06-03 12:06:29 +02:00
Ingo Schommer
3551a94e67 Fixed quoting of test SQL 2013-06-03 12:05:22 +02:00
Ingo Schommer
7d9f0a9e51 Merge pull request #114 from jthomerson/fix_113_locale_filter_lazy_querying
Fix #113 locale filter lazy querying
2013-06-03 00:51:06 -07:00
Jeremy Thomerson
cde0f57c43 FIX support disabled locale filter for delayed querying
Fixes silverstripe/silverstripe-translatable#113
2013-06-01 14:14:54 +00:00
Jeremy Thomerson
929beb216c FIX can not access private static variables of i18n 2013-05-31 19:09:03 +00:00
Ingo Schommer
f7eee8596d Merge pull request #109 from tractorcow/3.1-api-updaterelativelink
API Hook into SiteTreeExtension::updateRelativeLink
2013-05-17 05:04:12 -07:00
Sean Harvey
4c6e41441a Fixing @package declaration to translatable instead of sapphire 2013-05-17 11:09:52 +12:00
Damian Mooyman
22c5098f8e BUG Cleaner handling of querystring arguments when selecting locale 2013-05-13 00:18:45 +02:00
Damian Mooyman
ea4645af24 API Hook into SiteTreeExtension::updateRelativeLink 2013-05-10 12:23:36 +12:00
Ingo Schommer
742fe8dee8 Fixed composer constraints 2013-05-07 15:07:15 +03:00
Ingo Schommer
709e2fd645 Added GITHUB_API_TOKEN 2013-04-29 11:07:50 +02: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
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