When editing displays @30@
Moderators: Developer, Contributor
When editing displays @30@
Hi everybody,
I did changes in config_inc.php and manage config by Mantis Admin, but now appears symbols like @30@ when I am viewing a bug.
Prioridad @30@ Severidad @50@ Reproducibilidad @70@
But when I am editing appears the correct value...
Have anyone any idea what occurs this?
Thanks.
I did changes in config_inc.php and manage config by Mantis Admin, but now appears symbols like @30@ when I am viewing a bug.
Prioridad @30@ Severidad @50@ Reproducibilidad @70@
But when I am editing appears the correct value...
Have anyone any idea what occurs this?
Thanks.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
In attachment other example with similar conditions.
Can anybody help me?
Regards.
Can anybody help me?
Regards.
- Attachments
-
- Details
- mantis details 2.jpg (85.04 KiB) Viewed 15780 times
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
A new clue to decipher the doubt: If I change the order of items in the array, always is the first element that appears with @0@
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
The same trouble with status in Mantis: I have modify the files string_spanish (s_status_enum_string) and config_inc (g_status_enum_string) to add new status ('10:nueva,20:se necesitan más datos,30:aceptada,40:confirmada,50:asignada,80:resuelta,90:cerrada;100:corregida;110:subida a test') but in the frontend always displays @0@ or @10@.
Can anybody help me?
Can anybody help me?
- Attachments
-
- Details
- mantis details 3.jpg (54.68 KiB) Viewed 15659 times
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
Does the problem also occur if you make your customizations the recommend way?
This means you don't change any existing MantisBT file, but use custom_strings_inc.php for localization.
http://www.mantisbt.org/docs/master-1.2 ... MIZE.ENUMS
This means you don't change any existing MantisBT file, but use custom_strings_inc.php for localization.
http://www.mantisbt.org/docs/master-1.2 ... MIZE.ENUMS
Re: When editing displays @30@
@Atrol: thanks, but don't work although I made the modifications on files 
custom_strings_inc.php
custom_constant_inc.php
Adding even the values in constant_inc.php or config_defaults.php to see the behavior of Mantis does not resolved the error and still view @0@. What i do?
custom_strings_inc.php
Code: Select all
# custom_strings_inc.php
<?php
if ( lang_get_current() == 'spanish' ) {
$s_severity_enum_string =
'10:funcionalidad,20:trivial,30:texto,40:ajuste,50:menor,60:mayor,70:fallo,80:bloqueo,90:ALTA,100:MEDIA,110:BAJA'; }
#code that I have uncomment
else {
$s_status_enum_string =
'10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed,100:corrected,110:uploaded in test'; } ?>Code: Select all
# custom_constant_inc.php
<?php
define( 'ALTA', 90);
define( 'MEDIA', 100 );
define( 'BAJA', 110 );
#define( 'corregida', 100 );
#define( 'subida a test', 110);
define( 'CORRECTED', 100);
define( 'UPLOADED IN TEST', 110);
?>"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
There is probably an error custom_strings_inc.php
You set $s_status_enum_string instead of $s_severity_enum_string for non spanish settings
You set $s_status_enum_string instead of $s_severity_enum_string for non spanish settings
Re: When editing displays @30@
Yes...and the code is above in my previous message.atrol wrote:Is there also a file custom_constants_inc.php in your installation?
Do you say that options in the code
Code: Select all
else {
$s_status_enum_string =
'10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed,100:corrected,110:uploaded in test'; }"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
No, your code is in file custom_constant_inc.phpM@rce wrote:Yes...and the code is above in my previous message.atrol wrote:Is there also a file custom_constants_inc.php in your installation?
I asked for custom_constants_inc.php
Didn't you notice the red bold s?
Why do you change $s_status_enum_string if you want to change severity?M@rce wrote: Do you say that options in the codemust be in spanish? this values are by default, I have not changed even.Code: Select all
else { $s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed,100:corrected,110:uploaded in test'; }
Re: When editing displays @30@
Really not, sorry! Being well, I don't have this file...I it set up then? With what values?atrol wrote:Didn't you notice the red bold s?
The initial report was for "Priority" (even not solved) not "Severity", but now is also for "Status"; when is solved, can be the solution to both?atrol wrote:Why do you change $s_status_enum_string if you want to change severity?
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
First MantisBT looks for custom_constants_inc.php , if the file can not be found it looks for custom_constant_inc.php . This happens for backward compatibility with older versions and will be removed in future versions.M@rce wrote:Really not, sorry! Being well, I don't have this file...I it set up then? With what values?atrol wrote:Didn't you notice the red bold s?
So you should only use custom_constants_inc.php
Ok, let's concentrate on one thing and not mixing up status, severity and priority.
Let's introduce a new status, which is the hardest one.
First of all I recommend that you start with a clean state, which means:
No custom_constant_inc.php , no custom_constants_inc.php , no custom_strings_inc.php , no changes in any of the language files in directory lang, no changes in config_defaults_inc.php, no entries in config_inc.php for any enum related settings.
After that follow exactly the steps described at
http://www.mantisbt.org/docs/master-1.2 ... IZE.STATUS
Come back if there are still any problems.
By the way, which version of MantisBT do you use?
Re: When editing displays @30@
The version that I use is 1.2.5atrol wrote:By the way, which version of MantisBT do you use?
Well, I will do that you say and then comment to you the results. Thanks!!
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: When editing displays @30@
As a first step I recommend to update to latest stable version (1.2.12 at the moment)M@rce wrote: The version that I use is 1.2.5
There are more than 280 fixes/enhancements since 1.2.5, some of them related to enums and customization.
Re: When editing displays @30@
Okay...this change my plans but I will do anyway; in this case, do you think Atrol, that is necessary make the changes metioned, more early, in custom and config files?..thanks again!atrol wrote:As a first step I recommend to update to latest stable version (1.2.12 at the moment)
There are more than 280 fixes/enhancements since 1.2.5, some of them related to enums and customization.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles