Commit 6b713a2a authored by bgm's avatar bgm

bin/tag-strings-on-transifex.php: fix for strings with quotes, and fix tag version argument.

parent f258c017
......@@ -65,13 +65,16 @@ foreach ($msgids as $key => $msgid) {
$msgid = preg_replace('/^ /', '', $msgid);
}
// Unescape quotes: \" => "
$msgid = stripcslashes($msgid);
$hash = md5($msgid . ':');
echo "$cpt: $msgid ($hash)\n";
$data = array();
$data[] = array(
'tags' => array('v46'),
'tags' => array($tag), // FIXME
'source_entity_hash' => $hash,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment