Wednesday, 2012-06-27

*** Joins: asm89 (~asm89@unaffiliated/asm89)00:06
dregadhttp://mantisbt.org is going down now00:59
dregadand up again01:02
*** Joins: dhx1 (~anonymous@60-242-247-232.static.tpgi.com.au)01:53
*** Joins: Jan_Koch (509686a2@gateway/web/freenode/ip.80.150.134.162)03:44
Jan_Kochhallo guys, is there any possibility to create multilingual custom fields?03:45
dregadJan_Koch: what do you need to be "multilingual" ? the field label ?04:20
Jan_Kochhallo dregad, i need this multilingual custom fields for the filter box04:26
Jan_Kochin view issues04:26
Jan_Kochfield label are no probs04:27
Jan_Kochlabels04:27
dregadso you need e.g. the values of an enum to be language-specific ?04:28
Jan_Kochlet me explain04:28
Jan_Kochi add some custom fields and i these custom fields are regulary in your language... that works fine for me... but now i want exactly these additional fields as filter possibilities in view issues04:30
Jan_Kochadditional filter i mean04:31
Jan_Kochnot the filter values04:31
Jan_Kochthe filter values are fixed values which are generated by every user04:32
dregadthis is default functionality - just check the "add to filter" box in the CF definition04:32
dregadand the field will appear in the filter in view.php04:32
Jan_Kochwait a sec04:32
Jan_Kochthis is not my problem: i can add filters and filter values, but the name of the filter is not language specific04:33
Jan_Kochthat means04:33
dregadok so it's the field label which you need to be translated04:34
Jan_Kochyes the field label of the filter04:34
dregadthat's easy04:34
Jan_Kochokay04:34
Jan_Kochsry 4 my bad english+04:34
dregadthat's OK don't worry04:35
Jan_Kochkk04:35
dregadassume your field name is 'example'04:35
Jan_Kochright04:35
dregadyou need to define a custom translation ==> create or modify custom_strings_inc.php04:35
dregadin there, define a string for your CF04:36
dregad$s_example = 'Beispiel';04:36
dregadyou can put this in an if or case statement to make the definition specific for multiple languages04:37
Jan_Kochthere is no custom_strings_inc... but i will add this file to my mantis-root04:37
dregadyes that's the place04:38
Jan_Kochokay04:38
Jan_Kochi entered your example04:39
dregaddo something like switch( lang_get_current() )04:39
dregadand one case for each language04:39
dregadwith possibly a default language if you want (but by default it will use the CF name as label)04:40
Jan_Kochok now it makes more sense to me :)04:40
Jan_Kochif i want to add my fields i have to write $s_customExampleField?04:41
Jan_Kochor simply the name without custom04:42
dregadjust the name I think04:42
Jan_Kochokay i will try04:42
dregadrefer to doc: http://mantisbt.org/docs/master-1.2.x/en/administration_guide/admin.customize.html#ADMIN.CUSTOMIZE.CUSTOMFIELDS.LOCALIZE04:42
dregadremember that the field name must be a valid php token (e.g. no spaces, special chars, etc)04:43
Jan_Kochyeah i already recognized this04:44
Jan_Kochokay thanks, it works fine for me now :)04:47
dregadgood to hear.05:15
Jan_Kochthanks a lot :) if i have more problems, i'll be back :D05:23
*** Quits: Jan_Koch (509686a2@gateway/web/freenode/ip.80.150.134.162) (Quit: Page closed)06:37
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)06:55
*** Quits: dhx1 (~anonymous@60-242-247-232.static.tpgi.com.au) (Remote host closed the connection)06:55
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)08:15
*** Parts: dregad (~dregad@155.250.128.35) ("Ex-Chat")08:15
*** Joins: paulr (~IceChat09@cpc1-enfi15-2-0-cust580.hari.cable.virginmedia.com)10:18
*** Joins: giallu (~giallu@fedora/giallu)10:38
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 246 seconds)11:19
*** Joins: echo083 (~adam@mna75-11-88-161-199-126.fbx.proxad.net)12:11
*** Quits: echo083 (~adam@mna75-11-88-161-199-126.fbx.proxad.net) (Client Quit)12:15
*** Joins: asm89 (~asm89@unaffiliated/asm89)12:53
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)13:43
*** Joins: linetrace (~linetrace@65.19.81.126)14:53
linetraceI've got questions regarding setting up a cron job for plugin.php?page=Source/repo_import_latest14:56
linetracei get invalid security token errors because of the forms14:58
linetracealso requires management level, so how are you supposed to automate that?15:01
linetrace(obviously with jreese's source-integration plugin)15:04
*** Joins: dregad (~dregad@138-231.193-178.cust.bluewin.ch)15:05
linetraceah, found it… plugin.php?page=Source/import does the trick… was just reading old docs15:33
*** Quits: linetrace (~linetrace@65.19.81.126) (Quit: linetrace)15:52
paulrmoo dregad15:59
dregadhi16:00
paulrhows you16:01
dregadi should be sleeping i guess...16:06
paulrmm16:08
paulrme too16:08
*** Quits: paulr (~IceChat09@cpc1-enfi15-2-0-cust580.hari.cable.virginmedia.com) (Quit: Oops. My brain just hit a bad sector)16:08
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)17:00
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de)17:00
*** Quits: dregad (~dregad@138-231.193-178.cust.bluewin.ch) (Quit: Beware of programmers who carry screwdrivers.)17:09
*** Quits: Protogenes (~Protogene@cmnz-4db36232.pool.mediaWays.net) (Ping timeout: 245 seconds)20:18
*** Joins: sureshinde (75efbe31@gateway/web/freenode/ip.117.239.190.49)22:22
*** Quits: sureshinde (75efbe31@gateway/web/freenode/ip.117.239.190.49) (Client Quit)22:22
*** Joins: kirillka (~Miranda@195.242.142.17)22:31

Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!