In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000312 [In-Portal CMS] Localization feature request N/A 2009-09-21 03:30 2010-08-31 14:19
Reporter alex View Status public Project Name In-Portal CMS
Assigned To Dmitry Developer
Priority normal Resolution open Fixed in Version
Status needs work Product Version 5.1.0 Target Version Icebox
Time EstimateNo estimate
Summary 0000312: Phrases with parameters
Description Currently phrases are pretty static text, so no variables comes in/out. I suggest we create tag named m_PhraseWithParams or something like this (don't place code inside m_Phrase tag tag for performance). Tag will accept unlimited number of parameters named like param1, param2, param3 and so on. Then tag will use "vsprintf" function on phrase translation to replace %s and %N$s instances to given parameter values.
Additional Information
Tags No tags attached.
Change Log Message
Estimate Points 0
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0000497)
Dmitry (manager)
2009-09-21 11:26

We need to open the discussion for this in Development Groups since so far I see no direct benefit in this approach, do you?
User avatar (0000553)
alex (manager)
2009-09-25 15:20

For now this is already implemented in some places, e.g. some validation error reporting phrases contain %s to be able place validation parameters into error message. These parameter substitution is really useful for custom projects especially for ones with languages using right-to-left writing style. For them variable parameter place inside phrase is changed depending on language, where phrase is translated.

Maybe this is not so high priority as other issues. For now I will implement it locally (in tag processors, that require such functionality, not in core module).

- Issue History
Date Modified Username Field Change
2010-08-31 14:19 alex version => 5.1.0
2010-01-12 11:33 alex Status active => needs work
2010-01-12 11:33 alex Target Version 5.1.0 => Icebox
2009-10-03 07:54 administrator Status needs work => active
2009-09-25 15:20 alex Note Added: 0000553
2009-09-25 15:20 alex Assigned To alex => Dmitry
2009-09-25 15:20 alex Status needs feedback => needs work
2009-09-21 11:26 Dmitry Note Added: 0000497
2009-09-21 11:26 Dmitry Assigned To => alex
2009-09-21 11:26 Dmitry Status active => needs feedback
2009-09-21 03:30 alex Target Version => 5.1.0
2009-09-21 03:30 alex New Issue

Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker