Skip to content

Commit

Permalink
translation extents rework
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis-Happel committed Dec 30, 2024
1 parent 8bee9d4 commit 53a94a4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@

translation_line: "#tr.en: " (emphasis_part | language_part | string_part)+
translation_line: "#tr" ["." language_code] ["." translation_extent] ": " markup+
language_code: /[a-z]{2}/
translation_extent: "(" [label " "] line_number ")"
label: /[a-z0-9]+/
line_number: /[0-9]+/
markup: emphasis_part | language_part | string_part
language_part: "@" LANGUAGE "{" translation_text "}"
emphasis_part: "@i{" translation_text "}"
string_part: translation_text
Expand Down

0 comments on commit 53a94a4

Please sign in to comment.