@@ -48,13 +48,13 @@ def disable_fuzzy_translations(po_file_path):
4848 @staticmethod
4949 def get_file_language (po_file_path , po_file , languages , folder_language ):
5050 """Determines the language for a .po file.
51-
51+
5252 Args:
5353 po_file_path (str): Path to the .po file
5454 po_file (polib.POFile): Loaded PO file object
5555 languages (List[str]): List of valid language codes
5656 folder_language (bool): Whether to infer language from folder structure
57-
57+
5858 Returns:
5959 str or None: The normalized language code or None if not found
6060 """
@@ -76,10 +76,10 @@ def get_file_language(po_file_path, po_file, languages, folder_language):
7676 @staticmethod
7777 def normalize_language_code (lang ):
7878 """Convert language name or code to ISO 639-1 code.
79-
79+
8080 Args:
8181 lang (str): Language name or code to normalize
82-
82+
8383 Returns:
8484 str or None: The normalized ISO 639-1 language code or None if not found
8585 """
@@ -109,7 +109,7 @@ def normalize_language_code(lang):
109109 @staticmethod
110110 def log_translation_status (po_file_path , original_texts , translations ):
111111 """Logs the status of translations for a .po file.
112-
112+
113113 Args:
114114 po_file_path (str): Path to the .po file
115115 original_texts (List[str]): List of original texts to translate
@@ -133,7 +133,7 @@ def log_translation_status(po_file_path, original_texts, translations):
133133 @staticmethod
134134 def update_po_entry (po_file , original_text , translated_text ):
135135 """Updates a .po file entry with the translated text.
136-
136+
137137 Args:
138138 po_file (polib.POFile): The PO file object
139139 original_text (str): The original text to find
@@ -149,10 +149,10 @@ def update_po_entry(po_file, original_text, translated_text):
149149 @staticmethod
150150 def read_po_file (po_file_path ):
151151 """Reads a .po file and returns the PO file object.
152-
152+
153153 Args:
154154 po_file_path (str): Path to the .po file
155-
155+
156156 Returns:
157157 polib.POFile: The loaded PO file object
158158 """
@@ -165,11 +165,11 @@ def read_po_file(po_file_path):
165165 @staticmethod
166166 def save_po_file (po_file , po_file_path ):
167167 """Saves changes to a .po file.
168-
168+
169169 Args:
170170 po_file (polib.POFile): The PO file object to save
171171 po_file_path (str): Path where the file should be saved
172-
172+
173173 Returns:
174174 bool: True if successful, False otherwise
175175 """
@@ -184,10 +184,10 @@ def save_po_file(po_file, po_file_path):
184184 @staticmethod
185185 def get_untranslated_entries (po_file ):
186186 """Gets all untranslated entries from a PO file.
187-
187+
188188 Args:
189189 po_file (polib.POFile): The PO file object
190-
190+
191191 Returns:
192192 List[polib.POEntry]: List of untranslated entries
193193 """
@@ -196,10 +196,10 @@ def get_untranslated_entries(po_file):
196196 @staticmethod
197197 def extract_metadata (po_file ):
198198 """Extracts and returns metadata from a PO file.
199-
199+
200200 Args:
201201 po_file (polib.POFile): The PO file object
202-
202+
203203 Returns:
204204 dict: Dictionary containing metadata
205205 """
0 commit comments