When a project is created by an independent script outside of OmegaT without entering language codes, that project when opened by OmegaT does not trigger alert messages and the TMX created during the translation are not valid since they do not have language codes.
OmegaT currently does not accept projects without language codes: when the codes are erased from the properties dialog, an alert is displayed.
OmegaT should alert the user when a project to open does not contain valid values for the language codes just like it does when opening a project that does not have valid paths for project folders.
Given the probability of this happening (project created outside of OmegaT without language code), I lower the priority.
Didier
The fix is proposed as PR#1604
https://github.com/omegat-org/omegat/pull/1604
One issue described here is still valid :
without entering language codes, that project when opened by OmegaT does not trigger alert messagesWe should have an alert for the lack of codes as I proposed in my comment here:
https://github.com/omegat-org/omegat/pull/1604#issuecomment-3173887459
Thank you for the clarification. This provides crucial context that changes the technical approach needed.
Since the original ticket was raised 15 years ago, the current OmegaT behavior has evolved to treat empty language codes as "und" (undetermined language) rather than throwing an error. This means:
The current behavior is intentional - not a bug but a design decision
My parser fix may be too strict - breaking the established "und" fallback behavior
The real issue might be lack of user notification rather than technical failure
Before proceeding, we need to clarify the intended behavior:
Should empty language codes continue to default to "und" with a warning message?
Or should they be treated as validation errors that prevent project opening?
What's the impact on existing projects that rely on the "und" fallback?
Could you provide:
Examples of projects where "und" behavior causes problems
Whether this should be a warning vs. error
Backward compatibility requirements for existing projects
This helps me understand whether we need a notification enhancement rather than a validation fix.
2025εΉ΄8ζ11ζ₯ζζζ₯ 18:49 γ« Jean-Christophe Helary brandelune@users.sourceforge.net γδ½ζ:
Related
Bugs:
#465Regarding the intended behavior: