File tree Expand file tree Collapse file tree
translate-messages/src/translate_messages/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,12 +69,14 @@ def write_translations(cli):
6969 log .info (f'{ action } { lang_dir } /{ cli .msgs_filename } ...' , end = '' )
7070 sys .stdout .flush ()
7171 translated_msgs = create_translations (cli , msgs , lang_code )
72+
7273 if translated_msgs == msgs :
7374 langs_skipped .append (lang_code ) ; lang_skipped = True
7475 else :
7576 data .json .write (msgs_path , translated_msgs , style = 'compact' )
7677 langs_translated .append (lang_code ) ; lang_translated = True
7778 if not lang_translated : langs_not_translated .append (lang_code )
79+
7880 status = f'{ log .colors .dg } { cli .msgs .log_ADDED } ' if lang_added else \
7981 f'{ log .colors .gry } { cli .msgs .log_SKIPPED } ' if lang_skipped else \
8082 f'{ log .colors .dy } { cli .msgs .log_UPDATED } '
Original file line number Diff line number Diff line change @@ -99,5 +99,4 @@ def load(cli):
9999 setattr (cli .config , ctrl_key , ctrl .default_val )
100100 if getattr (ctrl , 'parser' , '' ) == 'csv' :
101101 setattr (cli .config , ctrl_key , data .csv .parse (val ))
102-
103102 log .debug ('All cli.config vals set!' , cli )
You can’t perform that action at this time.
0 commit comments