Source locale is not excluded in target file mappings

Description

Using the maven plugin configured as shown bellow:

And using this config file (zanata.xml):

My project file structure is like this:

src/main/resources/conf/i18n/sourcefile_es.properties <- example source file
src/main/resources/conf/i18n/exampletargetfile_pt.properties <- example target file

The targets (translations) aren't recognized because the filename always contains the source locale. Using "both" pushType, translations are never uploaded

I think that the problem is in this line https://github.com/zanata/zanata-platform/blob/c8173883718b857ff04249ee7fc843c32a173170/client/zanata-client-commands/src/main/java/org/zanata/client/commands/FileMappingRuleHandler.java#L134 because only removes the extension to build the filename placeholder/variable.

Environment

Ubuntu 16.04.1 LTS, java version "1.8.0_45", Apache Maven 3.3.3 (default locale: es_ES, platform encoding: UTF-8)

Status

Assignee

Patrick Huang

Reporter

DanielO

Labels

None

Tested Version/s

None

Components

Sprint

None

Fix versions

Affects versions

Priority

unspecified
Configure