Commit c067e1f
committed
Fix BabelLanguage to handle both 2-letter and 3-letter codes
The babelfish library requires different constructors for different
ISO language code formats:
- fromalpha2() for 2-letter codes (e.g., 'en')
- direct constructor for 3-letter codes (e.g., 'eng')
This fixes the OCR conversion error when language codes are in
different formats.1 parent 6a3dcd2 commit c067e1f
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
| 245 | + | |
| 246 | + | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
248 | 257 | | |
249 | | - | |
| 258 | + | |
250 | 259 | | |
251 | 260 | | |
252 | 261 | | |
| |||
0 commit comments