Postponed (maintainer needs more info)
Project:
Translation template extractor
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2011 at 07:30 UTC
Updated:
22 Aug 2013 at 14:19 UTC
Comments
Comment #1
gábor hojtsyWhat would be the output of this? I understand you'd like to have a mode which outputs strings without placeholders, right? How could this be input for coder review?
Comment #2
xanoCoder doesn't do anything with this. Coder Text Review (a submodule of Text Review–note the capitals, it's a bit tricky.) however provides a Coder review method, similar to the coding standards review method. It uses potx to extract the UI strings from the code files that are to be reviewed during a particular Coder review and reviews them using Text Review. If potx would not only extract strings, but placeholders as well, Coder Text Review could remove those from the strings before passing the strings on to the Text Review review methods.
I do *not* need potx to remove placeholders from extracted strings, as that would corrupt the string. I need the original string *and* the placeholders, so Text Review knows the original positions of all characters in the strings.
Comment #3
gábor hojtsyThis is still unclear to me. Would you please document the data format you need?
Comment #4
xanoThe second parameter for t() is a keyed array. I need those keys together with the string they belong to (the first parameter).
Comment #5
hron84 commentedSo you need something like the following (it is for one string)?