Commit Graph

17 Commits

Author SHA1 Message Date
Kornel Benko
633d5e2c10 Enhance output of po_diff.pl to better see message-edges. 2016-12-03 11:42:22 +01:00
Kornel Benko
30b6c83164 Use prototypes in perl scripts 2014-01-24 11:00:07 +01:00
Kornel Benko
21c5fcad06 Comment only 2014-01-05 10:01:08 +01:00
Kornel Benko
ac069c3f4b Corrected displayed file-name for fuzzy and untranslated messages in diff_po.pl 2013-09-26 11:34:05 +02:00
Kornel Benko
f986eca10f Modified the revision selection while comparing po-files$
If revision-parameter is set to e.g. '-3', now we search for the previous
3-rd change of the relevant po-file instead of the previous 3-rd commit.

We now also pass options through the environment, though it is not needed for git.
This way we overcome the deficiency of "hg" and "svn", which do not allow
to pass self-defined options to underlying diff-command.
2013-09-25 16:43:23 +02:00
Kornel Benko
292577ad69 Polishing diff_po.pl
New options
  --display-fuzzy=[1|0} # Enable/disable display of fuzzy messages
  --display-untranslated=[1|0} # Enable/disable display of untranslated messages

Convert each given path on command line to absolute path prior to changing
the working directory
2013-09-23 12:50:25 +02:00
Kornel Benko
166bcc91c3 1.) Make po-file differences more robust.
2.) Automatic search for repository-type (git, hg, svn)
3.) Unified command-line  e.g for revision params (-rHEAD~3 == -rHEAD-3 == -r-3).
2013-07-23 22:43:19 +02:00
Kornel Benko
2bf7f8c4da po: Modularisation of the diff_po.pl script 2013-04-27 17:23:58 +02:00
Kornel Benko
8c29d00e11 Handling of libmagic for some mime-types leads to incorrect value 'text/plain'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40873 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-06 09:41:41 +00:00
Kornel Benko
e2997ca1b8 Sort deleted and inserted messages, so that adjacent may possibly be
printed next to each other. To test, try e.g.
        "diff_po.pl -r39000:39100 sk.po"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39246 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-05 17:10:07 +00:00
Kornel Benko
e8910e73f0 Use true temporary files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39235 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 20:43:10 +00:00
Kornel Benko
36c1f7e3ab Adapted for use with svn also
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39234 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 19:05:11 +00:00
Pavel Sanda
70e0641e3a diff_po.pl: comments to usage
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39233 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 18:50:15 +00:00
Kornel Benko
e53a3a089c Added handling for git revisions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39232 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 18:25:51 +00:00
Kornel Benko
3201f7a963 Compact diff output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39230 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 13:00:40 +00:00
Kornel Benko
dec366b945 Colorized output, adapt for use in 'svn diff'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39229 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 12:16:03 +00:00
Kornel Benko
e44de2f856 Tool for comparing po-files. Interesting only for translators.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39226 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-02 09:31:12 +00:00