itstool:itstool.git
5 years agoAdd LocNote class to better track localization note info
Shaun McCance [Sun, 10 Feb 2013 03:43:07 +0000 (22:43 -0500)]
Add LocNote class to better track localization note info

5 years agoFix IdValue for attributes and nodes with attributes
Shaun McCance [Sat, 9 Feb 2013 18:51:37 +0000 (13:51 -0500)]
Fix IdValue for attributes and nodes with attributes

5 years agoAdding the ITS 2.0 test suite, found here:
Shaun McCance [Sat, 2 Feb 2013 19:15:56 +0000 (14:15 -0500)]
Adding the ITS 2.0 test suite, found here:

https://github.com/finnle/ITS-2.0-Testsuite/commits/master

5 years agoImplemented ITS 2.0 "ID Value" data category
Shaun McCance [Wed, 26 Sep 2012 11:46:10 +0000 (07:46 -0400)]
Implemented ITS 2.0 "ID Value" data category

5 years agoSupport for local withinText
Shaun McCance [Fri, 21 Sep 2012 13:39:42 +0000 (09:39 -0400)]
Support for local withinText

5 years agoFix tests for namespace prefix handling
Shaun McCance [Fri, 21 Sep 2012 00:12:36 +0000 (20:12 -0400)]
Fix tests for namespace prefix handling

5 years agoMerge branch 'master' into its-2-0
Shaun McCance [Thu, 20 Sep 2012 23:58:18 +0000 (19:58 -0400)]
Merge branch 'master' into its-2-0

5 years agoSupport namespace prefixes on elements
Shaun McCance [Thu, 20 Sep 2012 22:37:44 +0000 (18:37 -0400)]
Support namespace prefixes on elements

5 years agoAdding test output for External Resource
Shaun McCance [Wed, 19 Sep 2012 23:58:37 +0000 (19:58 -0400)]
Adding test output for External Resource

5 years agoUse External Resource implementation for itst:externalRefRule
Shaun McCance [Wed, 19 Sep 2012 20:49:47 +0000 (16:49 -0400)]
Use External Resource implementation for itst:externalRefRule

5 years agoImplemented ITS 2.0 External Resource data category
Shaun McCance [Wed, 19 Sep 2012 20:44:37 +0000 (16:44 -0400)]
Implemented ITS 2.0 External Resource data category

5 years agoAdding a test for itst:externalRefRule
Shaun McCance [Wed, 19 Sep 2012 18:10:24 +0000 (14:10 -0400)]
Adding a test for itst:externalRefRule

Don't know why I never had a test for this before. I'm
going to implement the ITS 2.0 External Resource data
category, and retool this extension on top, so I need
to make sure I don't break it.

5 years agoMoving some of the tests into subdirectories
Shaun McCance [Wed, 12 Sep 2012 14:21:22 +0000 (10:21 -0400)]
Moving some of the tests into subdirectories

5 years agoAdding more Locale Filter tests
Shaun McCance [Wed, 12 Sep 2012 13:07:23 +0000 (09:07 -0400)]
Adding more Locale Filter tests

5 years agoSort attribute names in test output
Shaun McCance [Wed, 12 Sep 2012 02:57:18 +0000 (22:57 -0400)]
Sort attribute names in test output

5 years agoRenaming IT-join-1 test output file
Shaun McCance [Tue, 11 Sep 2012 20:48:44 +0000 (16:48 -0400)]
Renaming IT-join-1 test output file

I changed the naming convention to make it easier
to reuse other test input files to also test joins.

5 years agoUpdating test files for --no-builtins
Shaun McCance [Tue, 11 Sep 2012 20:47:19 +0000 (16:47 -0400)]
Updating test files for --no-builtins

5 years agoFirst pass at implementing Locale Filter
Shaun McCance [Tue, 11 Sep 2012 20:45:55 +0000 (16:45 -0400)]
First pass at implementing Locale Filter

5 years agoImplemented test suite output for withinText
Shaun McCance [Mon, 10 Sep 2012 16:26:25 +0000 (12:26 -0400)]
Implemented test suite output for withinText

5 years agoAdding test suite output for its:translate
Shaun McCance [Mon, 10 Sep 2012 15:38:00 +0000 (11:38 -0400)]
Adding test suite output for its:translate

5 years agoImplemented ITS 2.0 Preserve Space data category
Shaun McCance [Sat, 8 Sep 2012 21:36:43 +0000 (17:36 -0400)]
Implemented ITS 2.0 Preserve Space data category

6 years agoVersion 1.2.0 1.2.0
Shaun McCance [Sun, 24 Jun 2012 14:30:01 +0000 (10:30 -0400)]
Version 1.2.0

6 years agoMerge branch '1.1'
Shaun McCance [Sun, 24 Jun 2012 14:26:00 +0000 (10:26 -0400)]
Merge branch '1.1'

6 years agoAlways use nsProp(), not prop()
Shaun McCance [Sat, 23 Jun 2012 15:17:25 +0000 (11:17 -0400)]
Always use nsProp(), not prop()

6 years agoBe much more strict (and correct) about the version attribute
Shaun McCance [Wed, 16 May 2012 15:12:19 +0000 (11:12 -0400)]
Be much more strict (and correct) about the version attribute

6 years agoShow language code when failing to get translation from PO
Shaun McCance [Sat, 12 May 2012 16:21:02 +0000 (12:21 -0400)]
Show language code when failing to get translation from PO

Otherwise you have no idea which translation is causing problems
when using join mode.

6 years agoTry to maintain indentation in join mode
Shaun McCance [Fri, 11 May 2012 19:13:46 +0000 (15:13 -0400)]
Try to maintain indentation in join mode

6 years agotests: Adding regression test for join mode
Shaun McCance [Fri, 11 May 2012 17:06:22 +0000 (13:06 -0400)]
tests: Adding regression test for join mode

6 years agoAdding new join mode for multi-lingual XML files
Shaun McCance [Tue, 8 May 2012 16:55:29 +0000 (12:55 -0400)]
Adding new join mode for multi-lingual XML files

6 years agoVersion 1.1.3 1.1 1.1.3
Shaun McCance [Mon, 7 May 2012 20:40:21 +0000 (16:40 -0400)]
Version 1.1.3

6 years agotests: Added two more tests
Shaun McCance [Mon, 7 May 2012 00:10:03 +0000 (20:10 -0400)]
tests: Added two more tests

Already had these XML files from W3C, but I didn't have POT files
to test them against

6 years agotests: msgmerge po files to have new syntax from pot files
Shaun McCance [Mon, 7 May 2012 00:05:53 +0000 (20:05 -0400)]
tests: msgmerge po files to have new syntax from pot files

6 years agoRenamed itstool-specific tests to use IT- prefix
Shaun McCance [Sun, 6 May 2012 17:24:50 +0000 (13:24 -0400)]
Renamed itstool-specific tests to use IT- prefix

6 years agotests: Changed test names to match file names
Shaun McCance [Sun, 6 May 2012 01:49:54 +0000 (21:49 -0400)]
tests: Changed test names to match file names

6 years agoBetter handling of comments, new XML path markers
Shaun McCance [Sun, 6 May 2012 00:07:00 +0000 (20:07 -0400)]
Better handling of comments, new XML path markers

Comments were getting lost if they weren't specified at exactly
the same level as translation units were taken from. This commit
changes how comments are handled to prevent that.

I also moved path markers from the file context comment, because
it's wrong and messes up some tools.

6 years agoDon't error out when invalid msgstr is non-ascii
Shaun McCance [Wed, 4 Apr 2012 16:39:06 +0000 (12:39 -0400)]
Don't error out when invalid msgstr is non-ascii

6 years agoProper error message when source XML file can't be read
Shaun McCance [Mon, 2 Apr 2012 14:16:29 +0000 (10:16 -0400)]
Proper error message when source XML file can't be read

6 years agoHandle UTF-8 in attribute values
Shaun McCance [Mon, 2 Apr 2012 13:51:30 +0000 (09:51 -0400)]
Handle UTF-8 in attribute values

6 years agoDon't output external ref messages under its:translate="no"
Shaun McCance [Fri, 23 Mar 2012 14:09:55 +0000 (10:09 -0400)]
Don't output external ref messages under its:translate="no"

6 years agoVersion 1.1.2 1.1.2
Shaun McCance [Sun, 5 Feb 2012 16:53:41 +0000 (11:53 -0500)]
Version 1.1.2

