diff options
-rw-r--r-- | apps/lang/arabic.lang | 2 | ||||
-rw-r--r-- | apps/lang/hebrew.lang | 2 | ||||
-rwxr-xr-x | tools/genlang | 10 |
3 files changed, 8 insertions, 6 deletions
diff --git a/apps/lang/arabic.lang b/apps/lang/arabic.lang index a7961cfefc..e94bd19cef 100644 --- a/apps/lang/arabic.lang +++ b/apps/lang/arabic.lang | |||
@@ -14,6 +14,8 @@ | |||
14 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | 14 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
15 | # KIND, either express or implied. | 15 | # KIND, either express or implied. |
16 | # | 16 | # |
17 | # LANGUAGE_IS_RTL | ||
18 | # | ||
17 | # Arabic language file, translated by: | 19 | # Arabic language file, translated by: |
18 | # - Mohamed Tarek | 20 | # - Mohamed Tarek |
19 | # - Raafat Akkad | 21 | # - Raafat Akkad |
diff --git a/apps/lang/hebrew.lang b/apps/lang/hebrew.lang index 89475017ba..f7f03a562b 100644 --- a/apps/lang/hebrew.lang +++ b/apps/lang/hebrew.lang | |||
@@ -14,6 +14,8 @@ | |||
14 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | 14 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
15 | # KIND, either express or implied. | 15 | # KIND, either express or implied. |
16 | # | 16 | # |
17 | # LANGUAGE_IS_RTL | ||
18 | # | ||
17 | # Hebrew language file, translated by: | 19 | # Hebrew language file, translated by: |
18 | # - Ariel Saghiv | 20 | # - Ariel Saghiv |
19 | # - Liberman Shachar | 21 | # - Liberman Shachar |
diff --git a/tools/genlang b/tools/genlang index 893badb57e..4f7386890d 100755 --- a/tools/genlang +++ b/tools/genlang | |||
@@ -369,6 +369,10 @@ while(<LANG>) { | |||
369 | 369 | ||
370 | if($_ =~ /^( *\#|[ \t\n\r]*\z)/) { | 370 | if($_ =~ /^( *\#|[ \t\n\r]*\z)/) { |
371 | # comment or empty line - output it if it's part of the header | 371 | # comment or empty line - output it if it's part of the header |
372 | if ($_ =~ /LANGUAGE_IS_RTL/) { | ||
373 | $langoptions |= $LANGUAGE_FLAG_RTL; | ||
374 | } | ||
375 | |||
372 | if ($header and $sortfile) { | 376 | if ($header and $sortfile) { |
373 | print($_); | 377 | print($_); |
374 | } | 378 | } |
@@ -485,12 +489,6 @@ while(<LANG>) { | |||
485 | } | 489 | } |
486 | undef @phrase; | 490 | undef @phrase; |
487 | } # end of </phrase> | 491 | } # end of </phrase> |
488 | elsif($part eq "/options") { | ||
489 | # closing the options | ||
490 | if ($options{'rtl'}) { | ||
491 | $langoptions |= $LANGUAGE_FLAG_RTL; | ||
492 | } | ||
493 | } # end of </options> | ||
494 | 492 | ||
495 | # starts with a slash, this _ends_ this section | 493 | # starts with a slash, this _ends_ this section |
496 | $m = pop @m; # get back old value, the previous level's tag | 494 | $m = pop @m; # get back old value, the previous level's tag |