@@ -534,11 +534,11 @@ def _compile_recursively(self, current_part):
534
534
self .transcriber .copy_until (value_position )
535
535
if key == self .CONTEXT_KEY and translation :
536
536
context = translation .context
537
- self ._compile_value (context , value , value_position )
537
+ self ._compile_value (self . escape ( context ) , value , value_position )
538
538
context_added = True
539
539
elif key == self .DEVELOPER_COMMENT_KEY and translation :
540
540
developer_comment = translation .developer_comment
541
- self ._compile_value (developer_comment , value , value_position )
541
+ self ._compile_value (self . escape ( developer_comment ) , value , value_position )
542
542
developer_comments_added = True
543
543
elif key == self .CHARACTER_LIMIT_KEY and translation :
544
544
character_limit = translation .character_limit
@@ -557,13 +557,13 @@ def _compile_recursively(self, current_part):
557
557
extra_elements = []
558
558
if not context_added and translation and translation .context :
559
559
extra_elements .append (u"\" {}{}\" {}\" " .format (
560
- "context" , key_value_separator , translation .context ))
560
+ "context" , key_value_separator , self . escape ( translation .context ) ))
561
561
if not character_limit_added and translation and translation .character_limit :
562
562
extra_elements .append (u"\" {}{}{}" .format (
563
563
"character_limit" , key_value_separator , translation .character_limit ))
564
564
if not developer_comments_added and translation and translation .developer_comment :
565
565
extra_elements .append (u"\" {}{}\" {}\" " .format (
566
- "developer_comment" , key_value_separator , translation .developer_comment ))
566
+ "developer_comment" , key_value_separator , self . escape ( translation .developer_comment ) ))
567
567
if extra_elements :
568
568
self .transcriber .add ("," + line_separator + ("," + line_separator ).join (extra_elements ))
569
569
0 commit comments