Created
August 18, 2017 08:37
-
-
Save sftsk/18602b5d4310d70841be34bf711ebf80 to your computer and use it in GitHub Desktop.
Extractor for Polylang translations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var attrText = "attr_de,attr_it\n"; | |
jQuery('.wp-list-table.widefat.fixed.striped.stringstranslations tbody tr').each(function () { | |
attrText += jQuery('td[data-colname="Zeichenfolge"]', jQuery(this)).clone().children().remove().end().text() + ',' + jQuery(':text', jQuery(this)).val() + "\n"; | |
}); | |
console.log(attrText); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment