transifex / transifex-client

The Transifex command-line tool.
https://www.transifex.com/
GNU General Public License v2.0
135 stars 76 forks source link

Ignore files or language codes #13

Open nguillaumin opened 12 years ago

nguillaumin commented 12 years ago

Hi,

Unless I've missed something I can't find a way to ignore some files or language codes.

My use case is translating Android resources. In the Android world resources are stored in different folders, one per language code, for example:

That works great with the file filter system since you can use res/values-<lang>/strings.xml.

However Android also uses this suffix system for non language specifiers such as resources specifics to a SDK version (res/values-v11/strings.xml). When pushing translation this causes some errors (which hopefully can be --skiped.).

Another more generic use case is for some resources that are copied from other ones. For example in Norwegian the no resource is identical to nb, so in my build script I copy the values-nb folder to values-no. I'd like to ignore no when pushing translations.

Ideally a new setting in .tx/config would do, like ignore = no,v11.

Cheers,

Nico

mpessas commented 12 years ago

This is an interesting use-case.

We will keep in it mind for the next version.

ligi commented 9 years ago

:+1:

having this problem for small now:

➜  gobandroid git:(master) ✗ tx push -t              
Pushing translations for resource gobandroid.stringsxml:
Pushing 'zh_CN' translations (file: android/src/main/res/values-zh-rCN/strings.xml)
Pushing 'ru' translations (file: android/src/main/res/values-ru/strings.xml)
Pushing 'fr' translations (file: android/src/main/res/values-fr/strings.xml)
Pushing 'ca' translations (file: android/src/main/res/values-ca/strings.xml)
Pushing 'de' translations (file: android/src/main/res/values-de/strings.xml)
Pushing 'sv' translations (file: android/src/main/res/values-sv/strings.xml)
Pushing 'it' translations (file: android/src/main/res/values-it/strings.xml)
Pushing 'pl' translations (file: android/src/main/res/values-pl/strings.xml)
Pushing 'small' translations (file: android/src/main/res/values-small/strings.xml)
Exception: Not Found