angular-gettext-tools icon indicating copy to clipboard operation
angular-gettext-tools copied to clipboard

Extraction problem in table data attributes

Open adarshk7 opened this issue 10 years ago • 3 comments

<td data-title="'Name'|translate">{{ user.name }}</td>
<td data-title="'Age'|translate">{{ user.age }}</td>
<td data-title="'Job'|translate">{{ user.job }}</td>

This only extracts "Name" and "Job" (every alternate). If I use {{ }} around the string with the translate filter, then it works, but this breaks in the browser with an angular(or perhaps ngTable) error.

adarshk7 avatar Feb 27 '15 08:02 adarshk7

The "no-delimiter" extraction is more complicated and less tested, so this doesn't surprise me. Looks like we don't test having more than one non-delimited string in a file: https://github.com/rubenv/angular-gettext-tools/blob/master/test/fixtures/no_delimiter.html

For now, you may want to put your strings in your JS (using the gettext service) until this is resolved.

gabegorelick avatar Mar 05 '15 20:03 gabegorelick

That's what I've gone with. It feels a bit ugly though to have to put those strings to the JS, but at least it works for now. Though complex, I hope this gets implemented.

adarshk7 avatar Mar 19 '15 12:03 adarshk7

We are experiencing the same issue. If anyone knows a workaround, please mention it in this issue.

Niek avatar Dec 17 '15 05:12 Niek