View Issue Details

IDProjectCategoryView StatusLast Update
0010990mantisbtfeaturepublic2010-10-12 10:45
ReporterDanez Assigned To 
PrioritylowSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0010990: Custom Status Values
Description

I already started with an plugin for managing "Custom Status Values"(1).

Will i was talking with David he asked me why i don't start creating this as a core feature in my fork(2). I thought about this and I'm still not sure if this should be a plugin or a core feature.

One other thing I'm not sure is the translation of this custom status values. My initial plan was to give the user the opportunity to add more labels in different languages to one value. That's the only solution i favor. An other would be a online source with Custom Status Values, that could be submitted/translated by community and then easily added to mantis, but that's quite more work.

What are you all thinking about?

In the meantime I stopped working on it.

Steps To Reproduce

(1) http://git.mantisforge.org/w/CustomStatus.git
(2) http://git.mantisforge.org/w/mantisbt/dtschinder.git

TagsNo tags attached.

Activities

xmrs

xmrs

2010-10-12 10:45

reporter   ~0027012

A very simple solution for editing the languages can be done with this patch for version 0.1 (20090920):

rs@mantis-1.2.3$ svn diff CustomStatus.API.php
Index: CustomStatus.API.php

--- CustomStatus.API.php (Revision 15094)
+++ CustomStatus.API.php (Arbeitskopie)
@@ -40,15 +40,17 @@

    // Ok we are good, lets go
    $lang = CustomStatusAPI::getStatusLanguage();

+

  • // Store the other languages
  • $display_name = $cstati[(int)$id]['display_name'];
  • $display_name[$lang] = (string)$display;

    // Set Plugin Config
    $cstati[(int)$id]=array(
        'id' => (int)$id,
        'name' => (string)$name,
        'color' => (string)$color,
  • 'display_name' => array(
  • $lang =>(string)$display
  • )
  • 'display_name' => $display_name,
    );
    ksort($cstati);
    plugin_config_set( 'custom_stati' , $cstati );
    @@ -138,4 +140,4 @@
    }
    }

-?>
\ No newline at end of file
+?>

An User can edit the Display Name in his own language and does not overwrite other already stored languages.