#silverstripe IRC Log

IRC log for 22 June 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:17] * ss-helper has joined #silverstripe
3: [00:06:25] * Stomach has joined #silverstripe
4: [00:15:02] <ss-helper> Increase max file upload size for SilverStripe site - http://stackoverflow.com/questions/37815640/increase-max-file-upload-size-for-silverstripe-site
5: [00:16:56] * novaweb has joined #silverstripe
6: [00:17:03] * novaweb quit (Remote host closed the connection)
7: [00:19:46] * phorloop has joined #silverstripe
8: [00:48:13] * cloph is now known as cloph_away
9: [01:26:09] * micmania1 quit (Quit: micmania1)
10: [01:50:02] * phorloop quit (Quit: Byeee...)
11: [01:59:26] * micmania1 has joined #silverstripe
12: [02:41:37] * novaweb has joined #silverstripe
13: [02:41:56] * micmania1 quit (Quit: micmania1)
14: [02:53:59] <Hailwood> Hey folks, If we have Property => has_one => Region | Developer => has_many => Property | Given a particular Region can we find any Developers linked to the Region through a Property?
15: [02:56:17] * micmania1 has joined #silverstripe
16: [03:01:02] * novaweb quit (Remote host closed the connection)
17: [03:32:40] <Hailwood> Anyone know how to filter by a has_many count? A => has_many B - I want to get all A's where they have at least 5 B's
18: [03:48:43] <micmania1> Hailwood: a custom query would probably be best
19: [04:09:54] * Azure quit (Remote host closed the connection)
20: [04:33:20] * pippy quit (Ping timeout: 250 seconds)
21: [05:24:00] * micmania1 quit (Quit: micmania1)
22: [05:38:33] * jonners99 has joined #silverstripe
23: [05:46:01] * Dedra has joined #silverstripe
24: [05:47:12] * jonners99 quit (Remote host closed the connection)
25: [05:48:46] <Dedra> Hi, can someone help with: http://www.silverstripe.org/community/forums/general-questions/show/117789
26: [05:56:45] * wilderich has joined #silverstripe
27: [05:56:46] <ss-helper> wilderich: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
28: [05:57:03] <wilderich> hi folks!
29: [05:57:24] <wilderich> just a quick question, is it possible to run SilverStripe theme-less? that is, without any specific theme?
30: [05:57:51] <wilderich> trying to build a web application that doesn't require more than 1 theme / styling.
31: [05:58:01] <wilderich> thank you in advance.
32: [05:58:34] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
33: [06:15:41] * wmk has joined #silverstripe
34: [06:26:11] * novaweb has joined #silverstripe
35: [06:37:08] * Stomach quit (Quit: zzz)
36: [06:45:25] * vitaly__ has joined #silverstripe
37: [06:48:09] * jbrungar_ has joined #silverstripe
38: [06:48:32] * wilderich quit (Ping timeout: 250 seconds)
39: [06:49:26] * MichalKleiner has joined #silverstripe
40: [06:53:14] * Werner__ has joined #silverstripe
41: [06:56:58] * wmk quit (Ping timeout: 272 seconds)
42: [07:04:44] * jbrungar quit (*.net *.split)
43: [07:04:44] * MichalKl_ quit (*.net *.split)
44: [07:04:45] * vitaly_ quit (*.net *.split)
45: [07:04:50] * jbrungar_ is now known as jbrungar
46: [07:06:41] * spronk has joined #silverstripe
47: [07:17:31] * Stomach has joined #silverstripe
48: [07:29:39] * deschebbs has joined #silverstripe
49: [07:30:21] * arnhoe has joined #silverstripe
50: [07:41:10] * Stomach quit (Quit: zzz)
51: [07:45:48] <Dedra> Can someone help with this: http://www.silverstripe.org/community/forums/general-questions/show/117789
52: [07:48:48] * wilderich has joined #silverstripe
53: [07:49:07] * Werner__ is now known as wmk
54: [07:49:20] <wmk> Dedra, hard to tell.
55: [07:49:31] <wmk> so many questions in one
56: [07:49:58] <wmk> did you go through the user docs? or what in detail is your problem with translations?
57: [07:51:09] <wmk> my workflow: get it up and running first, i try to make everything english as original string, then i collect the strings afterwards with Zauberfisch's betterI18NTextCollector Module
58: [07:52:52] <wmk> with german yml file: be aware of right encoding! i had troubles with umlauts and the wrong character set (should be all unicode)
59: [07:53:02] <Dedra> wmk, let me try to do it short :)
60: [07:53:37] <Dedra> first of all, i have no "translation option" in the backend. If i create a site, in ss2 i was able to click on "translate".
61: [07:53:46] <Dedra> And do a translation for it, nothing like that in the ss3 backend.
62: [07:53:57] <wmk> install a module for it
63: [07:54:05] <wmk> in SS3 things became more modular
64: [07:54:08] <wmk> no problem with composer
65: [07:54:13] <wmk> you use composer?
66: [07:54:20] <Dedra> ahm, that means there's no translation impelented from the start?
67: [07:54:25] <wmk> Nope
68: [07:54:28] <Dedra> i have no clue about composers :-\
69: [07:54:32] <wmk> but easy to plug in
70: [07:54:36] <Dedra> i was happy get the installation done :P
71: [07:54:38] <wmk> oh key
72: [07:54:44] <wmk> so did you use composer for installing?
73: [07:54:54] <Dedra> i had a burnout for like 4 years, missed all that stuff. :(
74: [07:55:00] <wmk> oh
75: [07:55:02] <Dedra> i did, but on windows.
76: [07:55:06] <wmk> so much changed there
77: [07:55:10] <wmk> ok.
78: [07:55:11] <Dedra> so it was "kinda trickey".
79: [07:55:17] <wmk> so you used composer locally
80: [07:55:21] <wmk> no problem
81: [07:55:27] <wmk> when putting on server, best is a machine with ssh
82: [07:55:31] <Dedra> i use everything localy, with xampp.
83: [07:55:44] <wmk> where you can log in and run "composer install" there
84: [07:55:56] <wmk> Dedra, you use git? or another version control?
85: [07:56:04] * spronk quit (Quit: I may need a longer sleep timer...)
86: [07:56:44] <Dedra> no, but i read something about git
87: [07:56:47] <Dedra> i just used the normal cmd
88: [07:56:50] <Dedra> with composer create-project silverstripe/installer B:\eclipse_workspace\SS_Test
89: [07:56:54] * Stomach has joined #silverstripe
90: [07:57:04] <wmk> well, you should version control your project
91: [07:57:05] <Dedra> no version control at all :\
92: [07:57:25] <wmk> Dedra, i know, some years ago i also used none of that
93: [07:57:32] <wmk> but git makes your life much more easiser
94: [07:57:48] <Dedra> guess so, but i have no clue how to implement / install all of that :P
95: [07:57:49] <wmk> e.g. when i push something to the server, i just do a "git pull" on the machine and my changes are ther
96: [07:57:56] <Dedra> like i said, im just getting back into business :\
97: [07:58:25] <wmk> and with that i don't have to care if the changes have been in mysite/* or themes/* or ...
98: [07:58:48] <Dedra> i used a repository long time ago
99: [07:58:52] <wmk> so git / composer makes your life much more easier (after you had some time of wtf?)
100: [07:59:12] <wmk> well, i have git on a machine with ssh-only
101: [07:59:25] <wmk> no github or other fancy GUI for that.
102: [07:59:35] <wmk> there is git-bash for windows, i love it
103: [07:59:50] <Dedra> xampp_5.6.20 and eclipse is the only thing im using right now :\
104: [07:59:54] <wmk> so i can work in a bash on windows (until that ubuntu stuff comes live on win10)
105: [08:00:02] <wmk> should be fine.
106: [08:00:29] <wmk> most here (pretty much) use phpstorm nowadays, but it costs a little bit
107: [08:00:31] <Dedra> whats the composer command for the translation module?
108: [08:00:41] <wmk> composer install vendor/module
109: [08:00:47] <Dedra> dont know phpstorm
110: [08:00:53] <wmk> now: WHAT translation mdoule do you want ;)
111: [08:01:09] <wmk> there is "old translatable" and another module called fluent
112: [08:01:18] <wmk> both have pros and cons
113: [08:01:48] <Dedra> there are different modules O.o?
114: [08:02:02] <Dedra> well, i just want a simple en / ger website. Like I did it with ss2
115: [08:02:06] <Dedra> nothing special
116: [08:02:09] <wmk> translatable: different trees in all locales, one DO per translation, sharing e.g. images over all translations is more tricky
117: [08:02:16] * slievr has joined #silverstripe
118: [08:02:49] <Dedra> Ah I see, well the similar to ss2 would be fine.
119: [08:02:51] <wmk> fluent: one DO for ALL locales, you can define what fields are translated or not, but some other flaws, e.g. uses the "default"locale if a field isn't translated yet
120: [08:03:06] <Dedra> so the english site could be totally different in tree (order and stuff)
121: [08:03:13] <wmk> then translatable
122: [08:03:25] <wmk> http://addons.silverstripe.org/ is for finding modules
123: [08:03:36] <wmk> or https://packagist.org/
124: [08:03:52] <wmk> https://packagist.org/packages/silverstripe/translatable
125: [08:04:19] <wmk> so in your webroot type: composer require silverstripe/translatable which will install translatable module
126: [08:04:35] <wmk> please don't touch code that comes with modules
127: [08:04:53] <wmk> as you won't be able to update it later with composer
128: [08:05:04] <wmk> (read the above lines twice!)
129: [08:05:05] <Dedra> so i have to go CD Path of my project
130: [08:05:06] <Dedra> and then composer require silverstripe/translatable
131: [08:05:07] * kinglozzer has joined #silverstripe
132: [08:05:09] <Dedra> ?
133: [08:05:12] <wmk> yes
134: [08:05:15] <wmk> kinglozzer, ☺/
135: [08:05:36] <wmk> Dedra, best would be to install git first
136: [08:05:40] <wmk> initialize a repo locally
137: [08:05:49] <wmk> and push your current stuff to the repo
138: [08:05:58] <kinglozzer> \o wmk
139: [08:05:59] <wmk> just your own stuff, no module's code
140: [08:06:25] <wmk> this way you can see the steps you took to get your project running
141: [08:06:57] <wmk> yesterday i had to find out what broke something, so i switched back to a version where it worked and tried to find the commit in the middle where it broke
142: [08:07:04] <Dedra> well yes, many years ago when I worked for a company they had a repository. But i never did the server stuff.
143: [08:07:15] <wmk> (some weird javascript conflicts broke DOM and google maps implementation)
144: [08:07:16] <Dedra> So I guess I have to read about how to GIT and so on.
145: [08:07:24] <wmk> yup
146: [08:07:27] <wmk> git is more easy.
147: [08:07:30] <wmk> you don't need a server
148: [08:07:35] <wmk> at least not for starting
149: [08:07:46] <wmk> download git, run "git init" and you have a local repo
150: [08:07:55] <wmk> you can add remote addresses later
151: [08:08:27] <Dedra> let me google git
152: [08:09:05] <Dedra> Subversion
153: [08:09:13] <Dedra> is what i used in the past, if i remember right
154: [08:09:38] <wmk> well, there are some version control systems. i didn'T like subversion
155: [08:09:43] <wmk> branching was a pain
156: [08:10:39] <Dedra> do i need this: https://www.codeschool.com/users/sign_in
157: [08:10:56] <Dedra> just doing this: https://try.github.io/levels/1/challenges/2
158: [08:11:00] <wmk> afaik i had this book: https://www.amazon.de/Git-Dezentrale-Versionsverwaltung-Grundlagen-Workflows/dp/3864903114
159: [08:11:16] <wmk> but reading the tutorials might be enough, too...
160: [08:11:35] <wmk> Dedra, what's that codeschool stuff?
161: [08:11:43] <Dedra> dunno
162: [08:11:48] <Dedra> like i said im just on the git site
163: [08:11:58] <wmk> https://git-scm.com/book/en/v2
164: [08:12:00] <Dedra> trying the git demo, i guess
165: [08:12:01] <wmk> git is totally free
166: [08:12:06] <wmk> so nothing for "sign in"
167: [08:12:26] <wmk> Dedra, https://git-scm.com/book/de/v1
168: [08:12:31] <wmk> even in German
169: [08:12:40] <wmk> ok, maybe a bit outdated ;)
170: [08:12:50] <wmk> but the basics are the same
171: [08:13:17] <Dedra> i have to search if there is something for eclipse
172: [08:13:22] <Dedra> with git, but i guess it is
173: [08:13:27] <wmk> i bet
174: [08:13:33] <wmk> i always use git in command line
175: [08:15:01] <Dedra> https://try.github.io/levels/1/challenges/8 this explains it rly fast i guess
176: [08:15:32] <Dedra> well, you can compare the local / server files to each other.
177: [08:15:44] <Dedra> I used that with subversion, years ago. In the company i worked for.
178: [08:16:34] <wmk> git is a bit different, but the key concepts are the same
179: [08:17:22] * janneklouman-- has joined #silverstripe
180: [08:22:50] <Dedra> what i dont understand about composer is. If i do: composer require silverstripe/translatable
181: [08:23:10] <Dedra> how does the "composer" knows about silverstripe? i mean theres no IP / www adress to the server.
182: [08:23:31] <Dedra> or did i install the silverstripe composer only?
183: [08:26:17] <kinglozzer> Dedra: I'm not sure what you mean by "knows about silverstripe"
184: [08:28:03] <kinglozzer> If you mean "how does it know where to download it from?" that data all comes from packagist https://packagist.org/
185: [08:28:27] <Dedra> i see
186: [08:28:32] <Dedra> so the SS team uploads it there.
187: [08:28:36] <Dedra> k thanks for the info :)
188: [08:28:52] <Dedra> now i have to read about this: https://docs.silverstripe.org/en/3.3/developer_guides/i18n/
189: [08:30:42] <Dedra> http://www.silverstripe.org/community/forums/general-questions/show/117789 <<< :)
190: [08:30:54] <Dedra> That's what I'm trying to do now.
191: [08:31:53] <Dedra> short question. Now, I have installed the translatable module. in the _config.php I have to set the allowed languages, right?
192: [08:32:00] <Dedra> because right now, I can do every language O.o
193: [08:32:28] <Dedra> In ss2 i did it that way: http://pastie.org/private/rqxhsas5ta0i4leklwgjdg#3
194: [08:33:54] <wmk> Dedra, i forked Zauberfisch 's gist some time ago: https://gist.github.com/wernerkrauss/e0f9104c3fb8f71960c3
195: [08:35:11] * swaiba has joined #silverstripe
196: [08:37:06] <Dedra> right now, it seems that english is the MAIN language. http://i.imgur.com/mwnl4xD.png
197: [08:37:06] <wmk> swaiba, ☺/
198: [08:37:13] <swaiba> hey wmk
199: [08:37:23] <Dedra> Can I switch that?
200: [08:37:31] <Dedra> german on top (main lang) eng 2nd?
201: [08:37:37] <wmk> Dedra, did you have a look at that gist?
202: [08:37:50] <wmk> swaiba, still no more info :(
203: [08:38:08] * arnhoe quit ()
204: [08:38:22] <swaiba> well sure, hopefully I can make it, might be travelling now instead
205: [08:39:08] <Dedra> Yes i did. But I guess that's to much. Not what I really need / want O.o
206: [08:40:49] <wmk> well, the gist / _config.php should be enough for you
207: [08:41:07] <wmk> Translatable::set_allowed_locales(), and set_default_locale8)
208: [08:41:13] <Dedra> yes wait
209: [08:42:01] <Dedra> http://pastie.org/private/tpmsix7evsftd766nbfjg
210: [08:42:07] <Dedra> is what I'm doing right now.
211: [08:42:47] <Dedra> 1. Detect the browser language. If you visit: www.domain.com it detects the browser language, if NOT german -> English. IF german = german. If someone use the url like www.domain.com/germanSite/
212: [08:43:04] <Dedra> the lang is set to german. If someone visit www.domain.com/englishSite/ it's set to english.
213: [08:43:20] <wmk> well, that's what that controller extension also does
214: [08:43:24] <Dedra> That's what I'm trying to do. Like I did it on www.dedra-sc.com
215: [08:43:26] <wmk> with plug and play ;)
216: [08:48:52] <Dedra> well everythings working, except one thing now. The order.
217: [08:48:55] <Dedra> hmm wiat
218: [08:48:57] <Dedra> *wait
219: [08:49:23] <Dedra> Do u know a simple way to switch this: http://i.imgur.com/mwnl4xD.png German above, english below?
220: [08:54:31] * novaweb quit (Remote host closed the connection)
221: [08:54:50] <wmk> we have the same, as it's alphabetical
222: [08:56:28] <Dedra> no way to change that?
223: [08:56:32] <Dedra> damit :-\
224: [08:56:42] <Dedra> oh, bzw. is a "tab" important in the .yml files?
225: [08:56:47] <Dedra> like en / de.yml?
226: [08:56:54] <wmk> yml: two spaces, NO TABS
227: [08:56:56] * novaweb has joined #silverstripe
228: [08:57:09] <wmk> Dedra, -> see editorconfig plugin for such stuff
229: [08:57:19] <wmk> http://editorconfig.org/
230: [08:57:22] <wmk> helps a lot
231: [08:57:39] <wmk> silverstripe also has a basic editorconfig file in every module
232: [08:57:41] <Dedra> http://pastie.org/private/iqrlycwxbudgrimkvhzuq
233: [08:58:04] <wmk> yml files (config and lang) are cached
234: [08:58:05] <wmk> so...
235: [08:58:09] <wmk> !flush Dedra
236: [08:58:09] <ss-helper> Dedra: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
237: [08:58:09] <Dedra> because I used it like that: http://pastie.org/private/6tsddzjrztby79llclltw
238: [08:58:20] <kinglozzer> Dedra: Each new level needs to be indented by 2 spaces
239: [08:58:24] <Dedra> with "no tab" (2 spaces). And it seemed not working. WIth 2 spaces it worked O.o
240: [08:58:40] <kinglozzer> So everything under 'en' needs to be indented with 2 spaces
241: [08:58:44] <Dedra> kk, thx kinglozzer that's what I wanted to know. If i NEED those 2 spaces.
242: [09:00:32] <Dedra> oooooooookay, now im happy because it seems like everythings working now :P Only the "order" is something I dont like :-\
243: [09:01:02] <Dedra> I'll have a look into the classes to see if I can switch the order of this: http://i.imgur.com/mwnl4xD.png
244: [09:05:54] * slievr1 has joined #silverstripe
245: [09:07:16] * slievr quit (Ping timeout: 244 seconds)
246: [09:10:32] <Dedra> Do i need Object::add_extension('SiteTree', 'Translatable');
247: [09:10:32] <Dedra> Object::add_extension('SiteConfig', 'Translatable'); in the _config.php with the new translatable module?
248: [09:11:17] <wmk> Dedra, i guess not
249: [09:11:22] <Dedra> kk
250: [09:11:32] <wmk> extensions are now enabled via config yml
251: [09:11:34] <Dedra> one thing i dont understand fully:
252: [09:11:46] * novaweb quit (Remote host closed the connection)
253: [09:11:47] <Dedra> i18n::set_default_locale('de_DE');
254: [09:11:48] <Dedra> i18n::set_locale('de_DE');
255: [09:12:10] <Dedra> do i need those i18n s if i use the Translatable::set_default_locale('de_DE');
256: [09:12:12] <Dedra> ?
257: [09:12:13] <wmk> and when you go to /translatable/_config/extensions.yml you'll see it's already plugged in
258: [09:12:34] <wmk> Dedra, see that gist...
259: [09:12:35] <Dedra> yes, ur right.
260: [09:12:55] <wmk> afaik you have to set the current locale in your controller init()
261: [09:13:03] * novaweb has joined #silverstripe
262: [09:15:52] <Dedra> you talked abou the UTF8 issue. In ss2 i did it that way: setlocale(LC_TIME, $this->dataRecord->Locale . ".utf8");
263: [09:17:42] * novaweb quit (Ping timeout: 276 seconds)
264: [09:17:42] * Eliseth has joined #silverstripe
265: [09:18:03] <wmk> Dedra, nope, i said: yml file and umlaut and wrong encoding => problem
266: [09:18:06] <Dedra> Well everythings working. No issue with it.
267: [09:18:13] <Eliseth> Morning \o/
268: [09:18:21] <wmk> that's fine. Did you try an umlaut in your german file?
269: [09:18:22] <Dedra> ok let me test umlaut in yaml
270: [09:18:24] <wmk> Eliseth, hey ho
271: [09:18:32] <wmk> and flush Dedra
272: [09:19:00] <Dedra> yep its fine
273: [09:19:04] <Dedra> ä apears like i have to.
274: [09:19:10] <Dedra> *it
275: [09:19:38] <Dedra> So the "only" issue I still have right now is the lang order. English is above Ger. :\ lets see how it was in ss2
276: [09:19:42] <Dedra> perhaps the same, and i never noticed
277: [09:24:23] <Dedra> Well it's the same in SS2 so it will not bother anyone :)
278: [09:24:38] <Dedra> But I found something: http://i.imgur.com/3Hiol9n.png (FF = left | Chrome = right)
279: [09:24:50] <Dedra> the dropdown in chrome is wrong. Dunno if it's known.
280: [09:29:42] * kinglozzer quit (Remote host closed the connection)
281: [09:35:34] <wmk> Dedra, wrong? i guess just a css issue
282: [09:37:26] <Dedra> Yes. CSS issue :)
283: [09:37:35] <Dedra> i don't meant functionally wrong :)
284: [09:37:42] <Dedra> Just optical (css) :)
285: [09:39:53] * kinglozzer has joined #silverstripe
286: [09:40:23] <Dedra> Well, I really, really want to thank you @wmk and for sure kinglozzer you too :)
287: [09:40:48] <Dedra> I'll have a look into the version control later. Git is noticed.
288: [09:44:32] * Stomach quit (Quit: zzz)
289: [09:47:07] * wmk quit (Ping timeout: 258 seconds)
290: [10:12:15] <swaiba> If I have a DataObject that has a db field for "SomeObjectID" *not a relationship* how could I use something in the related (but not ORM related) table for eth default sort?
291: [10:14:30] * novaweb has joined #silverstripe
292: [10:15:08] * Hailwood quit (Disconnected by services)
293: [10:15:33] <kinglozzer> swaiba: *default* sort might be tricky
294: [10:15:35] * Hailwood_Ghost has joined #silverstripe
295: [10:15:49] <kinglozzer> You could perhaps add an extension, with augmentSQL() ?
296: [10:15:51] <swaiba> kinglozzer which is why I'm asking the uber brain :)
297: [10:16:11] <swaiba> that might work, I'll try
298: [10:18:34] * novaweb quit (Ping timeout: 240 seconds)
299: [10:35:08] * wmk has joined #silverstripe
300: [10:42:21] * Dedra2 has joined #silverstripe
301: [10:44:02] * Azure has joined #silverstripe
302: [10:46:45] * Dedra quit (Ping timeout: 276 seconds)
303: [10:47:09] * arnhoe has joined #silverstripe
304: [10:47:10] * arnhoe quit (Client Quit)
305: [10:47:29] * arnhoe has joined #silverstripe
306: [10:50:17] * slievr1 has left #silverstripe
307: [10:53:01] <Dedra2> Hey, I'm totally out of regex. Can someone help me with it? I just need to check a STRING for:
308: [10:53:02] <Dedra2> de,
309: [10:53:04] <Dedra2> de-
310: [10:53:06] <Dedra2> de;
311: [10:53:29] <Dedra2> if one of these 3 is in the string, return true. Sorry for that stupid question >__>
312: [10:54:26] <swaiba> Dedra2 you could just do 3 strpos != false
313: [10:55:15] <Dedra2> hm, yeah, ur right.
314: [10:56:14] * slievr1 has joined #silverstripe
315: [11:05:02] * kerozene quit (Ping timeout: 260 seconds)
316: [11:11:08] * kerozene has joined #silverstripe
317: [11:14:40] <wmk> Dedra2, stupid questions don't exist
318: [11:14:48] <wmk> but we have stupid answers if you want some
319: [11:25:13] <Dedra2> haha
320: [11:34:01] * arnhoe quit (Remote host closed the connection)
321: [11:38:03] <Dedra2> That's how I did it for now: http://pastie.org/private/hbtimzdqgjdsyr3i5xxiyg
322: [11:38:07] <Dedra2> maybe dirty, but well :P
323: [11:55:14] <swaiba> Dedra2 I personally find that code 100% more readable than regex
324: [11:55:39] <swaiba> when I'm debugging I always prefer readable code to something like regex
325: [11:55:41] <Dedra2> yep, I make it a bit better, with foreach, because what if 3 langs :)
326: [11:55:46] * kinglozzer quit (Remote host closed the connection)
327: [11:59:38] <Dedra2> http://pastie.org/private/juvjvudgippc0vzf9dr4q
328: [11:59:41] <Dedra2> DONE :)
329: [12:15:54] * novaweb has joined #silverstripe
330: [12:18:40] <Dedra2> I found a translation issue: http://i.imgur.com/Z5P5iAO.png
331: [12:19:07] <Dedra2> If the backend language is german, for example. Shouldnt be it: Englisch, Deutsch
332: [12:19:17] <Dedra2> Instead of: English, German in the dropdown menu?
333: [12:20:30] * novaweb quit (Ping timeout: 244 seconds)
334: [12:23:45] <Dedra2> Btw. this is helpfull too. That's my solution for "removing" a page type out of the page type list. http://pastebin.com/xSGAxV5V
335: [12:27:05] * UndefinedOffset has joined #silverstripe
336: [12:28:10] * cloph_away is now known as cloph
337: [12:31:32] <Dedra2> How good is: https://www.silverstripe.org/blog/silversmith-reshaping-silverstripe-development/ ???
338: [12:36:32] <Dedra2> Ahm, ok now I have a short question. How do I set a translation for a page type?
339: [12:37:27] <Dedra2> So that it's translated in the backend. Page Type list: Home Page (HomePage) Seite (Page) -> Home Page isn't translated too, and that's standard from the ss3
340: [12:40:00] * arnhoe has joined #silverstripe
341: [12:40:33] <swaiba> Dedra2 AFAIK silversmith hasn't gone anywhere... :(
342: [12:40:44] <Dedra2> kk :-\
343: [12:40:54] <Dedra2> swaiba, do you know how I can translate a page type name?
344: [12:41:18] <swaiba> I'm not entirely sure what you are asking, which ever translate module you have choosen should have some docs
345: [12:41:57] <Dedra2> hitbox.tv/bangbig
346: [12:42:00] <Dedra2> www.hitbox.tv/bangbig
347: [12:42:06] <Dedra2> sry :D i show u live :P
348: [12:42:40] <Dedra2> The Page Type dropdown, in the CMS.
349: [12:43:11] <Dedra2> Seite (Page) is german, that's cool. BUT "Home Page (HomePage)" is wrong for example. And my OWN PageTypes are not translated either.
350: [12:44:11] * arnhoe quit (Ping timeout: 240 seconds)
351: [12:45:11] * kinglozzer has joined #silverstripe
352: [12:46:07] <Dedra2> I created a: ArticleHolder.php class. But in the CMS it's not translated: http://i.imgur.com/n4N3egT.png
353: [12:46:25] <Dedra2> Same as the "HomePage" page type. That's the question :)
354: [12:53:33] <swaiba> ok, well I've still no answer for you, sorry
355: [12:53:43] <Dedra2> np
356: [12:53:49] <Dedra2> i jsut trying to figure it out myself :)
357: [12:57:40] <Dedra2> private static $singular_name = _t('ArticleHolder.SINGULARNAME', 'Article Page');
358: [12:57:47] <Dedra2> isn't working properly, hmm
359: [13:02:16] * deschebbs quit (Quit: Konversation terminated!)
360: [13:03:27] <wmk> that won't work
361: [13:03:48] <wmk> use betterI18N text collector, there are magic translation keys for singularname and plural name
362: [13:04:32] <Dedra2> ahm, what?
363: [13:04:33] <Dedra2> O.o
364: [13:04:36] <wmk> composer require --dev zauberfisch/silverstripe-better-i18n
365: [13:04:38] * kerozene quit (Quit: WeeChat 1.4-dev)
366: [13:04:40] <wmk> have to run, cu
367: [13:10:04] * wmk quit (Ping timeout: 240 seconds)
368: [13:18:13] <Dedra2> ok i got it, just translate it in the de.yaml :)
369: [13:28:17] * Dedra2 quit (Quit: Bye guys, have to go!)
370: [13:39:27] * swaiba quit (Remote host closed the connection)
371: [13:44:53] * WebDevB has joined #silverstripe
372: [13:44:53] * WebDevB quit (Changing host)
373: [13:44:53] * WebDevB has joined #silverstripe
374: [13:44:59] <WebDevB> Hey anyone around?
375: [13:53:12] <slievr1> ello o/
376: [13:53:18] * slievr1 is now known as slievr
377: [14:15:54] * janneklouman-- quit (Read error: Connection reset by peer)
378: [14:33:32] * janneklouman-- has joined #silverstripe
379: [14:42:59] * deschebbs has joined #silverstripe
380: [14:56:12] * cloph quit (Remote host closed the connection)
381: [14:57:18] <deschebbs> Problem with multilanguage site: For a Single Page Project i use the translatable module and the translatable-dataobject module
382: [14:57:51] <deschebbs> i first installed translatable, made a dev build an lateron installed translatable dataopjects
383: [14:59:26] <deschebbs> now i end up having one table, where table columns are added for the second language i use. this appears to be created with translatable.
384: [15:00:08] <deschebbs> buit translatable.dataobjects created entire records in the database, without new database columns.
385: [15:00:41] <deschebbs> so im wondering: can i use the two extensions together at all? I guess it said so somewhere in the doc.
386: [15:01:28] * kerozene has joined #silverstripe
387: [15:01:41] <deschebbs> to manage the data i use modeladmin
388: [15:10:30] * kerozene quit (Ping timeout: 244 seconds)
389: [15:11:51] * kerozene has joined #silverstripe
390: [15:13:39] <janneklouman--> @deschebbs translatable-dataobject has silverstripe-translatable as a requirement so they should work together
391: [15:26:52] <janneklouman--> I'm having this exact problem, that I really can't seem to get my head around: http://www.silverstripe.org/community/forums/customising-the-cms/show/5969
392: [15:27:06] * elgabbu has joined #silverstripe
393: [15:27:11] <elgabbu> hi all
394: [15:27:18] <elgabbu> so I have ObjectA has manymany ObjectB (with extraField 'Active') .. in the getCMSFields of objects A i want to render a checkbox for each of the manymany ObjectB ... using it to manipulate the Active extra field
395: [15:28:01] <janneklouman--> Any ideas?
396: [15:28:25] <elgabbu> so for I have managed to render the checkboxes and have them checked/unchecked based on the extra fields value
397: [15:28:33] <elgabbu> the problem is saving
398: [15:28:59] <elgabbu> i don't know what i should set as the name value for it to get saved
399: [15:29:19] <slievr> ManyMany[dbFieldName]
400: [15:29:46] <slievr> e.g. ManyMany[Active] in your case
401: [15:30:00] <elgabbu> return CheckboxField::create( 'Partners[Active]', false, $this->Active );
402: [15:30:16] <elgabbu> Partners is the ManyMany relationship name
403: [15:31:00] <slievr> I'm pretty sure it's just 'ManyMany' not the relation name
404: [15:31:11] <elgabbu> slievr i dont think that is correct since say i have 5 checkboxes they would all end up with the same name
405: [15:31:52] <elgabbu> i think somewhere I need to supply the value of the Partner ID some where
406: [15:40:08] * arnhoe has joined #silverstripe
407: [15:47:42] * TombL_ quit (Ping timeout: 276 seconds)
408: [15:51:13] <deschebbs> janneclouman: seems i dont get notified on answers. Yeah, thanks, i know the two modules SHOULD work together. Now i try to set up the system without translatable dataobjects.
409: [15:59:30] * Eliseth quit (Ping timeout: 260 seconds)
410: [16:04:02] * slievr has left #silverstripe
411: [16:05:44] * janneklouman-- quit (Ping timeout: 244 seconds)
412: [16:07:00] * arnhoe quit (Remote host closed the connection)
413: [16:17:12] * novaweb has joined #silverstripe
414: [16:21:54] * novaweb quit (Ping timeout: 272 seconds)
415: [16:28:13] * kinglozzer quit ()
416: [16:32:10] * WebDevB quit ()
417: [16:37:31] * cloph_away has joined #silverstripe
418: [16:55:05] * deschebbs quit (Quit: Konversation terminated!)
419: [17:19:13] * TombL has joined #silverstripe
420: [17:26:04] * arnhoe has joined #silverstripe
421: [17:27:57] * arnhoe quit (Remote host closed the connection)
422: [19:07:04] * Stomach has joined #silverstripe
423: [19:13:22] * Stomach quit (Quit: zzz)
424: [19:15:21] <ss-helper> Silverstripe could not scan for classes - http://stackoverflow.com/questions/37976377/silverstripe-could-not-scan-for-classes
425: [19:38:33] * Stomach has joined #silverstripe
426: [20:09:15] * novaweb has joined #silverstripe
427: [20:10:12] * UndefinedOffset quit (Quit: Leaving.)
428: [20:16:24] * gelignite has joined #silverstripe
429: [20:17:13] * novaweb quit ()
430: [20:35:41] * janneklouman-- has joined #silverstripe
431: [20:52:42] * lerni has joined #silverstripe
432: [20:54:42] * adrexia has joined #silverstripe
433: [20:56:44] <lerni> anybody a hint what to set for GridFieldConfig_RelationEditor or GridFieldAddExistingSearchButton to see something else than #1, #2, #3... in the dropdown if there is no Field in the DO named "Title". I've went with $searchable_fields & $summary_fields.
434: [21:05:53] * lerni quit (Remote host closed the connection)
435: [21:09:54] * lerni has joined #silverstripe
436: [21:14:55] * Hailwood_Ghost is now known as hailwood
437: [21:25:12] <lerni> mhh setSearchList ;)
438: [21:26:59] * lerni quit ()
439: [21:40:08] * Exor has joined #silverstripe
440: [21:40:29] * micmania1 has joined #silverstripe
441: [21:44:32] * zippy has joined #silverstripe
442: [21:45:01] <zippy> Hello :-)
443: [21:45:21] <zippy> Anyone have any suggestions for a good VPN, for use with public hot spots and motels etc
444: [21:50:55] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
445: [21:59:48] * pippy has joined #silverstripe
446: [22:08:48] * cloph_away quit (Ping timeout: 244 seconds)
447: [22:13:11] * cloph_away has joined #silverstripe
448: [22:34:40] <Stomach> zippy nope
449: [22:34:41] <Stomach> :D
450: [22:54:27] * janneklouman-- quit (Ping timeout: 244 seconds)
451: [23:27:53] <hailwood> Hey folks, anyone know an easy way to delete all Pages of a specific class from both Live and Stage?
452: [23:37:44] * spronk has joined #silverstripe
453: [23:50:41] * spronk quit (Quit: bleep bleep bloop bloop)
454: [23:50:46] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
455: [23:55:55] * Exor quit (Quit: Page closed)
456: [23:56:25] * Exor has joined #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.