We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 383d31f commit 93cf370Copy full SHA for 93cf370
python_gpt_po/services/translation_service.py
@@ -353,14 +353,13 @@ def process_po_file(
353
):
354
"""Processes a single .po file with translations."""
355
try:
356
- po_file, file_lang = po_file_result
357
-
358
# Only prepare the po_file if not provided (for backward compatibility)
359
- if po_file is None or file_lang is None:
+ if po_file_result is None:
360
po_file_result = self._prepare_po_file(po_file_path, languages)
361
if po_file_result is None:
362
return
363
+
+ po_file, file_lang = po_file_result
364
365
# Get the detailed language name if available
366
detail_lang = detail_languages.get(file_lang) if detail_languages else None
0 commit comments