---
name: "XML::TMX::FromPO"
section: "3pm"
platform: "linux"
package: "libxml-tmx-perl"
version: "0.39-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/XML::TMX::FromPO"
---

# XML::TMX::FromPO(3pm)

Generates a TMX file from a group of PO files

## NAME

XML::TMX::FromPO - Generates a TMX file from a group of PO files

## VERSION

version 0.39

## SYNOPSIS

```
   use XML::TMX::FromPO;
   my $conv = new XML::TMX::FromPO(OUTPUT => '%f.tmx');
```

## DESCRIPTION

This module can be used to generate TMX files from a group of PO files.

## METHODS

The following methods are available:

### new

```
  $tmx = new XML::TMX::FromPO();
```

Creates a new XML::TMX::FromPO object. Please check the COMMON CONFIGURATION section for details on the options.

### rec\_get\_po

TODO: Document method

### parse\_dir

TODO: Document method

### create\_tmx

TODO: Document function

### clean\_tmx

TODO: Document method

## COMMON CONFIGURATION

These configuration options can be passed to all methods in the module:

- LANG =\> 'list'

  A case insensitive list of regular expression separated by whitespaces that matches the code of the languages that are to be processed. Defaults to all.

- CONVERT =\> 'iconv -f %t -t utf8 \< %f'

  A string that contains the command to convert a file (%f) from some charset (%t) to Unicode. If none is specified, the module tries to use [**recode**(1)](/recode/1.md), if it fails then the module defaults to [**iconv**(1)](/iconv/1.md).

- OUTPUT =\> 'x.tmx'

  The name of the output file. If none is specified it defaults to the standard output.

- DEBUG =\> 1

  Activate debugging information. Defaults to 0.

## SEE ALSO

**XML::TMX::Writer**(3), [**gettext**(1)](/gettext/1.md), [**recode**(1)](/recode/1.md), [**iconv**(1)](/iconv/1.md)

## CONTRIBUTORS

Paulo Jorge Jesus Silva, \<paulojjs@bragatel.pt\>

## AUTHORS

- •

  Alberto Simões \<ambs@cpan.org\>

- •

  José João Almeida \<jj@di.uminho.pt\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2010-2017 by Projeto Natura \<natura@di.uminho.pt\>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
