Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore files or language codes #13

Open
nguillaumin opened this issue Aug 18, 2012 · 2 comments
Open

Ignore files or language codes #13

nguillaumin opened this issue Aug 18, 2012 · 2 comments

Comments

@nguillaumin
Copy link

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:

  • res/values/strings.xml (Source file)
  • res/values-fr/strings.xml
  • res/values-ja/strings.xml
  • ...

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
Copy link
Contributor

mpessas commented Aug 24, 2012

This is an interesting use-case.

We will keep in it mind for the next version.

@ligi
Copy link

ligi commented Mar 13, 2015

👍

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants