*** Joins: asm89 (~asm89@unaffiliated/asm89) | 00:06 | |
dregad | http://mantisbt.org is going down now | 00:59 |
---|---|---|
dregad | and up again | 01: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_Koch | hallo guys, is there any possibility to create multilingual custom fields? | 03:45 |
dregad | Jan_Koch: what do you need to be "multilingual" ? the field label ? | 04:20 |
Jan_Koch | hallo dregad, i need this multilingual custom fields for the filter box | 04:26 |
Jan_Koch | in view issues | 04:26 |
Jan_Koch | field label are no probs | 04:27 |
Jan_Koch | labels | 04:27 |
dregad | so you need e.g. the values of an enum to be language-specific ? | 04:28 |
Jan_Koch | let me explain | 04:28 |
Jan_Koch | i 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 issues | 04:30 |
Jan_Koch | additional filter i mean | 04:31 |
Jan_Koch | not the filter values | 04:31 |
Jan_Koch | the filter values are fixed values which are generated by every user | 04:32 |
dregad | this is default functionality - just check the "add to filter" box in the CF definition | 04:32 |
dregad | and the field will appear in the filter in view.php | 04:32 |
Jan_Koch | wait a sec | 04:32 |
Jan_Koch | this is not my problem: i can add filters and filter values, but the name of the filter is not language specific | 04:33 |
Jan_Koch | that means | 04:33 |
dregad | ok so it's the field label which you need to be translated | 04:34 |
Jan_Koch | yes the field label of the filter | 04:34 |
dregad | that's easy | 04:34 |
Jan_Koch | okay | 04:34 |
Jan_Koch | sry 4 my bad english+ | 04:34 |
dregad | that's OK don't worry | 04:35 |
Jan_Koch | kk | 04:35 |
dregad | assume your field name is 'example' | 04:35 |
Jan_Koch | right | 04:35 |
dregad | you need to define a custom translation ==> create or modify custom_strings_inc.php | 04:35 |
dregad | in there, define a string for your CF | 04:36 |
dregad | $s_example = 'Beispiel'; | 04:36 |
dregad | you can put this in an if or case statement to make the definition specific for multiple languages | 04:37 |
Jan_Koch | there is no custom_strings_inc... but i will add this file to my mantis-root | 04:37 |
dregad | yes that's the place | 04:38 |
Jan_Koch | okay | 04:38 |
Jan_Koch | i entered your example | 04:39 |
dregad | do something like switch( lang_get_current() ) | 04:39 |
dregad | and one case for each language | 04:39 |
dregad | with possibly a default language if you want (but by default it will use the CF name as label) | 04:40 |
Jan_Koch | ok now it makes more sense to me :) | 04:40 |
Jan_Koch | if i want to add my fields i have to write $s_customExampleField? | 04:41 |
Jan_Koch | or simply the name without custom | 04:42 |
dregad | just the name I think | 04:42 |
Jan_Koch | okay i will try | 04:42 |
dregad | refer to doc: http://mantisbt.org/docs/master-1.2.x/en/administration_guide/admin.customize.html#ADMIN.CUSTOMIZE.CUSTOMFIELDS.LOCALIZE | 04:42 |
dregad | remember that the field name must be a valid php token (e.g. no spaces, special chars, etc) | 04:43 |
Jan_Koch | yeah i already recognized this | 04:44 |
Jan_Koch | okay thanks, it works fine for me now :) | 04:47 |
dregad | good to hear. | 05:15 |
Jan_Koch | thanks a lot :) if i have more problems, i'll be back :D | 05: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 | |
linetrace | I've got questions regarding setting up a cron job for plugin.php?page=Source/repo_import_latest | 14:56 |
linetrace | i get invalid security token errors because of the forms | 14:58 |
linetrace | also 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 | |
linetrace | ah, found it… plugin.php?page=Source/import does the trick… was just reading old docs | 15:33 |
*** Quits: linetrace (~linetrace@65.19.81.126) (Quit: linetrace) | 15:52 | |
paulr | moo dregad | 15:59 |
dregad | hi | 16:00 |
paulr | hows you | 16:01 |
dregad | i should be sleeping i guess... | 16:06 |
paulr | mm | 16:08 |
paulr | me too | 16: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!