6 years agoBetter handling of XML errors in PO files
Shaun McCance [Tue, 27 Sep 2011 14:16:55 +0000 (10:16 -0400)]
Better handling of XML errors in PO files

Rather than let an exception kill itstool, just issue a warning
and use the original-language node. Added --strict to error out
for XML errors in PO files.

https://bugs.freedesktop.org/show_bug.cgi?id=41254

6 years agoVersion 1.1.1 1.1.1
Shaun McCance [Mon, 19 Sep 2011 13:12:30 +0000 (09:12 -0400)]
Version 1.1.1

6 years agoMerge: Proper XML error catching [claude]
Shaun McCance [Sat, 3 Sep 2011 17:21:09 +0000 (13:21 -0400)]
Merge: Proper XML error catching [claude]

6 years agoMerge commit '48e4257421beb439f23a78507f43aae694775974'
Shaun McCance [Sat, 3 Sep 2011 17:10:19 +0000 (13:10 -0400)]
Merge commit '48e4257421beb439f23a78507f43aae694775974'

6 years agoMerge commit 'refs/merge-requests/2' of git://gitorious.org/itstool/itstool
Shaun McCance [Sat, 3 Sep 2011 14:56:58 +0000 (10:56 -0400)]
Merge commit 'refs/merge-requests/2' of git://gitorious.org/itstool/itstool

7 years agoCatch XML errors in translated content 3
Claude Paroz [Wed, 17 Aug 2011 11:32:42 +0000 (13:32 +0200)]
Catch XML errors in translated content

7 years agoCatch XML parsing errors so itstool does properly exit with error code
Claude Paroz [Wed, 17 Aug 2011 10:10:36 +0000 (12:10 +0200)]
Catch XML parsing errors so itstool does properly exit with error code

7 years agoFix placeholder translation when it contains sub-elements 2
Claude Paroz [Wed, 29 Jun 2011 19:15:46 +0000 (21:15 +0200)]
Fix placeholder translation when it contains sub-elements

7 years agoVersion 1.1.0 1.1.0
Shaun McCance [Mon, 27 Jun 2011 18:59:56 +0000 (14:59 -0400)]
Version 1.1.0

7 years agomallard.its: Set msgctxt on info titles
Shaun McCance [Sun, 26 Jun 2011 16:28:10 +0000 (12:28 -0400)]
mallard.its: Set msgctxt on info titles

7 years agoDon't bomb if a locNotePointer returns a string
Shaun McCance [Sun, 26 Jun 2011 16:27:46 +0000 (12:27 -0400)]
Don't bomb if a locNotePointer returns a string

7 years agoAdded itst:context to specify a msgctxt for a node
Shaun McCance [Sat, 25 Jun 2011 18:49:53 +0000 (14:49 -0400)]
Added itst:context to specify a msgctxt for a node

7 years agoFixes for Python 3
Claude Paroz [Fri, 24 Jun 2011 16:25:17 +0000 (12:25 -0400)]
Fixes for Python 3

7 years agoUse #!/usr/bin/python -s for shebang, RH bug #702989
Shaun McCance [Fri, 24 Jun 2011 15:21:38 +0000 (11:21 -0400)]
Use #!/usr/bin/python -s for shebang, RH bug #702989

7 years agoMake itst:drop work on non-inline nodes
Shaun McCance [Fri, 24 Jun 2011 14:19:54 +0000 (10:19 -0400)]
Make itst:drop work on non-inline nodes

7 years agoMade dropRule take a drop attribute, like other rules
Shaun McCance [Thu, 23 Jun 2011 21:51:40 +0000 (17:51 -0400)]
Made dropRule take a drop attribute, like other rules

7 years agoAdd itst drop rule
Claude Paroz [Tue, 31 May 2011 20:46:29 +0000 (22:46 +0200)]
Add itst drop rule

The itst Droprule is a rule allowing to ignore completely a tag from
the translation, including its content. The resulting xml will not
have the tag either.

7 years agoRenamed attribute test files
Shaun McCance [Thu, 23 Jun 2011 21:45:16 +0000 (17:45 -0400)]
Renamed attribute test files

7 years agoHandled translatable attributes in non-translatable elements
Shaun McCance [Thu, 23 Jun 2011 20:11:42 +0000 (16:11 -0400)]
Handled translatable attributes in non-translatable elements

