Skip to content

Commit

Permalink
Transifex config update
Browse files Browse the repository at this point in the history
To make it work right with, for example, the CLI client, it's easier to change it to the real Transifex behaviour so that the source language is ignored if you pull/push the files.

The file_filter seems to use the `<lang>` expression as a wild card.
On my tests with the CLI Client, it worked perfectly with one `<lang>` expression to get the right language code from Transifex, if it is set up properly on Transifex. (`locale/languagecode_LANDCODE/messages.*`)

Now the .tx config should fit the Ampache project. Maybe here was one of the problems, why it wasn't working with the Amazon instance?
Well, I don't know how it was tested, so it's only a shot into the blue. :-)

By the way, I also didn't get it really working, for my taste, too less examples or bad documented, idk.. -.-
But if I have the time, I'm still on it. :-D


:-)
  • Loading branch information
Psy-Virus committed Mar 7, 2016
1 parent ed7da4c commit cce897c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .tx/config
@@ -1,8 +1,8 @@
[main]
host = https://www.transifex.com

[project_slug.resource_slug]
file_filter = locale/<lang>_<lang>/LC_MESSAGES/messages.po
[ampache.messagespot]
file_filter = locale/<lang>/LC_MESSAGES/messages.po
source_file = locale/base/messages.pot
source_lang = en_US
source_lang = en
type = PO

0 comments on commit cce897c

Please sign in to comment.