7 years agoExtract and translate node attributes
Claude Paroz [Sun, 12 Jun 2011 19:40:36 +0000 (21:40 +0200)]
Extract and translate node attributes

7 years agoMerge branch 'testsuite'
Shaun McCance [Wed, 1 Jun 2011 13:22:03 +0000 (09:22 -0400)]
Merge branch 'testsuite'

7 years agoFix LocNote2 test and add README in tests
Claude Paroz [Wed, 1 Jun 2011 13:11:51 +0000 (15:11 +0200)]
Fix LocNote2 test and add README in tests

7 years agoAdding copyright and license info to itstool
Shaun McCance [Wed, 1 Jun 2011 12:59:26 +0000 (08:59 -0400)]
Adding copyright and license info to itstool

7 years agoAdd remaining tests
Claude Paroz [Wed, 1 Jun 2011 11:45:51 +0000 (13:45 +0200)]
Add remaining tests

7 years agoitstool: Allow both XLink and child rules on its:rules
Shaun McCance [Wed, 1 Jun 2011 12:07:42 +0000 (08:07 -0400)]
itstool: Allow both XLink and child rules on its:rules

We weren't handling tests/WithinText2.xml correctly

7 years agoAdd tests for the Translate* series
Claude Paroz [Tue, 31 May 2011 20:05:00 +0000 (22:05 +0200)]
Add tests for the Translate* series

7 years agoFix xml iteration when constructing translated subnodes
Claude Paroz [Tue, 31 May 2011 18:41:13 +0000 (20:41 +0200)]
Fix xml iteration when constructing translated subnodes

7 years agoUse unicode strings inside of Message class
Claude Paroz [Tue, 31 May 2011 14:33:48 +0000 (16:33 +0200)]
Use unicode strings inside of Message class

7 years agoInitial test infrastructure
Claude Paroz [Mon, 30 May 2011 19:23:15 +0000 (21:23 +0200)]
Initial test infrastructure

7 years agoInclude installation dir in search path if XDG_DATA_DIRS not set
Shaun McCance [Fri, 27 May 2011 16:09:10 +0000 (12:09 -0400)]
Include installation dir in search path if XDG_DATA_DIRS not set

7 years agoitstool: Allow localization notes to be space-preserving
Shaun McCance [Tue, 10 May 2011 01:26:42 +0000 (21:26 -0400)]
itstool: Allow localization notes to be space-preserving

7 years agoitstool.1: Added a man page
Shaun McCance [Mon, 9 May 2011 20:32:25 +0000 (16:32 -0400)]
itstool.1: Added a man page

7 years agoCatch XPath exceptions and warn
Shaun McCance [Mon, 9 May 2011 15:15:02 +0000 (11:15 -0400)]
Catch XPath exceptions and warn

7 years agoVersion 1.0.1 1.0.1
Shaun McCance [Fri, 6 May 2011 21:02:13 +0000 (17:02 -0400)]
Version 1.0.1

7 years agoitstool: Convert posixy locale strings to BCP47
Shaun McCance [Tue, 3 May 2011 16:48:53 +0000 (12:48 -0400)]
itstool: Convert posixy locale strings to BCP47

7 years agoFixed --help string for --version
Shaun McCance [Sat, 30 Apr 2011 18:57:48 +0000 (14:57 -0400)]
Fixed --help string for --version

7 years agoAdded --version
Shaun McCance [Sat, 30 Apr 2011 18:56:07 +0000 (14:56 -0400)]
Added --version

7 years agoUse #. for comments. Plain # is for notes written by translators
Shaun McCance [Tue, 26 Apr 2011 21:27:22 +0000 (17:27 -0400)]
Use #. for comments. Plain # is for notes written by translators

7 years agoAdding the PO header, at Claude's request
Shaun McCance [Tue, 26 Apr 2011 20:22:24 +0000 (16:22 -0400)]
Adding the PO header, at Claude's request

7 years agoautogen.sh: Improve script to handle out of tree compilations
Javier Jardón [Tue, 26 Apr 2011 16:00:23 +0000 (17:00 +0100)]
autogen.sh: Improve script to handle out of tree compilations

Also handle the option to not run the configure step

7 years agoVersion 1.0.0 1.0.0
Shaun McCance [Tue, 26 Apr 2011 15:33:03 +0000 (11:33 -0400)]
Version 1.0.0

7 years agoMakefile.am: Added itstool to EXTRA_DIST
Shaun McCance [Tue, 26 Apr 2011 15:22:51 +0000 (11:22 -0400)]
Makefile.am: Added itstool to EXTRA_DIST

7 years agoxhtml.its: Preserve space on <pre>
Shaun McCance [Tue, 26 Apr 2011 15:21:03 +0000 (11:21 -0400)]
xhtml.its: Preserve space on <pre>

7 years agoSwitched itst namespace to itstool.org
Shaun McCance [Tue, 26 Apr 2011 00:06:54 +0000 (20:06 -0400)]
Switched itst namespace to itstool.org

7 years agoxhtml.its: Added a basic XHTML ITS file
Shaun McCance [Mon, 25 Apr 2011 16:28:06 +0000 (12:28 -0400)]
xhtml.its: Added a basic XHTML ITS file

7 years agodocbook.its: Some updates
Shaun McCance [Mon, 25 Apr 2011 15:56:36 +0000 (11:56 -0400)]
docbook.its: Some updates

7 years agoImplement external refs, also msgctxt "_" for auto stuff
Shaun McCance [Mon, 25 Apr 2011 13:45:16 +0000 (09:45 -0400)]
Implement external refs, also msgctxt "_" for auto stuff

7 years agoUTF-8 encode translator credit information
Shaun McCance [Mon, 11 Apr 2011 18:33:20 +0000 (14:33 -0400)]
UTF-8 encode translator credit information

7 years agoOnly add translator-credits once, avoid dup comment
Shaun McCance [Mon, 11 Apr 2011 18:30:45 +0000 (14:30 -0400)]
Only add translator-credits once, avoid dup comment

7 years agoDon't translate Mallard credit/email
Shaun McCance [Mon, 11 Apr 2011 18:19:42 +0000 (14:19 -0400)]
Don't translate Mallard credit/email

7 years agoOnly add translator-credits if itst:credits matched
Shaun McCance [Mon, 11 Apr 2011 18:06:20 +0000 (14:06 -0400)]
Only add translator-credits if itst:credits matched

7 years agoSupport XLink on its:rules
Shaun McCance [Mon, 11 Apr 2011 18:04:45 +0000 (14:04 -0400)]
Support XLink on its:rules

7 years agoImplemented translator credits
Shaun McCance [Mon, 11 Apr 2011 14:39:57 +0000 (10:39 -0400)]
Implemented translator credits

7 years agoRead and set language attributes
Shaun McCance [Thu, 23 Dec 2010 17:33:25 +0000 (12:33 -0500)]
Read and set language attributes

7 years ago[itstool] Got rid of all the redundant extra ns defs
Shaun McCance [Wed, 22 Dec 2010 16:43:00 +0000 (11:43 -0500)]
[itstool] Got rid of all the redundant extra ns defs

7 years ago[itstool] Fixed up some of the -o handling
Shaun McCance [Tue, 21 Dec 2010 14:11:25 +0000 (09:11 -0500)]
[itstool] Fixed up some of the -o handling

7 years ago[its/ttml.its] Adding basic TTML ITS, tt:span = withinText
Shaun McCance [Mon, 8 Nov 2010 16:05:55 +0000 (11:05 -0500)]
[its/ttml.its] Adding basic TTML ITS, tt:span = withinText

7 years ago[its] Don't translate DocBook remark or Mallard comment
Shaun McCance [Wed, 27 Oct 2010 17:44:23 +0000 (13:44 -0400)]
[its] Don't translate DocBook remark or Mallard comment

7 years ago[itstool] Implement its:span/@translate & preserve space more greedily
Shaun McCance [Wed, 27 Oct 2010 17:37:52 +0000 (13:37 -0400)]
[itstool] Implement its:span/@translate & preserve space more greedily

Sometimes messages get merged. Sometimes one of them is no-wrap, and
another isn't. In this case, prefer no-wrap. Better safe than sorry.

7 years ago[itstool] Fixed a few references of things that don't exist
Shaun McCance [Wed, 27 Oct 2010 15:33:09 +0000 (11:33 -0400)]
[itstool] Fixed a few references of things that don't exist